PHP Image Intervention Library not working with image path passed from bash script -
i using call php-cli in bash script like
php /var/www/scripts/php_script.php "$output" where $output bash variable. argument of $output variable $argv[1] in php script.
$path = $argv[1]; i did way:
$path = "/path/to/some/images.png"; i using php intervention image library create instance of image file path $path.
$image = image::make($path); the second way string assigned works there no output or error when using first approach. code flow exits @ line. tried var_dump($path). both of approaches give same result. difference in using these 2 approaches?
Comments
Post a Comment