Re: [PHP] A simple instruction

2004-01-01 Thread Justin French
On Friday, January 2, 2004, at 09:30 AM, Dino Costantini wrote: i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case "margherita.php" i know there is a function, but i don't remember it. thx ... will echo something like... food

Re: [PHP] A simple instruction

2004-01-01 Thread Mike Migurski
>i have a file name with the path ex food/italy/pizza/margherita.php. how >can i obtain the name of the file in this case "margherita.php" i know >there is a function, but i don't remember it. basename(__FILE__) may work. - micha

Re: [PHP] A simple instruction

2004-01-01 Thread John W. Holmes
Dino Costantini wrote: i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case "margherita.php" i know there is a function, but i don't remember it. basename() -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84

Re: [PHP] A simple instruction

2004-01-01 Thread Philip J. Newman
echo"$PHP_SELF"; maybe? - Original Message - From: "Dino Costantini" <> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 02, 2004 11:30 AM Subject: [PHP] A simple instruction i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name

Re: [PHP] A simple instruction

2004-01-01 Thread Leif K-Brooks
Dino Costantini wrote: i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case "margherita.php" i know there is a function, but i don't remember it. $_SERVER['PHP_SELF'] -- PHP General Mailing List (http://www.php.net/) To unsubscri