NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
I cringe as I post this EDIT I think nusphere was a mistake


Joined: 15 Mar 2010
Posts: 3
Reply with quote
I have seen so many threads on includes not mapping properly that I hate to post this but I am really out of ideas to try. Basically I have my source on an apache server mapped to a local drive.

y:\ePSM is my project root that is a samba share to:
/var/www/htdocs/ePSM
my problem is when I try to call files from a directory other than root.

Example:
/var/www/htdocs/ePSM/includes/email.php which has an include for
/var/www/htdocs/ePSM/includes/DBhandler/irsconnection.php
it maps it as /var/www/htdocs/ePSM/includes/DBHandler/irsconnection.php
so if I mod my include statement from include_once('DBHandler/irsconnection.php') to
include_once('../DBHandler/irsconnection.php') it is fine but then the server get lost.
I do have maps for this directory /var/www/htdocs/ePSM/DBHandler y:\ePSM\DBHandler

Any thoughts, or can I simply not include from any directory other than root? I emailed support but of course have heard nothing. Unfortunately I jumped in and purched a license before I discovered this problem.

Thanks, Thomas
View user's profileFind all posts by treedinvaSend private message


Joined: 15 Mar 2010
Posts: 3
Reply with quote
I am new to php and chose nusphere because it really seemed to have the best debugger (at least to me). I have been having trouble with it ever since and am getting no response from support. Is there any way to actually get in touch with these people. They were very accommodating in providing a mechanism to purchase my license but have now disappeared. I would really like to get a refund!

Anyone had any success relinquishing a license for a refund, if so how?
View user's profileFind all posts by treedinvaSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
Be patient. You are not the only one sending support tickets (I myself have sent a few bug reports in the past few days). If you don't get a response in 2 days, don't freak out.


As to your problem, try this in your code:

Instead of
Code:
include('DBHandler/irsconnection.php');
try
Code:
include(dirname(__FILE__).'/DBHandler/irsconnection.php');
.
View user's profileFind all posts by simshaunSend private message
Re: I cringe as I post this EDIT I think nusphere was a mist


Joined: 06 Aug 2007
Posts: 7
Reply with quote
treedinva wrote:
I have seen so many threads on includes not mapping properly that I hate to post this but I am really out of ideas to try. Basically I have my source on an apache server mapped to a local drive.

y:\ePSM is my project root that is a samba share to:
/var/www/htdocs/ePSM
my problem is when I try to call files from a directory other than root.

Example:
/var/www/htdocs/ePSM/includes/email.php which has an include for
/var/www/htdocs/ePSM/includes/DBhandler/irsconnection.php
it maps it as /var/www/htdocs/ePSM/includes/DBHandler/irsconnection.php
so if I mod my include statement from include_once('DBHandler/irsconnection.php') to
include_once('../DBHandler/irsconnection.php') it is fine but then the server get lost.
I do have maps for this directory /var/www/htdocs/ePSM/DBHandler y:\ePSM\DBHandler

Any thoughts, or can I simply not include from any directory other than root? I emailed support but of course have heard nothing. Unfortunately I jumped in and purched a license before I discovered this problem.

Thanks, Thomas


What I have done in the past is create new projects with those paths that you need..

I.e.,

/var/www/htdocs/ as one project
and
/var/www/htdocs/something/ as another project

Set the root project as active, and set breakpoints in the other projects. It stops on those breakpoints for me, maybe you should try it.
View user's profileFind all posts by booduSend private message


Joined: 14 Aug 2009
Posts: 35
Reply with quote
That's odd. Ive hit support up a couple of times and alweays got good quick answers.
View user's profileFind all posts by cr0wn3rSend private message
I cringe as I post this EDIT I think nusphere was a mistake
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