Previous Thread
Next Thread
Print Thread
Rate Thread
#101550 10/24/2000 9:45 PM
Joined: Mar 2000
Posts: 111
Member
Member
Offline
Joined: Mar 2000
Posts: 111
Hey, I would like to know how to make a directory using perl. Say I want the directory to use the name from the variable $title, how would I go about making a directory with that variable as the name?

And if its possible how could I use the password from the variable $pword to password protect the directory?

Thanks for the help, I hope you can understand all that [Linked Image]


Co-Admin of Creature World.
Sponsored Links
#101551 10/24/2000 9:50 PM
Joined: Sep 2000
Posts: 6
Member
Member
Offline
Joined: Sep 2000
Posts: 6
making directory is simple..
like this


mkdir ($saveDirectory, 777);


I think you need to look at the book for password protect the directory.



------------------
Thank you


Thank you
#101552 10/25/2000 4:07 PM
Joined: Mar 2000
Posts: 111
Member
Member
Offline
Joined: Mar 2000
Posts: 111
Thanks, I can't believe I didn't remeber that. I remeber seeing it in the UBB code all the time [Linked Image]

Oh and if you find out how to password protect it please post it, Thanks!


Co-Admin of Creature World.
#101553 10/25/2000 5:16 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Quote
quote:
Depending on what you are using the directory for, you should change the chmod.

------------------
Da Wannabe Cannuck

:: Who is Andy?

#101554 10/25/2000 5:19 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Always or die your commands like that.

mkdir($title,0666) or die "Directory not created. Reason why: $!";


EDIT: I was typing as atom replied. How funny. *L*

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.
Read my BIO in the team link!

This message has been edited by MasterMind on October 25, 2000 at 05:20 PM

Sponsored Links
#101555 10/25/2000 7:47 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Yes...I have been told that die commands should be used on any system command that the script is dependant upon. [Linked Image]

------------------
Da Wannabe Cannuck

:: Who is Andy?

#101556 10/25/2000 9:46 PM
Joined: Mar 2000
Posts: 111
Member
Member
Offline
Joined: Mar 2000
Posts: 111
Thanks for the help, it worked great! But I still need to know how to make it put a password to the directory [Linked Image]


Co-Admin of Creature World.
#101557 10/26/2000 5:37 PM
Joined: May 2000
Posts: 243
Member
Member
Offline
Joined: May 2000
Posts: 243
Well, you could find a tutorial on how to password protext directories useing .htaccess. If you need further help. Please post

#101558 10/27/2000 1:28 PM
Joined: Mar 2000
Posts: 111
Member
Member
Offline
Joined: Mar 2000
Posts: 111
I don't think that would work, since this is what I need it for:

I made a script (for a guy that runs a clan site) that lets people enter details about there clan and then submits it, what I have it do now is when they hit submit it makes a directory with the name of there clan as the title, and a html page with all the info they put. But I also want each directory password protected with a password they choose so I can make another script that log's you in then you can edit your clan detials and see the requests that people have made.

Would .htaccess work for that? If so can you point me in the direction of a good tutorial aon it?

Thanks!


Co-Admin of Creature World.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)