zirgs Posted May 2, 2006 Report Share Posted May 2, 2006 sveiki, tad man radaas taada probleema/jautaajums kapeec nestraada pienjemsim es uztaisiju failu detect.php kuru nolieku folderiii detect ... un folderis ir top categorijaa nu kjip www.zirgs.com/detect ... un detect php ierakstu shitaaadu rindu <?php $ip = $_SERVER["REMOTE_ADDR"]; ?> taalaak ieliku lapaaaa kaadaa kur gribu lai paraadaas shitaadu kodu <?php include("http://zirgs.com/detect/detect.php"); ?> un taalaak lapaa kur grinbu lai paraadaas ip shitaadu kodu <?php echo "$ip";?> bet neraad neko ???? bet ja detect.php lieku tanii pat direktorijaa kur fails kuraa gribu paraadiit ip un shito <?php include("http://zirgs.com/detect/detect.php"); ?> nomainu uz <?php include("detect.php"); ?> shitaadu tad straadaa ... nu krch aizmirsu kaa tur pareizi abi linkingi saucaas ... par shaadu probleemu jau senaak biju dzirdeejis bet tas mani tad neskaara bet tagad skar... :( bet kaadeeelj taa ? gribeetos uzzinaat ... ? un vai tam ir kaads risinaajums ? paldies, :) Link to comment Share on other sites More sharing options...
Delfins Posted May 2, 2006 Report Share Posted May 2, 2006 1.) allow_url_fopen 2.) includot 'http://host/script.php'; inkludēs tikai HTML, nevis PHP kodu (ja vien tur nav PHP uzlikts) Link to comment Share on other sites More sharing options...
john.brown Posted May 2, 2006 Report Share Posted May 2, 2006 (edited) Ja nemaldos, url iekš include strādā tik ja allow_url_fopen = 1. Kas, viņi tev uz dažādiem hostiem? Delfin, vai nav otrādāk, ka viņš, ja ir php, atdos viņu kā izpildītu php failu, t.b. dotajā gadījumā neko? p.s. pamēģini tajā detect.php ielikt echo $_SERVER["REMOTE_ADDR"]; p.p.s. Nu ja, tā arī ir, viņš tev includo izpildītu failu :) Edited May 2, 2006 by john.brown Link to comment Share on other sites More sharing options...
zirgs Posted May 2, 2006 Author Report Share Posted May 2, 2006 nu man php allow_url_fopen On bet vienalga nestraadaa ? tad kaa es vareetu dabuut gatavu nee man viens hosts bet vnk man ir galvenaaa sadalja un tad lapas pa folderiem un tapeec es negribu katrai lapai atseviskji likt blakus to detect.php ... tad kaa ir jaasaprot (ja vien tur nav PHP uzlikts) ? Link to comment Share on other sites More sharing options...
Kristabs Posted May 2, 2006 Report Share Posted May 2, 2006 Nu taču PHP izpildās servera pusē, bet ar http Tu jau iegūsti izpildītu failu!! Link to comment Share on other sites More sharing options...
zirgs Posted May 2, 2006 Author Report Share Posted May 2, 2006 znachit tas nav iespeejami taa dariit ? Link to comment Share on other sites More sharing options...
Kristabs Posted May 2, 2006 Report Share Posted May 2, 2006 Ja tev tur ir statisks teksts, tad 'go on', ja Tev tur ir php funkcija, kuru gribi izpildīt, tad aizmirsti.. Link to comment Share on other sites More sharing options...
zirgs Posted May 2, 2006 Author Report Share Posted May 2, 2006 nu ok paldies tad es aizmirstu :) Link to comment Share on other sites More sharing options...
john.brown Posted May 2, 2006 Report Share Posted May 2, 2006 Bļin, un ierakstīt include('../detect.php') nekādi? '../' pēc ielikto folderu skaita. Link to comment Share on other sites More sharing options...
zirgs Posted May 3, 2006 Author Report Share Posted May 3, 2006 nestrada ta itkaa veelvien versija priekshaa likt server[document_root} bet nu viegllaak man vnk parlikt failus ctaadaakaa izkaartojumaa ... thx visiem Link to comment Share on other sites More sharing options...
Recommended Posts