PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions PHP 5 تعذر فتح HTTP طلب الدفق مع fopen او fsockopen وظائف
With Apache/2.xx or Apache/2.2.x webserver, with PHP5 as the scripting module, a HTTP communication error may occur within the PHP scripts that are parsing and running via the web server. مع Apache/2.xx أو Apache/2.2.x الويب ، مع PHP5 بوصفها وحدة البرمجة النصية ، الاتصال HTTP خطأ قد يحدث داخل PHP الكتابات التي هي تحليل وتشغيل عن طريق خادم الويب.
The errors that generated by PHP include: الأخطاء التي تولدها PHP تشمل ما يلي :
PHP Warning: fopen(http://www.example.com): failed to open stream: HTTP request failed! PHP تحذير : fopen (http://www.example.com) : فشلت في فتح الدفق : فشل طلب HTTP!
fsockopen(): unable to connect to … fsockopen () : غير قادر على الاتصال...
file_get_contents(): failed to open stream: HTTP request failed! file_get_contents () : فشلت في فتح الدفق : فشل طلب HTTP!
PHP Warning: main(): Failed opening ‘http://www.example.com/index.html’ for inclusion … PHP تحذير : الرئيسية () : فشل فتح 'http://www.example.com/index.html' لإدراجها...
PHP Warning: include(/usr/local/index.php): failed to open stream: No such file or directory in … PHP تحذير : تشمل (/ usr / المحلية / index.php) : فشلت في فتح الدفق : لا يوجد مثل هذا الملف أو الدليل في...
To resolve the problem, ensure that allow_url_fopen is enabled in PHP.INI configuration file. لحل هذه المشكلة ، وضمان أن allow_url_fopen تمكين PHP.INI في ملف التكوين. The line should look like this: الخط ينبغي أن يكون مثل هذا :
allow_url_fopen = On وفي allow_url_fopen =
Note: Depending on your system OS and configuration, the PHP.INI is located at various varied location, such as in Apache bin directory for Windows system or /usr/local/etc in FreeBSD Apache installation, if you don’t specify or point to PHP.INI in another directory. ملاحظة : اعتمادا على النظام الخاص بك نظام التشغيل والتكوين ، PHP.INI يقع في مكان مختلف متنوعة ، مثل بن لاباتشي في دليل لنظام ويندوز أو / usr / المحلية / الخ في تركيب اباتشي فري بي ، إذا لم تقم بتحديد أو نقطة لPHP.INI في دليل آخر.
If the error still happen and the PHP scripts still unable to connect to remote external servers and thus unable to download updates or retrieve files, check the user_agent setting in PHP.ini. وإذا كان خطأ ما زال يحدث ومخطوطات PHP لا يزال غير قادر على الاتصال عن بعد لخدمة الخارجية ، وبالتالي غير قادر على تحميل التحديثات أو استرجاع الملفات والتحقق من وضع user_agent في PHP.ini.
By default php.ini set the user_agent to “PHP” which signifies that it’s the script that try to access the web server. افتراضيا php.ini حدد user_agent إلى "PHP" الذي يدل على انه السيناريو أن محاولة الوصول إلى ملقم الويب. Some web servers will refuse and don’t allow script to access and receive the date from the server. بعض خوادم شبكة الإنترنت سوف ترفض ولا تسمح لسيناريو وصول واستقبال من تاريخ الخادم. So, by setting the user_agent to that of a web browser, PHP will let the web server know which kind of web browser will receive the date, and thus able to open the HTTP connection stream. لذا ، من خلال تحديد user_agent إلى أن من متصفح الإنترنت ، PHP سوف تسمح خدمة الويب التي نعرف نوع من متصفح الإنترنت وسوف تتلقى حتى الآن ، وبالتالي قادرة على فتح العنوان التالي تيار الصدد.
The user_agent can be set to any kind of browser strings, for example of Internet Explorer: وقد user_agent يمكن لمجموعة من أي نوع المتصفح الجمل ، على سبيل المثال من إنترنت إكسبلورر :
user_agent=”Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)” user_agent = "Mozilla/4.0 (متوافقة ؛ MSIE 6.0 ؛ الإقليم الشمالي ويندوز 5.0)"
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. هام : هذه هي آلة الصفحة المترجمة التي تقدم "كما هي" دون ضمان. Machine translation may be difficult to understand. الترجمة الآلية قد يكون من الصعب فهم. Please refer to يرجى الرجوع إلى original English article المادة الانكليزية الأصلية whenever possible. كلما كان ذلك ممكنا.
Share and contribute or get technical support and help at وحصة المساهمة أو الحصول على الدعم التقني والمساعدة في My Digital Life Forums بلادي الرقمي الحياة المنتديات .
Related Articles المواد ذات الصلة
- Aerielle Launches New i2i Stream Wireless Music-Sharing Device Aerielle الاطلاق جديدة i2i تيار الموسيقى اللاسلكية تقاسم جهاز
- Meaning of TVAnts Buffer Progress Bar Colors معنى TVAnts عازلة التقدم بار الألوان
- Unable to Delete Photo Folders غير قادر على حذف الصور والملفات
- Making phpBB2 working with PHP5 جعل phpBB2 العمل مع PHP5
- Access and Stream Your Videos, Musics, Photos, TV and Other Medias Remotely with Orb وصول تيار كليب الخاص بك ، موسيقى ، صور ، التلفزيون وغيره من الأوساط عن بعد مع الجرم السماوي
- Sondigo Sirocco Wireless Audio Bridge Reviews Sondigo الريح العاتية اللاسلكية أغنية جسر الاستعراضات
- Watch the WWDC Keynote مشاهدة WWDC الرئيسي
- AMD FireStream 9170 Stream Processor With Double Precision Floating Point Technology أيه إم دي FireStream 9170 مع تيار معالج مزدوج الدقة فاصلة عائمة التكنولوجيا
- Clean Up Junk Requests in Facebook with IgnoreAll تنظيف القمامة في طلبات فيسبوك مع IgnoreAll
- Unable to Retrieve Channels Listing from TVants Servers تعذر استرداد القنوات القائمة من TVants خوادم

































October 6th, 2008 05:33 أكتوبر 6th ، 2008 05:33
thank you, I solved my problem. أشكركم ، أنا بلدي تحل المشكلة.
by default, on openbsd allow_url_fopen = off بشكل افتراضي ، على openbsd allow_url_fopen قبالة =