insert PHP, nugget type thing?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
empika
Regular
Posts: 9
Joined: Mon Jan 31, 2005 3:39 pm

insert PHP, nugget type thing?

Post by empika »

Hi
Im looking for a way to insert a small peice of php code into my site..
firstly down the sidebar: i hear talk of a PHP-nugget type thing, but its not in the cvs dir. is this what i would need?
and secondly, can i insert PHP code into 'main' posts? (not comments as that could prove insecure) If not.. how would i do this?

thanks
eddy parris
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: insert PHP, nugget type thing?

Post by garvinhicking »

Please read the forum for php nuggets: The use of it is not advised. It's easier to create a simple plugin for each PHP-code you need. You'll find the php plugin on the board still, but beware of security issues, they are described in older topics as well.

You cannot paste active PHP code into entries, as that's a security problem as well. You could however create a plugin for that as well, but I wouldn't advise that.

It's possible, though - but should only be used/created by advanced users (via creating a plugin).

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply