|
Posted by chotiwallah on 10/19/16 11:28
Zeff wrote:
> Hi all,
>
> I'm trying to generate a csv file from an ldap query (by generating a
> string by concatenating with comma's - echo of the string in the browser
> looks fine).
> Is there a simple way (without using dedicated classes) to export this
> string to a csv file (or display the csv in the browser, so it can be saved?
>
> Thanks a lot!
>
> Zeff.
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=YOUR_FILE.csv");
print $YOUR_STRING;
micha
Navigation:
[Reply to this message]
|