forgetabout Posted October 27, 2006 Report Share Posted October 27, 2006 1.php: <? $x = $_GET['x']; if(isset($x)) { print "BLA"; } ?> 2.php: <? $file = file("1.php?x=x"); $file = @implode("", $file); print "$file"; ?> Ideja bija tāda, ja ieiet 2.php, lai parādās BLA no 1.php Bet šādi nesanāk, bet kā tad to varētu, tas ir vajag aizsūtīt datus pa GET uz lapu uz sava hosta un tad parādīt saņemto tekstu ) ? Link to comment Share on other sites More sharing options...
Delfins Posted October 27, 2006 Report Share Posted October 27, 2006 wtb.. cilvēki mūsdienās vairs vispār nedomā... file("http://tavs_domens/tavs.php?x=x"); Link to comment Share on other sites More sharing options...
andrisp Posted October 27, 2006 Report Share Posted October 27, 2006 Not sure, bet izskatās forgetabout prasa pēc require (php.net/require). Fails, ko ielasa ar file, cik zinu, netiek nopārsēts. Link to comment Share on other sites More sharing options...
Delfins Posted October 27, 2006 Report Share Posted October 27, 2006 ja izsauksi caur URL, tad nopārsēsies uz servera... PS: protams, tas ir gadījums, kad fails strādā ar GET parametriem (moš tas ir nokodēts un nevar pa taisno padot) Link to comment Share on other sites More sharing options...
Orion7 Posted October 30, 2006 Report Share Posted October 30, 2006 2.php: <?php $file = file_get_contents('http://localhost/1.php?x=1'); echo $file; ?> Link to comment Share on other sites More sharing options...
hackerman Posted October 30, 2006 Report Share Posted October 30, 2006 (edited) sheit ir uzskatami paradits par funkciju include : http://gfx-dream.lv/f/index.php?showtopic=1116 (forumā jāreģistrējas) Edited October 30, 2006 by bubu Link to comment Share on other sites More sharing options...
bubu Posted October 30, 2006 Report Share Posted October 30, 2006 Nevajag, lūdzu, dot linkus uz citiem forumiem, kuros ir jāpiereģistrējas, lai redzētu kautko. Šoreiz tikai pabrīdinu. Nākamreiz dzēsīšu ārā tavu postu. Link to comment Share on other sites More sharing options...
hackerman Posted October 30, 2006 Report Share Posted October 30, 2006 Sorry, ja vajag varu nokopet to info vai kaa...tas nebija domats kaa spams... Link to comment Share on other sites More sharing options...
Recommended Posts