PHP can be used to run command line programs and is not restricted to browser only app development. PHP SH can be installed on Linux, windows and mac which helps you execute php files from your terminal. These programs can fetch data from web server, manipulate the data and store it on hard-disk. Though php can be used for doing command line operations, you can’t execute html specific code from the command line using Php SH. In such case, using php on browser with web server should be your focus like most of the web based programming languages. [Read more…]
PHP MySQLi Procedural and Object-Oriented Interface
MySQLi is a new improved extension for accessing mysql database. It allows procedural and object oriented interface for accessing mysql database. Though you can use the old mysql functions but new mysqli offers security, advanced options, speed and similar syntax. So if you’re trying to write code using old mysql functions, just switch to mysqli. You have nothing to lose even if you don’t know how to use Object oriented way of accessing the database. [Read more…]