####################################################
function to get the extenstion of a file
####################################################
function getFilenameExtension($fname){
$extension = explode('.', $fname);
//returning the extension of the files
return $extension[sizeof($extension)-1];
}
?>
#####################################################
Example
#####################################################
echo getFilenameExtension("filedbconection.inc.php");
?>
######################################################
Answer :php
######################################################
[Wednesday, November 21, 2007
|
0
comments
]
Popular Posts
- MySQL stored procedure&triggers
- php questions
- Php Questions
- How we canmove into last changed position on info window close event On google map
- Pattern Matching in mysql
- MySQL INDEX
- MYSQL joins
- Jquery based dynamic adding and removal of html elements.
- securing a form with captcha
- Comparing a date with current date
0 comments
Post a Comment
Please put your comments here. your questions, your suggestions, also what went wrong with me.