Is "Statistics.php"part of the "PEAR" package in PHP?
-
I commented out // include ("XML/Statistics.php"); since I do not have a XML directory on the server. This is the script that makes use of "Statistics". <?php require_once 'Statistics.php'; // include class file // include ("XML/Statistics.php"); // create object $xs = new XML_Statistics(); // define XML string $xmlFile = "sitemap.xml"; // analyze string $xs->analyzeFile($xmlFile); // count number of attributes echo "File contains " . $xs->countAttribute() . " attributes"; ?> This is the error message the server is givng me: Warning: require_once(Statistics.php) [function.require-once]: failed to open stream: No such file or directory in /home/distri10/public_html/xmlStats.php on line 14
-
Answer:
the problem is this line: require_once 'Statistics.php'; not XML/Statistics.php it's trying to find file Statistics.php in the same folder where you are running your file. read this http://articles.techrepublic.com.com/5100-22-5216364.html
tjhauck2... at Yahoo! Answers Visit the source
Related Q & A:
- Which should be used after messing up clustered index? Update statistics, Reindex or Reorganize?Best solution by Database Administrators
- How to store data in php and get data from php?Best solution by Stack Overflow
- How to retrieve Install Statistics from the Google Developer's Console?Best solution by Stack Overflow
- Is UPS Part time Package handler a good job?Best solution by Yahoo! Answers
- How to make Turkey with pear-cardamom puree and caramel almonds?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.