Thursday, July 30, 2009

How to make a php file work on a Site?

Hi





I would like to know exactly (and when I say exactly I mean step by step instructions) how to make a php file written in word, work on an internet server that uses Apache. The server isn’t mine so don’t come to me with the instructions written in the installation file of PHP. What I mean is how can make a php file execute once it has been loaded into a server. I tried to open it after I just uploaded it and it came up empty. It showed the script not the result of the script.

How to make a php file work on a Site?
If php isn't enabled and you don't have access to the Apache config file, then you're out of luck. To test, put the following in a text file (use Notepad or TextPad, not Word) named foo.php. Upload it to your web space and then navigate to it with your browser. If php is enabled, you should see all sorts of config information on the screen. If you don't, php is not enabled.





Good luck!





%26lt;html%26gt;%26lt;body%26gt;


%26lt;h1%26gt;PHP test%26lt;/h1%26gt;


%26lt;? phpinfo()?%26gt;


%26lt;/body%26gt;%26lt;/html%26gt;


No comments:

Post a Comment