PHP Script Installation and FAQ
 

1. What's PHP? How to run it?

PHP is 'Hypertext Preprocessor', script language that run on the server. You can run PHP script on web hosting server with PHP environment. More PHP information can be foud at http://www.php.net.

2. Can I run PHP scripts on my own PC?

Yes, Install Apache or IIS on your PC fist and then configure PHP environment. We recommend PHP HOME EDITION (Included Apache) for easy install in WINDOWS.

3. How to install  your PHP scripts?

3.1 Check your PHP environment.  Zend Encoded PHP scripts need Zend Library.  HTTPS fetch scripts need Client URL Library (CURL). Graphics Scripts need GD Library. We recommend IPOWERWEB or STARTLOGIC Web Hosting for full extended PHP libraries. If you have no corresponded PHP library, install it first.

3.2  Unzip and upload the PHP script to your server. Note that when you upload Zend encoded PHP script, you ftp transfer mode should set to 'BIN' not 'Character', or you will get error like this:*Fatal error*: Unable to read xxxxxx bytes in xxxxx.php on line *0.

3.3 Set write permission for scripts,  you can set it on you FTP client or use CHMOD command in Unix. Or you will get error like this: *Warning*: fopen(xxxxx.csv): failed to open stream: Permission denied in */home/html_public/xxx.php* on line *xx*.

3.4 Some PHP web  monitor script that run as auto jobs need set crontab first. If you have root permission you can edit /etc/crontab for jobs, normal user suse  'crontab -e' command  to set a job. Web hosting with CPANEL or VDESK can do it  in control panel.

4. How to set max running time for your PHP scripts?

4.1 Set safe_mode=Off in php.ini. (Default is off for most web hosting)

4.21 Set max_execution_time = xxx  in php.ini,  xxx is the max run seconds.

4.22 Or edit set_time_limit(xxx) in script for limited running time.

5. PHP script got Undefined variable error in new PHP host!

Symptom: PHP Notice:  Undefined variable: xx.php on line xx, referer: http://www.xxx.com

This error happens when register_globals is set to off. Three way to solve it:

5.1 You can set register_globals=on in your php.ini.

5.2 If you have no permission to edit php.ini, insert  "extract($_POST);  extract($_GET);" to the header of your php scripts.

5.3 Or download the last updated PHP script by the delivery link of Regnow.

6. I can not display directory correctly with your script!

Use ./ or ../.  Some web hosting have redirection for directory, use relative directory to operate you files. "./" is the current directory and "../" is the parent directory.

7. I have more questions

Feel free to Contact me.