I tested you original script because I figured out what your problem is 
after I turned my computer off yesterday. Your PHP installation is set 
to not report errors. Your original script is missing the closing 
bracket. Most hosting companies have error reporting set to off, some 
allow you to change this in their control panel.
With error reporting off, you only see a blank page instead of an error 
message.

I would suggest you install a local installation of Apache 2 and PHP5 on 
your computer, this way you can test your scripts for errors and upload 
them once they run properly.

Here is a good guide on how to install Apache2 and PHP5 on Windows. You 
can skip the database part (Part II) if you like since your script does 
not require it.
http://www.workorderts.com/Virtual_Brain_Online/article/install_Apache2_PHP5_MySQL5_server_windows/

http://www.workorderts.com/Virtual_Brain_Online/article/Install_PHP_5_integrate_Apache_2_0_2_2_problem_solution

Once installed, edit the file php.ini which is found in your php directory.
Look for "error_reporting" (without quotes) and set it to "E_ALL & 
~E_NOTICE" (no quotes) or to see all messages, the way I have it set to.
error_reporting  =  E_ALL

Now go further down and change display_errors = Off to
display_errors = On

Now restart Apache to enable to configuration changes. You can now run 
your scripts locally and see error messages if something is not right.

Hope This help

John

Reply via email to