View Full Version : How do you run Perl scripts...
LeX
April 4th, 2001, 09:02
... on your computer? I've been testing mine by uploading it to my host. Do you need to install Apache? Or just get Perl? Or what?
Oh, BTW, how do you chmod a directory so that visitors can't view it (gets a permission denied) and can't see/leech the files in the directory (gets a permission denied as well) but still able to use the files in the directory? Like, say, I have script.js located in my "junk" folder, and I want to do <SCRIPT src="/junk/script.js"> in my root pages... what do I need to chmod?
Any help appreciated. :)
ashben
April 4th, 2001, 10:05
Checkout ActivePerl 5.6 at http://www.activeperl.com
LeX
April 4th, 2001, 12:49
Okay, coolness, I've downloaded it and installed it.
Now what? How da hell do I run Perl scripts on my computer?
Woofcat
April 4th, 2001, 13:40
You mean to view them in your browser, right? In that case yes you need Apache.
http://httpd.apache.org/dist/httpd/binaries/win32/
LeX
April 4th, 2001, 13:57
Yeah, that's what I mean. I want to test-run my scripts on my computer.
Okay, thanks, Woofcat (and ashben), I'll try out Apache and see what happens.
So... can anybody help me with my other question?
lucifer
April 4th, 2001, 15:14
worth getting perl builder or some other app for writing script else you'll have to keep looking in the apache error logs to see what went wrong (v tedious).
if you make a directory not readable by others they can't see it's contents but if they know what the files name is in that directory then they can see that file
that sort of half answers that question but that's all you can do with chmod
LeX
April 5th, 2001, 20:49
Originally posted by lucifer
if you make a directory not readable by others they can't see it's contents but if they know what the files name is in that directory then they can see that file
Are you sure? I chmoded one of my directories to 600 or 700, and I couldn't view any of the files, wether I know the files' name or not.
Thanks for your help anyways. :)
Coolin
April 6th, 2001, 00:15
If you chmod a file so it can't be read, you can't access that file even if you know the filename. With the directory, I'm not sure.
LeX
April 6th, 2001, 00:27
I chmod it so that the owner can read/write/execute the files, but visitors won't be able to. (700)
But it doesn't seem to work... :(
Coolin
April 6th, 2001, 00:41
How about not letting the owner read either?
LeX
April 6th, 2001, 00:43
Are you being serious or joking? :confused:
Coolin
April 6th, 2001, 00:47
Originally posted by LeX
Are you being serious or joking? :confused: Serious.
You could chmod it to something else when you need to use the file.
LeX
April 6th, 2001, 00:50
I need to use the file 24/7
Coolin
April 6th, 2001, 01:02
Oops, never mind then. Perhaps you could use some javascript to hide the real file name and make people have to use the javascript to access the file.
dony
April 6th, 2001, 04:04
i have runned some scripts under microsoft(must die)personal web server.
Seems to work with it(with activestate)
LeX
April 6th, 2001, 06:33
Originally posted by Coolin
Oops, never mind then. Perhaps you could use some javascript to hide the real file name and make people have to use the javascript to access the file.
And how do I do that?
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.