mynpc Posted February 28, 2006 Report Share Posted February 28, 2006 Hi, I just discover this server and think it's fantastic, but I got a problem. I've downloaded Uniserver 3.3 and wrote a page with dynamic link, for example: test.php?id=6The variable id didn't show up, if I echo it in test.php. Do I have to change any setting to have it work? mynpc Quote Link to comment Share on other sites More sharing options...
rickh57 Posted February 28, 2006 Report Share Posted February 28, 2006 Have you tested this script on other web servers. I've had no problems with URL parameters using Uniform Server (using either php or perl). Are you using $_REQUEST['id'] to get the parameter? I just created a dirt simple test.php script in w:/www/rick/php: <HTML><BODY><?phpecho "<p>id is " . $_REQUEST['id'] . "</p>";?></BODY></HTML> With Uniform Server running, executing it via http://localhost/rick/php/test.php?id=5results in:id is 5as I'd expect. Quote Link to comment Share on other sites More sharing options...
mynpc Posted March 1, 2006 Author Report Share Posted March 1, 2006 Thank you for the quick answer. I didn't used $_REQUEST, that's why it doesn't work. I was used to just to write echo $id. On my web server it work without $_REQUEST, so I thought that the configuration of Uniform Server 3.3 was different. Thanksmynpc Quote Link to comment Share on other sites More sharing options...
Falc Posted March 1, 2006 Report Share Posted March 1, 2006 $_GET['id'] will also work... <?php echo $_GET['id']; // URL: test.php?id=5 // 5 is outputted ?> Quote Known Languages:adv-XHTML, int-PHP, int-SQL, int-CSS, beg-PythonCurrently reading: Take off in Japanese, How to play popular piano in 10 easy lessons, The Magicians' GuildCurrently learning: Python, Piano, JapaneseCurrent project: RelaxingCurrently playing: Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 2, 2006 Report Share Posted March 2, 2006 That did not work because Register Globals has been turned Off. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
AoN Posted June 18, 2006 Report Share Posted June 18, 2006 Yea, register_globals is a real pain for me. If it is off, NONE of my scripts will run, and it just annoys me to hell! But, I suppose it is best I adapt my scripts to work with it off. ^^' Quote - Hail my own banner for UniServer! Link to comment Share on other sites More sharing options...
olajideolaolorun Posted June 22, 2006 Report Share Posted June 22, 2006 Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
override Posted July 11, 2006 Report Share Posted July 11, 2006 just create a .htaccess file with the following php_flag register_globals Onto the directory that has the script Quote if you like this Uniform Server User Sing take em i do not mind share Link to comment Share on other sites More sharing options...
olajideolaolorun Posted July 12, 2006 Report Share Posted July 12, 2006 Be careful with it.... Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
MrX Posted July 12, 2006 Report Share Posted July 12, 2006 "Hackish" ways of doing things are always dangerous Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted July 14, 2006 Report Share Posted July 14, 2006 Agree again..... but if its just for a small site with no biggies, then thats ok... Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.