RE: [PHP] php equivalent for `command`

2001-04-19 Thread Greig, Euan
Original Message- From: Jason Brooke [mailto:[EMAIL PROTECTED]] Sent: 18 April 2001 09:46 To: Greig, Euan; [EMAIL PROTECTED] Subject: Re: [PHP] php equivalent for `command` echo ++$x; http://www.php.net/manual/en/language.operators.increment.php Is there a php equivalent for the use o

Re: [PHP] php equivalent for `command`

2001-04-19 Thread Plutarck
: [EMAIL PROTECTED] Subject: Re: [PHP] php equivalent for `command` In the second set of code lines, what I need to do is somehow bracket off the $test++ so it is evaluated before being echoed. You need to use the string concantenation operator (a period) to use things like $test++, else

[PHP] php equivalent for `command`

2001-04-18 Thread Greig, Euan
Is there a php equivalent for the use of ` (I think) in Unix/Perl? So for example echo "`$x++`" would first evaluate $x++ and then print the resulting value. Euan Greig Technical Consultant BRANN DATA [EMAIL PROTECTED] 01285 645997

Re: [PHP] php equivalent for `command`

2001-04-18 Thread Jason Brooke
echo ++$x; http://www.php.net/manual/en/language.operators.increment.php Is there a php equivalent for the use of ` (I think) in Unix/Perl? So for example echo "`$x++`" would first evaluate $x++ and then print the resulting value. Euan Greig Technical Consultant BRANN DATA [EMAIL

RE: [PHP] php equivalent for `command`

2001-04-18 Thread Greig, Euan
es, what I need to do is somehow bracket off the $test++ so it is evaluated before being echoed. Euan -Original Message- From: Jason Brooke [mailto:[EMAIL PROTECTED]] Sent: 18 April 2001 09:46 To: Greig, Euan; [EMAIL PROTECTED] Subject: Re: [PHP] php equivalent for `command`

Re: [PHP] php equivalent for `command`

2001-04-18 Thread Plutarck
From: Jason Brooke [mailto:[EMAIL PROTECTED]] Sent: 18 April 2001 09:46 To: Greig, Euan; [EMAIL PROTECTED] Subject: Re: [PHP] php equivalent for `command` echo ++$x; http://www.php.net/manual/en/language.operators.increment.php Is there a php equivalent for the use of ` (I think) in Uni

[PHP] php equivalent for `command`

2001-04-17 Thread Greig, Euan
Is there a php equivalent for the use of ` (I think) in Unix/Perl? So for example echo "`$x++`" would first evaluate $x++ and then print the resulting value. Euan Greig Technical Consultant BRANN DATA [EMAIL PROTECTED] 01285 645997

Re: [PHP] php equivalent for `command`

2001-04-17 Thread Plutarck
The backtick operator " ` " is used like an exec() or passthru() function. But I know what you mean. For instance, try running this in a script: $n = 1; echo "The number is: $n++br"; echo "The number is: $n++br"; echo "The number is: $n++br"; PHP will not increment a variable inside of a