php-general Digest 6 Sep 2010 08:12:58 -0000 Issue 6926

Topics (messages 307860 through 307860):

Error in initialising XML parser
        307860 by: Sridhar Pandurangiah

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Hi

I am writing a PHP snippet to display invoices that is generated by another computer application. The use case is as follows

1. The other computer application generates the invoices for the month in XML and puts it in a common dirctory. So at anytime there could be multiple files. Each file contains several invoices. These invoices are for different vendors. 2. My PHP snippet will list all the files in the directory. I have got this part right after a lot of research, phew! It displays only xml files and keeps out the others like files begining with "." (dot) etc. This is listed as a series of checkboxes so that the user can view the list of invoices available. Once the user clicks on the checkboxes I POST the file name to the server with the following code

$BillLocation = "/home/cmi/Integration/xml_files";
$StyleSheet = "Bill.xsl";
$DirHandle = opendir($BillLocation);

if ($_POST['_submit_check'])
{
        $MyBill = new Displaybill($_POST[BillChosen]);
        $MyBill->parse($_POST[BillChosen]);
        $MyBill->Show_Bill($MemberId, $StyleSheet);
}
{
        $result = List_Directory($DirHandle);
        
}

I get a following error Fatal error: Class 'Displaybill' not found in /home/sridhar/Sastra/2010-ClubMan-Integration/ListAvailableBills.php on line 15

I have the "Displaybill" class in the same location as the other file still PHP is not able to locate it. What could be wrong? Any help would be appreciated.

Running the whole thing on localhost with the vhosts configured to teh above directory.

Best regards

Sridhar

--- End Message ---

Reply via email to