Commands Mac Server
How to Run PHP Specific Version for a PHP Script in MacOSX?
August 15, 2022
0

Suppose you have a php CLI Script that runs only on php version 5.4, but your default PHP version is 8.0.1.
So run the below command to run the php Script in PHP 5.4:
# /Applications/MAMP/bin/php/php5.4/bin/php -q test.php

If you need to ru the PHP Script inn PHP 7.4 then run the below command:
# /Applications/MAMP/bin/php/php7.4.27/bin/php -q test.php

About author

ZERIN

CEO & Founder (BdBooking.com - Online Hotel Booking System), CEO & Founder (TaskGum.com - Task Managment Software), CEO & Founder (InnKeyPro.com - Hotel ERP), Software Engineer & Solution Architect

WHM- SSL/TLS Configuration

Generating ECC CSR Certificate on Apache on Linux CentOS – PCI standards

Recently My One of the Product PayPal IPN was not ...

Read more

WHM:: PHP Mail is Not Working-Showing Its Disable

When your mail does not work, one example could be...

Read more

How To Install SAAS on Mac

SaaS is very important to generate CSS with variab...

Read more

There are 0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *