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
>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
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
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
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
5 matches
Mail list logo