login  Naam:   Wachtwoord: 
Registreer je!
 Forum

volgende errors

Offline omerdian - 30/11/2005 14:50 (laatste wijziging 30/11/2005 14:51)
Avatar van omerdianHTML interesse Warning: fopen(errors.php): failed to open stream: Permission denied in /home/sintpiet/public_html/lid/functions.php on line 30

Warning: func_get_arg(): Argument 2 not passed to function in /home/sintpiet/public_html/lid/functions.php on line 32

Warning: fputs(): supplied argument is not a valid stream resource in /home/sintpiet/public_html/lid/functions.php on line 38

Warning: fclose(): supplied argument is not a valid stream resource in /home/sintpiet/public_html/lid/functions.php on line 40
  1. <?php
  2. if(!function_exists('file_put_contents'))
  3. {
  4. function file_put_contents( $sFileName, $sContents )
  5. {
  6. if(!file_exists( $sFileName ))
  7. { // File does not exists
  8. trigger_error( 'file_put_contents(): file does not exists', E_USER_WARNING); // Return an error
  9. return FALSE; // And a FALSE boolean
  10. }
  11. else
  12. {
  13. $rOpenFile = fopen( $sFileName, 'r+' ); // Open the file
  14.  
  15. if(func_get_arg(2) != '')
  16. {
  17. fputs( $rOpenFile, substr($sContents , 1, (int) func_get_arg(2))); // Put the contents
  18. }
  19. else
  20. {
  21. fputs( $rOpenFile, $sContents );
  22. }
  23. fclose( $rOpenFile ); // Close the file
  24. return TRUE; // Return a TRUE boolean
  25. }
  26. }
  27. } ?>

0 antwoorden

Gesponsorde links
Er zijn nog geen reacties op dit bericht.
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2025 Sitemasters.be - Regels - Laadtijd: 0.175s