View previous topic :: View next topic |
Author |
Message |
dichaeld -
Joined: 20 Jun 2003 Posts: 11
|
Posted: Tue Dec 09, 2003 11:51 pm Post subject: HELLPP PHP 404 ERROR! |
|
|
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 |
|
|
Hunted -
Joined: 24 Nov 2003 Posts: 71
|
Posted: Wed Dec 10, 2003 12:30 am Post subject: |
|
|
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 |
|
|
dichaeld -
Joined: 20 Jun 2003 Posts: 11
|
Posted: Wed Dec 10, 2003 12:53 am Post subject: |
|
|
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 |
|
|
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Wed Dec 10, 2003 3:01 am Post subject: |
|
|
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 |
|
|
dichaeld -
Joined: 20 Jun 2003 Posts: 11
|
Posted: Wed Dec 10, 2003 4:29 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Dec 10, 2003 5:59 am Post subject: |
|
|
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 |
|
|
dichaeld -
Joined: 20 Jun 2003 Posts: 11
|
Posted: Wed Dec 10, 2003 9:41 pm Post subject: |
|
|
aight thanks man |
|
Back to top |
|
|
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Thu Dec 11, 2003 12:40 am Post subject: |
|
|
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 |
|
|
|