Aditzu Posted June 12, 2013 Share Posted June 12, 2013 (edited) Salutare. Intrebarea mea ar fi urmatoarea: Vreau sa import manual produse in site, am gasit controllerul care se ocupa cu acest lucru, stiu si ce format trebuie sa aiba csv-ul care vreau sa il import dar nu reusesc sa il deschid. Mai exact am codul urmator: $handle= fopen("file.csv", "r"); while (!feof($handle) ) { $line_of_text = fgetcsv($handle, 1024); print_r($line_of_text); echo '<br>'; } exit; dar nu imi citeste nimic. Fisierul file.csv l-am pus in folderul curent dar ma gandesc ca prestashop are un base_url() ceva. In concluzie as vrea sa stiu unde sa pun csv-ul ca sa il pot deschide cu o cale absoluta sau relativa. Multumesc anticipat! Mda am gasit pana la urma. Era simplu. base_url-ul este www.nume_site.ro/admin. TOPIC CLOSED Edited June 12, 2013 by Aditzu (see edit history) Link to comment Share on other sites More sharing options...
storemanagerRO Posted June 16, 2013 Share Posted June 16, 2013 Incearca sa folosesti Store Manager pentru Prestashop, acum disponibil la achizitie si in Romania la www.storemanager.ro. Preturi promotionale. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now