cursed Posted August 27, 2006 Share Posted August 27, 2006 Is this possible?If a script is on a page, then it will show [hr]echo "Hello World"; [hr]on another website.If a script isn't on the page, then it will change another website into this: [hr]echo "You need the script"; [hr] Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 27, 2006 Share Posted August 27, 2006 what?what is this for what are you trying to do and maybe theres another way lol sorry. Quote Link to comment Share on other sites More sharing options...
cursed Posted August 28, 2006 Author Share Posted August 28, 2006 so this isnt possible? Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 28, 2006 Share Posted August 28, 2006 do you mean hoe to use include on php websites to show what on another page.include("http://whatever.com/file.php"); Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 28, 2006 Share Posted August 28, 2006 [quote author=cursed link=topic=105864.msg423083#msg423083 date=1156726760]so this isnt possible?[/quote]Well, it's hard to tell if it's possible or not As suggested, we need to know more about this. I don't understand what it is you're contemplating, so a more informative example would help. Quote Link to comment Share on other sites More sharing options...
cursed Posted August 28, 2006 Author Share Posted August 28, 2006 ok... an example of where this script may be used is:you post an affilate code on ur website so the main website is shown. If the affilate code ISNT there, some special AFFILATORS only place wouldnt be shown.If the affilate code IS there, then some special AFFILATORS only place WILL be shown.Hope this makes more sense.Edit: I will need the include, but thats for some other part of the script that i dont need help on.I just need help on showing/not showing some text. Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted August 28, 2006 Share Posted August 28, 2006 Use an if statement....[code]if ($_GET['affcode'] && is_numeric($_GET['affcode']) { echo 'Welcome Affiliate!!';} else { echo 'Welcome Guest';}[/code]Simplistic, but you get the point.Here's a tutorial on creating a membership system:http://www.phpfreaks.com/tutorials/40/0.php Quote Link to comment Share on other sites More sharing options...
cursed Posted August 28, 2006 Author Share Posted August 28, 2006 wow thanks!but after the _GET, what do i do if i want to see if another website has the affilatecode? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.