7, September 2008

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

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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

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


It's time to use PHP5!


« on: Sep 04, 2007, 11: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');


Last blog : Is your website is down? Know before your visitors do!
Nikolas' Servant Child
*
Posts: 30
184 credits
Members referred : 0


« Reply #1 on: Sep 04, 2007, 01: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: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Sep 04, 2007, 01: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


Last blog : Is your website is down? Know before your visitors do!
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8037
41179 credits
Members referred : 3



« Reply #3 on: Sep 04, 2007, 05: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 Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


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

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


Last blog : Is your website is down? Know before your visitors do!
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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Sep 07, 2008, 11:16:04 AM





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!


Forum Statistics
Total Posts: 36.301
Total Topics: 7.479
Total Members: 3.904
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Brandon

34 Guests, 3 Users online :

11 users online today:



Readers

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