View Single Post
  #5 (permalink)  
Old 19-11-2007, 06:24 PM
Lawrence Lawrence is offline
Forum Admin
 
Join Date: Aug 2007
Location: Kenley, Surrey, UK
Posts: 1,218
Thanks: 2
Thanked 79 Times in 79 Posts
Default Re: Import an XML Feed in to an Oscommerce Website

Your host is probably running PHP in safe mode. To check the configuration of your PHP installation, create a file called phpinfo.php or similar then put the following in it.

PHP Code:
<?php
phpinfo
();
?>
Then open the file in your browser. If you scan down the list displayed, you will see whether Safe Mode is switched on or off as well as if open_basedir is set.

The only way to change these parameters is to ask your host to edit the php.ini file which they are very unlikely to do.

What CURLOPT_FOLLOWLOCATION does, is tell the script to follow any page redirections that are on the page you are trying to download. The chance are that there won't be so it should be safe to comment out line 16 with "//".

Line 16 will now look similar to this

PHP Code:
// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); 
This "should" solve the problem.
__________________
Lawrence
Reply With Quote