Speed Posted October 8, 2006 Report Share Posted October 8, 2006 es gribeju paprasit vai ar fwrite vispar ir iespejams ierakstit lnk failaa ? <?php $txt = fopen('users.lnk', 'a'); $text = " $ip, $tiesibas"; fwrite($txt, $text); fclose($txt); ?> itka vis pareizi bet neierakstas :( Link to comment Share on other sites More sharing options...
andrisp Posted October 8, 2006 Report Share Posted October 8, 2006 (edited) Vjadzētu varēt ierakstīt jebkurā failā. PS. tev vispār tiesības rakstīt uz to failu ir ? Respektīvi apache jūzeris viņu var rediģēt ? Edited October 8, 2006 by andrisp Link to comment Share on other sites More sharing options...
Speed Posted October 8, 2006 Author Report Share Posted October 8, 2006 PS. tev vispār tiesības rakstīt uz to failu ir ? Respektīvi apache jūzeris viņu var rediģēt ? nezinu Link to comment Share on other sites More sharing options...
andrisp Posted October 8, 2006 Report Share Posted October 8, 2006 (edited) Tev win vai nix ? PS. Un citus failus tu vari mierīgi rakstīt ? Edited October 8, 2006 by andrisp Link to comment Share on other sites More sharing options...
Speed Posted October 8, 2006 Author Report Share Posted October 8, 2006 Tev win vai nix ? PS. Un citus failus tu vari mierīgi rakstīt ? man ir win, nu txt failos toch varu rakstit ! Link to comment Share on other sites More sharing options...
andrisp Posted October 8, 2006 Report Share Posted October 8, 2006 Mēģināji nomainīt users.lnk uz users.txt un strādāja ja ? Link to comment Share on other sites More sharing options...
Speed Posted October 8, 2006 Author Report Share Posted October 8, 2006 Jaa! Link to comment Share on other sites More sharing options...
goldy Posted October 8, 2006 Report Share Posted October 8, 2006 :D :D :D :D bet vai tu zini kas ir *.lnk fails zem win? Link to comment Share on other sites More sharing options...
bubu Posted October 8, 2006 Report Share Posted October 8, 2006 Manuprāt tu te visus čakarē. Ja jau .txt rakstās, tad arī .lnk jārakstās. Skaties, ka neesi kautko saputrojies. goldy: vai nav vienalga, kas ir lnk fails? Kāpēc lai tas liegtu kautko ierakstīt .lnk failā? Link to comment Share on other sites More sharing options...
v3rb0 Posted October 8, 2006 Report Share Posted October 8, 2006 gan jau taisni tur problema, ka ieraksta tieši lnk failā, nevis tur kor šorcuts rāda.. Link to comment Share on other sites More sharing options...
bubu Posted October 8, 2006 Report Share Posted October 8, 2006 Hm.. nu ok, tāda loģika man nav saprotama. Link to comment Share on other sites More sharing options...
Speed Posted October 8, 2006 Author Report Share Posted October 8, 2006 nu vins neieraksta nekur bet kad nomainu uz txt tad ierakta :( :D :D :D :D bet vai tu zini kas ir *.lnk fails zem win? jaa zinu shortcut :P tas kautko maina ? aa un shortcuts norada uz .ini failu Link to comment Share on other sites More sharing options...
bubu Posted October 8, 2006 Report Share Posted October 8, 2006 Un tu skaties, ka viņš ini failā nekā neieraksta? Ja tā, tad viss skaidrs. PHP nekā nezin par visādiem šortkatiem. Viņš raksta tai failā kurā tu liec rakstīt - šajā gadījumā .lnk failā. Uzspied tam lnk fialam labo pogu -> open with... izvēlies notepadu un tad skaties un brīnies. Link to comment Share on other sites More sharing options...
Speed Posted October 9, 2006 Author Report Share Posted October 9, 2006 šajā gadījumā .lnk failā. Uzspied tam lnk fialam labo pogu -> open with... izvēlies notepadu un tad skaties un brīnies. vins neierakstas nekur ari ne lnk failaa ! Link to comment Share on other sites More sharing options...
Delfins Posted October 9, 2006 Report Share Posted October 9, 2006 nu tātad nav tiesības rakstīt tajā failā... vai arī SAFE_MODE un base__dir restriction ? Imho, PHP raksta jebkurā failā, neatkarīgi ne no kāda extension vai citas infas. Link to comment Share on other sites More sharing options...
Recommended Posts