vendredi 13 octobre 2017

File Can't copy from old path to new Path Laravel 5.5 - Time Limit exceeded Error

I want to copy a file from a location to another location in Laravel 5.5.

I've tried,

$old_image = "http://localhost:8000/images/old.jpg";
$new_image = public_path()."/images/new.jpg";

if (! File::copy($old_image , $new_image)) {
    //Error
}

I've got the warning message after 60 seconds.

"Maximum execution time of 60 seconds exceeded"

File is not copied there. What I'm wrong ? Is there a problem to initializing the path or not ?

Please Help someone..



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire