HELLPP PHP 404 ERROR!

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
dichaeld
-


Joined: 20 Jun 2003
Posts: 11

PostPosted: Tue Dec 09, 2003 11:51 pm    Post subject: HELLPP PHP 404 ERROR! Reply with quote

okk im having problems with php. It was runnin fine on my old computer wins98 with php 4.3.1.

Now that I am on my new computer, php doesnt run! :(
I configured the same way as the site said but still doesnt work! I put a small test file labeled main.php and placed it into htdocs. All html files work juss when i load a php file (i.e. main.php) it doesnt load and says 404 error!

html file
http://tips1.zapto.org

test php file (Just test file)
http://tips1.zapto.org/main.php

My computer stats-->
PhP 4.3.1
Intel P4 3.0@3.53Ghz
1 GiG Ram PC3200
XP Professional
120+80 Gigs space

HELP! Plz and Thx
Back to top View user's profile Send private message Visit poster's website
Hunted
-


Joined: 24 Nov 2003
Posts: 71

PostPosted: Wed Dec 10, 2003 12:30 am    Post subject: Reply with quote

put all of your files in your htdocs folder.
and you have to set your index.php as an index file or whatever
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
dichaeld
-


Joined: 20 Jun 2003
Posts: 11

PostPosted: Wed Dec 10, 2003 12:53 am    Post subject: Reply with quote

i dont think that was the problem.. but anyways, I tried your suggestion.

html file
http://tips1.zapto.org/index.html

html file saved as .php and put into htdocs (testing)
http://tips1.zapto.org/index.php

nope that aint the problem... keep suggestions coming
---->
Computer stats:
Intel p4 3.0@3.52 Ghz
1 GIG PC3200 Ram
120+80 Gig hd'z
php 4.3.1
Xp Professional
Back to top View user's profile Send private message Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Wed Dec 10, 2003 3:01 am    Post subject: Reply with quote

Are you sure you haven't double extensioned the files ? The more recent Windows OS's helpfully hide the actual file extension, so just adding .php will create index.html.php
Back to top View user's profile Send private message
dichaeld
-


Joined: 20 Jun 2003
Posts: 11

PostPosted: Wed Dec 10, 2003 4:29 am    Post subject: Reply with quote

THANKS MAN! I owe you Big!
I was used to saving it as .php from notpad in 98 and it all worked out.. Seems like in xp pro, is saves it as index.php.txt (double extension) guess ill be saving all php files in notepad under -(all files)- now.

Thanks Anonymoose~ :wink:
Back to top View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Dec 10, 2003 5:59 am    Post subject: Reply with quote

if that ever happens again , go to your htdocs where the file is with the double extension and click at the top where it has Tools -> Folder Options and click the View tab and uncheck , hide extensions for known file types and it will show you the double extensions , this happened to me when I bought my new HP Pavilion 8)
Back to top View user's profile Send private message Visit poster's website
dichaeld
-


Joined: 20 Jun 2003
Posts: 11

PostPosted: Wed Dec 10, 2003 9:41 pm    Post subject: Reply with quote

aight thanks man
Back to top View user's profile Send private message Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Thu Dec 11, 2003 12:40 am    Post subject: Reply with quote

If you're saving in Notepad as anything but txt, put quotes around the filename in the save dialogue, e.g. "index.php" and it will save it save as that name without adding .txt :D

The tip TRUSTpunk gave is the first thing I do after reinstalling Windows, I'm just used to being able to just rename the files properly I guess. It also stops you falling for any of those britneyspearsnaked.jpg.exe type trojans since you'll see straight away it's an exe before you absentmindedly click on it 8)

Glad to be able to help :)
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group