By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,825 Members | 1,449 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,825 IT Pros & Developers. It's quick & easy.

Passing SSI variables to PHP?

P: n/a
I have a web site that I am moving to another server. Old PHP version was
4.3.0, version on the new server is 4.3.2.

On the web site pages I do the following:

<!--#set var="Code" value="123" -->
<!--#include virtual="/includes/header.php"-->

However the php script header.php will not pick up the variable:

<?
print "Code: $Code";
?>

outputs "Code:" (variable not passed).

This works on the old server, so I suspect that it is a config issue with
php.ini..... my gut feeling is that this is a simple thing I've overlooked
but any ideas please help.

Thanks in advance.

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"DesignGuy" <do********@nowhere.com> wrote in message
news:3Ejhc.27405$hw5.43233@attbi_s53...
I have a web site that I am moving to another server. Old PHP version was
4.3.0, version on the new server is 4.3.2.

On the web site pages I do the following:

<!--#set var="Code" value="123" -->
<!--#include virtual="/includes/header.php"-->

However the php script header.php will not pick up the variable:

<?
print "Code: $Code";
?>

outputs "Code:" (variable not passed).

This works on the old server, so I suspect that it is a config issue with
php.ini..... my gut feeling is that this is a simple thing I've overlooked but any ideas please help.

Thanks in advance.


Found that register_globals was off in the php.ini, so turned it on on the
new server. Problem solved :)


Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.