![]() |
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 |
btw im calling it within an html file
|
If it prints the result, include it with an SSI include. Or make it a php file and use (? include (""); ?)
:) of course sub ( for < |
:helpme
|
Quote:
[a href="[? include(your_script.php) ?]"> Random Site [/a] replace [ with <, and ] with > |
Quote:
i see htp://domain.com/[? include(random.php) ?] |
someone said this would help if i add this to my htaccess
didnt help, but ... AddType application/x-httpd-php .html |
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. |
Quote:
|
Quote:
!-- begin xit code function xit() { open("[?include"random.php";?]","_blank"); } // end xit code -- |
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 ;) |
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 |
if you use an include, your file extension has to be .shtml... otherwise you need to set up your html files to handle php.
|
Quote:
Quote:
|
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 :/ |
why dont you do it in java?
I have a script for you wich does that. ( free ofcourse ) |
Quote:
[email protected] thanks! |
all your trying to do is call a php file from a shtml file?
|
if so:
PHP Code:
|
by the way, thats not php above... just put it directly into your html.
|
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" --> |
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?
|
All times are GMT -7. The time now is 04:42 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123