command working in terminal but working from code php
Things that i tried were :
1. Try executing the simple command fist and see if the out is comming.
example : system('ls -l > output.txt') // This will output the file in public
//folder
2. After that i tried giving the permission 777 to the files and folder
that require and access and create a file.
example : chmod -R 777 /var/www/html/PATH_TO_FOLDER/public
3. Search your php.ini with this commands: php --ini
For Me: Loaded Configuration File: /etc/php/7.2/cli/php.ini
In your php.ini file, set variables_order = "EGPCS".
Also in PHP:
- display php eror
- capitalized string in php
- Day of Week Using carbon library
- different date format php
- General error: 1215 Cannot add foreign key constraint laravel
- echo in php console log
- +1 day in while php
- How do I check if a string contains a specific word php
- convert letters to uppercase php
- array reverse order php
- 500 server error in laravel
- cache clear in laravel live server
- edit data using modal php
- Create image data URIs (base64) using PHP Raw
- Target class [Barryvdh\Cors\HandleCors] does not exist.
- confirm password validation in laravel
- check file selected in php
- $_SERVER php where link came from
- 'https://', 'www.' & all sub derictories reomve from a url with regex
- artisan run seed
- find substring in string php
- errpr reporting in php
- all words capital php
- Number of week days between two dates in php