PDA

View Full Version : PHP include with variables


stryka
05-25-2003, 02:04 AM
I have an APP that requires the following to work:

<?php
include("./local/local.php");
$myCF = new CF;
$myCF->start();
?>

I edit the PHPINCLUDE template successfully put it does not show a result within the output... but if I change the path it gives me an error... so I am assuming that it finds the file but needs the $myCF variables....

ob_start();
include("./local/local.php");
$backpages = ob_get_contents();
ob_end_clean();

The question is... where do i put the $myCF variables? Can it go in the $PHPINCLUDE template as well?

gmarik
05-25-2003, 07:55 AM
Nothing works for me as well.
Even not using classes. Although there was a hack from filburt - halfway working.

stryka
05-25-2003, 01:48 PM
what are you trying to get working?

Cuz I have other includes with PHP Apps working with no problem... its just this one that's giving me probs...

gmarik
05-25-2003, 04:01 PM
Could you, Stryka, just copy +paste the code here?!