How to login with cURL and use regex

     

This is my code. I don't know why its not workingeverything seems fine maybe?


        
  GET IMG SRC