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?
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
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
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
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//public_html/ragsite/includes/tweets.php:14 Stack trace: #0 /usr/home/deb17333/domains/public_html/ragsite/includes/tweets.php(14): SimpleXMLElement->__construct('') #1 {main} thrown in /usr/home/deb17333/domains/public_html/ragsite/includes/tweets.php on line 14
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!
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.
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.
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 :)
Install pure LAMP in Arch Linux and you will have curl.
unixolsc 5 months ago
notepad++ and context here
agnelwaghela 7 months ago
Excellent! Thank you!
I hadn't heard of ConTEXT before, I use Geany.
technoboi0 11 months ago
@technoboi0 Notepad++ here :D
daeheadshot 9 months ago
sorry for the double post, though I'm getting this error:
Notice: Trying to get property of non-object in /opt/lampp/htdocs/include/latesttweet.php on line 14
The echo statement is on line 14... any help? (I checked the code and cURL is enabled according to phpinfo() )
Drizien 1 year ago
I'm quite new to php.
I'm guess you could set the amount of latest tweets using a simple for loop aswel?
Drizien 1 year ago
thanks 4 sharing!
mrdevi 1 year ago
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!
mumohal 1 year ago
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!
qrucial 1 year ago
You mean cURL is not in PHP library? I have to install it like an add-on?
eujeeves 1 year ago
@eujeeves
Yes...
sorryunlucky 1 year ago
Can you do that using proxy? No evil intended.
goliathlup1 1 year ago
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
sivaramakrish2007 1 year ago
does this work on localhost?
curl is enableb but it does not show any post..
negatyve75 1 year ago
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. ;)
R4Backup 1 year ago
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
kato3000 1 year ago
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
aaronwood06 1 year ago
nice tutorial!
darkdominiongr 1 year ago
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
giaziani 1 year ago
People can look up the source and see your password!
RDCStudios 1 year ago
@RDCStudios Php isn't shown in source codes and if you want you could make a separate file and use the include function
OnlyInNaziGermany 1 year ago
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.
afbucchi 1 year ago
It only shows todays tweets?
can i enable it to just show my latest tweets of all time?
TobyDIOK 1 year ago
I really really really love your tuts mate!!!! I've been a long time fan and hope you keep the vids coming!
chjustin69 1 year ago
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//public_html/ragsite/includes/tweets.php:14 Stack trace: #0 /usr/home/deb17333/domains/public_html/ragsite/includes/tweets.php(14): SimpleXMLElement->__construct('') #1 {main} thrown in /usr/home/deb17333/domains/public_html/ragsite/includes/tweets.php on line 14
TobyDIOK 1 year ago
hi, love the tutorials. is there any way you can adapt this to show other people's tweets, not your own? thanks
petephillips7 1 year ago
Good video but you should have used a loop at the end
magnetica2288 1 year ago
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);
therookie14 1 year ago
Comment removed
rabidmachine9 2 years ago
Comment removed
rabidmachine9 2 years ago
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.!
cheatonly2win 2 years ago
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!
MORZA10 2 years ago
You are the best of the best. Like always, great tutorial.
tiger2380 2 years ago
What's the name of that php editor you're using?
modernclics 2 years ago
It's a free text editor that supports the highlighting of lots of different syntax. It's called ConTEXT.
phpacademy 2 years ago
Can you use cURL to read content ( like a table) from a website and display it on yours?
DaSchLumpF2 2 years ago
Do you mean a database table or content specifically from a page?
phpacademy 2 years ago
Can't you show us how to give out the WHOLE array?
winfr34k 2 years ago
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.
fugazi0311 2 years ago
Comment removed
fugazi0311 2 years ago
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.
leavemealone300435 2 years ago
If you are on hostgator contact support and they will enable cURL. It is a easy process only took me 2 min.
cdsniper10 2 years ago
Nice video. Like this kind of stuff.
Alphonzen 2 years ago
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 :)
KoolKid417 2 years ago
Doesn't twitter limit the number of times you can recieve information from their site to around 200?
Kevtheman25 2 years ago
That's for the API, not the main site.
KoolKid417 2 years ago
can you do something for paypal?
getlow1985 2 years ago
methinks you're getting active again :) nice vid
vb6help 2 years ago
OMG!!! Alex is Back..hehe
GSNTube5 2 years ago
Long time no see.
PaPaSEK 2 years ago
Please do make a tutorial on how to install cURL on xampp! I would love that.
ORP4th 2 years ago
very very helpful tutorial, thanks for your help.
smcorrea 2 years ago
nice vid :)
Timzy921 2 years ago
ohmaigod. i've been looking to know how to do this for ages!
GTACompleteWeb 2 years ago
This has been flagged as spam show
first
bartjoyce 2 years ago