KarlisBa Posted March 17, 2008 Report Share Posted March 17, 2008 Uztaisīju skriptu viss strādā ideāli. Pārnesu failus uz Linuz no Windows un viņš neaploudo bildi vairs. Skripts te http://paste.php.lv/6989 Itkā direktorijām, kurās uploudo bildi saliku chmod 777 tā pat nekādas reakcijas šī darbība notiek caur popup varbūt tas pie vainas? Jo viņš nemaz pēc spiedpogas ielādēt darbības neko nedara un neveic nekādas tālākās darbības. Neparāda vai fails ir uploudots vai nē. Tikai tākā refrešo to logu. Link to comment Share on other sites More sharing options...
Zandis Murāns Posted March 17, 2008 Report Share Posted March 17, 2008 Nav jēga no tava skripta, labāk parādi aplauda pieprasījuma apstrādes skriptu. Kādas kļūdas rāda? Ja nerāda, ieslēdz kļūdu rādīšanu (php.ini, ja pareizi atceros - display_errors = on un error_reporting = e_all). Link to comment Share on other sites More sharing options...
Aleksejs Posted March 17, 2008 Report Share Posted March 17, 2008 Uz servera noteikti register_globals ir off, bet Tu pārbaudi if isset($Submit) - būtu jāpārbauda: if isset($_POST['submit']) Link to comment Share on other sites More sharing options...
777 Posted March 17, 2008 Report Share Posted March 17, 2008 if (ini_get('register_globals') != 1) { $supers = array("_REQUEST","_ENV","_SERVER","_POST","_GET","_COOKIE","_SESSION","_FILES","_GLOBALS"); foreach ($supers as $__s) { if ((isset($$__s) == true) && (is_array($$__s) == true)) extract($$__s, EXTR_OVERWRITE); } unset($supers); } mozh tev palidzes, es to vienmer core faila lietoju ... Link to comment Share on other sites More sharing options...
Paulinjsh Posted March 18, 2008 Report Share Posted March 18, 2008 777 iesaku iemācīties kodēt normāli - bez register globals on Link to comment Share on other sites More sharing options...
777 Posted March 18, 2008 Report Share Posted March 18, 2008 man viss ok :) vnk lietoju sho te, lai nerastos problemas, jebkur, kur es hosteshu portalu ... Link to comment Share on other sites More sharing options...
andrisp Posted March 18, 2008 Report Share Posted March 18, 2008 777, viens ir ja tu pats tā dari, bet otrs, ja tu savas visai apšaubāmās metodes reklamē tālāk. Link to comment Share on other sites More sharing options...
KarlisBa Posted March 18, 2008 Author Report Share Posted March 18, 2008 Paldies Aleksej viss sanāca. Nu register_globals on čista netaisos likt, bet nezināju kā appiet. Paldies. :) Link to comment Share on other sites More sharing options...
Recommended Posts