Comments (4)
Is that code part of Phirehose? It looks like your application code. (Not knowing anything about your application, or your database, I would guess that your bug fix is correct, as $where is being made inside the for loop but not being used.)
from phirehose.
Hey @inakimalerba,
Yep, it looks like that code is part of either your application, or perhaps a larger framework that you are using rathe than Phirehose itself?
If you let us know where that code came from, we might be able to point you in the right direction.
Cheers!
from phirehose.
Yes, that does make sense.
On Thursday, June 21, 2012, Inakimalerba <
[email protected]>
wrote:
First of all, sorry for my bad english and, second, THANKS for this
awesome code.I was having some problems when working with big amounts of tweets. I was
getting this error code:Object of class stdClass could not be converted to string
After searching for hours, i found this:
foreach ($entities->hashtags as $hashtag) {
$where = 'tweet_id=' . $tweet_id . ' ' . 'AND tag="' . $hashtag->text . '"'; if(! $oDB->in_table('tweet_tags',$hashtag)) { $field_values = 'tweet_id=' . $tweet_id . ', ' . 'tag="' . $hashtag->text . '"'; $oDB->insert('tweet_tags',$field_values); }
}
After changing
if(! $oDB->in_table('tweet_tags',$hashtag)) {
for
if(! $oDB->in_table('tweet_tags',$where)) {
it began working perfect.
Is this right?
Thanks
Reply to this email directly or view it on GitHub:
#23
from phirehose.
hey guys, i got confused. The problem was with the app i was using, sorry!. Anyway, thanks a lot.
from phirehose.
Related Issues (20)
- Why is Oauthphirehose labeled as internal? HOT 1
- Phirehose Suddenly Stopped Working HOT 12
- Wiki Introduction missing 'level' parameter from log callback.
- fsockopen peer certificate did not match
- [Question] Can we get previous tweet using streaming API? HOT 2
- How to echo out the error response from the Twitter streaming API
- Still having issue with connections HOT 2
- Extended Tweets HOT 5
- update keywords (tags) while connected HOT 2
- count(): Parameter must be an array or an object that implements Countable HOT 1
- count(): Parameter must be an array or an object that implements Countable HOT 1
- Update Packagist? HOT 4
- Tag a new Release for PHP 7.2 support HOT 7
- Connection keeps failing once a day HOT 2
- The future of phirehose with the retiring of streaming APIs from twitter HOT 1
- Call to undefined function socket_last_error HOT 4
- Delay in stream?
- Following returns NULL
- Required parameter $params follows optional parameter $method
- api-v1 are no longer available in new apps.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phirehose.