max_execution_time

please i am having an error importing a file ““You probably tried to upload too large file. Please refer to documentation
for ways to workaround this limit.””
and i as advised to edit the max_execution_time to “0” when i checked the “http://localhost/phpinfo.php” it was there set to 30, but when i tried to edit it with pico
using the terminal
sudo pico ./php.ini
it allowed me in but when i searched for “max_execution_time”
it says cant find please how can i edit this please

Add this line


set_time_limit(0);

to the top of your php script, to allow that script more execution time.

However the fact that your getting an image too large message could also mean that the script checks the upload size of the file rather than the script timing out.

How big of a file are you attempting to upload?