I want to create a script that will determine where in an array or
database to find information based on the name of the file. I have
the reference working, but it's giving me too much information.
<?
$f = __FILE__;
print $f
?>
gives me
/home/calador/public_html/wapolitics/counties/adams.php
All I want is "adams".
Any ideas?
Chad Lupkes
chadl...@earthlink.net
All your basename() are quite helpful in this instance...
For more information:
http://us4.php.net/manual/en/function.basename.php
--
-- Rudy Fleminger
-- s...@mmers.and.evil.ones.will.bow-down-to.us
(put "Hey!" in the Subject line for priority processing!)
-- http://www.pixelsaredead.com
>All your basename() are quite helpful in this instance...
All your basename() are belong to us...
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
I found that, and it helped. I just posted another question about arrays as
a follow up.
Thanks!
--
Chad Lupkes
chadl...@yahoo.com
http://www.seattlewebcrafters.com/
"FLEB" <soon....@mmers.and.evil.ones.will.bow-down-to.us> wrote in
message news:nppg75lyukcx$.1ajf08tautgw9$.dlg@40tude.net...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003
HAH. I was thinking the same thing! :)
>> All your basename() are belong to us...
>
> HAH. I was thinking the same thing! :)
Um... that was the pun :)
>>> All your basename() are belong to us...
>>
>> HAH. I was thinking the same thing! :)
>
>
>Um... that was the pun :)
Oops.<blush>