Jump to content
php.lv forumi

Skripts uz cita servera


freak

Recommended Posts

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 by freak
Link to comment
Share on other sites

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 by freak
Link to comment
Share on other sites

×
×
  • Create New...