Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: cgi-bin BASEPATH issue  (Read 637 times)
0 Members and 1 Guest are viewing this topic.
jimmypage
Guest
« on: October 07, 2006, 01:04:00 PM »

I have been running Calendarscript on another server for years. Switching over to a new host and their server keeps rewriting the following lines...

These are the lines when the script is first installed.

my ($path) = $ENV{'PATH_TRANSLATED'} | | $ENV{'SCRIPT_FILENAME'};
unless ($path) {
print

Server? changes lines to this...?

my ($path) = /usr/local/cpanel/base/frontend/x/files/savefile.html | | $ENV{'SCRIPT_FILENAME'};
unless ($path) {
print

Why is this happening? The server Im presently does not rewrite these lines??? Ive tried to set path manually but it still rewrites lines.
-JIm

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: October 07, 2006, 02:37:00 PM »

** new host server keeps rewriting the following lines... Why is this happening? **

I'm afraid you'll have to ask that host's support. I've never heard of such a thing before.

JMO

Dan O.

------------------

Logged
jimmypage
Guest
« Reply #2 on: October 07, 2006, 03:34:00 PM »

Thanks for the reply DanO! Very strange indeed. Well see what my support figures out.
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: October 07, 2006, 07:22:00 PM »

Just a thought, how are you uploading the file??

I see ../local/cpanel/base... in the new path. If uploading through cpanel, maybe it (for whatever reason) is acting upon that variable.

If you are uploading it that way, I'd suggest using a dedicated FTP client instead. That way you should be able to control what's going on during the process.

JMO

Dan O.

------------------

Logged
jimmypage
Guest
« Reply #4 on: October 07, 2006, 11:53:00 PM »

I will try that.
Logged
jimmypage
Guest
« Reply #5 on: October 08, 2006, 12:06:00 AM »

Didnt change. Still rewriting the path info. Ive noticed that on this site, anytime I go leave root level things get wrong. ex.
If i am off root level but I call to root like this... /images/somepic. does not work but /subdomainname/images/somepic works. Seems wrong that I have to call sub name instead of just / am I totally off base to say this server doent link up very good. anyway Its late and im typing to much...Thanks for replys DanO
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #6 on: October 08, 2006, 10:49:00 PM »

** I call to root like this... /images/somepic does not work but /subdomainname/images/somepic works. **

That's because the leading / says, start looking from the root. If you don't supply all the directory information from there, you can't get to where you're going.

If you are already in the sub-directory subdomainname, using just images/somepic as a path should work (note the lack of leading /) which says look from here on and not start at the bottom (or top - depending on how you view the tree).

JMO

Dan O.

------------------

Logged
jimmypage
Guest
« Reply #7 on: October 10, 2006, 08:11:00 AM »

I got it! I dont know why paths keep messing me up. Anyway, my calendarscript problem was caused by using my ftp client in auto. Corrupted files! Thanks as always DanO
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #8 on: October 13, 2006, 01:56:00 PM »

** my problem was caused by using my ftp client in auto. Corrupted files! **

I've never heard of any kind of file corruption changing a variable in the script like you stated was occurring.

Glad to hear you got it running though.  

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: