0
my code running on the pc works 100% but when I play on the server it does not capture the information. follows code so that you help me
<link type="text/css" rel="stylesheet" href="http://jsuol.com.br/c/_template/v1/_geral/css/styles.css?&file=geral&type=parse&versao=v1&plataforma=web&portal=uol&media=webpage&cache=19t3e89gn" />
<link type="text/css" rel="stylesheet" href="http://jsuol.com.br/c/_template/v1/_geral/css/styles.css?&file=especifico&type=parse&versao=v1&plataforma=web&portal=uol&estacao=economia&estacao-id=economia&cache=19t3e89gn" />
<link type="text/css" rel="stylesheet" href="http://jsuol.com.br/c/_template/v1/web/uol/css/internas/economia/cotacoes/styles-cotacoes.css?&cache=19t3e89gn" />
<link type="text/css" rel="stylesheet" href="http://jsuol.com.br/c/economia/cotacoes/cotacoes.css?v13&&cache=19t3e89gn" />
<link type="text/css" rel="stylesheet" href="http://jsuol.com.br/c/_template/v1/web/uol/css/estrutura/conteudo-auxiliar.css?&cache=19t3e89gn" />
<?php
$url = file_get_contents('http://economia.uol.com.br/cotacoes/');
preg_match_all('/<section class="barra-ticker pg-bgcolor3">(.+)<\/p> <\/li> <\/ul> <\/div> <\/section>/s', $url, $conteudo);
$exibir = $conteudo[0][0];
$retirar = array('');
$exibir = str_replace($retirar, '', $exibir);
echo $exibir;
?>
You already gave CHMD 777 in the file folder?
– RFL
may be chmod 775.
– Ivan Ferrer
Maybe you need to enable:
ini_get('allow_url_open')
or ini_set('allow_url_fopen', 1)não precisa ir até o
php.ini` if you don’t have access.– Ivan Ferrer
If you want you can do it for the . htaccess file, just put this rule on it: php_value allow_url_fopen On
– Ivan Ferrer
when giving CHMD 775 in the folder generates an error on the page Internal Server Error The server encountered an Internal error or misconfiguration and was Unable to complete your request. Please contact the server Administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache/2.4.12 (Unix) Openssl/1.0.1e-Fips mod_bwlimited/1.4 Server at ruralrio.com.br Port 80
– Cristiano Cardoso Silva
http://ruralrio.com.br/bolsa/bolsauol.php
– Cristiano Cardoso Silva
error_reporting is enabled?
– user28062
this, is the funniest and that has another page that shows right that the part of rural quotes.com.br/corn.php
– Cristiano Cardoso Silva