Click to See Complete Forum and Search --> : apache and php on winxp


sixf00t4
10-13-2002, 10:14 PM
my ultimate goal is to be able to run ikonboard or something like it. right now i am just working on getting php working. i created a php file with contents of

<? phptest() ?>
<? echo "Hello there" ?>

when i try and access that file on my server, i get a blank screen with the source being
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

any hints on what is wrong? what i need to do? any suggestions?

jerdo
10-14-2002, 01:42 PM
Try this
<?php phptest(); ?>
<?php echo "Hello there"; ?>
You need semicolons to end lines.

piersk
10-14-2002, 01:55 PM
Where did this phptest() function come from? As far as I know, there is no such function.

Try <?php
phpinfo();
?>
instead.

jerdo
10-14-2002, 02:40 PM
Maybe he wrote one?

sixf00t4
10-14-2002, 04:06 PM
thank you for the replies, i had a php geek write that test file for me. i know nothing on writing php. i will make the changes you suggested and tell you how it goes!!! thanx a bunch

sixf00t4
10-14-2002, 04:52 PM
woo hoo!!! thanx alot guys, (or gals i guess:) works great!! php up and running. now all i have to do is figure out how to get mysql to work. and get some modules....