courage Posted January 22, 2007 Report Share Posted January 22, 2007 vai ir kads php script, kurs pirms redirect vai ari pirms Link uzspiesanas parbauda vai strada adrese un ja ne tad parmet uz citu adresi? Taka mirror kad velk kadu failu. Mirror 1 down tad automatiksi nem mirror 2? Link to comment Share on other sites More sharing options...
andrisp Posted January 22, 2007 Report Share Posted January 22, 2007 Ar fsockopen mēģini vispirms atvērt šo adresi. Link to comment Share on other sites More sharing options...
Stopp Posted January 22, 2007 Report Share Posted January 22, 2007 Ja tā lapa ir lēna (vai nav vispār), tad čābīgi būs - viņš sākumā pa'rbaudīs pāris sekundes, tad pateiks, vai tāda lapa eksistē. Jautājums - vai ir jēga? Link to comment Share on other sites More sharing options...
courage Posted January 22, 2007 Author Report Share Posted January 22, 2007 man ir biezas problemas ar domainu un lapa tad nevar ieiet jo IP es publiski negribu izplatit un tas jau butu smiekligi reklama likt ip :P par to fsockopen, es pastijos par vinu, bet isti nesaprotu pec tiem piemeram ka lietot. http://lv2.php.net/manual/en/function.fsockopen.php Link to comment Share on other sites More sharing options...
Stopp Posted January 22, 2007 Report Share Posted January 22, 2007 Tavu IP pēc domēna var elementāri noskaidrot. Un lieto viņu.. nu tur tak ir parādīts. Zini, kā lieto fopen? Lūk, līdzīgi arī šo, tikai te tev jāpasūta headeri un vēl pāris štrunti. Link to comment Share on other sites More sharing options...
andrisp Posted January 22, 2007 Report Share Posted January 22, 2007 Ja ir iespēja, tad var arī ar exec vai system mēģināt pingot tavu domēnu. Link to comment Share on other sites More sharing options...
hmnc Posted January 22, 2007 Report Share Posted January 22, 2007 varbūt ir vērts atrisināt problēmas ar DNS nevis aizmālēt visu? Link to comment Share on other sites More sharing options...
courage Posted January 25, 2007 Author Report Share Posted January 25, 2007 nea... a un vai ir iespeja tada ja iet no adrese1.lv parmet uz /mape1 bet ja iet caur adrese2.lv tad parmet uz /mape2 ? Link to comment Share on other sites More sharing options...
hmnc Posted January 25, 2007 Report Share Posted January 25, 2007 tu dova palasi vispār manuāļus par www serveriem un dns... Link to comment Share on other sites More sharing options...
courage Posted January 28, 2007 Author Report Share Posted January 28, 2007 (edited) varat ludzu pateikt kapec shis nestrada? vins neparmet uz to lapu! Edited January 28, 2007 by courage Link to comment Share on other sites More sharing options...
savejais Posted January 28, 2007 Report Share Posted January 28, 2007 Pamēģini nevis $HTTP_HOST, bet $_HTTP_HOST Link to comment Share on other sites More sharing options...
courage Posted January 28, 2007 Author Report Share Posted January 28, 2007 tikunta nav :( Link to comment Share on other sites More sharing options...
andrisp Posted January 28, 2007 Report Share Posted January 28, 2007 print_r($_SERVER); Link to comment Share on other sites More sharing options...
courage Posted January 28, 2007 Author Report Share Posted January 28, 2007 (edited) ō paldies :) $_SERVER['_HTTP_HOST'] ganjau kadam noderes :) Edited January 28, 2007 by courage Link to comment Share on other sites More sharing options...
Recommended Posts