All posts by gaurav

2 most common php url functions for daily use

Seldom every php developer need some php url functions to work with , usually while parsing a web portal or finding the links url functions come very handy.

Here are URL based functionalities a developer may need .

1) Get the url of the portal:-


echo $_SERVER('HTTP_HOST');

2) Parse the url for extracting all components:-


$url_demo = 'http://user:pass@host/path?arg=val';

print_r(parse_url($url_demo));

Hope these handy code snippets would help you to save time for URL formatting in PHP.

Google Plus Circles

Update:- Google launched the google circle social network as Google plus. API is still awaited. Updates will be coming as the API gets launched.

Google is launching there new social networking service “Google Circles”, this is rumored to offer photo sharing, video sharing and updates. Which can be tightly linked to other social networks and circles. This news was broken by Read Write web today from #sxsw.

We wonder where buzz will fit into this and since this will be google product we are very excited to see what API details it will offer. We promise our readers to update with every bit of details, when there API announcement comes out.