[pmwiki-devel] [pmwiki-users] Newsletter throttling
Crisses
crisses at kinhost.org
Fri Nov 3 08:20:16 CST 2006
On Nov 2, 2006, at 6:31 PM, The Editor wrote:
> I tried this alternate approach to getting background php processing,
> but no luck. The page loads without any delay, but no file write.
> Any suggestions?
>
> Markup('zapnews', 'inline', '/\(:zapnews:\\)/', Keep('<img
> src=http://localhost/zap/pub/sendnews.php border=20>'));
I would think you want border=0
> And then in sendnews.php:
>
> <?php
> function sendGIF(){
> $img = base64_decode('R0lGODlhAQABAIAAAAAAAP///
> yH5BAEAAAEALAAAAAABAAEAAAIBTAA7');
> header('Content-Type: image/gif');
> header('Content-Length: '.strlen($img));
> header('Connection: Close');
> print $img;
> }
What is sendGIF trying to do?
> ob_implicit_flush(TRUE);
> @ignore_user_abort(true);
> sendGIF();
> ob_implicit_flush(FALSE);
> ob_start();
> sleep(5);
> $newspage = fopen("http://localhost/zap/news/test.txt", "wb")){
the extra ){ at the end looks like a typo.
> fwrite($newspage,"Hello World");
> fclose($newspage);
> die();
You can read an HTML page, but you can't write to an HTML page --
write to a file on the system:
$newspage = fopen("/path/to/website/zap/news/test.txt", "wb");
That might work....
Crisses
More information about the pmwiki-devel
mailing list