Help - Search - Members - Calendar
Full Version: Php Doesn't Work
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
Ville
Problems with PHP???

---------------------


test.php:

<HTML>
<HEAD>
<TITLE>My first PHP</TITLE>
</HEAD>
<BODY bgcolor="white">

<?php
echo "<P>Hello, this is a test</P>";
echo $brick;
echo "<P>and another test</P>";
?>

</BODY>
</HTML>

--------------------------------------------

with zymic it doesn't work:

http://ville.99k.org/test.php?brick=test123

Result:

Hello, this is a test

and another test

---------------------------------------------

with this site it does work:

http://ville.vi.ohost.de/test.php?brick=test123

Result:

Hello, this is a test

test123

and another test
Alex
That is NOT a problem with our PHP setup.

What you are using on that other host is register_globals, and it is mistake which is being removed in future PHP versions (PHP6 I think). You should NEVER rely on register_globals in any PHP script you intend to have any portability, use $_GET['brick'] not $brick.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.