reiniger Posted March 16, 2011 Report Share Posted March 16, 2011 Sveiki Man kaut kā nesaprotama lieta sanākusi. Postoju šeit, jo manliekas ka php problēma nevis jquery. Izsauc formu un nosūta ar Jquery uz saglabāšanas lapu sessiju. Pamata lapa nodefineju mainigo; $_SESSION['url_big_msg'] = $_SERVER['SCRIPT_URL']; Ar Jquery post uz save php $.post("r/sistem_msg.php",{nameT: name.val()}); Un šajā sistem_msg.php man $_SESSION['url_big_msg'] vērtība izmainās. Piemērs // ka piemers $_SERVER['SCRIPT_URL'] $_SESSION['url_big_msg'] = 'lv/test/gals'; // bet sistem_msg.php faila parādās kā $_SESSION['url_big_msg'] = 'lv/test/favicon.ico'; Ja es nomainu $_SESSION['test2'] sesijas nosaukumu, tad pirmo reizi nostrādā pareizi, bet izpildot sutīšanu atkārtoti atkal pievienojas favicon.ico! Kas varētu būt pa problēmu kādēļ sesijas dati izmainās? Vai .htaccess varētu kaut ko muļķoties? Vai arī mans nogurums... Quote Link to comment Share on other sites More sharing options...
wintermute Posted March 17, 2011 Report Share Posted March 17, 2011 A kas tev ir iekš htaccess ? Quote Link to comment Share on other sites More sharing options...
reiniger Posted March 17, 2011 Author Report Share Posted March 17, 2011 .htaccess php_value default_charset utf-8 RewriteEngine on rewritecond %{http_host} ^domens.lv [nc] rewriterule ^(.*)$ http://www.domens.lv/$1 [r=301,nc] RewriteRule ^lv/([^/]+)/([^/]+)/([^/]+) index.php?patch=lv/$1/$2/$3 RewriteRule ^lv/([^/]+)/([^/]+) index.php?patch=lv/$1/$2 RewriteRule ^lv/([^/]+) index.php?patch=lv/$1 Quote Link to comment Share on other sites More sharing options...
wintermute Posted March 17, 2011 Report Share Posted March 17, 2011 Pieliec aiz domeina RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Un uztaisi favicon.ico failu. Quote Link to comment Share on other sites More sharing options...
reiniger Posted March 17, 2011 Author Report Share Posted March 17, 2011 Pagaidam apmierināšos ar $.post("r/sistem_msg.php",{nameT: name.val(), urlT: '<?=$_SERVER['SCRIPT_URL']?>'}); Kad uznāks luste, tad pieķeršos klāt... Pagaidam paldies... Quote Link to comment Share on other sites More sharing options...
reiniger Posted March 17, 2011 Author Report Share Posted March 17, 2011 (edited) Sveiki. Vēl lieta atrisinājās, kad izņēmu no html arā <link rel="shortcut icon" href="favicon.ico" /> Bet vienalga man baigi ieintereseja kas ta par problemu ka ta notikas... :) Edited March 17, 2011 by reiniger Quote Link to comment Share on other sites More sharing options...
codez Posted March 17, 2011 Report Share Posted March 17, 2011 nu browseris prasīja favico.ico failu, bet tev tāda nebija, tāpēc pieprasījums gāja uz index.php, kura laikā arī tika mainīt $_SESSION dati. Nesaprotu kāpēc tev vispār kaut kas tāds ir vajadzīgs? Quote Link to comment Share on other sites More sharing options...
mad182 Posted March 20, 2011 Report Share Posted March 20, 2011 Ņem vērā, ka daži pārlūki to favicon meta taga trūkumu var ignorēt un tomēr pieprasīt ikonu. Vai nu uztaisi favikonu, vai arī izdomā kādu labāku metodi url padošanai. Quote 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.