Ok, try this:
<?php
echo '<pre>';
$last_line = system('c:\\php5\\php.exe -v', $retval);
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
Tomasz Ignatiuk wrote:
> I used \, then \\ and each time it is stripped out
>
> *Fatal error*: Uncaught exception 'sfException' with message 'Problem
> executing command sh: line 1: c:php5php.exe: command not found ' in
> /home/users/iwitch/public_html/pd/lib/symfony/task/sfFilesystem.class.php:291
> Stack trace: #0
> /home/users/iwitch/public_html/pd/web/sf_cc_webscript.php(7):
> sfFilesystem->sh('c:\php5\php.exe...') #1 {main} thrown in
> */home/users/iwitch/public_html/pd/lib/symfony/task/sfFilesystem.class.php*
> on line *291*
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---