----- Original Message ----- From: <[EMAIL PROTECTED]> > Hi Bob, > Below is the additional code for php version 4.x.x compatibility. > > The $_SERVER[REMOTE_PORT] was just a curiosity thing. > > Thanks, Rob. > > file_put_contnets for php < 5.x.x > > <?php > if ( !function_exists('file_put_contents') && !defined('FILE_APPEND') ) > { > define('FILE_APPEND', 1); > function file_put_contents($n, $d, $flag = false) > { > $mode = ($flag == FILE_APPEND || strtoupper($flag) == 'FILE_APPEND') ? > 'a' : 'w'; > $f = @fopen($n, $mode); > if ($f === false) > { > return 0; > } > else > { > if (is_array($d)) > { > $d = implode($d); > } > $bytes_written = fwrite($f, $d); > fclose($f); > return $bytes_written; > } > } > } > ?>
Hi Rob, Thanks very much for your help. I'm going to have to work though it at a later date. I'm just managing to check my email daily, and that's it at the moment. I transfer replies to my colour coded editor, then print them out for reference. I have noticed on your past posts that you have some interesting techniques also, which I have saved. Thanks again. Regards, Bob E. ------------------------------------ Please remember to write your response BELOW the previous text. Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-listYahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/php-list/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/