AlwaysStudent
AlwaysStudent

Reputation: 1374

php include wont work from online server

What is the problem following code ?

include_once("theme/login_theme/$loginTheme/landing_first.php");

The code is working fine in my localhost but when i upload my files from the online server this code doesn't worked. What is the problem here ?

Upvotes: 1

Views: 66

Answers (1)

Omar Abu Omar
Omar Abu Omar

Reputation: 62

In order to see the error try require_once instead of include_once, in general, cases if the code does not work on the server you need to check: The character case The file if exists The string and variables,

require_once("./theme/login_theme/".$loginTheme."/landing_first.php");

Hope this will be helpful,

Upvotes: 1

Related Questions