| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) | ||
|
Registered User
Fresh Surpasser
Joined in Nov 2005
4 posts
Gave thanks: 0
Thanked 0 times
|
path to a subdomain
I have a script running on a subdomain and need to know the exact path to the script.
The script calls for me to enter the information noted here: Quote:
Quote:
|
||
|
|
|
|
|
#2 (permalink) |
|
is scientific.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
|
You should be able to run it by just having the path set as the folder it's in, rather than using the subdomain. So http://www.something.com/folder rather than http://subdomain.something.com
|
|
|
|
|
|
#4 (permalink) | |
|
Registered User
Fresh Surpasser
Joined in Nov 2005
4 posts
Gave thanks: 0
Thanked 0 times
|
I tried moving everything out of the subdomain and still not working.
I pulled up the PHP Manual for the fopen command, and it states the following in regards to the mode character Quote:
Would changing the fopen (ERROR_LOG_PATH, "a"); to some other ending character have any effect on the Surpass server? |
|
|
|
|
|
|
#5 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
The first warning shows you what's really going wrong....
Warning: fopen(/home/margari_public_html/logs/error.log): failed to open stream: No such file or directory Instead of it trying to open /home/margari/public_html/logs/error.log, it's trying to open /home/margari_public_html/logs/error.log Although from the first quote, it appears you defined the path to the file correctly. Check out line 82 of the "receive_pirep.php" file and make sure it is opening the defined ERROR_LOG_PATH, instead of some variable which might have stored an altered version of the path.
__________________
Nobody doing nothing |
|
|
|
|
|
#8 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Nov 2005
4 posts
Gave thanks: 0
Thanked 0 times
|
I did resolve it by changing the line to:
(ERROR_LOG_PATH, "ab"); - that did the trick I also noted the typo in the path and had corrected that already - this final change seemed to make the differerence. Thanks Todd |
|
|
|