Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » PHP- Cannot create new file
PHP- Cannot create new file [message #665114] Wed, 13 April 2011 10:39 Go to next message
Tomas Teicher is currently offline Tomas TeicherFriend
Messages: 1
Registered: April 2011
Junior Member
H,
I am trying to create new PHP file with Eclipse. (I have Eclipse for PHP Developers). I tried Files -> New -> PHP File. There in opened window is item "Source Folder". I click to browse and I got to Folder selection. There is no folder to select and no option to select folder from my computer. Without set folder I cannot create new PHP file. Can anybody help, how to select my folder as source folder?

[Updated on: Wed, 13 April 2011 10:41]

Report message to a moderator

Re: PHP- Cannot create new file [message #665180 is a reply to message #665114] Wed, 13 April 2011 14:07 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 13-Apr-11 04:39, Tomas Teicher wrote:
> H,
> I am trying to create new PHP file with Eclipse. (I have Eclipse for PHP
> Developers). I tried Files -> New -> PHP File. There in opened window is
> item "Source Folder". I click to browse and I got to Folder selection.
> There is no folder to select and no option to select folder from my
> computer. How can I create new PHP file in eclipse without adding it to
> project?

Uh, well Eclipse is an IDE that's workspace- and project-oriented. Its
primary function is to manage software development projects.

You can __open__ a file to view it irrespective of any formal project
appartenance via File -> Open File...

For creating new ones, it's a simple matter to open a console window
outside of Eclipse and touch (Unix/Linux) a file wherever you want a new
one. It's a little more work on Windows, but that won't bother you if
you're happy developing on Windows in the first place. Etc.

When you start having questions more about the integration of PHP and
Eclipse (this one is very general), remember that there's a special
Eclipse forum for PHP guys.

Best of luck.
Re: PHP- Cannot create new file [message #665185 is a reply to message #665114] Wed, 13 April 2011 15:03 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 4/13/11 6:39 AM, Tomas Teicher wrote:
> H,
> I am trying to create new PHP file with Eclipse. (I have Eclipse for PHP
> Developers). I tried Files -> New -> PHP File. There in opened window is
> item "Source Folder". I click to browse and I got to Folder selection.
> There is no folder to select and no option to select folder from my
> computer. How can I create new PHP file in eclipse without adding it to
> project?

Simple answer: you can't do that. Every file that Eclipse manages MUST
be in a project.
Having said that, it's easy to create a project that uses an existing
set of files. When creating a new PHP Project, the wizard has an option
labeled "Create project at existing location" - use that and you can
have a proper Eclipse project that uses your existing code files.

Eric
Previous Topic:how to add external library in eclipse
Next Topic:How to view bug details in Eclipse.org Bugzilla?
Goto Forum:
  


Current Time: Fri Apr 19 15:28:43 GMT 2024

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

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

Back to the top