Re: [PHP] php equivalent for `command`

2001-04-19 Thread Plutarck
CTED]] > Sent: 18 April 2001 15:13 > To: [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

RE: [PHP] php equivalent for `command`

2001-04-19 Thread Greig, Euan
econd set of code lines, 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] >

Re: [PHP] php equivalent for `command`

2001-04-18 Thread Plutarck
at 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] p

RE: [PHP] php equivalent for `command`

2001-04-18 Thread Greig, Euan
et 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` echo ++$x; http://www.php.net/manual/en/language.o

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

[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-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++"; echo "The number is: $n++"; echo "The number is: $n++"; PHP will not increment a variable inside of a string. How

[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 ***