IP archiver
Moderator: General Moderators
Code: Select all
set_time_limit (0);
while (true)
{
// open socket, write http1 get /whatever, don't wait for output and run
// file_get_contents() would require us to download the whole returned page
}timvw wrote:Code: Select all
set_time_limit (0); while (true) { // open socket, write http1 get /whatever, don't wait for output and run // file_get_contents() would require us to download the whole returned page }
hehe...
the most fun is when you find someone using urls like
index.php?page=page2.php
i just change the url to
index.php?page=index.php
and laugh until the page gets so big my browser crashes
http://www.php.net/fopen
'w' Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
and then do the regular stuff........
'w' Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
and then do the regular stuff........