How and what can you do with PHP
PHP is a programming language that stands for PHP Hypetextual Processing. Technically PHP is just a program that lives on your computer which interprets code and executes PHP statements line by line. The PHP interpreter will execute changes to your computer or run-time environment based on the low-level instructions that the programmer issues.
PHP works as either a module, or as a CGI processor. PHP is server side, that it is ‘translated’ at the server end, before it reaches the browser. PHP is designed to do something only after an event occurs; PHP is similar to using HTML tags. PHP always executes on the server, which means that it has nothing to do with your computer while you’re sitting there surfing the net.
The PHP code is a file that contains instructions by using of text syntax-constructs in the scripting language. So a PHP file is just a file saved by using a simple editor like notepad in the extension of php.
With PHP the goal is to use the processing powers of the server to build (usually) dynamic webpages. PHP has useful text processing features, which includes the Perl compatible regular expressions (PCRE), and many extensions and tools to parse and access XML documents.
PHP can be used on all major operating systems, including Linux, many Unix variants, Microsoft Windows and others. PHP has also support for most of the web servers today. So with PHP, you have the freedom of choosing an operating system and a web server.
PHP’s abilities includes outputting images, PDF files and even Flash movies (using libswf and Ming) generated on the fly. You can also output easily any text, such as XHTML and any other XML file. PHP can autogenerate these files, and save them in the file system, instead of printing it out, forming a server-side cache for your dynamic content.
PHP also has support for talking to other services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows) and countless others. PHP has support for instantiation of Java objects and using them transparently as PHP objects.
Like most server-side scripting languages, PHP is excellent for creating dynamic Web sites based on database content or different characteristics of browsers. Through the use of external libraries and functions, PHP can:
1. Build templates to ease site maintenance
2. Create graphics on the fly
3. Serve different content to users based on their browser, IP address, date and time, or numerous other chacteristics
4. Conduct online surveys
5. Connect databases like Oracle or MySQL to the Web
6.Communicate with external Web sites
7. Build discussion forums or Web-based e-mail programs
read and process XML.
With PHP you can do many basic and complex things in your website. You can use php to make your website dynamic. You may have seen registrations forms, login forms, or feedback forms in other websites. These are all processed using php (There are many other scripting languages too). You can upload files, send mails, and do many other interesting things using php.