Ooryl
11-03-2004, 03:47
I've just started to have a play with PHP and to this end I have installed Apache Web Server 2.0.48, PHP 4.3.4 and mySQL4.0.18 on a computer.
The problem I'm having is trying to parse data into a php page, for example:
index.php in the root of the web documents folder
<html>
<body>
<?php
if (!$id) { echo "nice going *@!$tard"; } else { echo $id; }
?>
</body>
</html>
Am I right in assuming that if I access the page with path/index.php?id=1 it should spit back 1 as opposed to insulting me? If so, I'd appreciate any suggestions as to what I may have setup wrong (Or corrections of my dubious code)
I have added these lines to my httpd.conf file
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
as suggested in the PHP online help
Please help, I'm tired of my webpage swearing at me.
The problem I'm having is trying to parse data into a php page, for example:
index.php in the root of the web documents folder
<html>
<body>
<?php
if (!$id) { echo "nice going *@!$tard"; } else { echo $id; }
?>
</body>
</html>
Am I right in assuming that if I access the page with path/index.php?id=1 it should spit back 1 as opposed to insulting me? If so, I'd appreciate any suggestions as to what I may have setup wrong (Or corrections of my dubious code)
I have added these lines to my httpd.conf file
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
as suggested in the PHP online help
Please help, I'm tired of my webpage swearing at me.