Recherche sur les Noms des fonctions php/mysql
fputs()
Définition
Alias de fwrite() - (PHP 4, PHP 5)Description
Cette fonction est un alias de : fwrite().
Bouts de code utilisant la fonction fputs()
<?php /* ... */
// On obient les données du serveur
fputs($fp,"GET /7 HTTP/1.1\nUser-Agent:Mozilla\n\n");
// Sortie au cas où il y a plus de connection
/* ... */ ?>
<?php /* ... */
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla/4.0\r\n\r\n");
while(!feof($fp))
/* ... */ ?>
<?php /* ... */
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla/4.0\r\n\r\n");
while(!feof($fp))
/* ... */ ?>
<?php /* ... */
$fp=fopen("$rep/$fichier.txt","w"); // quand on crée le fichier
fputs($fp,"0"); // on l'initialise à zéro clic
fclose($fp); }
/* ... */ ?>
<?php /* ... */
$fp=fopen("$rep/$fichier.txt","a+"); // à chaque recommandation
fputs($fp,$mail1."\n"); // et on ecrit les nouveaux emails...
fputs($fp,$mail2."\n"); // et on ecrit les nouveaux emails...
/* ... */ ?>
Connexion
Les fonctions
Références
- basename
- chgrp
- chmod
- chown
- clearstatcache
- copy
- delete
- dirname
- disk_free_space
- disk_total_space
- diskfreespace
- fclose
- feof
- fflush
- fgetc
- fgetcsv
- fgets
- fgetss
- file_exists
- file_get_contents
- file_put_contents
- file
- fileatime
- filectime
- filegroup
- fileinode
- filemtime
- fileowner
- fileperms
- filesize
- filetype
- flock
- fnmatch
- fopen
- fpassthru
- fputcsv
- fputs
- fread
- fscanf
- fseek
- fstat
- ftell
- ftruncate
- fwrite
- glob
- is_dir
- is_executable
- is_file
- is_link
- is_readable
- is_uploaded_file
- is_writable
- is_writeable
- lchgrp
- lchown
- link
- linkinfo
- lstat
- mkdir
- move_uploaded_file
- parse_ini_file
- pathinfo
- pclose
- popen
- readfile
- readlink
- realpath
- rename
- rewind
- rmdir
- set_file_buffer
- stat
- symlink
- tempnam
- tmpfile
- touch
- umask
- unlink





