functions not working when calling from secure page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

functions not working when calling from secure page

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

post some code, maybe it's that...
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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)
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

do you have SSL support compiled?
Post Reply