Server-side scripting in web development is a technique which employs scripts on a web server to allow the server to produce a customized response for each user’s request to the website. The following things are required to perform this function: the PHP parser, a web server and a web browser. The web server must run with a connected PHP installation. Developers can also use a web browser to access the PHP program output which will allow the PHP page to be viewable through the server.
Command line scripting
Command line scripting allows the user of the computer to issue commands to the program via command lines. More advanced computer users prefer this form of scripting since it can serve as a powerful tool to control an operating system or program. But with command line scripting, the PHP developer wouldn’t need any server or browser when using command line scripting. What would be needed is the PHP parser which is ideal for scripts that are regularly executed using cron or Task Scheduler.
You can go beyond output HTML
PHP developers are not limited to output HTML when using PHP; it can help build the following such as outputting images, PDF files and Flash movies. Texts can be easily outputted such as XHTML and any other XML file. PHP can automatically generate these files and save them in the file system all while forming a server-side cache for your content. The strong support for a wide range of databases is what makes PHP’s most significant feature.
Text processing features
Text processing features can be used which includes the Perl compatible regular expressions (PCRE), and many extensions and tools used to parse XML documents.
The PCRE contains a set of functions that implement the matching of regular expression pattern using the same syntax and semantics as Perl 5. The PCRE library is free of cost, and also free for creating proprietary software. It has been used in well known commercial products like Apple Safari. PHP systemizes XML extensions on the solid base of libxml2, and extends the feature set adding XMLReader, SimpleXML and XMLWriter support.