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.
functions not working when calling from secure page
Moderator: General Moderators
-
cesarcesar
- Forum Contributor
- Posts: 111
- Joined: Mon Oct 18, 2004 3:28 pm
-
cesarcesar
- Forum Contributor
- Posts: 111
- Joined: Mon Oct 18, 2004 3:28 pm
@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
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
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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)