Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

file_get_contents() problem zbog allow_url_fopen

[es] :: PHP :: file_get_contents() problem zbog allow_url_fopen

[ Pregleda: 1742 | Odgovora: 0 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

boccio
Boris Krstović
Spoonlabs.com
nbgd

Član broj: 7594
Poruke: 2458
*.ptt.yu.

Sajt: bocc.io


+771 Profil

icon file_get_contents() problem zbog allow_url_fopen22.04.2005. u 23:21 - pre 231 meseci
Imam problem sa jednim serverom koji je (očigledno) disable-ovao URLove za sve fopen() derivate, pa mi file_get_contents() funkcija vraća:

Code:
Warning: file_get_contents(http://www.example.com/...): 
failed to open stream: no suitable wrapper could be found in /home/etc..

Naravno, tu ne pomaže ni php_value allow_url_fopen 1 ili bilo šta slično...

Da li postoji način da se ovo zaobiđe (pošto se intenzivno koristi), a da pritom ne moram ceo skript da prežvrljam na cURL ili neke druge http_request klase (pear, etc...). Puno bi mi trebalo, iako bi to verovatno proradilo...

Nešto si mislim da je mrka kapa, ali ipak da pitam...

Jeff, one day you’ll understand that it’s harder to be kind than clever.
 
Odgovor na temu

[es] :: PHP :: file_get_contents() problem zbog allow_url_fopen

[ Pregleda: 1742 | Odgovora: 0 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.