freak Posted July 1, 2004 Report Posted July 1, 2004 (edited) Problema man ir tada, ka es gribu ,lai ievietojot so koda rindinju: <script language=JavaScript src=http://www.blaba.lv/script.php></script> jebkuraa web lapa, varetu palaist skriptu script.php uz mana servera, bet tas strada tikai, ja to izvieto uz mana servera un bez http://www.blaba.lv, bet tikai noradot src=script.php Kapec? Ko man darit? Meginaju shim skriptam mainit ari permission , bet tas neko nemainija. Edited July 1, 2004 by freak
рпр Posted July 1, 2004 Report Posted July 1, 2004 varbuut probleema tajaa, ka htmlaa parametri tomeer jaaliek peedinjaas
freak Posted July 1, 2004 Author Report Posted July 1, 2004 (edited) Tas neko nemaina. Kas vel varetu but par vainu? Edited July 1, 2004 by freak
Aleksejs Posted July 1, 2004 Report Posted July 1, 2004 (edited) Varbūt tā ir pārlūkos iebūvētā aizsardzība pret "cross-site scripting"... Edited July 1, 2004 by Aleksejs
Venom Posted July 1, 2004 Report Posted July 1, 2004 Pag, pag. Tu gribi lai tas source.php "nokopējās" un izpildās uz _mana_ datora? Ka tik tu nejauc servera un klienta tehnoloģijas. Ko tev tas script.php izpilda?
freak Posted July 1, 2004 Author Report Posted July 1, 2004 (edited) Izpildas vinsh uz mana servera un izgenere ar JVS palidzibu html lapaa kodu. Piemeram: <? print "document.write('test');"; ?> Shis piemers gan strada, bet ja skripta izmanto DB tad nekas nestrada. Konkretak izgustot rezultatu: while($row=mysql_fetch_array($result)): endwhile; ,bet, ja to izpilda uz sava servera tad tas strada. Kaut kas nav kartiba ar to $result!!! Edited July 1, 2004 by freak
freak Posted July 1, 2004 Author Report Posted July 1, 2004 Atvainojiet, ka piesarnjoju forumu, kluda izradijas ieksh DB host. Uzliekot scriptu uz cita servera nenomainiju hostname.
Recommended Posts