PDA

View Full Version : Integrating PHP scripts


bagoo
05-16-2006, 05:40 PM
Hi

I think PP is the best so far. I'm working on my own template that I will show up at some point. However, considering that I'm noob, I found it hard to ingrate long PHP scripts into PP index.php. And I agree with the developers, using addons is the best and safest way to go. but this is also a bit complex. See, I'm trying to include a PHP scripts/page (e.g: index2.php) inside PP temlate without affecting the templates or the way the page viewed in PP. I just need this script to run at the position I want in PP template.

Any help will be appreciated,

Thx

Joe[y]
05-16-2006, 06:15 PM
the only way to do this correctly is with an addon.

if you have a script you need to include in your pixelpost site (ie, index.php) you could just put it in your addons directory.

there is however no way to include php in a template file.

bagoo
05-16-2006, 06:28 PM
Thx Joe for fast response. I wanted to add a guestbook for poeple to comment on my site as a whole, kinda like feedback on looks and experience with the site. do you have any suggetions. All guest books I found are PHP based scripts with thier includes and templates.

Thx

Joe[y]
05-16-2006, 06:54 PM
you could simply include the script as something like guestbook.php and direct all links to that php page.