Jump to content

Archived

This topic is now archived and is closed to further replies.

cursed

Newbie question..... is this possible?

Recommended Posts

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]

Share this post


Link to post
Share on other sites
what?

what is this for what are you trying to do and maybe theres another way lol sorry.

Share this post


Link to post
Share on other sites
do you mean hoe to use include on php websites to show what on another page.

include("http://whatever.com/file.php");

Share this post


Link to post
Share on other sites
[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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
wow thanks!
but after the _GET, what do i  do if i want to see if another website has the affilatecode?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.