473,378 Members | 1,207 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,378 software developers and data experts.

sporadic execution

Ike
Can anyone tell me, offhand, why the following might work on some servers
and not others? I am certain it has somthing to do with a setting in
php.ini, just not sure what that setting is. One some servers, I see nothing
at all. Anyone have any ideas here? Thanks, Ike

<?php
set_time_limit(0);// to overcome maxexecution time
$sep = "ofaLlTherCrzyThInggsIhaveayeard";

$file = "./data.txt";
header("Content-Type: multipart/x-mixed-replace; boundary=$sep");
do {
print "Content-Type: text/plain\n\n";
readfile($file);
print "\n--$sep\n";
flush();
$mt = filemtime($file);
do {
sleep (1);
//we won't output the same data twice.
clearstatcache();
} while ($mt == filemtime($file));
} while (1);
?>
Mar 28 '06 #1
2 1101

Ike wrote:
Can anyone tell me, offhand, why the following might work on some servers
and not others? I am certain it has somthing to do with a setting in
php.ini, just not sure what that setting is. One some servers, I see nothing
at all. Anyone have any ideas here? Thanks, Ike

<?php
set_time_limit(0);// to overcome maxexecution time
$sep = "ofaLlTherCrzyThInggsIhaveayeard";

$file = "./data.txt";
header("Content-Type: multipart/x-mixed-replace; boundary=$sep");
do {
print "Content-Type: text/plain\n\n";
readfile($file);
print "\n--$sep\n";
flush();
$mt = filemtime($file);
do {
sleep (1);
//we won't output the same data twice.
clearstatcache();
} while ($mt == filemtime($file));
} while (1);
?>


Check that errors are either being displayed or logged to a file. Run
the page. See what the error (if any) is and let us know.

Mar 28 '06 #2
Ike

"ZeldorBlat" <ze********@gmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Check that errors are either being displayed or logged to a file. Run
the page. See what the error (if any) is and let us know.


Well, this is scary. I have error_reporting = E_ALL and am outputting to a
log file. But there are no errors. I can't understand how I can have no
errors and nothing displayed? -Ike
Mar 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bob Murdoch | last post by:
I'm receiving a sporadic error: "The remote procedure call failed and did not execute", when calling the following page: <%@ language="JavaScript" %> <% var vPath =...
0
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all...
0
by: Victor Alcazar | last post by:
Our ASP.NET (VB) is generating sporadic "Unable to validate data" and "Invalid length for a Base-64 char array" errors. The production environment is two Windows 2000 Advanced Servers in a web...
3
by: sameer | last post by:
Hi All, i have an asp.net application which has got sql server 2000 behind the scenes. Very simple application, all it does is extract the data from the databse and display it in the grid. But...
0
by: Petemo94 | last post by:
Folks, I am getting a "sporadic" exception that contains the following stack trace. I say sporadic b/c my DB connection usually works fine, but occasionally it fails. *** I also noted that...
2
by: Ina Schmitz | last post by:
Hi NG, does IBM Universal Database 8.2 make any difference between actual and estimated execution plans like in SQL Server ("set showplan_all on" for estimated execution plan and "set statistics...
3
by: christopher.davidson | last post by:
Hello, I am working with XML files and utilizing Array functions to take the XML data and combined it with some html code to display a particular page. The process currently works like so: ...
0
by: botch | last post by:
Hi! I'm trying to get some help implementing a classic ASP version of the Google API search (http://www.google.com/apis/). I've got a version that works, but it's very sporadic. Sometimes it works,...
3
by: Michel Couche | last post by:
Hello, I have an ASP.Net application that uses the Wizard control to build a newsletter. There are three steps in the wizard. The customer's specific design data are loaded from a database in...
3
by: Daniel Rindt | last post by:
Hello List, i hope to find an answer here, my problem is that my Webserver sporadic offers php scripts for download. I search with google and find some issues belonging to php version 4.x and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.