PDA

View Full Version : Including random text with PHP


Josiah Bounderby
11-20-2005, 02:50 PM
I am trying to include content from a php 'random text' application.

Similar to a 'Quote of the Day' type thing, each time the page loads it will display a different piece of text.

Except it won't :(

I have the php include working fine, calling it in the templates, but every time it loads it shows the same piece of text.

Is this because of the template caching?

If so, is there any way I can turn this off?
I really don't care about the speed difference in this application - just want my random text to work.

Any other way to solve this?

kickass
11-20-2005, 09:30 PM
Try using a perl/cgi script instead of php. I'm sure you can find one.

Josiah Bounderby
11-20-2005, 11:47 PM
Content visible to registered users only.

Thanks, but I have tried all the obvious routes.
There is no alternative, otherwise I wouldn't have posted here.

If I can't stop the cache (or whatever eles is causing the problem) I will need to use a different script.

Shame, in every other respect it was head and shoulders above the rest.

Ap0s7le
11-21-2005, 12:00 AM
Hey Josiah,

I'd like to help you out with this, is there a way that I could get FTP access?

I would normally test this on mine first, but I don't have access to it and the server I do have access to doesn't allow me to delete the cache so I can verify that the creation of new isn't happening haha

Thanks

-Casey

Josiah Bounderby
11-21-2005, 12:29 AM
Thanks Casey

Sure - ftp access can be made available, its a test installation on a dead domain, so no problems there.

I'll message them to you.

Josiah Bounderby
11-21-2005, 01:16 AM
Thanks Casey.

The thing works perfectly now.

It was my bad, I had missed out a key part of the php include.

Ap0s7le
11-21-2005, 01:17 AM
Not a problem, glad I could help out.

Kind Regards,

-Casey