The biggest free web hosting accounts. No ads. No strings. No tricks.

Know of a free webhost for storing php scripts?

Share

Question:

hai guys
I’m trying to store a php script online. Not a webpage USING php, but a php SCRIPT. I’m not really sure how to do this :D lol. I signed up with this free ‘php web host” but everytime i store the script it tries to turn it into a webpage. I don’t know how to tell it that I want to store just a script. I have a feeling I’m doing everything completely wrong.. anyone know what I should do? Thanks for any help ^^
Sorry maybe I should be more clear

I want to store a file that contains php code. When I direct my server to this file, I want it to execute the code in it. I don’t want my BROWSER to interpret the code, rather, I want my server to execute it.. does that make sense? I barely know any php so it is quite likely that I’m talking nonsense :P :P

Answer:

All you do it put the script on your site. Use FTP or the File Manager in the control panel and drag the php file up to your server. There, that’s it. The script is now on the site. To execute the script, type the full path to it in the browser like this:

http://YourSite.com/yourphpscript.php

If you call it up in your browser, it will execute the file contents and render it as a web page. Here’s how to run a php file on your server.

 
 
Share