![]() |
![]() |
![]() |
||||
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 |
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!! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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!! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 < |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
|
Quote:
[a href="[? include(your_script.php) ?]"> Random Site [/a] replace [ with <, and ] with > |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
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!! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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!! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
So Fucking Banned
Join Date: Aug 2002
Posts: 5,579
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
!-- 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!! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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 ;) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
:/ 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!! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | ||
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
Quote:
Quote:
|
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
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!! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
[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!! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
all your trying to do is call a php file from a shtml file?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
if so:
PHP Code:
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
by the way, thats not php above... just put it directly into your html.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
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" --> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |