简体   繁体   中英

Change image at client side too after change at server side

I have an embedded program that is changing an image at server side when submit button pressed. At serverside it is completely works but at client side when I'm refreshing pressing F5 then only the change occurs. I am using wordpress and one page is having <img src="path"> . I am new in wordpress and PHP.

It might be a bit advanced for someone new to php but most commonly either long polling or websockets is used to force a client to update from the server.

There are some good explanations to be found here: What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM