Forum Moderators: coopster
Had to do it like this ->
and worked fine!.
$apli = 'im.exe';
$servr = '-server [mail.example.com:8000';...]
$adj = '-attach c:/Apache/Apache2/htdocs/ComuServer/Adjuntos/' . $archivoxgh;
$uno = array("/");
$dos = chr(92); //This is the ascii value for character " \ "
$adjunto = str_replace($uno, $dos, $adj);
$comando = sprintf("%s %s %s", $apli, $adjunto, $servr,);
@system($comando, $salida);
My question is, Why php will not parse character " \ " from keyboard but it will do it
when I use char(92) which is the same?
Your comments wil be appreciated!.
Regards
Franco
[edited by: dreamcatcher at 4:35 pm (utc) on Dec. 25, 2009]
[edit reason] use example.com, thanks. [/edit]