séparer un url.. - PHP - Programmation
Marsh Posté le 01-05-2003 à 20:22:04
si par example g l'url : ftp://ftp.host.com/chemin/acces/fichier.zip pour le séparer j'utilise parse_url[$host] pour sortir ftp.host.com, et parse_url[$path] pour sortir /chemin/acces/fichier.zip Mais comment faire pour sortir seulement /chemin/acces/ et fichier.zip dans 2 variable différentes ? peut on séparer /chemin/acces/fichier.zip en 2 variables ?
Marsh Posté le 01-05-2003 à 20:27:11
recherche sur http://www.nexen.net basename(); dirname();
Make sure you enter the(*)required information where indicate.HTML code is not allowed
Marsh Posté le 01-05-2003 à 20:22:04
si par example g l'url :
ftp://ftp.host.com/chemin/acces/fichier.zip
pour le séparer j'utilise parse_url[$host] pour sortir ftp.host.com, et parse_url[$path] pour sortir /chemin/acces/fichier.zip
Mais comment faire pour sortir seulement /chemin/acces/
et fichier.zip dans 2 variable différentes ?
peut on séparer /chemin/acces/fichier.zip en 2 variables ?