Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » 'xxx.php is not a PHP file' setting up Run Configuration (for any php file)
'xxx.php is not a PHP file' setting up Run Configuration (for any php file) [message #508235] Sun, 17 January 2010 23:38
Nev is currently offline NevFriend
Messages: 1
Registered: January 2010
Location: Buenos Aires, Argentina
Junior Member
Hi there,

I haven't used Eclipse in many years and am new to PDT.

I have Eclipse 3.5.1 installed with PDT and XDebug (on Ubuntu) and I have a some projects set up, including a test one to use phpcli and a mickey mouse php file.

When I try to set up the Run Configurations with...

PHP Debugger: XDebug
PHP Executable: phpcli (/usr/bin/php)
PHP File: /some_project/some_file.php (selected from the project with the Browse)

...it is complaining at the top of the dialog that whatever php file I select in any project is not a php file. It is definitely finding it, (if I add a typo it 'successfully' doesn't find it). And so with the error the Run button is disabled.

So I want to know what constitutes a php file if it is not a file containing php, with the extension php, which runs happily in the shell with phpcli as 'php whatever.php'?

Thanks in advance, and hoping this isn't a totally gumby question,

Nev

PS: If I manually put in the full path instead of using the Browse button, which only puts in the path from the project downwards, it is happy that the file is a php file, and Run is enabled, but clicking Run then gives a 'specified script cannot be found' error.
Previous Topic:PHP Task + Javascript Task
Next Topic:Using Xdebug to step through php script on webserver
Goto Forum:
  


Current Time: Sun Dec 10 11:59:58 GMT 2023

Powered by FUDForum. Page generated in 0.01878 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top