server ayarlarından dolayı şu hatayı alıyorum şu kodlardan nasıl aşabilirim acaba.
hata :URL file-access is disabled in the server configuration
şu şekle getirdimmi de
implode() [function.implode]: Bad arguments hatasını alıyorum.
hata :URL file-access is disabled in the server configuration
PHP:
PHP Kodu:
if(!file_exists($path)) {
$data = strip_tags(implode('', file($path)));
şu şekle getirdimmi de
PHP:
if(!file_exists($path)) {
$ch = curl_init($path);
curl_setopt($ch, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($ch, CURLOPT_REFERER, "http://www.molo.com/");
curl_setopt($ch, CURLOPT_USERAGENT, "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$kaynak = curl_exec($ch);
curl_close($ch);
$data = strip_tags(implode('', $kaynak));
implode() [function.implode]: Bad arguments hatasını alıyorum.