Recently, I started learning using the Laravel PHP framework. When I used it, it said that I needed MCrypt or something like that. My local PHP installation: /usr/bin/php
did not contain that, so I created a .bash_profile
file and changed the export path to the MAMP PHP installation. The only problem is that I'm working on some PHP terminal applications now, and MAMP doesn't have functions like readline()
. What should I do?
Asked
Active
Viewed 207 times
0

sparecycle
- 2,038
- 5
- 31
- 58

Ashwin Reddy
- 31
- 5
-
1Maybe this will help. http://stackoverflow.com/questions/16830405/laravel-requires-the-mcrypt-php-extension – sparecycle Sep 11 '13 at 02:56
-
The problem is that I want to add on functions to PHP or make a simple way to switch between the two – Ashwin Reddy Sep 11 '13 at 02:59
-
Please consider using Vagrant or another virtual machine provider so you can avoid the pitfalls that trying to make Mac's non-standard POSIXy operating system presents! You'll be very happy you did once you get over the initial learning curve! – fideloper Sep 11 '13 at 13:06
1 Answers
0
Adding extra extensions into MAMP... thats just horror.
If your laravel works fine now, and you are having troubles using the MAMP-php version for your readline() functions' why don't you just execute those scripts as /usr/bin/php myReadLine.php
?
(Other options are switching versions by modding your path, working with symlinks or build your own php from scratch...)

Rob Gordijn
- 6,381
- 1
- 22
- 29