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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-04-2005, 09:11 AM   #1
Wolfy
Confirmed User
 
Wolfy's Avatar
 
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?
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 09:17 AM   #2
tolik
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
tolik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 09:28 AM   #3
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Quote:
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"
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 09:37 AM   #4
tolik
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
tolik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 09:42 AM   #5
tolik
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
tolik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 09:44 AM   #6
Wolfy
Confirmed User
 
Wolfy's Avatar
 
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.
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 09:50 AM   #7
tolik
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

Last edited by tolik; 01-04-2005 at 09:51 AM..
tolik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 09:58 AM   #8
Wolfy
Confirmed User
 
Wolfy's Avatar
 
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.
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 11:39 AM   #9
TheMob
Confirmed User
 
Join Date: Jan 2003
Location: 2006
Posts: 8,584
go to php's site..

simple

http://php.net/echo
TheMob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.