php webpages i made do not open in internet explorer - help plz
28-07-2004, 19:23
|
#1
|
|
Inactive
Join Date: Feb 2004
Posts: 382
|
php webpages i made do not open in internet explorer - help plz
I have made some webpage when i save them as html they open fine in i.e, but when i save them as .php, it doesnt open...
Does anyone know what the problem could be....it used to work a few months back....
i am using windows xp service pack 2 with latest i.e. build...
|
|
|
28-07-2004, 19:31
|
#2
|
|
Inactive
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
|
Re: php webpages i made do not open in internet explorer - help plz
It displays the source code, correct?
You need to have a webserver with PHP to use .php pages.
If you are not using anything with <?php and ?> tags in them, just use .html files.
|
|
|
28-07-2004, 19:45
|
#3
|
|
Inactive
Join Date: Feb 2004
Posts: 382
|
Re: php webpages i made do not open in internet explorer - help plz
It works when i upload the files online, but if i want to preview the files from my computer, internet explorer doesnt open the files..unless i am mistaken and it shouldnt anyway.
|
|
|
28-07-2004, 19:56
|
#4
|
|
Inactive
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
|
Re: php webpages i made do not open in internet explorer - help plz
Quote:
|
Originally Posted by heyyo
It works when i upload the files online, but if i want to preview the files from my computer, internet explorer doesnt open the files..unless i am mistaken and it shouldnt anyway.
|
Unless you have a web server and PHP running locally, it won't display them if you preview them locally.
|
|
|
28-07-2004, 19:57
|
#5
|
|
Inactive
Join Date: Nov 2003
Location: In the Dragons Lair Swindon Wilts
Posts: 573
|
Re: php webpages i made do not open in internet explorer - help plz
Dam you beat me bifta
|
|
|
28-07-2004, 20:00
|
#6
|
|
Inactive
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
|
Re: php webpages i made do not open in internet explorer - help plz
Quote:
|
Originally Posted by Rough.D
Dam you beat me bifta 
|
Heh, richard beat use both ...
|
|
|
28-07-2004, 20:20
|
#7
|
|
Inactive
Join Date: Nov 2003
Location: In the Dragons Lair Swindon Wilts
Posts: 573
|
Re: php webpages i made do not open in internet explorer - help plz
Quote:
|
Heh, richard beat use both ...
|
True but you beat me by a minute on the webserver bit
Anyway I use Appserv for most of my local previews with .php and mysql
Appserv will install php, mysql and apache onto your machine.
|
|
|
29-07-2004, 16:07
|
#8
|
|
Inactive
Join Date: Feb 2004
Posts: 382
|
Re: php webpages i made do not open in internet explorer - help plz
i have downloaded and installed appserv, and then i tried to preview locally a php file, the same problem occured. how do i set it up (appserv) so i can view files locally, thanks
|
|
|
29-07-2004, 16:20
|
#9
|
|
Inactive
Join Date: Jun 2003
Location: Stafford
Age: 52
Services: Sky World
300k BB
NTL Phone
Posts: 2,399
|
Re: php webpages i made do not open in internet explorer - help plz
I wouldn't try to use PHP5 at the moment as it is still going through release candidate stages. Your best bet is PHP4.3.x, x being whatever the latest stable version of PHP is.
|
|
|
29-07-2004, 16:25
|
#10
|
|
Inactive
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
|
Re: php webpages i made do not open in internet explorer - help plz
Quote:
|
Originally Posted by heyyo
i have downloaded and installed appserv, and then i tried to preview locally a php file, the same problem occured. how do i set it up (appserv) so i can view files locally, thanks
|
You should have a www or htdocs or similar folder specified when you set it up, save the document in that folder then go to http://127.0.0.1/whatever.php
|
|
|
29-07-2004, 16:32
|
#11
|
|
Inactive
Join Date: Nov 2003
Location: In the Dragons Lair Swindon Wilts
Posts: 573
|
Re: php webpages i made do not open in internet explorer - help plz
Now you should have appserv in your program listing's
to start appserv
goto appserv / apache control server / start.
To view the files you will need to put them into the www folder as you would on your web space.
once you have done this in the ie addy type localhost/"name of file".php or htm
"name of file" = index.php or test.php without the quotes.
so if you typed in localhost/index.php
you will see the appserv info page.
hope this helps.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 09:39.
|