Re: Use Bake with another PHP version

2015-10-22 Thread Elisio Leonardo
Find the PHP.INI for your desirde PHP Version, and view the executable path 
marked with "PHP_BINDIR" variable.

Then do /path/to/php cake bake

hope it works... i have not tested :(

On Wednesday, October 14, 2015 at 10:45:06 PM UTC+2, Sebastian S wrote:
>
> Hi all 
> I have trouble using bin/bake, because of my server setup (dedicated), I 
> think. It uses PHP as CGI and in default the terminal uses PHP 4. 
>
> (13:38:26) [webfiles] bin/cake bake all users
> X-Powered-By: PHP/4.4.9
> Content-type: text/html
>
> 
> Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in 
> /mypath/webfiles/bin/cake.php on line 33
> 
> Parse error:  syntax error, unexpected T_STRING in 
> /mypath/webfiles/bin/cake.php on line 33
> (13:38:29) [webfiles]
>
> Is there any way to call bake with another PHP version?
>
> Thanks!!
>
> Sebastian
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Use Bake with another PHP version

2015-10-14 Thread Sebastian S
Hi all 
I have trouble using bin/bake, because of my server setup (dedicated), I 
think. It uses PHP as CGI and in default the terminal uses PHP 4. 

(13:38:26) [webfiles] bin/cake bake all users
X-Powered-By: PHP/4.4.9
Content-type: text/html


Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in 
/mypath/webfiles/bin/cake.php on line 33

Parse error:  syntax error, unexpected T_STRING in 
/mypath/webfiles/bin/cake.php on line 33
(13:38:29) [webfiles]

Is there any way to call bake with another PHP version?

Thanks!!

Sebastian

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.