Jump to content

Search the Community

Showing results for tags 'php images errors'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. I'm in the process of converting images from external websites references to images stored in my amazon S3 account. I'm running a script to do the conversion for the images I need, however the script continues to break with this error message: E_WARNING: imagecreatefromjpeg(http://www.site.org/Ansichtskarten.images/I/AK04659a.jpg): failed to open stream: Connection timed out Is there anyway I can have the script just continue running even if there is an error? Restarting the script is frustrating and counterproductive. Script: <?php ini_set('memory_limit','2048M'); ini_set('max_execution_time', 30000000); ini_set("user_agent", 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9'); ini_set('gd.jpeg_ignore_warning', 1); $cron = true; include('init.inc.php'); $query = 'SELECT * FROM city_images WHERE city_id > 0 ORDER BY city_id'; $city_images = sql::q($query); //var_dump($cities); die; while ($row = sql::f_assoc($city_images)) { //var_dump($row); $city_id = $row['city_id']; $image = image::resize_upload_amazon_new($row['image'], $row['city_id']); if(!is_array($image)){ $sql = "INSERT INTO `city_images_new` (`city_id`, `image`) VALUES ('{$city_id}', '{$image}')"; sql::q($sql); } //var_dump($image); die; } //die; echo PHP_EOL . "Images converted succesfully"; die; ?>
×
×
  • 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.