You have to put the php file underneath the document root of your apache server. If you installed from source, the default would be:
/usr/local/apache/htdocs/
and the default for the redhat rpms is at:
/var/www/html/
Place the test script there, then point the webbrowser to:
http://(Linux box IP address)/test.php
(replace test.php with the name of your actual file). If you are trying to see them from the linux box, after placing the files in the correct location, you can go to:
http://localhost/test.php
(again, your filename.)
Hope that helps!
Chris King