Yahoo Webhosting: How do I include a PHP file with a variable now that Yahoo has...

  • Thread starter Thread starter decepticon_matrix
  • Start date Start date
D

decepticon_matrix

Guest
...turned register_globals off? I'm trying to Include a file that uses a variable within the include path. For example:
index.php:
$cat=220
include("/files/featured.php?cat=" . $cat . "&num=3"");

featured.php loads and runs just fine on it's own, but shows completely blank when it is "included" into index.php.
This include used to work fine before yahoo turned register_globals off.
If this is due to needing to use a server path instead of the relative path I gave above, then I have no idea what that is.
Or, if I need to use $_GET or $_REQUEST in one file or the other, please lmk.
Is my general syntax still good?
Thanks for any help!
 
Back
Top