Thus I have a program that has this structure:
Code: Select all
<?php
$campaignNo = '22222';
include('aFile');
?>Code: Select all
<?php
//for example
echo $campaignNo;
?>The supposedly guilty lines are[Mon Jun 28 17:39:05 2010] [error] [client ...] PHP Notice: Undefined variable: campaignNo in ...misc_DirMsg.php on line 38
I don't get an error when I put these lines into aFile, as nearly as I can tell.$Signer_fileName = "signup_csv/".$campaignNo.".csv";
$Target_fileName = "target_csv/".$campaignNo.".csv";
What kinds of things might be causing this problem? I've already moved my include() below where I extract the variables from $_POST--so I'm sure the variables are declared and have value before the include() file would use them--but that doesn't seem to have helped.