Jump to content

A question


mynamesleo

Recommended Posts

If i go to youtube.com, as I am logged in I am greeted with "Hello, username!" otherwise "hello, guest"

When I do file_get_contents("http://youtube.com") and check the html, it has treated me as a guest..

So is there a way to get the contents with the cookie information there?

Reason is I would like to greet people at my site with their youtube username as does youtube, if they have been logged in..  So the plan was to get the contents of youtube.com, then grab the username out of the html code.. and greet them at my website "Hello, username" else, hello guest..

(Hope this is understandable!)

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/29450-a-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.