Raiviic Posted August 28, 2006 Report Share Posted August 28, 2006 ja godigi nezinu pat ka google shito pajautat, lieta sekojosha ir saite http://www.blablabla.com?a=b&c=d jautajums ir ka apstradat sho saiti lai rezultata butu nevis garaa pentere, bet gan teksts *saite* un zem shi nosaukuma ari butu viss garais arprats, shis te joks ir domats komentaru apstradei Link to comment Share on other sites More sharing options...
Toms Posted August 28, 2006 Report Share Posted August 28, 2006 <a href="http://www.blablabla.com?a=b&c=d">Saite</a> Domāji šito? Link to comment Share on other sites More sharing options...
Raiviic Posted August 28, 2006 Author Report Share Posted August 28, 2006 Nevajag taisīt liekas QUOTEs shitais ir istais bet ka to norealizet kad php njem ara no mana plain/text faila to linku ??? Link to comment Share on other sites More sharing options...
Toms Posted August 28, 2006 Report Share Posted August 28, 2006 5 Ls un uztaisīšu. a ja nē, tad pieņemsim, ka iekš $links ir ielasīta tā saite. echo '<a href="'.$links.'">Saite</a>'; Link to comment Share on other sites More sharing options...
Raiviic Posted August 28, 2006 Author Report Share Posted August 28, 2006 Nevajag taisīt liekas QUOTEs man shito vajag nekomercialai web lapai :P man vajag lai kads pasviez ideju, man nevajag gatavu risinajumu :P Link to comment Share on other sites More sharing options...
Toms Posted August 28, 2006 Report Share Posted August 28, 2006 (edited) Ko tad īsti tev vajag zināt? Kā linku paslēpt, uzzināji. Kā nolasīt info no faila? ja godigi nezinu pat ka google shito pajautat PHP read from file Elementārs juatājums googlei... Ideja pasviesta. Un tas man neko nemaina - komerciāla vai nē tev tā lapa. EDIT: Piemirsu pateikt, lai netaisi nevajadzīgas QUOTEs. Edited August 28, 2006 by Toms Link to comment Share on other sites More sharing options...
goldy Posted August 28, 2006 Report Share Posted August 28, 2006 normāls frukts nekomerciāla lapa, mums ko, būtu tāpēc nekomerciāli jāēd? Link to comment Share on other sites More sharing options...
Raiviic Posted August 28, 2006 Author Report Share Posted August 28, 2006 ok, meginashu velreiz - ir fails ar infu : bla bla shnabl shnabl http://www.kautkas.com?dibens=ir&visskartiba=true bla bla shnabl shnabl. kaa lai no shi brinuma izvelt tieshi linku ? un linku noslepj zem jebkada virsraksta? Link to comment Share on other sites More sharing options...
jauninjais Posted August 28, 2006 Report Share Posted August 28, 2006 <a title ? Link to comment Share on other sites More sharing options...
Raiviic Posted August 28, 2006 Author Report Share Posted August 28, 2006 (edited) ok velreiz ir : bla bla shnabl shnabl http://www.kautkas.com?dibens=ir&visskartiba=true bla bla shnabl shnabl vajadzetu : bla bla shnabl shnabl *links* bla bla shnabl shnabl, kur zem *links* ir http://www.kautkas.com?dibens=ir&visskartiba=true Edited August 28, 2006 by Raiviic Link to comment Share on other sites More sharing options...
Toms Posted August 28, 2006 Report Share Posted August 28, 2006 http://lv2.php.net/manual/en/ref.regex.php Link to comment Share on other sites More sharing options...
goldy Posted August 28, 2006 Report Share Posted August 28, 2006 šāds variantsvarētu būt: preg_replace( "`((http)+(s)?:(//)|(www\.))((\w|\.|\-|_)+)(/)?`i", "<a href=\"http\\3://\\5\\6\\8\\9\" title=\"\\0\">\\5\\6</a>", 'VISS TAVS TEKSTS') Link to comment Share on other sites More sharing options...
Raiviic Posted August 28, 2006 Author Report Share Posted August 28, 2006 velviens dumsh jautajums es visu tekstu noteikti varu ielikt mainigaja piem $s un tad darit shita: preg_replace( "`((http)+(s)?:(//)|(www\.))((\w|\.|\-|_)+)(/)?`i", "<a href=\"http\\3://\\5\\6\\8\\9\" title=\"\\0\">\\5\\6</a>", $s); ka pectam man jau parveidoto tekstu mest uz ekrana??? sorrry tiku gala, jautajums ir par to ka dabut mainogs lidzi linkam kas nak aiz .com?dibens=ir&visskartiba=true Link to comment Share on other sites More sharing options...
bubu Posted August 28, 2006 Report Share Posted August 28, 2006 RTFM, RTFM un vēlreiz RTFM. print_r($_GET); Link to comment Share on other sites More sharing options...
Raiviic Posted August 28, 2006 Author Report Share Posted August 28, 2006 es negribu jums visiem smagi sakrist uz nerviem, talak tikshu gala pats, paldies Link to comment Share on other sites More sharing options...
Recommended Posts