Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

including PHP in SHTML - can it be done?

Status
Not open for further replies.

kawnz

Technical User
Jan 30, 2003
67
US
Hi,

One of the sites I run, has been completely done in SHTML.
Now I want to add a function that will randomly display files in a section.

I was thinking of using a dbase with PHP to do that, but it would need to work within a <!-- #virtual include --> and I don't know if that will work.

yes? no?
 
euh, I don't know how :)

The dbase is run by a PHP script.

I want to include that dbase PHP script in the SHTML file, and want to know if it can be done.

Does that help?
 
It should work fine Regards
David Byng
bd_logo.gif

davidbyng@hotmail.com
 
Try it and see, like Dave said, it should run fine.

You could use SSI to include the output from the random PHP script?
Or as I said you could use SSI to randomly display the files, problem is, although SSI can actually connect to a database, few adventurers have gone this far. The random part is easy though.


É ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top