Neo-dark
Jun 28th, 2007, 08:53 AM
Hey all
Im trying to edit an ini file automaticly,example:
Users fill in username($user)
Users fill in password($passwd)
Users fill in domain name($domain)
Now I want to add those values to an ini file like this
[$user]
Login=$user
Pass=$passwd
AllowChangePassword=1
Home-Ip=-= All IP Homes =-
RelativePath=1
TimeOut=600
MaxConPerIp=1
MaxUsers=0
RatioMethod=0
RatioUp=1
RatioDown=1
RatioCredit=0
MaxSpeedRcv=512
MaxSpeedSnd=512
QuotaCurrent=0
QuotaMax=0
EnableSITECHAT=1
EnableSITEWHO=1
Dir0=D:\Server\WAMP\www\Users\$domain
Attr0=RWDAMLSK
Is there an easy way to do this?
I am not an PHP expert, I barely know the syntax, But I know I would need to open the file for writing and after that for reading or something of the likes right?
Could someone give me a code snippet?
Thanks a bunch!
Im trying to edit an ini file automaticly,example:
Users fill in username($user)
Users fill in password($passwd)
Users fill in domain name($domain)
Now I want to add those values to an ini file like this
[$user]
Login=$user
Pass=$passwd
AllowChangePassword=1
Home-Ip=-= All IP Homes =-
RelativePath=1
TimeOut=600
MaxConPerIp=1
MaxUsers=0
RatioMethod=0
RatioUp=1
RatioDown=1
RatioCredit=0
MaxSpeedRcv=512
MaxSpeedSnd=512
QuotaCurrent=0
QuotaMax=0
EnableSITECHAT=1
EnableSITEWHO=1
Dir0=D:\Server\WAMP\www\Users\$domain
Attr0=RWDAMLSK
Is there an easy way to do this?
I am not an PHP expert, I barely know the syntax, But I know I would need to open the file for writing and after that for reading or something of the likes right?
Could someone give me a code snippet?
Thanks a bunch!