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

When its Amazon & When its AWS

If you’re preparing for AWS certifications o...

Read more

How to Connect to Bluehost server using Shell Access

Manually generating your SSH key in macOS To open ...

Read more
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

There are 0 comments

Leave a Reply

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