User Profile

Collapse

Profile Sidebar

Collapse
Asterik
Asterik
Last Activity: Jun 17 '07, 06:37 AM
Joined: Jun 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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
    *************** *************** *************** ****/...
    See more | Go to post
    Last edited by Atli; Jun 18 '07, 12:41 AM. Reason: Added code tags

    Leave a comment:


  • Asterik
    started a topic How to convert your URL?
    in PHP

    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!
    See more | Go to post
No activity results to display
Show More
Working...