NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Struggling with mapping - please advise if this is correct


Joined: 15 May 2007
Posts: 11
Reply with quote
Situation:
Nusphere debugger running on XP box.
Php app running on a server in next room (ubuntu,apache,php).
Access to files via mapped network drive (samba share, drive R:), R: mapped to \\machine\share, which is /var/www
App located in /var/www/myapp
Apache DocumentRoot is /var/www

So url is http://machine/myapp, first program is http://machine/myapp/index.php, nusphere machine sees files as in R:\myapp

I have project settings as follows:
Project:
Project: c:\program files\nusphere\phped\project\myproj.ppj
Root Directory: R:\myapp
Source Control : none
Publishing:
Account: blank
Publishing directory: blank
Don't publish directories: CVS;.svn
Mapping:
Run mode: HTTP mode (3rd party web server)
Root URL: http://machine/myapp
Remote Root directory: /var/www/myapp
Files:
Default file to run: r:\myapp\index.php
Hide files: blank
Hide Diretories: CVS;.svn
Code insight includes: Blank

This works fine in debugger - have I set it all up right ?

_________________
DS
View user's profileFind all posts by regionalserversSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
This works fine in debugger - have I set it all up right ?

Absolutely.
If you have any file beyound /var/www/myapp directory tree included in your application, you'll also need an extra mapping entry for it.
For example, if you have /var/www/mylib/somefile.php included in /var/www/myapp/somewhere/myfile.php
you'll need mapping:
local: r:\mylib
remote: /var/www/mylib
url: does not matter (leave it empty)

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Struggling with mapping - please advise if this is correct
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