PHP Scripts Wont Work

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


Joined: 12 May 2005
Posts: 3

PostPosted: Thu May 12, 2005 8:08 pm    Post subject: PHP Scripts Wont Work Reply with quote

I recently installed php following first aprelium's guide, then trustabyss's guide and still get a blank page when I try and get scripts to run.

http://timnet.no-ip.org/php/

I am using notepad to write the scripts, and as you can see I'm doing something wrong.

Please help


Last edited by TL3 on Thu May 12, 2005 8:28 pm; edited 1 time in total
Back to top View user's profile Send private message
TL3
-


Joined: 12 May 2005
Posts: 3

PostPosted: Thu May 12, 2005 8:26 pm    Post subject: Reply with quote

I should add that Im using win98 with mdac installed..
Back to top View user's profile Send private message
TRUSTAbyss
-


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

PostPosted: Thu May 12, 2005 8:42 pm    Post subject: Reply with quote

You have a double extension for your PHP file. remove the .txt at the end of
the file name and then try accessing the script again using your web browser.

Go to My Computer -> View -> Folder Options -> View (tab) and
uncheck the option "Hide file extensions for known file types."

Sincerely , TRUSTpunk
Back to top View user's profile Send private message Visit poster's website
TL3
-


Joined: 12 May 2005
Posts: 3

PostPosted: Thu May 12, 2005 9:51 pm    Post subject: Reply with quote

thanks for the reply

I unchecked it but the file still saves as .php.txt even if I select "all files(*.*)"

Edit: nevermind I just renamed it and it works fine

Thanks for your help!
Back to top View user's profile Send private message
richardyork
-


Joined: 22 Jun 2004
Posts: 411
Location: United Kingdom

PostPosted: Thu May 12, 2005 11:24 pm    Post subject: Reply with quote

When using notepad to save files that are not *.txt files, it is always best to use this method at the save prompt when saving files:

Save As File Name: "yourfile.php"

Using the quotes around the file name and type of you choice, forces the file to be saved with the file type you have chosen, in this case and your, a *.php file

This ensures the file won't be saved as, yourfile.php.txt
_________________
Please SEARCH the forums BEFORE asking questions!
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