USANet Creations
Users Support and Discussion Areas

NOTE: Always state the software package you have
when asking questions so you will get the correct answer,
as it does make a big difference in the answers you'll get!

| Main Site Home Page | Forums Home Page |

Subject: "Newest member getting error"   Previous Topic | Next Topic
nonePrinter-friendly copy    
Conferences MakeBid Auction user submitted addons and updates Topic #387
Reading page 1 of 1 pages
jennica1
Member since May-28-09
48 posts, Rate this user
Apr-22-12, 10:46 AM (CST)
Click to add this user to your buddy list  
"Newest member getting error"
 
   sub procreg {

if ($config{'regdir'}) {
umask(000); # UNIX file permission junk
mkdir("$config{'regdir'}", 0777) unless (-d "$config{'regdir'}");

When i paste this code under like so


sub procreg {

if ($config{'regdir'}) {
umask(000); # UNIX file permission junk
mkdir("$config{'regdir'}", 0777) unless (-d "$config{'regdir'}");

mkdir("$config{'basepath'}$config{'newestmember'}", 0777) unless (-d "$config{'newestmember'}");


Then i get error


Any ideas


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Homermoderator click here to view user rating
Member since Jan-10-08
335 posts, 3 feedbacks, 6 points
Apr-22-12, 06:29 PM (CST)
Click to view user profileClick to add this user to your buddy list  
1. "RE: Newest member getting error"
 
   LAST EDITED ON Apr-22-12 AT 06:42 PM (CST)
 
actually, you don not need this piece of code anymore:

mkdir("$config{'regdir'}", 0777) unless (-d "$config{'regdir'}");

The software has created the User Registry Directory when it started a user registration for the first time. After this first process, it's not longer required to do the same routine everytime someone registers or changes his reg-content.

1.check if the directory exists
2.create a directory, if it does not exist already.


So, if you have a running auction with 1 registered user, you can either quote all the line with a '#' or even remove the line I have displayed above.

So, just try this:

if ($config{'regdir'}) {
umask(000); # UNIX file permission junk
mkdir("$config{'basepath'}$config{'newestmember'}", 0777) unless (-d "$config{'newestmember'}");

...depending, how you have directed your path:
$config{'newestmember'}

so, possibly to write a FULL path command to direct $config{'newestmember'} like by example:

config.pl Entry:

$config{'newestmember'} = '/your/server/path/cgi-bin/auction/auctiondata/newestmember/';

then use:

mkdir("$config{'newestmember'}", 0777) unless (-d "$config{'newestmember'}");

Homer

If you don't know where you're going, any road will get you there.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote


Conferences | Topics | Previous Topic | Next Topic
Rate this topic Rate this topic