CodeIgniter Forums

Full Version: CodeIgniter and allow_url_fopen()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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