What I am trying to achieve is to have a line text change when a page is refreshed or at a set interval like every 15 seconds.

I know this is easy with javascript but I really don't want to use javascript.

I wrote a simple snippet that does this for images but cant figure out how to do this for text.

Anyone got any ideas or have a way to do this?

Thank you.

Recommended Answers

All 3 Replies

Well if you want the page to refress every 15 seconds then there is nothing php can do about that. However you could use a mixture of Ajax and php for this job but Ajax is just like Javascript. Sorry if this isn't the answer you wanted.

No worries, I didnt want the page to refresh every 15 seconds just the lines of text to change and or have the text change when the page is refreshed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.