What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP File Indexer

PHP File Indexer
Author: Message:
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
39 / Male / Flag
Joined: Aug 2004
Status: Away
RE: PHP File Indexer
You can use the output buffer functions. :o

Just before the while(), put ob_start() and in the end of the loop, put $tofile = ob_get_contents();

And that goes to the file. You know, fopen() and fwrite()?

:P I'm feeling lazy, sorry.

code:
ob_start();
// while loop
$text = ob_get_contents();
$op = fopen($file,'w'); // or 'a' if you want to append it
fwrite($op, $text);
fclose($op);


I find that easier than putting variables all over the place.

This post was edited on 03-01-2005 at 12:49 AM by L. Coyote.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

03-01-2005 12:45 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP File Indexer - by DJeX on 03-01-2005 at 12:42 AM
RE: PHP File Indexer - by L. Coyote on 03-01-2005 at 12:45 AM
RE: PHP File Indexer - by TheBlasphemer on 03-01-2005 at 12:55 AM
RE: PHP File Indexer - by DJeX on 03-01-2005 at 01:04 AM
RE: PHP File Indexer - by TheBlasphemer on 03-01-2005 at 01:07 AM
RE: PHP File Indexer - by DJeX on 03-01-2005 at 01:08 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On