PDA

View Full Version : Is PHP executable within a thread?


cristian
09-20-2003, 06:29 PM
can i execute a php script inside <html> tags inside a post?

to show dynamic content within a post?

assassingod
09-20-2003, 06:57 PM
No, you can if you edit admin/functions.php or use the phpinclude template or use filburt1's PHP Embedded in Templates hack

cristian
09-21-2003, 03:12 PM
i cant seem to find that hack with a vbulletin.org search ?

do have a link for it ?

and what would I have to edit in functions.php?

assassingod
09-21-2003, 03:29 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=52775&highlight=embed+php" target="_blank">https://vborg.vbsupport.ru/showt...ight=embed+php</a>

cristian
09-21-2003, 03:53 PM
thats a great hack - but its within a template - I was wandering if it was possible within a particluar post

i guess i could put it into a custom vbcode template?

filburt1
09-21-2003, 03:55 PM
thats a great hack - but its within a template - I was wandering if it was possible within a particluar post

i guess i could put it into a custom vbcode template?
It's insanely dangerous to allow PHP inside posts, far more so than the already deadly HTML. I very strongly suggest you reconsider what you are trying to accomplish.

cristian
09-21-2003, 03:58 PM
oh - yes - i agree !

I want to put it into an anouncement really - i dont really want to let those nutters post php scripts inside their own posts .. it would be for admins only !