Skip to content

Instantly share code, notes, and snippets.

@cprerovsky
Created February 21, 2014 15:53
Show Gist options
  • Select an option

  • Save cprerovsky/9136761 to your computer and use it in GitHub Desktop.

Select an option

Save cprerovsky/9136761 to your computer and use it in GitHub Desktop.
Foscam PHP snapshot script
<?php
header('Content-Type: image/jpeg');
echo file_get_contents('http://[FOSCAM_IP]:[PORT]/snapshot.cgi?user=[USERNAME]&pwd=[PASSWORD]');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment