Click to See Complete Forum and Search --> : Win2k Apache2.0.40 Php4.3-dev


JACKSPEED
08-28-2002, 10:11 PM
Hi to everybody!!!

I've got a problem. I installed Apache 2.0.40 and PHP4.3 -dev
on my Win2k System.
I installed my Website and different Sorts of Scripts .cgi .pl
and even a guestbook and a newsreader written in .php
they just work fine.

I made a .php script like that
<?php

echo "<html><body>Request: " . $test . "</body></html>";

?>
and saved it as test.php in my htdocs.
I tried to start it with typing http://....mine.nu/test.php?request=Hallo to my Browser, a white page appears
and it says : request
just request, not request: hallo.
Has anyone an idea why this happens?

If i write http://.../phpinfo.php it works fine.


:confused: Thanks for your help!!!

piersk
08-29-2002, 05:33 AM
Try using the URL:http://....mine.nu/test.php?test=Hallo.

If this doesnt work, then in the script try:
<?php

echo "<html><body>Request: " . $_GET[test] . "</body></html>";

?>

JACKSPEED
08-29-2002, 11:39 AM
The test.php Script is not my problem.
I want to install a antileech script, that keeps people from downloading all files at once.
The one i want to use, is using request.
If my server or my php can not handle request, i can not
use this script.
By the way i am an absolute newbie in those things.
Apache, PHP and all the settings confusing me.

Thanks

Jack:D

jerdo
08-29-2002, 02:38 PM
Go into your php.ini and set register_globals to on
It's not the best thing to do but it's that or you have to edit the script you are trying to use to access POST and GET data.

JACKSPEED
08-29-2002, 02:55 PM
I changed the global settings in the php.ini and now it works.
Is there another possible way to make it run, without using the unsecure gobal Method, without changing the code??
Maybe Apache Server Settings?

Thanks

Jack