One way I use is:
[code=php]
$allowed = array(".jpg", ".gif");
if(in_array(get FileExt())) ....
[/code]
and here's getFileExt() function:
[code=php]
function getFileExt($fil efield) {
/*************** *************** *************** *****
$pos: return the position of "." in file name
$filefield: name of your file upload file
*************** *************** *************** ****/...
User Profile
Collapse
-
-
How to convert your URL?
Please help me! Did anyone know how to convert URL?
My website have some URL like this:
"http://mydomain.com/viewsub.php?art ist=Asterik&sub =214"...
and I would like to convert it to:
"http://mydomain.com/Asterik/submission/214"
Is there anyone who know this, please help me!
No activity results to display
Show More
Leave a comment: