Jump to content

require_once function is not working in IE


tomjung09

Recommended Posts

Hi.  I am trying to use the require_once function in php to include a file.  It is working in Chrome, and Firefox but not in IE8 and I cannot figure out why.

 

Main file (home.php)

<?php 
require_once 'salvagedrides.php';
require_once 'zipcodefunctions.php';
?>

 

the two files are in the same directory, it has no problem with salvagedrides.php but fails when I try to include the zipcodefunctions.php

 

Any ideas why?

 

The website is http://www.salvagedrides.com/usa/home.php

 

 

You make a good point PFMaBiSmAd.  It looks like it isn't the require once file but the function that is being called that is failing.  This is the code I ran on it, the error!!! is never printed.  Does that mean that the function get_distance is erroring out?

<?php 
echo "test";
try{
$distance = zipcode_class::get_distance($zip1, $temp);
}
catch(Exception $e){
echo "error!!!";
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.