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] Link to comment https://forums.phpfreaks.com/topic/18842-newbie-question-is-this-possible/ 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. Link to comment https://forums.phpfreaks.com/topic/18842-newbie-question-is-this-possible/#findComment-81342 Share on other sites More sharing options...
cursed Posted August 28, 2006 Author Share Posted August 28, 2006 so this isnt possible? Link to comment https://forums.phpfreaks.com/topic/18842-newbie-question-is-this-possible/#findComment-81384 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"); Link to comment https://forums.phpfreaks.com/topic/18842-newbie-question-is-this-possible/#findComment-81387 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. Link to comment https://forums.phpfreaks.com/topic/18842-newbie-question-is-this-possible/#findComment-81388 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. Link to comment https://forums.phpfreaks.com/topic/18842-newbie-question-is-this-possible/#findComment-81390 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 Link to comment https://forums.phpfreaks.com/topic/18842-newbie-question-is-this-possible/#findComment-81394 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? Link to comment https://forums.phpfreaks.com/topic/18842-newbie-question-is-this-possible/#findComment-81398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.