Skip to main content



      Home
Home » Newcomers » Newcomers » php files not opening in PHP Browser
php files not opening in PHP Browser [message #146183] Sun, 02 April 2006 16:15 Go to next message
Eclipse UserFriend
Originally posted by: eclipse.gocmo.com

I've installed eclipse, PHPeclipse and XAMPP on Windows. In the eclipse
built in PHP browser, I can see the "Congratulations: You successfully
installed XAMPP on this system!" message at http://localhost/xampp.

But whenever I create a new PHP file in eclipse, it keeps triggering my
dreamweaver file association and opening in dreamweaver. Literally, every
time I select a php file in eclipse, it opens in dreamweaver. The PHP
file browser address bar is unchanged, it still says
http://localhost/xampp.

Out of curiosity, I tried changing the php file association in windows
from dreamweaver to firefox. So now every time I select a php file in
eclipse, it tries to open it in firefox :)

It looks like selecting a php file triggers something that should be
creating a preview in eclipse, but this gets hijacked by windows somehow.

Any ideas?

Thanks

DG
Re: php files not opening in PHP Browser [message #146229 is a reply to message #146183] Sun, 02 April 2006 17:48 Go to previous messageGo to next message
Eclipse UserFriend
Eclipse most likely doesn't have a file extension set up for *.php
files, so it's opening with the default System Editor. You can create a
file association with that extension by going to
Window->Preferences->General->Editors->File Associations. I don't know
if the built in PHP browser you installed is considered an Editor, but
if it is, here's where you'd set it up.

Hope this helps,
- Jeff
Re: php files not opening in PHP Browser [message #146247 is a reply to message #146229] Sun, 02 April 2006 22:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.gocmo.com

Thanks for the tip. I added the *.php file association, and under
"associated editors" it now says:

PHP Editor (locked by 'PHP Source File' content type)
Text Editor (locked by 'PHP Source File' content type)

The undesirable behavior still continues, however. Every time eclipse
tries to preview a php document in its browser, a Windows file association
triggers and whatever file is associated with *.php in Windows gets
launched.
Re: php files not opening in PHP Browser [message #146263 is a reply to message #146247] Mon, 03 April 2006 00:20 Go to previous messageGo to next message
Eclipse UserFriend
Is this preview happening when you double click on the *.php file in the
navigator view, or is there some sort of Preview function in the PHP
plug-in you are using? It's also possible that it's remembering the
last action you took with these files. See what happens when you select
them and right click, Open With->PHP Editor.

- Jeff
Re: php files not opening in PHP Browser [message #146298 is a reply to message #146263] Mon, 03 April 2006 03:06 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.gerster.org

I was able to fix it by deleting eclipse and reinstalling. This time I
installed the "stable" version of PHPEclipse instead of the "latest"
version. Still don't know what was wrong, but it's working now!
Previous Topic:myeclipse and Multicore CPUs
Next Topic:Content Assist in New Java Class Superclass field
Goto Forum:
  


Current Time: Fri Jul 18 05:55:33 EDT 2025

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

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

Back to the top