NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
remote root directory


Joined: 08 Jun 2007
Posts: 1
Reply with quote
Hi,

I got an php project which directory structure looks like this:
c:\mywebsite
c:\mywebsite\public <- index.php
c:\mywebsite\code <- all code is here

Yhe way it is coded, mywebsite is supposed to point to c:\mywebsite\public .
I am debugging locally with Apache.

So if I create project which root directory is c:\mywebsite\public and url mywebsite it works but:
1. I don't see all php files from c:\mywebsite\code
2. I can't debug because files are not in project

However if I create a phpEd project which root is c:\mywebsite then web site doesn't work because it expects that mywebsite points to public directory.

What I need is:
root directory = c:\mywebsite
remote root directory = c:\mywebsite\public
(and mywebiste.com pointed to c:\mywebsite\public)


Is it possible to achieve this with phpEd?

thanks
View user's profileFind all posts by milandiSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
In the project properties, adding the code directory to the "Code insight includes" might solve your problem.
It's on the first Tab at the bottom
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Re: remote root directory


Joined: 14 Mar 2007
Posts: 16
Reply with quote
milandi wrote:
Hi,

I got an php project which directory structure looks like this:
c:\mywebsite
c:\mywebsite\public <- index.php
c:\mywebsite\code <- all code is here

Yhe way it is coded, mywebsite is supposed to point to c:\mywebsite\public .
I am debugging locally with Apache.

So if I create project which root directory is c:\mywebsite\public and url mywebsite it works but:
1. I don't see all php files from c:\mywebsite\code
2. I can't debug because files are not in project

However if I create a phpEd project which root is c:\mywebsite then web site doesn't work because it expects that mywebsite points to public directory.

What I need is:
root directory = c:\mywebsite
remote root directory = c:\mywebsite\public
(and mywebiste.com pointed to c:\mywebsite\public)


Is it possible to achieve this with phpEd?

thanks


Hi,

I use a similar file layout and phped sure works.

in phped project settings try:
a) properties tab -> project - > root directory: c:\mywebsite\
b) properties tab -> mapping -> remote root directory: c:\mywebsite\
c) mappings tab -> 2 entries:
1st entry: c:\mywebsite - c:\mywebsite - empty - /
2nd entry: c:\mywebsite\public - c:\mywebsite\public - http://mywebsite - empty

Hope this helps

Nuno
View user's profileFind all posts by Nuno MendesSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
It would be much easier to run Project Settings Wizard and get all the settings from it Smile, also by running the Wizard you'll be able to check them.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
remote root directory
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic