470,867 Members | 1,793 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,867 developers. It's quick & easy.

problems getting my code running in Explorer 6.

Hi, I am trying to learn PHP but am having some problems getting my code
running in Explorer 6.

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

outputs a blank page. So I done the 'associate .php file extension with the
PHP script interpreter' and now it runs the script in the interpreter.

By the way I don't have the Internet at home or a server installed, is this
the problem?
Jul 17 '05 #1
9 1909
In article <87**************************@posting.google.com >, leke wrote:
Hi, I am trying to learn PHP but am having some problems getting my code
running in Explorer 6.

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

outputs a blank page. So I done the 'associate .php file extension with the
PHP script interpreter' and now it runs the script in the interpreter.

By the way I don't have the Internet at home or a server installed, is this
the problem?


I don't see a problem?

If you want to be able to browse to your pages/scripts you'll have to
install a webserver. Can find a free one at http://httpd.apache.org.
--
Tim Van Wassenhove <http://home.mysth.be/~timvw>
Jul 17 '05 #2
While the city slept, leke (le**@merseymail.com) feverishly typed...
Hi, I am trying to learn PHP but am having some problems getting my
code running in Explorer 6. [...]
By the way I don't have the Internet at home
No, you won't have. It's at my house at the moment. Pop round sometime and
borrow it if you want. Just be sure to bring it back though! ;-)
or a server installed,
is this the problem?


Yup! You need to install a server on your PC (eg. Apache), download and
install PHP from http://www.php.net, and then it should work. Just remember
that you can't just open "C:\My websites\phptestpage.php" like you could do
with an ordinary html page, it must be opened through the server, so
something like http://localhost/phptestpage.php... If you have any probs
with the installation, there is extensive documentation at the php website.
If that fails you, I'm sure someone here will guide you through! :-)

You can save all this hassle by getting on the internet at home and then
ftp'ing your pages to some php-enabled web space if it is at all possible.

Cheers,
Nige

--
Nigel Moss
http://www.nigenet.org.uk
Mail address not valid. ni***@DOG.nigenet.org.uk, take the DOG. out!
In the land of the blind, the one-eyed man is very, very busy!
Jul 17 '05 #3
leke scratched out in the sand
Hi, I am trying to learn PHP but am having some problems getting my code
running in Explorer 6.

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

outputs a blank page. So I done the 'associate .php file extension with
the PHP script interpreter' and now it runs the script in the interpreter.

By the way I don't have the Internet at home or a server installed, is
this the problem?

What OS are you running? If you're running Linux or Mac you should have a
webserver built in.

If you're running some flavor of windows, then go grab either IIS (for
NT/2K/XP) or Apache (for all) web server and install. Then you need to
configure said web server to parse PHP files. There's loads of tutorials
out there on how to do this, just use my friend, Google.
--
kai - kai at 3gproductions dot com
www.gamephreakz.com || www.filesite.org
"friends don't let friends use windows xp"
Jul 17 '05 #4
nice.guy.nige wrote:
While the city slept, leke (le**@merseymail.com) feverishly typed...

or a server installed,
is this the problem?


Yup! You need to install a server on your PC (eg. Apache), download
and install PHP from http://www.php.net, and then it should work.

I used the all-in-one package of PHP/Apache/MySQL from EasyPHP. Setup
wasn't too bad. You have to load an English overlay for some of the
menus and stuff, I think one of them is still in French.

Brian

Jul 17 '05 #5
nice.guy.nige wrote:
While the city slept, leke (le**@merseymail.com) feverishly typed...
Hi, I am trying to learn PHP but am having some problems getting my
code running in Explorer 6.

[...]

By the way I don't have the Internet at home


No, you won't have. It's at my house at the moment. Pop round
sometime and borrow it if you want. Just be sure to bring it back
though! ;-)

Nige, I urgently need the Internet tomorrow, can you send it over for a day
or two ? I'll cover the postage fee of course.
THANX!
Pjotr
Jul 17 '05 #6
While the city slept, Pjotr Wedersteers (x3****@westerterp.com) feverishly
typed...
nice.guy.nige wrote:
While the city slept, leke (le**@merseymail.com) feverishly typed...
By the way I don't have the Internet at home


No, you won't have. It's at my house at the moment. Pop round
sometime and borrow it if you want. Just be sure to bring it back
though! ;-)

Nige, I urgently need the Internet tomorrow, can you send it over for
a day or two ? I'll cover the postage fee of course.


Even better, I'll fax it too you! Just make sure you've got a fresh roll of
paper in the fax machine - it's quite big! ;-)

Cheers,
Nige

--
Nigel Moss
http://www.nigenet.org.uk
Mail address not valid. ni***@DOG.nigenet.org.uk, take the DOG. out!
In the land of the blind, the one-eyed man is very, very busy!
Jul 17 '05 #7
>
What OS are you running? If you're running Linux or Mac you should have a
webserver built in.

I am running XP. Didn't know it had a built in web server. I will try
and get it running.
I remember trying to install Apache from a comp mag cd but it required
something else to install itself on XP (Can't remember what).
Will get back to you if I have any problems.
Jul 17 '05 #8
Don't waste your time with IIS, use Apache. Download it from
http://httpd.apache.org/

--
Tony Marston

http://www.tonymarston.net

"leke" <le**@merseymail.com> wrote in message
news:87**************************@posting.google.c om...

What OS are you running? If you're running Linux or Mac you should have a
webserver built in.

I am running XP. Didn't know it had a built in web server. I will try
and get it running.
I remember trying to install Apache from a comp mag cd but it required
something else to install itself on XP (Can't remember what).
Will get back to you if I have any problems.

Jul 17 '05 #9
nice.guy.nige wrote:
While the city slept, Pjotr Wedersteers (x3****@westerterp.com)
feverishly typed...
nice.guy.nige wrote:
While the city slept, leke (le**@merseymail.com) feverishly typed...
By the way I don't have the Internet at home

No, you won't have. It's at my house at the moment. Pop round
sometime and borrow it if you want. Just be sure to bring it back
though! ;-)

Nige, I urgently need the Internet tomorrow, can you send it over for
a day or two ? I'll cover the postage fee of course.


Even better, I'll fax it too you! Just make sure you've got a fresh
roll of paper in the fax machine - it's quite big! ;-)

Cheers,
Nige


If you really want to have fun, try faxing someone a copy of a necktie. Then
call them and yell : help, I'm stuck in the faxmachine!
Jul 17 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Grant | last post: by
4 posts views Thread by Chris | last post: by
3 posts views Thread by =?Utf-8?B?UGhpbCBKb2huc29u?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.