Showing posts with label Computer Programming. Show all posts
Showing posts with label Computer Programming. Show all posts

How to double-click & run PHP in CMD/console?

Hello everyone,

Welcome to this short tutorial on how to run PHP codes in console or CMD.

You get PHP console with your PHP setup called php.exe which generally resides in your PHP folder. I have WAMP installed in my computer so I have PHP installed via WAMP.

Connect to remote MySQL database using SQLyog instead of PHPMyAdmin through cpanel | MySQL GUI Tools

Hello everyone. Today we are going to go through a mysql tutorial on remote database administration. We all know that we can manage mysql database using PHPMyAdmin through cPanel in our web host panel. But sometimes we may not have access to cPanel, but FTP and MySQL login details. So how do you connect at that time without login to cPanel?

10 tips to speed up your website? Web page optimization tips

Hello everyone and welcome to this tutorial on "How to speed up your website? Web page optimization tips".

Whenever on internet it is basically desired to have things happening faster, right? But your website is not performing good enough? Well, here are 10 site optimization tips that will boost your website loading speed.

How to download image from URL using PHP? 2 methods explained.

Hello everyone, welcome to this short tutorial on how to download image from URL and save it on your server using PHP.

Why and How to use static properties in PHP? OOP in PHP.

A static keyword is very important in object oriented programming. Static methods and properties play a vital role in application design and also in design patterns. So what are static methods and properties?

How to backup all databases at once in localhost windows WAMP server

Hello everyone, today with another short tutorial on MySQL and my ultimate MySQL GUI interface of choice, SQLYog. Sometimes, like after a clean windows install or HDD issue or virus/malware attack etc. we need to reinstall our WAMP server. In general our MySQL server also get reinstalled with WAMP and we lose all our databases ! Scary right? Again exporting each and every databases one by one is tedious task for me as my root user on localhost accesses nearly 87 databases. So is there any solution? Obviously yes, if you have got your copy of SQLYog. You can backup all your databases on localhost at once as separate *.sql files or in one file at zip also.

5 tips to speed up your website? These Web page optimization tips will give Sonic Boom

Hello everyone and welcome to this tutorial on “How to speed up your website? Web page optimization tips” PART 02.

So, in my last post on website optimization, which is "10 tips to speed up your website? Web page optimization tips – Part 01", I described 10 ways to speed up your website. If you have missed those tips, I think you should not. Today I will be highlighting 5 more ways to actually give a Sonic Boom to your website. So, lets start.

10 features your IDE (Integrated Development Environment) should have

Coding involves a lot of thing than just coding. Alright, I agree, people can even code in notepad. But choosing right IDE for your everyday use is far more than important. You can open up a program of 40-50 lines in notepad and edit and save it. But what about a whole project of 100 scripts, 200 functions, numerous number of variables and objects and constants, also classes and complex flow or architecture? Stop arguing, and start learning.

Sort dependency list or Topological Sorting in PHP

Topological Sorting - Wkipedia

In the field of computer science, a topological sort (sometimes abbreviated toposort) or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge uv from vertex u to vertex v, u comes before v in the ordering. For instance, the vertices of the graph may represent tasks to be performed, and the edges may represent constraints that one task must be performed before another; in this application, a topological ordering is just a valid sequence for the tasks. A topological ordering is possible if and only if the graph has no directed cycles, that is, if it is a directed a cyclic graph (DAG). Any DAG has at least one topological ordering, and algorithms are known for constructing a topological ordering of any DAG in linear time.

Sometimes, we fall into situations where we have a list of tasks to be done, but with a condition that each of the tasks may need one or more tasks from the list to be done before them. Let’s, consider that we have to do tasks a,b,c,d and the condition is b & d has to be done before the task a, then the sorting will become b,d,a,c.

Why I would choose PhpStorm over Adobe Dreamweaver?

Okay, first of all guys, I have been using PHPStorm for the last project I am working on and its really awesome, but the following list awesomeness is obviously incomplete.