2
Hello, I use the code below in windows and works perfectly, but when I use the ubuntu, the only error that returns is GET http://site.com/ 500 (Internal Server Error)
, already in windows works perfectly.
index php.
include 'home.php'
home php.
require_once DIR_FUNCS.'func.php';
What is the value of
DIR_FUNCS
?– Woss
@Andersoncarloswoss
define ("DIR_FUNCS",'./'funcs/');
, I’ve tried to put the straight way/var/www/site/funcs/func.php
, but it didn’t work the same way.– Lucas Caresia
There’s no syntax error there, is there? What
'
beforefuncs
?– Woss
Correcting,
define ("DIR_FUNCS",'./funcs/');
, I accidentally put in time to answer.– Lucas Caresia
Have you tried inserting parentheses:
require_once(...)
?– Woss
@Andersoncarloswoss Already, it did not result in anything.
– Lucas Caresia
Where are you setting DIR_FUNCS? tenta so para teste no lugar de DIR_FUNCS.'func.php' colocar (_ _ DIR_ _.'/funcs/func.php') <-"obs:remove os espacos entre _ _ DIR _ _ o site nao esta deixando junto" isso se a pasta funcs ficar na mesma pasta que home.php
– Robson gomes de jesus
I was doing some tests and returned a new error
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
, I don’t know if that helps.– Lucas Caresia
error 500 is usually permission error
– Robson gomes de jesus
Indeed, I gave the necessary permissions, and returned to that error
GET http://site.com/ 500 (Internal Server Error)
. Using xampp keeps giving the error, but works the same way.– Lucas Caresia