GetDotted Domains

Viewing Thread:
"PHP Newbie Help"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Wed 26/12/01 at 21:35
Regular
Posts: 787
I got a "beginning PHP4" book for christmas and today, I set about installing PHP4. So, I downloaded the appropriate software and it was all going fine. I installed PHP4 and PWS. It told me what to change in the php.ini file and where to add all the .dll files to, all of which I had done.

Next, I installed PWS and did exactly what my book said to do. It then said it was all fine and it should all be installed. So it then told me how to test if the installation had worked, by making a "phptest.php" file. I copied what it told me to do exactly and saved it in the appropriate place (C:/Inetpub/wwwroot).

It then said to open the web browser and see what happens if I type "http://localhost/" which I did and I got the screen that the book said I should get. I then tried "http://localhost/phpinfo.php" and it asked me if I wanted to download the php file. This is not right because it had a picture in the book of what I should of got.

I just don't know what is wrong so any suggestions would be more than welcome.

Thanks is advance.
Thu 27/12/01 at 01:24
Regular
"Eff, you see, kay?"
Posts: 14,156
It's not sending the right headers. Bloody Microsoft, eh?

Anyway....

Your biggest mistake was using PWS. This has to be THE WORST web server you can possibly get. Saying PWS is dreadful is like saying America is slightly miffed with Bin Laden. Yes, it IS that bad. I *really* suggest you download a semi-proper server like OmniHTTPd (http://www.omnicron.ab.ca/httpd/) and use that. It comes with PHP pre-installed and is indescribably easy to set up. Eventually you'll want to use Apache but that's a completely different story.

Secondly, REMOVE PWS IMMEDIATELY! You have no idea how much of a security risk it is having that thing running. It's like a Microsoft-certified trojan (like Windows... actually...). Get rid of it!

Do as I say and all will be well my son.
Thu 27/12/01 at 01:24
Regular
"Psytrance junkie"
Posts: 4,114
Sounds like the server may not be configured properly - never used PWS, but check it knows what to do with PHP documents and has the right modules set up..
Thu 27/12/01 at 01:20
Regular
"You Will Bow To Me"
Posts: 126
Gabbo wrote:
I then tried
> "http://localhost/phpinfo.php" and it asked me if I wanted to download
> the php file. This is not right because it had a picture in the book of what I
> should of got.

I'm not 100% certain, but basically, when your broswer comes accros a file with an extension it doesnt recognise (or one that's been assigned to a set program) it will automatically try to download it - for example, .zip & .doc files etc.

i *think* you need to make sure your system knows to open a php document rather than try to download it. I think on windows machine you go to 'My Computer > View > Folder Options > File Types' and then make sure that files with a .php extension are set to open with your browser and not any other program.

But i could be wrong.
Wed 26/12/01 at 21:35
Regular
"No Surprises Please"
Posts: 2,192
I got a "beginning PHP4" book for christmas and today, I set about installing PHP4. So, I downloaded the appropriate software and it was all going fine. I installed PHP4 and PWS. It told me what to change in the php.ini file and where to add all the .dll files to, all of which I had done.

Next, I installed PWS and did exactly what my book said to do. It then said it was all fine and it should all be installed. So it then told me how to test if the installation had worked, by making a "phptest.php" file. I copied what it told me to do exactly and saved it in the appropriate place (C:/Inetpub/wwwroot).

It then said to open the web browser and see what happens if I type "http://localhost/" which I did and I got the screen that the book said I should get. I then tried "http://localhost/phpinfo.php" and it asked me if I wanted to download the php file. This is not right because it had a picture in the book of what I should of got.

I just don't know what is wrong so any suggestions would be more than welcome.

Thanks is advance.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Many thanks!!
Registered my website with Freeola Sites on Tuesday. Now have full and comprehensive Google coverage for my site. Great stuff!!
John Shepherd
Second to none...
So far the services you provide are second to none. Keep up the good work.
Andy

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.