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

 

 

Link to comment
Share on other sites

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!!!";
}
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.