You can use the URI validator:
https://github.com/zendframework/zf2/blob/master/library/Zend/Validator/Uri.php

It will only validate that the URL that is provided is well-formed. If you
need to check if the page exists, you will need to implement your own
validator that verifies the response headers for an http request against
that URL.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 26 April 2013 13:08, wangjiehui [via Zend Framework Community] <
[email protected]> wrote:

> Dear All,
>
> I'm think of design a webpage,which contain form, and there's a form
> element, that I want it to validate a  backlink in another site, (to check
> whether my site url exist or not in other people's website). I see a lot of
> form helpers,but there's no such a helper to validate backlink.
>
> By the way, I'm learning Zend framework 2.0.
>
> Thank you in advance.
>
> Best wishes !
> Jeff
>
>
>
>  Lampk
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://zend-framework-community.634137.n4.nabble.com/How-to-Validate-Backlink-tp4659841.html
>  To start a new topic under Zend Framework, email
> [email protected]
> To unsubscribe from Zend Framework Community, click 
> here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4>
> .
> NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/How-to-Validate-Backlink-tp4659841p4659859.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to