PHP questions

They have: 37 posts

Joined: Apr 2000

This all sounds like hard work to me Plain

Maybe i'll just have to upload to the server anyway Smiling

Thanx
Dan

They have: 98 posts

Joined: Dec 1999

There are many servers out there that will still make you have your PHP scripts in the cgi-bin and chmode them 755.

Some of them make you set it up to run as a cgi process so they can moniter the scripts with suexec. If it is set up that way then you most likely would have to have them in the cgi-bin.

It is best to have them set up properly so they do not need any of the above.

------------------
http://www.were-here.com/cgi-bin/ubbcgi/Ultimate.cgi

They have: 37 posts

Joined: Apr 2000

I did post this message in the CGI forum, but got told off for it, so I'm posting ti again in here.

When scripting with PHP3, do you need to CHMOD any of your files, and if you do, to what?
Is there a way that I can script with PHP, and then view it using my windows 98 computer without having to upload it to my server?

Thats about it for now, thanx

Dan

They have: 5,633 posts

Joined: Jan 1970

Hi Dan,

No, you shouldn't need to CHMOD any files for PHP to work. Just name them with the extension that your host has setup for PHP executables.

In regards to setting up PHP on your local machine, it is possible. The difficulty depends on your knowledge of Apache and PHP, etc. You would need to download both Apache (the Webserver) and PHP. Compile Apache and get it setup and than compile PHP and get it setup. I am sure there are some tutorials on doing this on the Internet - I have done it myself and it is a little tricky but some time and a little patience will get it done.

------------------
TWF Administrator

Dynamic Internet Solutions : Windows NT and UNIX Hosting & Dedicated Servers

They have: 37 posts

Joined: Apr 2000

I hope mine is not like that Smiling

They have: 850 posts

Joined: Jul 1999

Setting up a server on that runs PHP on my local machine (Windows 98) isn't hard.

I use a very easy-to-setup server called OmniHTTPD. You can find more information about it at http://www.omnicron.ab.ca/. The great thing about this server is that the latest version already has PHP configured.

Setting up PHP for windows isn't too difficult also. Go to http://www.php.net/download-php.php3
and download the "3.0.16 Win32 binary". From what I remember, it comes with instreuctions on installing it. If not, there is a ton of documentation on php.net.

Hope that helps a little,

------------------
awsoem Tehcnical Lunix Smart Inc:teh best webhost!!
Personal Site
http://www.wiredstart.com : The Technology Start Page

[This message has been edited by robp (edited 25 April 2000).]

They have: 334 posts

Joined: Dec 1999

It's not hard Dan. If you don't want to mess around compiling source code, there are precompiled Windows-ready binaries available for the server and for the add-ons like PHP, Perl and MySQL. All you need to do is download the appropriate .exe files and install just like any other Windows-based program. Once the server and PHP are installed, just change a couple of configurations files and you're all set to go.

There are a couple of freeware personal web servers that support PHP in Windows. I've used both Apache and Xitami without any trouble and Rob suggests OmniHTTPD, so you have at least 3 viable choices and there should be a few others available. I like Apache since it's so widely used. It's nice to use the software that your web host is probably using. It's a bit more complicated than Xitami, but it's VERY WELL documented on the web. Setting up the Xitami/PHP combo is a no-brainer. It's easier than Apache and from what Rob says OmniHTTPD is also really easy. So don't be afraid, take the plunge. A person that's semi-literate on Windows can have a workable home PHP package up and running in 15 minutes. When you're dealing with open-source freeware you really can't go wrong

They have: 5,633 posts

Joined: Jan 1970

I apologize if I made it sound difficult to setup PHP on your local machine... It really isn't but it *can* be tricky, just depending on the route that you take.

I did not know about OmniHTTPD supporting PHP in its latest release which should *really* make this easier... Thanks Rob!

I personally have the Apache/PHP/mySQL setup running on my system and it took about 30 minutes to setup. It does require some work on your part to edit configuration files but like Maverick said, everything is *well* documented. Again, I hope I didn't make it sound difficult as it really isn't.

My mind is set more on working with Apache and PHP in a Linux server environment where you don't have a simple .exe file to run - reading over my first statement, it does sound like a nightmare to try to get it to run!

In regards to the CHMOD thing, again, I am thinking about servers, and our servers in particular. Ours are setup so you don't have to CHMOD PHP files or even put them in a cgi-bin. Most servers are setup like this, I think.

------------------
TWF Administrator

Dynamic Internet Solutions : Windows NT and UNIX Hosting & Dedicated Servers

They have: 5,633 posts

Joined: Jan 1970

AIS does PHP work quite frequently. I’ve probably used PHP on 15 hosts this year. So far naming the file correctly is all that is required to make them run. I don’t see what the CGI-BIN and PHP have to do with each other, except that the CGI bin has file permissions to run scripts, but any directory can be setup to do that.

PHP is a lot of fun over all

------------------
Adam
AIS Internet Solutions
[email protected]
www.aisinternet.com

They have: 98 posts

Joined: Dec 1999

quote:
In regards to the CHMOD thing, again, I am thinking about servers, and our servers in particular. Ours are setup so you don't have to CHMOD PHP files or even put them in a cgi-bin. Most servers are setup like this, I think.

If there not, they should be because it would be a nightmare to have to do that to PHP!

I know that there are a lot of shared server environments that you have to use it like that. I have a dedicated server, as well as many shared accounts, and dont have to worry about it for the dedicated, but some of the shared accounts are that way.

------------------
http://www.were-here.com/cgi-bin/ubbcgi/Ultimate.cgi

They have: 37 posts

Joined: Apr 2000

Thank you for all the help and tips, i'll try some of these and see what heppens.

I'll let you know

Dan

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.