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 02-22-2004, 11:06 PM   #1
lil2rich4u2
ICQ: 175171926
 
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
php guys have a sec?

i have a script which generates a random link.

how do i insert this into a txt link? I dont know how to call it in a url

random.php

[a href="random.php">click here for random site"[/a]

thanks
__________________
HEY!!

Unbeatable hosting! Customer service is top notch!

--> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
lil2rich4u2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:09 PM   #2
lil2rich4u2
ICQ: 175171926
 
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
btw im calling it within an html file
__________________
HEY!!

Unbeatable hosting! Customer service is top notch!

--> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
lil2rich4u2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:10 PM   #3
Brad Xtremepay
So Fucking Banned
 
Join Date: Dec 2003
Location: Canada
Posts: 2,000
If it prints the result, include it with an SSI include. Or make it a php file and use (? include (""); ?)



of course sub ( for <
Brad Xtremepay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:11 PM   #4
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:25 PM   #5
Myst
Confirmed User
 
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
Quote:
Originally posted by lil2rich4u2
i have a script which generates a random link.

how do i insert this into a txt link? I dont know how to call it in a url

random.php

[a href="random.php">click here for random site"[/a]

thanks
assuming that the script spits out a link, this is all you have to do
[a href="[? include(your_script.php) ?]"> Random Site [/a]

replace [ with <, and ] with >
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:33 PM   #6
lil2rich4u2
ICQ: 175171926
 
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
Quote:
Originally posted by Myst


assuming that the script spits out a link, this is all you have to do
[a href="[? include(your_script.php) ?]"> Random Site [/a]

replace [ with <, and ] with >
when i do this i see the actual code to call the link

i see

htp://domain.com/[? include(random.php) ?]
__________________
HEY!!

Unbeatable hosting! Customer service is top notch!

--> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
lil2rich4u2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:34 PM   #7
lil2rich4u2
ICQ: 175171926
 
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
someone said this would help if i add this to my htaccess

didnt help, but ...

AddType application/x-httpd-php .html
__________________
HEY!!

Unbeatable hosting! Customer service is top notch!

--> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
lil2rich4u2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:36 PM   #8
Brad Xtremepay
So Fucking Banned
 
Join Date: Dec 2003
Location: Canada
Posts: 2,000
Might help if we saw the code
Otherwise it's like asking a mechanic to fix your car.
But the car is 8 towns away and has no tires at the moment.
Brad Xtremepay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:37 PM   #9
Rorschach
So Fucking Banned
 
Join Date: Aug 2002
Posts: 5,579
Quote:
Originally posted by lil2rich4u2
someone said this would help if i add this to my htaccess

didnt help, but ...

AddType application/x-httpd-php .html
Is the page you're calling it from .htm? In which case you'd have to add .htm to the line above in your .htaccess. And does random.php actually return a url?
Rorschach is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:39 PM   #10
lil2rich4u2
ICQ: 175171926
 
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
Quote:
Originally posted by Brad Xtremepay
Might help if we saw the code
Otherwise it's like asking a mechanic to fix your car.
But the car is 8 towns away and has no tires at the moment.
the code works when i call it for a popup like this ...

!-- begin xit code
function xit()
{
open("[?include"random.php";?]","_blank");
}
// end xit code --
__________________
HEY!!

Unbeatable hosting! Customer service is top notch!

--> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
lil2rich4u2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2004, 11:41 PM   #11
Brad Xtremepay
So Fucking Banned
 
Join Date: Dec 2003
Location: Canada
Posts: 2,000
The best way to fix this is copy/paste your entire html file
make a .php file
insert php code as seen in Myst's post.

Solved ;)
Brad Xtremepay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 03:57 AM   #12
lil2rich4u2
ICQ: 175171926
 
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
Quote:
Originally posted by Brad Xtremepay
The best way to fix this is copy/paste your entire html file
make a .php file
insert php code as seen in Myst's post.

Solved ;)
cant do that, its a .shtml page and people are sending to the full url

:/

i also tried changing that line in htaccess, it did bad things lol

when i went to my site, it asked if i wanted to download my entire site haha
__________________
HEY!!

Unbeatable hosting! Customer service is top notch!

--> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
lil2rich4u2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 03:59 AM   #13
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
if you use an include, your file extension has to be .shtml... otherwise you need to set up your html files to handle php.
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 04:00 AM   #14
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Quote:
Originally posted by lil2rich4u2
btw im calling it within an html file
Quote:
cant do that, its a .shtml page and people are sending to the full url
make up your mind.
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 04:03 AM   #15
lil2rich4u2
ICQ: 175171926
 
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
Quote:
Originally posted by Alky


make up your mind.
sorry, i just meant it wasnt a php file.

so you saying i can use an include to do this?

i tried the ones listed above and it didnt work, any other ways?

i did this same thing once a long time ago .... we had the script called in the HEAD and set into a variable, then used the variable in the url

does that make any sense? I cant find the page though

:/
__________________
HEY!!

Unbeatable hosting! Customer service is top notch!

--> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
lil2rich4u2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 04:08 AM   #16
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
why dont you do it in java?
I have a script for you wich does that. ( free ofcourse )
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 04:17 AM   #17
lil2rich4u2
ICQ: 175171926
 
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
Quote:
Originally posted by grumpy
why dont you do it in java?
I have a script for you wich does that. ( free ofcourse )
can you email it?

[email protected]

thanks!
__________________
HEY!!

Unbeatable hosting! Customer service is top notch!

--> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
lil2rich4u2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 04:29 AM   #18
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
all your trying to do is call a php file from a shtml file?
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 04:30 AM   #19
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
if so:
PHP Code:
<!--#include file="file.php" --> 
should work
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 04:31 AM   #20
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
by the way, thats not php above... just put it directly into your html.
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 04:56 AM   #21
Stramm
Confirmed User
 
Join Date: Jan 2003
Location: NL
Posts: 342
yup, try what Alky said.. this works. You can't parse html for php and ssi. So you need to decide for one. I guess your trade script already uses SSI so go for that.

if the random.php is in the same dir as your shtml then use Alky's code...

if not
<!--#include virtual="/htdocs/somepath/random.php" -->
Stramm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2004, 10:37 AM   #22
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Lil2rich4u2 never paid his programmer the pathetic $10 plus a hardcoded link he asked for that script. It's a script that sends an equal amount of traffic to the URLs of a flatfile database. Drama?
Repetitive Monkey 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.