score:0

this is a shot in the dark, but try putting the shebang line in at the top of your file. proper shell scripting dictates that it needs to be there, and eclipse/pdt might care.

#!/usr/bin/php
<?php
//.....rest of your file
?>

score:0

other possibilities:

-make sure the file has focus in the editor when 'run as'

-check project specific settings

score:0

also try to right-click not a file in a file structure tree, but the very source code of this file and select the same.

score:0

try running as web page, since if you have php it implies you have apache, so eclipse will only open the url for you

score:2

from you console, i see that you have php installed from zend engine product. you need to configure php executables in window->preferences->php->php executables. difine right path of php and php.ini files in the form.


Related Query

More Query from same tag