script xxx.php not found or unable to stat

Hi all:

My system is RHEL6.0 , and i write a test script to test my php server environment , but when i visit it ,i get nothing.the page is null.

script name : test.php

script code:

<? phpinfo(); ?>

i founded that:”scrip test.php not found or unable to stat” in httpd log.

At last,i’m sure it’s php.ini had somewhere to correct:

; 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

make the red section to ON

it’s OK ~