Re: php code to download CSV file from a library located above Wwwroot



kim@xxxxxxxxxxx skrev:
Hello

I have made a php code that import a CSV file into a table in MySQL
database on the same website
My problem is that I want the php code to download CSV file from a
library located above Wwwroot

Is there anyone who knows a solution to this?
Hope can help me

Kimo

--------------------------------------------------------------------------------------------------------------------------------------------------
In Danish


Hej

Jeg har lavet noget php-kode der importere en csv fil i en tabel i
MySql databasen på samme website
Mit problem er at jeg gerne vil have at php koden skal hente csv filen
fra et bibliotek der ligger ovenfor wwwroot

Er der nogen der kender en løsning på dette ?
Håber i kan hjælpe mig

Kimo

Hi Kim,


If the problem is that you cannot get access you might want to look into the php.ini open_basedir option.

But did you try just using ../../filename.csv?

Og Dansk er også helt i orden for mig :-)

--
Kind regards

Martin Potestas
Microsoft MCP | Astaro ACA, ACE
CompTIA A+, Server+, Linux+
.



Relevant Pages