login pwd dans une url

login pwd dans une url - PHP - Programmation

Marsh Posté le 09-07-2004 à 11:36:34    

bonjour,  
 
je souhaiterai pouvoir récuperer le contenu d'un fichier mais je dois donné mon login et pwd:
http://login:pwd@www.toto.com/toto.html
 :pt1cable:  
ensuite je stocke le fichier de la manière suivante
$somecontent= implode ('', file ("http://login:pwd@www.toto.com/toto.html" ));
ensuite j'aimerai traité le $somecontent.
 
ca marche tres bien du moment ou je n'ai pas besoin de rentré un login et un pwd
 
et j'ai un beau warning, mais pas d'erreur ????
 
 :??:  
 
merci d'avance  :jap:

Reply

Marsh Posté le 09-07-2004 à 11:36:34   

Reply

Marsh Posté le 09-07-2004 à 13:06:14    

le warning aiderait :)

Reply

Marsh Posté le 09-07-2004 à 13:30:17    

+1 à DeirElBahri
c'est quoi le warning ???


---------------
- Xav - ...There are no crimes when there are no laws... -- Xav's World
Reply

Marsh Posté le 09-07-2004 à 14:36:07    

Warning: file("http://...@www.toto.com/toto.html" ) - No error in c:\www\stats_rain.php on line 7
 
Warning: Bad arguments to implode() in c:\www\stats_rain.php on line 7
 
vous comprendrez que je remplace l'url par toto désolé

Reply

Marsh Posté le 09-07-2004 à 14:39:01    

http://ch.php.net/implode
 
c'est pas explode que tu as besoin (je veux pas ce que tu veux faire...)
http://ch.php.net/manual/en/function.explode.php
 
sinon, regarde les param d'entrée (pourquoi file() ?)


---------------
What if I were smiling and running into your arms? Would you see then what I see now?  
Reply

Marsh Posté le 09-07-2004 à 14:40:49    

ben apparement tu renseigne mal un des arguments de la fonction implode()...
Tu es allé voir la syntaxe exact sur un truc comme http://fr.php.net/implode ???


---------------
- Xav - ...There are no crimes when there are no laws... -- Xav's World
Reply

Marsh Posté le 09-07-2004 à 14:41:25    

oups, j'ai pas été assez rapide... Bin joué Jaq ;)


Message édité par Xav_ le 09-07-2004 à 14:41:33

---------------
- Xav - ...There are no crimes when there are no laws... -- Xav's World
Reply

Marsh Posté le 09-07-2004 à 14:42:27    

JaG :o
 
et oui t'es [:benou_grilled]


---------------
What if I were smiling and running into your arms? Would you see then what I see now?  
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed