473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

generating 1500 files to the server via php

Hi all! I have some data on my database that only gets update once a month. I'm interested in caching that data to xml and storing on my server so that the database isnt being called everytime someone visits the site. Instead, itll just load the newest version of the xml. I have it all set up to work correctly, however, I'm getting an Internal Server Error when I tried to write around 100 files to the server. I stored all the Sql queries into an array and use a counter to go through and hit my database and generate the xml. Theres about 1500 different options which means itll be about 1500 xml files. Is it possible to save 1500 files to the server or is it going to time out? Not sure if Im posting enough info so if theres any questions, I can answer them more thoroughly. Thanks in advanced!!
Jan 5 '10 #1
3 1473
Niheel
2,460 Expert Mod 2GB
Increase the timeout limit in your php.ini file and also run the file using CLI (command line).

Those two steps should help you create the full 1500 files you need.
Jan 5 '10 #2
Markus
6,050 Expert 4TB
Furthermore, check your server error logs, etc. for any helpful information on what caused the error.

Mark.
Jan 5 '10 #3
Hi, thanks for the response. I'm googling around and trying to find information on the CLI. From what I've read so far, it isn't for a web server. Also, I don't think I have access to the php.ini file. I have tried using set_time_limit function and passed it both 0 and 240, but to no avail. My error.log is giving me the 'Premature end of script headers:' error. If there are any more suggestions or questions, I'd appreciate it. I'm going to keep searching. Thanks!
Jan 5 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dan Gass | last post by:
The difflib.py module and the diff.py tools script in Python 2.4 alpha 3 now support generating side by side (with intra line differences) in HTML format. I have found this useful for performing...
9
by: spike | last post by:
I use this code to read number of characters from a file. The problem is: It only returns about 1500 chars. If i open the file in a text editor it contains almoust 3 million rows. Sure it must...
9
by: hari krishna | last post by:
hi, I want to send the data from dataset information to Excel through ASP.Net. there will be no XL installed on web server. web server is win 2000 server machine. I am using visual basic code in...
3
by: daniele.balducci | last post by:
Hi All, I'm generating XLS files from ASP(.Net) code using the usual code chunks ... Response.ContentType = "application/vnd.ms-excel" Response.AppendHeader("Content-Disposition", "attachment;...
1
by: Ryan Ginstrom | last post by:
I have been maintaining a body of documentation in plain HTML files. I would now like to automate the generation of the HTML files. Maintaining the HTML files now is tedious and error prone,...
8
by: | last post by:
The New York Times and many other online publications automatically generate "most popular article" lists that cover, say, the last 24 hours. I am looking for guidance and/or code on the best way...
7
by: Nathan Sokalski | last post by:
I am an ASP.NET developer, and Visual Studio 2005 seems to have stopped declaring the controls that I add in the *.designer.vb files, therefore forcing me to manually add them before I can use them...
1
by: Nathan Sokalski | last post by:
Visual Studio 2005 recently stopped generating the *.designer.vb files for my *.aspx and *.ascx files. I am using Service Pack 1, and do not believe I did anything differently than normal prior to...
20
MMcCarthy
by: MMcCarthy | last post by:
This problem was proposed to me but not really my area of expertise so I thought I would open it up to the forum to see if anyone had any bright ideas. The problem is generating Microsoft Word...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.