I have a file where it only contains the following code starting at the first line:
<?php
echo "01";
?>
However when running, the following error appears:
Parse error: syntax error, unexpected '"01"' (T_CONSTANT_ENCAPSED_STRING)
How can you make a mistake with this command if you have nothing before or after? So I set it this way:
<?php echo "01"; ?>
And finally it works. I am creating in Netbeans 8.2. Someone knows to inform me why this occurs in case the other pages happen, I know how to correct, because I lost a good time trying to solve this and I sincerely could not understand. When I gave a print, Google appears HTTP error 500
The file is inside the directory:
public_html / site /
But you have an htaccess file inside the public_html root folder that directs you to the site /
# Bloqueia acesso direto a pastas
Options All -Indexes
# Enable Rewrite Engine
RewriteEngine On
RewriteBase /
RedirectMatch ^/$ http://www.sitecliente.com.br/site
# Redirect index.php Requests
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/system/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]
# Adiciona o www a frente do dominio
#RewriteCond %{HTTP_HOST} ^seusite.com.br [NC]
#RewriteRule ^(.*)$ http://www.seusite.com.br/$1 [L,R=301]
# Standard ExpressionEngine Rewrite
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
# Erros personalizados
#ErrorDocument 401 /erros/falhaautorizacao.html
#ErrorDocument 404 /erros/naoencontrado.html
#ErrorDocument 403 /erros/acessonegado.html
#ErrorDocument 500 /erros/errointerno.html
# Melhorando o cache para maior velocidade
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$">
Header set Cache-Control "max-age=28800"
</FilesMatch>