kraukscis Posted November 2, 2005 Report Share Posted November 2, 2005 man ir suse10 vis iet bet nevar dabut argumentus vai kads nezin kas varetu but. Link to comment Share on other sites More sharing options...
hmnc Posted November 2, 2005 Report Share Posted November 2, 2005 kur kadi argumenti? $_GET, $_POST? gadījumā nelasi grāmatu PHP Soli Pa Solim? tur ir izmantots register_globals = on, kas tev visticamāk ir izslēgts. Link to comment Share on other sites More sharing options...
kraukscis Posted November 2, 2005 Author Report Share Posted November 2, 2005 zem ka to var meklet Link to comment Share on other sites More sharing options...
[Ya] Posted November 2, 2005 Report Share Posted November 2, 2005 zem ka to var meklet php.ini parasti /etc/php/php.ini /etc/php4/php.ini /etc/php5/php.ini /etc/apache/php.ini /etc/apache2/php.ini Link to comment Share on other sites More sharing options...
hmnc Posted November 2, 2005 Report Share Posted November 2, 2005 gadās arī zem /var/www/conf/php.ini Link to comment Share on other sites More sharing options...
kraukscis Posted November 2, 2005 Author Report Share Posted November 2, 2005 es jau atradu zem etc/php.ini un bija register_globals = off restartesu servisu tad meginasu atkal Link to comment Share on other sites More sharing options...
kraukscis Posted November 2, 2005 Author Report Share Posted November 2, 2005 Vis iet . Paldies par info Link to comment Share on other sites More sharing options...
hmnc Posted November 2, 2005 Report Share Posted November 2, 2005 atgādināsim arī to, ka register_globals = on, ir dikti nevēlams pasākums, jo ietekmē skriptu drošību un visādi citādi nav smuki+labi (imo). neredzu problēmas uzrakstīt funkciju piemēram: function getpostvar($varname) { if ( isset ($_POST[$varname]) ) { return $_POST[$varname]; } else { return false; } } Link to comment Share on other sites More sharing options...
bubu Posted November 2, 2005 Report Share Posted November 2, 2005 function getpostvar($varname,$default=false) { return isset($_POST[$varname]) ? $_POST[$varname] : $default; } :P Link to comment Share on other sites More sharing options...
hmnc Posted November 2, 2005 Report Share Posted November 2, 2005 nu es kā lietotājam saprotamāk :P bet nu pašam bubu variants karājās :) Link to comment Share on other sites More sharing options...
Recommended Posts