Re: php code to download CSV file from a library located above Wwwroot
- From: Martin Potestas <martin@xxxxxxxxxxx>
- Date: Tue, 13 Jan 2009 13:53:15 +0100
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+
.
- References:
- Prev by Date: Re: Using POST and GET at the same time?
- Next by Date: Re: Using POST and GET at the same time?
- Previous by thread: Re: php code to download CSV file from a library located above Wwwroot
- Next by thread: Are you interested in Open Source Blog? - If yes, have a look on http://www.opensourceuniverse.com/blog and post your blogs
- Index(es):
Relevant Pages
|