[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] PHP Guru needed
- Subject: RE: [cobalt-users] PHP Guru needed
- From: "Dean Hall" <dean@xxxxxxxxx>
- Date: Mon Jun 25 06:51:13 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> <?php
>
> #check new passwords are the same and then change password for user
> if ($password1==$password2) {
> $command1 = "/usr/bin/mysqladmin -u$user_name -p$old_passwd password
> $password1 ";
> system($command1);
> system("exit(0)");
> #$location= "home/sites/home/web/phpMyAdmin";
> #$command2 = "/bin/sed '/$old_passwd/s/$old_passwd/$password1/w gavin'
> /$location/config.inc.php.master ";
> #system($command2);
> #system("exit (0)");
> }
> header ("Location: ");
> ?>
You are attempting to write the substitution to the file gavin.
Try using a full path name and ensure that the php will have write
permissions to gavin.
You haven't said what the results are when you try this. Is "gavin"
created? In the
directory you expect?
----
Dean Hall at Tactix ReEngineering ( dean@xxxxxxxxxx )
503 520-9699 http://www.tactix.com