question about an echo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfy
    Confirmed User
    • Dec 2003
    • 3574

    #1

    question about an echo

    Good Morning GFY!

    I need to do a search and replace acoss a ton of files, and what I want to do is echo the individual file name in the <title>(echo file name)</title>... Anybody know how to do this?
  • tolik
    Confirmed User
    • Jun 2001
    • 2035

    #2
    morning.... 6:16 pm - unfuckable morning, should i note

    http://bignosebird.com/sdocs/echo.shtml

    set handler for parse html as shtml if you need .html files

    bet, i know what you planning to do ;)
    LONGBUCKS-Teen, Mature, Reality, Gay sites.
    Free hosting (cgi/php/mysql/cron etc). FHGs. Free content.Great rebills. Support icq - 313-882-945


    Webmaster friendly high recommended programs to promote (personal experience):
    RoyalCash-Teen ProfitX -Video SmokinCash-Amateur,Lesbo,Squirting

    Comment

    • Wolfy
      Confirmed User
      • Dec 2003
      • 3574

      #3
      Originally posted by tolik
      morning.... 6:16 pm - unfuckable morning, should i note

      http://bignosebird.com/sdocs/echo.shtml

      set handler for parse html as shtml if you need .html files

      bet, i know what you planning to do ;)
      Cool stuff on that page, but if my answer was there I didn't see it. I saw where I could echo the url of the document, but then my title would be
      "http://www.bliggityblah.com/folder-name/category-name/page-name.php plus a few other items" ....

      That ends up bieng too long. I need to only echo
      "file-name.php"

      Comment

      • tolik
        Confirmed User
        • Jun 2001
        • 2035

        #4
        i dont see where your problem


        <!--#echo var="REQUEST_URI"-->

        but it be display /file-name.php

        from other side - if you using php pages - read env REQUEST_URI remove / and print between <title></title>
        LONGBUCKS-Teen, Mature, Reality, Gay sites.
        Free hosting (cgi/php/mysql/cron etc). FHGs. Free content.Great rebills. Support icq - 313-882-945


        Webmaster friendly high recommended programs to promote (personal experience):
        RoyalCash-Teen ProfitX -Video SmokinCash-Amateur,Lesbo,Squirting

        Comment

        • tolik
          Confirmed User
          • Jun 2001
          • 2035

          #5
          ops, forgot - it be show path from domain root - not only file - /folder-name/category-name/page-name.php

          but split this in php by /
          LONGBUCKS-Teen, Mature, Reality, Gay sites.
          Free hosting (cgi/php/mysql/cron etc). FHGs. Free content.Great rebills. Support icq - 313-882-945


          Webmaster friendly high recommended programs to promote (personal experience):
          RoyalCash-Teen ProfitX -Video SmokinCash-Amateur,Lesbo,Squirting

          Comment

          • Wolfy
            Confirmed User
            • Dec 2003
            • 3574

            #6
            Tolik, thanks for the help - have you seen "Finding Nemo"? There's one part, where the fish are getting ready to exit the East Australian Current, and the little turtle is giving instructions, and at the end of the speech the clown fish, with a bewildered look on his face, exclaims - "It's like he's trying to speak to me, I know it!!!"


            I'm trying to say I just don't get what you are saying

            As I am doing a find/replace, I need to do find this
            <title>
            And replace with
            <title>(tell me this code please!)

            I am leaving out the close title tag because some of the pages have a few key words in them already, so the end result will be <title>page-name.php original text</title>.

            And yes, it is for php, if that matters in this instance.

            Comment

            • tolik
              Confirmed User
              • Jun 2001
              • 2035

              #7
              i not familar with php - only perl scripts

              how it should be - any php related person do it in minute

              $q=getenv("REQUEST_URI");

              and after this - split by / to hash
              last element in hash - your file name. just print it between <title>$filename your text</title>
              Last edited by tolik; 01-04-2005, 07:51 AM.
              LONGBUCKS-Teen, Mature, Reality, Gay sites.
              Free hosting (cgi/php/mysql/cron etc). FHGs. Free content.Great rebills. Support icq - 313-882-945


              Webmaster friendly high recommended programs to promote (personal experience):
              RoyalCash-Teen ProfitX -Video SmokinCash-Amateur,Lesbo,Squirting

              Comment

              • Wolfy
                Confirmed User
                • Dec 2003
                • 3574

                #8
                All right, thanks for your help. I'm sure what you are telling me will work, but it's skipping past a few things that aren't clicking in my brain for some reason, I probably just worked too late yesterday. I'll figure it out.

                Comment

                • TheMob
                  Confirmed User
                  • Jan 2003
                  • 8584

                  #9
                  go to php's site..

                  simple

                  http://php.net/echo

                  Comment

                  Working...