torrentz Posted January 16, 2008 Report Share Posted January 16, 2008 (edited) Tātad, es esmu pārgājis uz jaunu ielāžu skriptu, kas atrodas /download2/download mapee (visi faili arii ir paarnesti uz jauno mapi), bet ir vēlme darbināt arī veco ielāžu centru, kas atrodas /download mapē (google meklētajam tas ļoti patika). tagad vecajam ielāžu centram adrese uz failiem ir index.php?dir=../download2/download/faila_mape/fails, bet gribās izveidot tā, ka pārlūkā ievadot index.php?dir=/download/faila_mape/fails patiesibaa atvērtos index.php?dir=../download2/download/faila_mape/fails. Edited January 16, 2008 by torrentz Link to comment Share on other sites More sharing options...
marcis Posted January 17, 2008 Report Share Posted January 17, 2008 Es laikam rewrite te neizmantotu, tikai lieki čakari būs. Ņem no $_GET['dir'] parametrus, eksplodē un velc ārā vajadzīgo failu. Link to comment Share on other sites More sharing options...
Delfins Posted January 17, 2008 Report Share Posted January 17, 2008 kāda jēga bija pāriet uz jaunu mapi? Ja tu tā gribi, tad ir divi varianti... 1.) feikais links... vēlāk lūko abos folderos 2.) atlikt visu atpakaļ Link to comment Share on other sites More sharing options...
torrentz Posted January 17, 2008 Author Report Share Posted January 17, 2008 (edited) viss pasham sanaaca, nemaz nebija tik grūti, tikai trīs vietās skriptu vajadzēja izlabot :) Edited January 17, 2008 by torrentz Link to comment Share on other sites More sharing options...
hackerman Posted January 27, 2008 Report Share Posted January 27, 2008 Lai nebūtu jāsāk jauns topiks, parazitēšu uz šitā. Kā var ieslēgt to mod_rewrite moduli? Lietoju appserv 2.5.8. Uz hostinga man ir tas modulis, bet pašam uz savas kastes arī vajag. Link to comment Share on other sites More sharing options...
andrisp Posted January 27, 2008 Report Share Posted January 27, 2008 google: enabling mod_rewrite Link to comment Share on other sites More sharing options...
Recommended Posts