Cold Fusion ->PHP cont...
| From: | Kelly Meeks | Date: | Tue, 11 Jul 2000 20:10:36 +0000 |
| Subject: | Cold Fusion ->PHP cont... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-5950@lists.php.net to get a copy of this message | ||
Hey Folks,
Bumping my head on using the include statement.
The following code snippet..
if ($temp=1)
{
$theloc="UPI_RecordAction.php3?RecordID=$row[0]";
include($theloc);
}
else
{
$theloc="UPI_RecordAction.php3?RecordID=$RecordID";
include($theloc);
}
generates this error...
Warning: Failed opening 'UPI_RecordAction.php3?RecordID=2' for inclusion in
/home/user2/rangle/WWW/clients/upi2/UPI_RecordAction.php3 on line 43
I have no idea why it fails. I can paste in the url info in my browser, and it finds the page no
problem. Any suggestions?
Also, Cold Fusion has a command (cflocation) that will, instead of including one file in another,
will redirect to specific page. Is there a PHP equivalent?
Thanks for the help.
Kelly