PHP Classes

Portion of code not being parsed properly

Recommend this page to a friend!

      UPS XML Package Tracking  >  All threads  >  Portion of code not being parsed...  >  (Un) Subscribe thread alerts  
Subject:Portion of code not being parsed...
Summary:Installation of code on IIS server
Messages:3
Author:David Wessell
Date:2007-11-07 15:19:31
Update:2007-11-08 13:42:13
 

  1. Portion of code not being parsed...   Reply   Report abuse  
Picture of David Wessell David Wessell - 2007-11-07 15:19:31
Hi,

I'm moving a site that uses the UPS XML Package Tracker from a Apache system to a IIS system.. And I'm getting a few errors..

In my code I have:

include 'trackingClasses/ups_tracker_class.php';



$foo = new UPS_XML_PACKAGE_TRACKER();
$foo->setActivity('activity'); //if 0 , it will display only last status
$foo->settTackingNumber($n);


But when the code is run, everything after new UPS_XML_PACKAGE_TRACKER(); is not processed as php code, but is outputted as text..

I'm running php4.4.7 and IIS 6.. Is there a missing module possibly, that I haven't enabled? Or any other suggestions?

Thanks
David

  2. Re: Portion of code not being parsed...   Reply   Report abuse  
Picture of Sergey Shilko Sergey Shilko - 2007-11-08 11:23:21 - In reply to message 1 from David Wessell
for the first, add error_reporting to php code:
<?php
error_reporting(E_ALL);
?>
you will see all that happens wrong, try to
<?php
var_dump($ups_xml_object);
?>
and see what you'll get.
99% there is some trouble with php'extensions (some php_xmllib or something may be missing in php.ini), but trouble may be also in usign some apache-only available functions like (apache_get_headers()).. but i dont remember using them in code.

Please check errors and var_dump after each code-line, my opinion that trouble is in IIS/php itself, and not in the code.
-you can write directly to me also.
-Sergey

  3. Re: Portion of code not being parsed...   Reply   Report abuse  
Picture of David Wessell David Wessell - 2007-11-08 13:42:13 - In reply to message 2 from Sergey Shilko
Hi Sergey,

I found the issue last night. Some of the code had been corrupted during the move.. Replacing the code made it work just fine..

Do you have any plans to update the class to work with php5 any time soon?


Thanks
David