Page 1 of 1

validation of link added

Posted: Fri May 03, 2002 9:41 pm
by FlasherJau
Hi all,

Any assistance on this would be appreciated.


Being a Newbie, I am still only running other people's scripts.
I have though learnt a few things over the past 2 mths & at least now am able to find my way around php as a language.

In essence I require a script, that would check that my text link had been added to a webmaster site ( there index page ) before their link was written to my links page.

Would you happen to know anywhere where I could get this type of script, or any reference to implementing something like this?

Please keep it simple :)

Thanks

FlasherJau

Posted: Fri May 03, 2002 9:56 pm
by jason
Okay...let me give you an overview of what you would need to do.

1. Read in the url, using the fopen() and fread() functions.

2. Read the whole website page into a PHP variable.

3. You could then do a simply stristr() search on the string to see if a certain link was present.

That should be all you need to do.

You can read about those functions in the PHP Manual.

Also, please fix your email address.
<********@yahoo.com>:
64.157.4.89 failed after I sent the message.
Remote host said: 554 delivery error: dd This user doesn't have a yahoo.com account (********@yahoo.com) - mta607.mail.yahoo.com

Posted: Fri May 03, 2002 9:58 pm
by FlasherJau
Jason,

Thanks for your help on this.

FlasherJau

:)
oops email fixed