Whats wrong with this perl script or whatever it is called?
Moderators: Admin, Moderator Team
- justsomeguy
- Posting Freak
- Posts: 425
- Joined: Sat Jan 10, 2004 7:22 pm
- Location: CA, USA
Whats wrong with this perl script or whatever it is called?
i got this script thingy from the internet so that you can add your own links to my site. first problem was that i have no idea how to do anything in php or whatever this is because im not so sure its php now either. anyway the reason it probably doesnt work is that you are supposed to select a catergory to put the link into but i dont want any catergories i just want it all in one thing so i deleted some of the code thinking that it would do that. now it gives me some weird error that doesnt make sense to me. anyway the its on www.trp.ne1.net its under the links page, you'll see it after you submit a url. any suggestions on how to fix this? and remember i have no idea what i am doing
EDIT: ok i think ive figured it out, ill upload the hopefully working version soon
EDIT: ok i think ive figured it out, ill upload the hopefully working version soon
Last edited by justsomeguy on Tue Aug 17, 2004 12:20 am, edited 1 time in total.
Baggage:::: www.criticalcows.ne1.net
New episode coming by the end of the month!
New episode coming by the end of the month!
- justsomeguy
- Posting Freak
- Posts: 425
- Joined: Sat Jan 10, 2004 7:22 pm
- Location: CA, USA
- justsomeguy
- Posting Freak
- Posts: 425
- Joined: Sat Jan 10, 2004 7:22 pm
- Location: CA, USA
i did something like that, i made a hidden field and gave it the same name but can you give me an example of what you are saying cause i have no idea.Coment out the code that draws the radio button, create a hidden field with the same name and enter the static value yuo want to use..
EDIT: i fixed almost all problems except theres is one line of the code that im guessing is wrong cause thats what the error says. btw i think its perl.
# base directory to all link files from the server root without trailing "/"
$base_dir =
what am i supposed to put for the base_dir part? Ive looked on the forum of the site where i got and nothing there worked or made sense
Baggage:::: www.criticalcows.ne1.net
New episode coming by the end of the month!
New episode coming by the end of the month!
Try..
/links
Assuming you are storing the files in a directory called links. It would be the path to the directory you want to use for storing the little text files the script creates.
If that doesn't work try
/mnt/web_g/d42/s48/b01e2699 /links
which is the full path to your document root. I can't see the source to see if there is anything more that eeds done so I'll assume this is the only entry you need. BTW this is a PERL script rather than PHP. If you get an access denied error you may have to set the /links directory to world writeable.
/links
Assuming you are storing the files in a directory called links. It would be the path to the directory you want to use for storing the little text files the script creates.
If that doesn't work try
/mnt/web_g/d42/s48/b01e2699 /links
which is the full path to your document root. I can't see the source to see if there is anything more that eeds done so I'll assume this is the only entry you need. BTW this is a PERL script rather than PHP. If you get an access denied error you may have to set the /links directory to world writeable.
The UNDERGROUND
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
- justsomeguy
- Posting Freak
- Posts: 425
- Joined: Sat Jan 10, 2004 7:22 pm
- Location: CA, USA
tried both, still bot the same error, "Cannot create ID file links_id.txt in /links. Please check your base directory." i have the "links" folder and cgi-bin all set to 755 which is what the site said to have it on. Also i read somewhere that it might get messed up if you use notepad instead of wordpad, is that true? because ive been using notepad. Here is the source for setup part of the links.pl file if you need it:
#!/usr/bin/perl
#########################################################################
# Free For All Link Page v1.2 #
# Copyright (c)2000 Chi Kien Uong #
# URL: http://www.proxy2.de #
# #
# This Software is distributed under the GNU General Public #
# License. For more details see license.txt #
# #
# Administration: #
# http://www.host.com/cgi-bin/links.pl?admin=enter #
# #
# If you are having problems with the script, visit the support #
# forum at: http://www.proxy2.de #
#########################################################################
# url of script
$cgiurl = "#!/usr/bin/perl";
# base url to all link files without trailing "/"
$link_url = "http://www.twistedretrospectproductions.netfirms.com";
# base directory to all link files from the server root without trailing "/"
$base_dir = "/links";
# default index page of your choice
$index_url = "http://www.twistedretrospectproductions ... /links.htm";
# counter log file
$id_count = "links_id.txt";
# administration password
$admin_pass = "123";
# time to redirect to link page after entry (sec)
$redirect_sec = "3";
# use file locking; ($lock=0 for Win32)
$lock = 1;
# time offset - add one hour = +1 ; subtract one hour = -1
$fix_time = 0;
# image
$imageurl = "arrow.gif";
# End setup
############################################
#!/usr/bin/perl
#########################################################################
# Free For All Link Page v1.2 #
# Copyright (c)2000 Chi Kien Uong #
# URL: http://www.proxy2.de #
# #
# This Software is distributed under the GNU General Public #
# License. For more details see license.txt #
# #
# Administration: #
# http://www.host.com/cgi-bin/links.pl?admin=enter #
# #
# If you are having problems with the script, visit the support #
# forum at: http://www.proxy2.de #
#########################################################################
# url of script
$cgiurl = "#!/usr/bin/perl";
# base url to all link files without trailing "/"
$link_url = "http://www.twistedretrospectproductions.netfirms.com";
# base directory to all link files from the server root without trailing "/"
$base_dir = "/links";
# default index page of your choice
$index_url = "http://www.twistedretrospectproductions ... /links.htm";
# counter log file
$id_count = "links_id.txt";
# administration password
$admin_pass = "123";
# time to redirect to link page after entry (sec)
$redirect_sec = "3";
# use file locking; ($lock=0 for Win32)
$lock = 1;
# time offset - add one hour = +1 ; subtract one hour = -1
$fix_time = 0;
# image
$imageurl = "arrow.gif";
# End setup
############################################
Baggage:::: www.criticalcows.ne1.net
New episode coming by the end of the month!
New episode coming by the end of the month!
Hmm notepad shouldn't make a diff, I use it all the time for an editor. the path looks fine, tryu setting the directory attribs to 757 and see if it works.. if it does then try 756 and see if it does... 757 gives everyone read, write execute, if it is a permissions thing that will probably make it work.. 756 is a bit more secure because everyone doesn't have execute permission with 756, giving everyone write read/write/exec is not something that is good to do LOL... they can write code to that directory then execute it...
The UNDERGROUND
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
- justsomeguy
- Posting Freak
- Posts: 425
- Joined: Sat Jan 10, 2004 7:22 pm
- Location: CA, USA