Page 1 of 1

functions not working when calling from secure page

Posted: Mon Oct 18, 2004 3:30 pm
by cesarcesar
hello.

basically i have a php page that has an include() in it. in this include starts my session variables and requires() a few other pages. under an unsecure page (http) all works fine.

When securing the page (https) i get errors like "Warning: main(): stream does not support seeking in /www/......" I have learned that this is a bug in PHP and to remove this error just make my include like @include().

Error goes away, great. All files load properly, great. But when I call to a function within one of the required pages the functions come back "Fatal error: Call to undefined function:". this is not so great.

I have ran echo""; tests within the required pages and they all work correctly, just not the functions.

I really need these functions to work can anyone help.

C.

Posted: Mon Oct 18, 2004 4:27 pm
by feyd
post some code, maybe it's that...

Posted: Mon Oct 18, 2004 4:32 pm
by cesarcesar
@include("http://www.mysite.com/application.php");

is being called from the secure page. which is

https://secure00.secure-transact.ne...ut/payment.php.

whithin the application.php page are calling a functions page like-

require("$_SERVER['DOCUMENT_ROOT']/standards/functions.php");

Like i said he page is loading corretly just cant get the functions within functions.php to work.

Thanks

Posted: Mon Oct 18, 2004 5:00 pm
by feyd
what gets output of this remote page include? the output that'd be seen by a browser is exactly what gets included on the including page. So you may want your application.php script to output the correct source-code. Otherwise, the including page will get the finalized output of the script, which probably is nothing (ignoring debug prints)

Posted: Tue Oct 19, 2004 5:29 am
by timvw
do you have SSL support compiled?