5 Reputation Points
Ranked #3K
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #72.8K
2 Posted Topics
Re: URL Validation
<?php $websiteUrl = $_REQUEST['url']; if (!preg_match("#^http(s)?://[a-z0-9-_.]+\.[a-z]{2,4}#i",$websiteUrl)) { echo "wrong url"; } else { echo "ok"; } ?> Check this one. This is perfect.
You can set directive in php.ini file to close the session when closed the browser session.cookie_lifetime = 0;
The End.
Somnathpawar