autorun when tweet me [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I work about twitter API these times. I set cronjob for auto run for my PHP files.
I want to try diffrent thing, I wanna run PHP file when people tweet me, and answer to people. Is that possible?

You can do that with IFTTT . https://ifttt.com . It's a free service that you can use to connect social networks and applications. The trigger (the "if" part) for you is channel Twitter, "new mention of you" (the trigger fires everytime you are #mentioned in a tweet) . The "then" part is channel Marker, which supports an action that allows you to send a request to a specific URL with several options. Method (get, post, delete) content type, and content. Then you have to create a "then" with channel Marker that is configured to make a request to your php script

Related

Is there a smart way open a node js server on your website while still using php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
i have a website where you click on a tomato and get points based on how many times you've klicked on it. The problem is that it's all running on php and AJAX requests. Every 10 seconds an request is sent on how many clicks the user has now, and the server updates. So in theory a user could just send requests of them having 30000 clicks and it would register. A friend of mine said that i should use node and register every click individualy with a socket, but everything so far is running on php. Is there a way to open a node server and make it talk with php?

How to make script run in the background [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have seen some websites that let you submit a file, then they say "Please check back in 20 minutes and your file will be processed". So the user sends a request to the server, then the server processes it in the background.
How is this done? Specifically, how is this done in PHP?
It can be done by calling a service working independently. For example you can do something like this:
send a request to the service to start processing something (service return an ID of started process)
after some time you ask service again about process status (you need to send an ID of the process)
if service still working then you get an information about it
if service has finish then you can get a result from it

Instagram api - publish hashtag hook [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Currently im working on task where i initially need to fetch media from instagram with specific hashtag and populate those info into database. After that, each new media published on instagram side (containing specific hashtag) needs to be fetched again and populated into database.
Of course i can accomplish this one using cron job (checking specific hashtag and number of media for that hashtag each 10 mins for example), but im wondering does instagram have "hooks" implemented for these kind of things. So for example, if something is published on instagram side, hook will be triggered and call will be sent to specific url provided within instagram dev app?
You should check out Instagram's Real-time API's: http://instagram.com/developer/realtime/
They allow you to subscribe and receive new contents via push updates. (uses pubsubhubbub)

How to post and upload content via email? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a website and I want to be able to post things through my email, just like in many big social networks. (like Facebook, Flickr)
Like: I would send a message to 'post#domain.com'
the title would be saved to a MySQL db and attachment is saved to a directory.
or something similar to this.
I'm more focused on the attachment,but I'll take anything that will get me started
I heard that it is possible through a "Cron Job", but I'm not familiar with how that works. So please link to a tutorial or some code that I can learn from.
-Thank you
That would be a bigger and more complex system than a simple tutorial.
Conceptually, you'd have a mail exchanger that would accept incoming mail and store it somewhere. Then, you'd have a separate system that would connect to the mail exchanger (through POP, IMAP or filesystem) and get the mails since its last run. It would then parse the mail and run whatever action you specified.

Node.js socket.io webchat moderation [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i have installed the socket.io webchat and I want to add moderation-functionality for the posted comments. Does anyone know how to do that? It should work like when i post a message, the moderator hast du either accept/approve or delete the message. When he approves it, the message will be visible in the chat, otherwise it will not be visible.
any help or suggestion is welcome!
Socket.io is more for real time communication. You actually need something between the data sending and receiving. So, I guess that you should avoid the web sockets and store the comments in a database. The moderator then will need to read them and approve/deny. However such implementation is not really good idea when you have a web chat.
You could also try to send the comments to only one user (the moderator). And if he approve the comment just to resend it with a flag approved. All the messages which don't have this flag should not be shown.

Categories