Where to upload .php scripts to on a server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jint
Forum Newbie
Posts: 6
Joined: Mon Oct 12, 2009 1:45 pm

Where to upload .php scripts to on a server

Post by jint »

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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Where to upload .php scripts to on a server

Post by requinix »

cgi-bin.

Any file that needs to be executed (has a #! at the top) goes in the cgi-bin directory.
jint
Forum Newbie
Posts: 6
Joined: Mon Oct 12, 2009 1:45 pm

Re: Where to upload .php scripts to on a server

Post by jint »

Thanks for that I've managed to get something to work at last.....what I don't know :) I'll post another question
Post Reply