knighthawk
Registered
I am designing a website hosted on GoDaddy.com servers. They are using the "safe_mode" version of PHP 4.3.1 running on Linux/Apache.
The problem is that according to the documentation at www.php.net, I should be able to pass a variable using the "include()". Here is an example of what I am trying to do.
Calling Script: test.php
Included Script: metadata.php
I have read the appropriate sections in the php.net documentation, and everything appears like it would be working correctly... however, the results of the include() are like the include() request was completely *ignored*. Nothing parses in the metadata.php file!
Unfortunetly, I do not have access to another PHP server (and don't have time to set it up on my local machine), so I do not know if this is because of the restrictions that GoDaddy imposes, or if I just have the syntax wrong.
Any suggestions?
The problem is that according to the documentation at www.php.net, I should be able to pass a variable using the "include()". Here is an example of what I am trying to do.
Calling Script: test.php
Code:
<?php
// ...
include( 'metadata.php?mode=long');
// ...
?>
Included Script: metadata.php
Code:
<?php
$mode = $_GET['mode'];
if( $mode == "long" )
{
// large list of meta "keywords" goes here
}
else
{
// smaller list of meta keywords (to save on bandwidth)
}
?>
I have read the appropriate sections in the php.net documentation, and everything appears like it would be working correctly... however, the results of the include() are like the include() request was completely *ignored*. Nothing parses in the metadata.php file!
Unfortunetly, I do not have access to another PHP server (and don't have time to set it up on my local machine), so I do not know if this is because of the restrictions that GoDaddy imposes, or if I just have the syntax wrong.
Any suggestions?