Jump to content

Php commad using shell


sandy1028

Recommended Posts

When ran the below line on command prompt,

 

php -r "print_r(getimagesize('http://www.example.com/images!/logos/ps_logo2.png'));"

-bash: !/logos/ps_logo2.png': event not found

 

To avoid this wrapped in the sahll script.

 

#!/bin/bash

php -r "print_r(getimagesize('http://www.example.com/images!/logos/ps_logo2.png'));"

 

can you please tell me, how can we avoid this in php script.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.