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.
Where to upload .php scripts to on a server
Moderator: General Moderators
Re: Where to upload .php scripts to on a server
cgi-bin.
Any file that needs to be executed (has a #! at the top) goes in the cgi-bin directory.
Any file that needs to be executed (has a #! at the top) goes in the cgi-bin directory.
Re: Where to upload .php scripts to on a server
Thanks for that I've managed to get something to work at last.....what I don't know
I'll post another question