Page 1 of 1

PHP Server Question

Posted: Tue Jul 16, 2002 11:30 am
by ericwidi
I was just wondering if anybody knows if the "allow_call_time_pass_reference" being turned off on a server running PHP would prevent me from using a php e-mail script? (from a flash form to e-mail tutorial at http://www.flash-db.com/SendMail, see the attached code)

The reason I ask is because I tested it on one server, running PHP 4.06, and the script worked fine.

Then I tested it on another server, running PHP 4.0.3pl1, and it didn't work.

I ran phpinfo() on both servers and at a quick glance noticed that "allow_call_time_pass_reference" was turned off on the server that didn't work, and turned on on the server that did work. I was hoping I could just call the ISP and ask them to change a setting for my e-mail form to work.

Thanks for your help,
Eric

Code: Select all

<?
$ToEmail = "name@address.com";

##$ToName = "Insert Name Here";
$ToSubject = "Insert Subject Here";

$EmailBody = "Sent By: $Name\nSenders Company: $Company\nPhone Number: $Phone\n\n";


$Message = $EmailBody;

mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");


Print "_root.Clip.FieldName=Thanks";

?>