Hi,i just got my own domain and in trying to put a counter on my site using a cgi script and i need to know how to get the full path name of my files on my server,the script requires a path name like "$imagefile{'0'}="/home/yourdomain/counter/0.gif".
+ Reply to Thread
Results 1 to 3 of 3
-
I think,therefore i am a hamster.
-
Log in with command-line ftp and type "pwd".
A man without a woman is like a statue without pigeons. -
Tried that but only gave me "/",need the absolute path,thanks for the help.I got this script from my shaw server,can anbody run it to see if it works for them,i get errors trying and shaw cant help.
The absolute path (the directory path with reference to the server’s root directory) for your webspace can be determined by printing the $0 (dollar sign, zero) variable from within a script. The following script prints the $0 variable:
#!/usr/local/bin/perl
print "$0";
The string returned by the script will look like this:
/01/23/mydomain.com/cgi-bin/nameofscript.pl
Therefore, the absolute path to the webspace for this domain is /01/23/mydomain.com/.I think,therefore i am a hamster.
Similar Threads
-
Avisynth script built in path variable
By a1s2d3f4 in forum Newbie / General discussionsReplies: 13Last Post: 29th Mar 2018, 18:15 -
Batch "file creation from a text file, Placed into a created directory
By Muther in forum ProgrammingReplies: 5Last Post: 24th Sep 2015, 18:29 -
cannot save file path too long
By masadar in forum Video ConversionReplies: 8Last Post: 26th Dec 2014, 01:56 -
Best way to upscaling video from 720p (30 ftp) to 1080p (60 ftp)
By siopilos in forum Video ConversionReplies: 3Last Post: 1st Nov 2011, 18:40 -
Setting up my own FTP with Bullet proof FTP
By SE14man in forum Newbie / General discussionsReplies: 5Last Post: 25th Jul 2007, 08:48