validation of link added

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
FlasherJau
Forum Newbie
Posts: 4
Joined: Fri May 03, 2002 9:41 pm

validation of link added

Post 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
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post 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
Last edited by jason on Fri May 03, 2002 9:58 pm, edited 1 time in total.
FlasherJau
Forum Newbie
Posts: 4
Joined: Fri May 03, 2002 9:41 pm

Post by FlasherJau »

Jason,

Thanks for your help on this.

FlasherJau

:)
oops email fixed
Post Reply