cancel
Showing results for 
Search instead for 
Did you mean: 

[PAYH] Move of CGI to PAYH - IFRAMEs

decomplexity
Rising Star
Posts: 492
Thanks: 26
Registered: 30-07-2007

[PAYH] Move of CGI to PAYH - IFRAMEs

I have some Home pages HTML which calls a PAYH PHP page using an Iframes query-string, e.g.
<iframe src="http://mydomainname/phpcode.php?parameter=blah">
This worked fine on CGI but now fails to pass the parameter when moved to PAYH  -  'blah' comes over as blank (actually a single space).
Anyone any ideas pls?
PS: Since query-strings are supposed to be treated in the same way as GET/POST parameters, I thought the problem might be related to the magic_quotes_gpc setting which (for some unaccountable reason) is ON in PAYH and upsets GET/POST calls containing  quotes, backslashes or nulls. But parameter 'blah' is a simple alpha character string...
Zen from May 17. PN Business account from 2004 - 2017
2 REPLIES
Superuser
Superuser
Posts: 2,563
Thanks: 262
Fixes: 5
Registered: 06-04-2007

Re: [PAYH] Move of CGI to PAYH - IFRAMEs

Could it be to do with Register Globals?  Do you explicitly get the query string in your script? ie
$parameter = $_GET["parameter"] ;

Phil
decomplexity
Rising Star
Posts: 492
Thanks: 26
Registered: 30-07-2007

Re: [PAYH] Move of CGI to PAYH - IFRAMEs

Many thanks Phil - spot on!
It was some older PHP code which did not explicitly $_GET['parameter'] but had made the pre-PHP4.1 assumption that $parameter would be automatically set (i.e. the default register_globals setting was 'enabled').
Presumably PN had overridden the default register_globals setting ('disabled') in CGI's PHP 4.3
I am now off to check every other $_GET in all my PHP pages to ensure that there are specific assignments.
Zen from May 17. PN Business account from 2004 - 2017