July 29th, 2000, 05:42 AM
I want to create a site which provides web based mail something like yahoo,hotmail....
By using php i was able to read and send mail.But i was not able to create a new mail account for the users who come and register in my site.Somebody gave me a sugesstion that we can execute the
system commands in php.I just tried this but it doesn't work
" $val=system("vadduser hari"); "
If anyone know how to do that in php it will be a great help for me.
Thanks in advance.
July 30th, 2000, 11:55 AM
I'm working on this too. This is also my problem.
I heard of that it is nearly impossible!
May u get answer quickly!
July 30th, 2000, 08:00 PM
hari, it is adduser not vadduser. Second, if I know my UNIX acces to that command is limited to root. PHP is run under the Apache suer privligies, which is usually "nobody", so it cannot access that command.
One solution: write a suid program to take care of this. You will have to ask someone else about this, though, because I don't know how to do this...
[This message has been edited by dwarf (edited July 30, 2000).]