CodeIgniter Forums
CodeIgniter and allow_url_fopen() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CodeIgniter and allow_url_fopen() (/showthread.php?tid=38810)



CodeIgniter and allow_url_fopen() - El Forum - 02-19-2011

[eluser]Kobus M[/eluser]
Hi all,

I am getting this error when trying to do an fopen() call on a CSV file.

A PHP Error was encountered

Severity: Warning

Message: fopen(http://localhost/hoopla/hooplasys/exports/leads_export.csv) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections

Filename: controllers/admin.php

Line Number: 49


Here is some extra info:

1. I am using CI 1.7.2
2. allow_url_fopen = On in my php.ini
3. When I do the fopen() outside of CodeIgniter, it works fine.

Any ideas welcome on how I can solve this problem will be greatly appreciated.

Thanks!

Kobus