file_get_contents is used to fetch the data as it is from a url or a file.

Use curl if u want to pass some data like login details.
CJ Reviewed by CJ on . how to get variable info after login using php hi guys, we use file_get_contents in php script to get content from page, but how to get info after login....? that is, it ask for password to access page, how to login using php itself and get the data.....?? Thanks Rating: 5