Where to upload .php scripts to on a server
Posted: Mon Oct 12, 2009 1:57 pm
First of all I hope i have picked the right .php forum? Php is all new to me and no doubt I will ask sum really dumb and stupid questions but I'm going to learn it, no matter what. I have been reading up about .php so I'm slowly grabing the idea.
So on with my first of many dumb questions.
1. Do I need to upload a .php file to a certain place on my server? My host have given me some conflicting adivise, one says put them in the public_html/cgi-bin. The other says /usr/local/bin/php but this directory doe not exist? The path at the top of the script I am trying to get to work says #!/usr/local/bin/php
I'm running 2.2.13 (Unix) , Linux , PHP Version 5.2.10.
Oh P.S the script I have here is to retrieve from a remote server and upload images to a folder on my server, it is not a .php script to diplay a webpage.
So on with my first of many dumb questions.
1. Do I need to upload a .php file to a certain place on my server? My host have given me some conflicting adivise, one says put them in the public_html/cgi-bin. The other says /usr/local/bin/php but this directory doe not exist? The path at the top of the script I am trying to get to work says #!/usr/local/bin/php
I'm running 2.2.13 (Unix) , Linux , PHP Version 5.2.10.
Oh P.S the script I have here is to retrieve from a remote server and upload images to a folder on my server, it is not a .php script to diplay a webpage.