Added: 2 years ago
From: phpacademy
Views: 20,508
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (60)

Sign In or Sign Up now to post a comment!
  • Install pure LAMP in Arch Linux and you will have curl.

  • notepad++ and context here

  • Excellent! Thank you!

    I hadn't heard of ConTEXT before, I use Geany.

  • @technoboi0 Notepad++ here :D

  • sorry for the double post, though I'm getting this error:

    Notice: Trying to get property of non-object in /opt/lampp/htdocs/include/late­sttweet.php on line 14

    The echo statement is on line 14... any help? (I checked the code and cURL is enabled according to phpinfo() )

  • I'm quite new to php.

    I'm guess you could set the amount of latest tweets using a simple for loop aswel?

  • thanks 4 sharing!

  • Hi!

    It is a nice tutorial. I don't have a Twitter account that is why I am little confused. How would a beginner know which file to call?

    You used "user_timeline.xml" to get tweets. How did you know that you need to call this file? What if I want to get latest emails from my Yahoo! Inbox. How would I get that?

    Please, help!

  • just a tip: next time include your password, that way you don;t have to stop your interesting tutorials. keep up the good work!

    cheers!

  • You mean cURL is not in PHP library? I have to install it like an add-on?

  • @eujeeves

    Yes...

  • Can you do that using proxy? No evil intended.

  • I have just created a message box and a submit button when i click on the submit the message is storing in the database , what i need i while i'm clicking on submit button my message should be able to display in my tweets of twitter , so i think that it can be done by getting Twitter API key and intergrating with my php file ...

    u have video on this type of integration please tell me or just make a reply of how to do this

  • does this work on localhost?

    curl is enableb but it does not show any post..

  • XAMPP cURL INSTALLATION : Go to C:\Xampp, use windows' search and search for php.ini, open it, search for "disable_functions = " and remove everything with curl in the line beginning with disable_functions. ;)

  • this tut is great...but the tweets with links arent clickable from my website...you should update it so we can.....and im running xampp and it had curl

  • This didn't work for me. I got a fatal error about an uncaught exception. I'm guessing Twitter recently changed their API. Anyway, to fix this, remove the "s" from h.t.t.p.s

  • nice tutorial!

  • excellent video!!! could you help us with the twitter link class that is using on the twitter bottom of barack obama website? or something so I suppose you can do it better, check it is very interesting

  • People can look up the source and see your password!

  • @RDCStudios Php isn't shown in source codes and if you want you could make a separate file and use the include function

  • cURL should come with XAMPP. You can check if it is using the XAMPP index.php @ localhost/xampp. Then click on phpinfo() and it should say.

    Great vids, btw.

  • It only shows todays tweets?

    can i enable it to just show my latest tweets of all time?

  • I really really really love your tuts mate!!!! I've been a long time fan and hope you keep the vids coming!

  • I love your vid but im getting an error i dunno what it is:

    Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /usr/home/deb17333/domains//pu­blic_html/ragsite/includes/twe­ets.php:14 Stack trace: #0 /usr/home/deb17333/domains/pub­lic_html/ragsite/includes/twee­ts.php(14): SimpleXMLElement->__construct(­'') #1 {main} thrown in /usr/home/deb17333/domains/pub­lic_html/ragsite/includes/twee­ts.php on line 14

  • hi, love the tutorials. is there any way you can adapt this to show other people's tweets, not your own? thanks

  • Good video but you should have used a loop at the end

  • In order for this to work for me (using MAMP locally), I had to add these 2 params:

    curl_setopt($timeline, CURLOPT_SSL_VERIFYPEER, 0);

    curl_setopt($timeline, CURLOPT_SSL_VERIFYHOST, 0);

  • Comment removed

  • If anyone of you is using mac, I recommend Coda and when the trial runs out just delete the plist file and it gets resetted.. Good tutorial! I never used cURL and this teached me how to use it.!

  • Alex, great video! I did have a question: twitter went down for about ten minutes today so I got errors all over my page that I put the feed on. Is there an easy way to error handle the cURL request? Thanks!

  • You are the best of the best. Like always, great tutorial.

  • What's the name of that php editor you're using?

  • It's a free text editor that supports the highlighting of lots of different syntax. It's called ConTEXT.

  • Can you use cURL to read content ( like a table) from a website and display it on yours?

  • Do you mean a database table or content specifically from a page?

  • Can't you show us how to give out the WHOLE array?

  • I haven't tested your code yet, but have you checked if Retweets are displaying with your PHP script? I read that Twitter no longer counts retweets as belonging to your twitter profile and so do not show up even on their own widget. I did read that Tweetdeck still displays them, but have not tested this to make sure it is true. Missing retweets might not be a big deal, but I guess if a lot of your tweets are retweets I guess that would be a problem.

  • Comment removed

  • to install cURL on xampp do this... 1. Go to xampp install directory. 2. Go to php.ini in php directory. 3. Open php.ini and find curl, uncomment the first find you see. Save and close file. 4. Go to php.ini in apache directory. 5. Repeat Step Three.

    Done.

  • If you are on hostgator contact support and they will enable cURL. It is a easy process only took me 2 min.

  • Nice video. Like this kind of stuff.

  • Alternatively, you could have used the twitter API (using oauth) or the rss feed.

    The api has a limit of 200 hits (per hour) so it's not good for a production website (unless you save it to a mysql DB and read from there.. and update it every couple of minutes..)

    And rss doesn't have a limit and it's surprisingly easy to do it :)

  • Doesn't twitter limit the number of times you can recieve information from their site to around 200?

  • That's for the API, not the main site.

  • can you do something for paypal?

  • methinks you're getting active again :) nice vid

  • OMG!!! Alex is Back..hehe

  • Long time no see.

  • Please do make a tutorial on how to install cURL on xampp! I would love that.

  • very very helpful tutorial, thanks for your help.

  • nice vid :)

  • ohmaigod. i've been looking to know how to do this for ages!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more