Try as I said before.
abc.cgi?act=4&pass=def
#!/usr/local/bin/php
<?php // <--- make sure you substitute <? for <?php
$act = HTTP_GET_VARS['act'];
... code ... ?>
this way you can do:
echo "-- act: $act -- ";
I'm porting some php cgi scripts from our old web server to a new one. In know zip about php and didn't create these. I'm finding that php
scripts on the new server aren't getting form variables passed into
them.
I built 4.3.4 straight, no options, just configure/make/make install. The system is built calling php as a #! line, e.g.
#!/usr/local/bin/php <? ... code ... ?>
The scripts call each other with arguments like abc.cgi?act=4&pass=def
What I find is that when I print out the passed variables, e.g.
print ("$act");
I get nothing, as if the script is not parsing the passed variables at all.
The system works fine on the old server using 3.0.12, is there something I need to set in the new build for it to act properly as a cgi interpreter? A php -v gives:
PHP 4.3.4 (cgi) (built: Jan 29 2004 11:14:46) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
Cliff
-- ---------------------------------- Jorge Alberto Reteguín Pimentel [EMAIL PROTECTED]