Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(Fixed) More php - curl-ing contact lists

Featured Replies

[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.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.