hoho Posted February 28, 2009 Report Share Posted February 28, 2009 Vajag uzģenerēt HTML kodu, kas izsauks Php skriptu no cita servera un attēlos kaut kādu informāciju, piemērām 5 jaunākas ziņas no portāla www.xxxxx.lv. Skripts strādās kā banneris un vedis uz noteiktu portālu. Kā to var tehniski realizēt? Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 28, 2009 Report Share Posted February 28, 2009 Vajag uzģenerēt HTML kodu, kas izsauks Php skriptu no cita servera Skripts strādās kā banneris un vedis uz noteiktu portālu. 1.variants <a href="cits_skripts_uz_cita_servera.php"><img src="bilde.jpg"></a> 2.variants <iframe src="cits_skripts_uz_cita_servera.php" width="200" height="100" frameborder="1" marginwidth="0" marginheight="0" ></iframe> Quote Link to comment Share on other sites More sharing options...
hoho Posted February 28, 2009 Author Report Share Posted February 28, 2009 paldies par atbildi. man veel viens jautaajums - kaa servera pusee es varu uzzinaat kura tiesi lapaa ir ievietots HTML kods un izsaukts tas skripts? piemeeram, ja kods ir ievietots www.aaaa.lv lapaa, tad es raadiishu vienu kontentu, bet ja www.bbbb.lv lapaa, tad citu kontentu? paldies! Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 28, 2009 Report Share Posted February 28, 2009 neko nesapratu ko gribeeji pateikt :( Quote Link to comment Share on other sites More sharing options...
hoho Posted February 28, 2009 Author Report Share Posted February 28, 2009 Nu piemeeram man ir saits www.aaa.lv, es uztaisu iframe, kur ir peedeejie komentaari po si saita. Es ielieku so iframe saitaa www.bbb.lv. Vai skriptaa, kas generee tos komentaarus un staav uz mana servera es varu uzzinaat, ka iframe ielikts tiesi www.bbb.lv lapaa? Vienkraarsi es gribu lai so iframe vareetu ielikt tikai noteiktos saitos nevis visos peec kartas...vai var taa izdariit? Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 28, 2009 Report Share Posted February 28, 2009 Jaa no ifreima var uzzinat kaada ir Pamat lapas adrese, un ne tikai to , (var arii uziinat kaadas lapas tikusas apmekletas ieprieks ..) Skaties uz JS history virzienaa... Quote Link to comment Share on other sites More sharing options...
codez Posted February 28, 2009 Report Share Posted February 28, 2009 HTTP_REFERER http://lv.php.net/manual/en/reserved.variables.server.php Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 28, 2009 Report Share Posted February 28, 2009 codez --> Jep me parstradaajies :( ... Nemaz nevajag JS pietiek tachu ar PHP ;) 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.