28, May 2012

increasing which php value (ini.set) - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: increasing which php value (ini.set)
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: increasing which php value (ini.set)  (Read 1847 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« on: Sep 04, 2007, 10:36:35 am »

Hi,

I have a script that has to convert/copy ~1500 small image files.
after ~1300 files the script stops working and the server is sending content to the browses.

The file I can download (my script) is empty.

which value do I have to increase?

this is what I did now:

set_time_limit(0);
ini_set('memory_limit', '64M');

Cyberpunk Wannabe
*
Posts: 34
208 credits
Members referred : 0


« Reply #1 on: Sep 04, 2007, 12:17:48 pm »

Are you sure that the problem is timeout related? Could there be something in the files that's causing a problem (e.g. an invalid image file)?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Sep 04, 2007, 12:22:56 pm »

Are you sure that the problem is timeout related? Could there be something in the files that's causing a problem (e.g. an invalid image file)?

must say, I'm not surprised about this because of the web hosting.

I try it now in two steps (handling 800 files twice)

first 800 files are processed without problems

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Sep 04, 2007, 04:04:03 pm »

How do you execute this? If you are using a web page to start it, then use this directive too :

ignore_user_abort(true);

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Sep 04, 2007, 04:31:23 pm »

it works fine if I process all the files in two steps

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7069
Tags : php error Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: increasing which php value (ini.set)
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 09:15:15 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.