sigmadog Posted February 24, 2010 Share Posted February 24, 2010 I'm building a simple Speed Bump page for a client that takes a third-party web site URL and links to a caution page before allowing the user to continue or go back. It's pretty standard stuff, but the test page's PHP script is not being processed correctly. I've tested the same exact script on my web site and it works fine, but it is not working at all on the client's site. I suspect some oddity with their server, which is Windows NT (my server is Linux/Apache), but I lack the skill to determine exactly why it isn't working. Here is the link to the test page on the client's server: http://www.globalcu.org/bump_test.html Here is the link to the test page on my server: http://www.sigmadog.com/clients/global/bump_test.html The following are the PHP scripts that works on the URL variable: The test page link that points to the PHP page for processing: <a href="bump.php?linkURL=http://www.apple.com" target="_blank">Apple Computers</a> PHP page: head section: <?php $link= $linkURL; ?> PHP page: the link: <a href="<?php print($link); ?>">Proceed to third-party web site.</a> Any help figuring this out will be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/193157-speed-bump-page-not-processing-url-variable/ Share on other sites More sharing options...
juanpablo Posted February 24, 2010 Share Posted February 24, 2010 I'm building a simple Speed Bump page for a client that takes a third-party web site URL and links to a caution page before allowing the user to continue or go back. It's pretty standard stuff, but the test page's PHP script is not being processed correctly. I've tested the same exact script on my web site and it works fine, but it is not working at all on the client's site. I suspect some oddity with their server, which is Windows NT (my server is Linux/Apache), but I lack the skill to determine exactly why it isn't working. Here is the link to the test page on the client's server: http://www.globalcu.org/bump_test.html Here is the link to the test page on my server: http://www.sigmadog.com/clients/global/bump_test.html The following are the PHP scripts that works on the URL variable: The test page link that points to the PHP page for processing: <a href="bump.php?linkURL=http://www.apple.com" target="_blank">Apple Computers</a> PHP page: head section: <?php $link= $linkURL; ?> PHP page: the link: <a href="<?php print($link); ?>">Proceed to third-party web site.</a> Any help figuring this out will be greatly appreciated. Yes, you have globals enabled on your Linux server which is EXTREMELY dangerous. Try using: <?php $link= $_GET['linkURL']; ?> Link to comment https://forums.phpfreaks.com/topic/193157-speed-bump-page-not-processing-url-variable/#findComment-1017131 Share on other sites More sharing options...
sigmadog Posted February 24, 2010 Author Share Posted February 24, 2010 Thanks, juanpablo. I suspected it might be something to do with the always problematic register_globals setting. I'll give this a try. Link to comment https://forums.phpfreaks.com/topic/193157-speed-bump-page-not-processing-url-variable/#findComment-1017170 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.