Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > odd php loading behaviour

odd php loading behaviour
Thread Tools
Forum Regular
Join Date: Sep 2002
Location: Ottawa, ON
Status: Offline
Reply With Quote
Aug 30, 2003, 05:40 PM
 
i have a calendar php page that contains a fair amount of php code (~36k), and for some reason it will never load when accessed with "http://www.server.com" in the url and sometimes with "http://server.com" in the url. I know that the code is good because i've tested it out on http://localhost/

what's up?
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Aug 31, 2003, 06:19 AM
 
you're a bit vague on details, but, have you got an absolute path in there? something like:

$webPath = "/Users/phil/Projects/blah/companyname/stuff/website/includes";

if so, that would explain why it works locally, but not on your testing server

if that's not it, then chuck us a few more details
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Forum Regular
Join Date: Sep 2002
Location: Ottawa, ON
Status: Offline
Reply With Quote
Aug 31, 2003, 06:35 AM
 
Originally posted by philzilla:
you're a bit vague on details, but, have you got an absolute path in there? something like:

$webPath = "/Users/phil/Projects/blah/companyname/stuff/website/includes";

if so, that would explain why it works locally, but not on your testing server

if that's not it, then chuck us a few more details
sorry for being vague... here are the includes...


<?php
session_start();
include("scripts/cookie_check.php");
require_once('Connections/conn_01.php');

what i don't understand is how it behaves differently depending on whether or not there's a "WWW" in the url
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Aug 31, 2003, 01:28 PM
 
not sure why it would do that, but have you tried using the full path?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:21 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2