1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I want to read out the Path of the current Html Page and save it into a variable $path .
    i.e. the url is http://www.jazzine.com/artists/index.phtml
    $path should be /artists/ .
    How can I do it?
    Please I NEED HELP urgent, send me answers to webmaster@jazzine.com.

    Thanks a lot

    Felix Lamouroux
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    well $REQUEST_URL brings back the full directory including the .html so

    print "[$REQUEST_URL]";

    should print out



Similar Threads

  1. Reading a variable from a url
    By Chaz in forum PHP Development
    Replies: 9
    Last Post: February 10th, 2004, 06:12 AM
  2. Javascript reading URL data
    By webkrawlerr in forum JavaScript Development
    Replies: 1
    Last Post: December 19th, 2003, 08:09 AM
  3. Odd problem with a hash and foreach loop
    By quantumechanix in forum Perl Programming
    Replies: 7
    Last Post: December 15th, 2003, 05:06 PM

IMN logo majestic logo threadwatch logo seochat tools logo