פורסם 2011 בנובמבר 1214 שנים שלום יש לי קוד PHP שרץ כמו שצריך כאשר אני מריץ אותו באתר שיש לי ב hostgator.com ניסיתי להתקין XAMPP ולהריץ את הקוד על המחשב שלי וקיבלתי את השגיאות הבאות : Fatal error: Cannot redeclare class File in C:\xampp\php\PEAR\File.php on line 92 כשאני מוריד את ה require למחלקה File שאני כתבתי אני מקבל את השגיאות הבאות : Strict Standards: Non-static method PEAR::registerShutdownFunc() should not be called statically in C:\xampp\php\PEAR\File.php on line 541 Text Input Fatal error: Call to undefined method Image::AddToForm() in C:\xampp\htdocs\infograph\Classes\Abstract\AbstractInfoGraph.php on line 77 Strict Standards: Non-static method PEAR::getStaticProperty() should not be called statically in C:\xampp\php\PEAR\PEAR.php on line 780 Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method File::_File() should not be called statically in C:\xampp\php\PEAR\PEAR.php on line 803 Strict Standards: Non-static method File::closeAll() should not be called statically in C:\xampp\php\PEAR\File.php on line 102 Strict Standards: Non-static method PEAR::getStaticProperty() should not be called statically in C:\xampp\php\PEAR\File.php on line 377 Strict Standards: Non-static method PEAR::getStaticProperty() should not be called statically in C:\xampp\php\PEAR\File.php on line 378 א - למה יש לי בעיה להכריז על מחלקה בשם File ? ב - מה זה כל האזהרות האחרות על PEAR ? עושה רושם שכל הבלאגן מתחיל שם , האם זה איזה תוסף שניתן לכבות או שזה חלק אינטגלי מ PHP ? ג - השגיאה על פונקציה שלא קיימת לא מתקבלת כאשר הקוד רץ על השרת השני, איך זה הגיוני ? תודה עריכה : טוב הסתדרתי .. הורדתי את ה PEAR הזה מה include path של ה PHP ועכשיו הכל עובד כמו שצריך .. אשמח לשמוע אבל מה זה ה PEAR הזה .. לא כל כך הבנתי מהאתר שלהם מה זה.
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.