Real Web Host offers PHP as an Apache module, not as a CGI binary. Thus, clients can take advantage of the benefits of using PHP as an Apache module.
Currently, we are using PHP 4.x.
No. Since we are not using PHP as a CGI binary, there is no reason to use the #!/usr/bin/php header in your PHP scripts. Doing so will only cause the header to show up as output as well.
Absolutely. Once of the big advantages of PHP is the ability to interface to databases, including mySQL. Since we offer mySQL as apart of our service, you can have PHP act as a front-end to your mySQL databases. Not only is this possible, but it is very powerful. Many of the applications, such as parts of webhosting-support.com, are provided as PHP output querying from a mySQL database.
PHP is quickly becoming a very popular scripting language. More information on PHP can be found on the official website, located at www.php.net . On their website, you can find a listing on all PHP functions, libraries, example scripts, a mailing list for developers, and other useful information.
This is because your PHP scripts run under the userid "nobody" and group "nobody". In order to get around this, you will need to set the relevant files and directories to world read/writable. (chmod 777)
Yes, we have installed PHP to support short tags, so you can use this feature in your PHP scripts.
Yes, PHP scripts do not have to reside in a particular directory and will run anywhere on your virtual server.
PHP is a server-side, cross-platform, HTML embedded scripting language. It has a syntax familiar to both Perl and C. PHP-enabled web pages are treated just like regular HTML pages and you can create and edit them the same way you normally create regular HTML pages.
The valid file extensions for PHP scripts are listed below: .php These file extensions must be used in order for your PHP scripts to run properly.
To avoid any problems, you should set your PHP scripts to 755, or user everything, group and world read and execute permission.
Your PHP scripts will run under the same userid as the webserver (Apache), which is "nobody". Therefore, since your PHP scripts do not run under your userid, you must take this into consideration when you are trying to create, edit, or modify files with your PHP scripts. Secondly, PHP scripts run under the group "nobody" as well. All clients are in the group "cust". Therefore, in order to allow PHP to create, modify, and/or delete files within your account, you would need to have world read/write permission on the files and within the directories where the files will be created.
Categories: 28 | Questions: 909
Categories: 30 | Questions: 183