Jump to content

(Fixed) More php - curl-ing contact lists


Errdoth

Recommended Posts

[hide]

 

[hide]

 

Back again with php questions:

 

 

 

So I'm making a "refer a friend" form, and I need to be able to have a "select a friend from your yahoo, gmail, or hotmail address book" option. My game-plan would be to use curl to get to the "export your address book" part of the email app, and then store the file temporarily to a directory, parse that file as an array, and (somehow) add a checkbox in front of the email/name (which would need to count the number of results in that array, and POST that), and then after that part everything is handled.

 

 

 

So, my questions:

 

How to log into yahoo/gmail/hotmail using curl (like what I would have to post, or get in the address bar)

 

 

 

How to then get to the export as a file part, and how to parse that as an array

 

 

 

How to count how many contacts are in that array, and assign a checkbox in front of that which stores the data

 

 

 

Help?[/hide]

 

 

 

I got everything else done, however, I still need help with processing. After the foreach() statement, where it processes the data for the array, I added a checkbox, and want to be able to uniquely name that checkbox (maybe based on what number of record it is?), and then be able to get the checkbox name from the form, and process it into an array. Is there some way to assign my checkbox names based on array values?

 

[/hide]

 

 

 

Okay, everything is fixed here. I turned the name of the checkbox into an array, and put that email as the value for that array, then serialized the array.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.