Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
[PAYH] Move of CGI to PAYH - IFRAMEs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- [PAYH] Move of CGI to PAYH - IFRAMEs
[PAYH] Move of CGI to PAYH - IFRAMEs
05-12-2008 12:09 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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...
<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
Message 1 of 3
(1,270 Views)
2 REPLIES 2
Re: [PAYH] Move of CGI to PAYH - IFRAMEs
05-12-2008 1:05 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Could it be to do with Register Globals? Do you explicitly get the query string in your script? ie
Phil
$parameter = $_GET["parameter"] ;
Phil
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
Message 2 of 3
(682 Views)
Re: [PAYH] Move of CGI to PAYH - IFRAMEs
05-12-2008 4:05 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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.
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
Message 3 of 3
(682 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- [PAYH] Move of CGI to PAYH - IFRAMEs