The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Help for echo function needed

Hi, Hello, i'm completely new to PHP and was trying to configure a simple script that is used to validate the existence of a link to my site, from a user inputted URL, kinda like a reciprocal link checker.

Currently, the code lists ALL the outgoing links on the user inputted URL. So how can i make the echo to not show all the links on that site? Instead of listing all the available links, how to create a hidden 'echo' or 'print' of some sort?

(I wanted to put the entire script here but Sitepoint doesnt allow links in the codes)

I want it to not display anything at all, but the echo "Link : "$.myval." " has to be there for the preg_match fucntion towards the end of the script to work. Thanks, i've been racking my brains trying solve it with php and even html, but no cigar. Thanks for the help.

Currently, the code lists ALL the outgoing links on the user inputted URL. So how can i make the echo to not show all the links on that site? Instead of listing all the available links, how to create a hidden 'echo' or 'print' of some sort?

(I wanted to put the entire script here but Sitepoint doesnt allow links in the codes)

I want it to not display anything at all, but the echo "Link : "$.myval." " has to be there for the preg_match fucntion towards the end of the script to work. Thanks, i've been racking my brains trying solve it with php and even html, but no cigar. Thanks for the help.

So you still want the $myval to be available, but don't want it to be echoed? Why can't you just use the $links array?

Paste the whole code here regardless of urls. If you can't post because of your limit, run a find/replace for the http and change it to something else temporarily.