Whats wrong with this perl script or whatever it is called?

Post all your general non-film related PC and Mac stuff here.

Moderators: Admin, Moderator Team

Post Reply
User avatar
justsomeguy
Posting Freak
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?

Post by justsomeguy »

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
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!
xbreaka420

Post by xbreaka420 »

php is not hard, just confusing at first but even a total moron can figure it out
User avatar
justsomeguy
Posting Freak
Posting Freak
Posts: 425
Joined: Sat Jan 10, 2004 7:22 pm
Location: CA, USA

Post by justsomeguy »

i did something totally lame to fix it but it should work, ill upload it this afternoon

EDIT: ok is there a way to cover up or make invisible a radio button?
Baggage:::: www.criticalcows.ne1.net
New episode coming by the end of the month!
xbreaka420

Post by xbreaka420 »

Raptor
Forum Veteran
Forum Veteran
Posts: 1027
Joined: Sat Sep 06, 2003 5:47 am
Location: Altoona, PA, USA

Post by Raptor »

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..
The UNDERGROUND
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
User avatar
justsomeguy
Posting Freak
Posting Freak
Posts: 425
Joined: Sat Jan 10, 2004 7:22 pm
Location: CA, USA

Post by justsomeguy »

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..
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.

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!
Raptor
Forum Veteran
Forum Veteran
Posts: 1027
Joined: Sat Sep 06, 2003 5:47 am
Location: Altoona, PA, USA

Post by Raptor »

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.
The UNDERGROUND
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
User avatar
justsomeguy
Posting Freak
Posting Freak
Posts: 425
Joined: Sat Jan 10, 2004 7:22 pm
Location: CA, USA

Post by justsomeguy »

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
############################################
Baggage:::: www.criticalcows.ne1.net
New episode coming by the end of the month!
I3lade203
Forum Veteran
Forum Veteran
Posts: 2345
Joined: Sat Oct 25, 2003 11:39 pm
Location: NY
Contact:

Post by I3lade203 »

xbreaka420 wrote:php is not hard, just confusing at first but even a total moron can figure it out
A total moron can learn any programming language if he really trys..
Sigs suck a**.
Truggy
Forum Addict
Forum Addict
Posts: 886
Joined: Tue Sep 02, 2003 12:49 pm
Location: GR Michigan
Contact:

Post by Truggy »

but i cant learn it :P
[url=http://profile.xfire.com/xerojohny88][img]http://miniprofile.xfire.com/bg/bg/type/0/xerojohny88.png[/img][/url]
--
Dance Dance Revolution: Proving white people dont have rhythm since 1998
Raptor
Forum Veteran
Forum Veteran
Posts: 1027
Joined: Sat Sep 06, 2003 5:47 am
Location: Altoona, PA, USA

Post by Raptor »

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
User avatar
justsomeguy
Posting Freak
Posting Freak
Posts: 425
Joined: Sat Jan 10, 2004 7:22 pm
Location: CA, USA

Post by justsomeguy »

i tried 757, even tried 777, still got the same error
Baggage:::: www.criticalcows.ne1.net
New episode coming by the end of the month!
El Brenty
Moderator
Moderator
Posts: 2030
Joined: Fri Jul 18, 2003 8:37 pm
Location: Esher, Surrey, Land Of Hope And Glory
Contact:

Post by El Brenty »

Truggy wrote:but i cant learn it :P
Obviously you're not a total moron then! :P
Moderating behind the bushes!
Truggy
Forum Addict
Forum Addict
Posts: 886
Joined: Tue Sep 02, 2003 12:49 pm
Location: GR Michigan
Contact:

Post by Truggy »

and im not aloud to call u a dork without stuff getting deleted? lol :beer:
[url=http://profile.xfire.com/xerojohny88][img]http://miniprofile.xfire.com/bg/bg/type/0/xerojohny88.png[/img][/url]
--
Dance Dance Revolution: Proving white people dont have rhythm since 1998
El Brenty
Moderator
Moderator
Posts: 2030
Joined: Fri Jul 18, 2003 8:37 pm
Location: Esher, Surrey, Land Of Hope And Glory
Contact:

Post by El Brenty »

2 things:

1. :P
2. It wasn't me!
Moderating behind the bushes!
Post Reply