PDA

View Full Version : Okay...let's try this for newbie php'ers!


JVRudnick
12-10-2002, 11:04 PM
Hello again all..

last thread was closed...so here we go....ooops..forgot to say that i've aleady d/l the firepages complete puppy and installed it...

i opened up my code editor app...EditPlus+, and created a new page with the following content...

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


I then saved it out as hello.php in C:\phpdev\www folder. I then stopped IIS5 in the console, and starte up phpdev by choosing php_2k_XP_NT.

question: does this *start* apache, yes/no?

I then used winExplorer to find that file and opened it using IE...

I get a blank window, with this in the address bar -- C:\phpdev\www\hello.php

So...what's with this? What am I doing wrong (god Bill, I do love ASP but have to learn this too!)

Jim

Spookster
12-10-2002, 11:09 PM
As we said before you cannot just open a php file through explorer. The php file has to run through the webserver.

type:

http://localhost/hello.php

into the address bar of your web browser

Ökii
12-11-2002, 10:30 AM
yup - 0basically

http://localhost/

is just the server path to

C:\phpdev\www\

Ankun
12-13-2002, 02:45 AM
erm..did you even read the message it gives you when you run phpdev for the first time? it CLEARLY exlpains that there..I could see why they closed your previous thread.. :\