تلك المشكلة ظهرت معي بعد تستيب php-5.2.6-win32 مع الاباتشي apache_2.2.9-win32-x86-openssl-0.9.8h-r2 في بيئة الويندوز
حيث كان الكود في صفحة phpinfo
<? phpinfo(); ?>
فظهرت صفحة بيضاء وبعد البحث وجدت في احدي المنتديات انه يمكن ان يكون حل المشكلة باضافة php في تعريف كود الاسكربت فيكون الكود كالتالي
<?php phpinfo(); ?>
ولكن في منتدى اخر ذكر ان الحل النهائي تعديل ملف php.ini في الكود التالي الخاص باستخدام <??> او <? php?>
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized. ; NOTE: Using short tags should be avoided when developing applications or ; libraries that are meant for redistribution, or deployment on PHP ; servers which are not under your control, because short tags may not ; be supported on the target server. For portable, redistributable code, ; be sure not to use short tags. short_open_tag = off
فعليك تغيير off الي on فيكون الكود بهذا الشكل
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized. ; NOTE: Using short tags should be avoided when developing applications or ; libraries that are meant for redistribution, or deployment on PHP ; servers which are not under your control, because short tags may not ; be supported on the target server. For portable, redistributable code, ; be sure not to use short tags. short_open_tag = on
لمزيد من المعلومات في هذا الرابط