![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jun 2001
Location: inside my brain
Posts: 2,035
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
Quote:
"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" |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jun 2001
Location: inside my brain
Posts: 2,035
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jun 2001
Location: inside my brain
Posts: 2,035
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jun 2001
Location: inside my brain
Posts: 2,035
|
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>
__________________
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jan 2003
Location: 2006
Posts: 8,584
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |