Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl forum help PLZ !

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
Hi i am on editing a forum which i downloaded and i need to know where the files are on my server without http:// included they are set to /usr/local/apache/domains/m/o/mobile-zone.co.uk/ where mobile-zone.co.uk is my site but that does not work could you please help in any way
regards Robert
 
Try printing out the value of $ENV{'DOCUMENT_ROOT'} from your program. That variable is the "root" directory for your web site. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Hi sorry
but that never worked :-( does anyone know any other paths?
regards
Robert
 
make a symlink in your /usr/local/apache/cgi-bin directory that points to that module, then you can access it or you could even just move the whole thing into the cgi-bin and use it that way.

good luck. "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
The problem is that the path name varies depending on who set up the server. I've had isps where is was /u/userid/web/cgi-local and /u/userid/ and a few other combinations. If printing $ENV{'DOCUMENT_ROOT'} doesn't work for you (but it should have), try this short program:
Code:
$currdir = `pwd`; # those are back-ticks
print "Content-type: text/html\n\n";
print &quot;<html><head></head><body>$currdir</body></html>&quot;;
exit 0;
That should print out your current working directory, which should be your cgi directory.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top