Designing on testing server - different pathways

2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 9, 2009   (RSS)

Re: [mel] Designing on testing server - different pathways

By Dave - February 9, 2009

Hi Mel,

For testing email locally with WAMP I love this little Java app: http://www.aboutmyip.com/AboutMyXApp/DevNullSmtp.jsp It basically just let's you see exactly what would be sent without sending it. Great for testing without having to set up and check many email accounts.

For the paths issue, yes you can use relative paths. So assuming this is the generated path:
require_once "/home/mystest/public_html/cmsAdmin/lib/viewer_functions.php";

If you had: http://www.yoursite.com/index.php you could use this:
require_once "cmsAdmin/lib/viewer_functions.php";

If you had: http://www.yoursite.com/subdir/index.php you could use this:
require_once "../cmsAdmin/lib/viewer_functions.php";

The .. goes up one directory. Basically when your path doesn't start with / (or C:/ for Windows) it adds it on to the path that the current file is in. Hope that makes sense. Give it a try and let me know if goes.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com