Jump to content

require config.inc.php does'nt work and load homepage instead


limonaderose

Recommended Posts

I'm working local in an external folder from prestashop (C:\xampp\htdocs/other_folder\script.php) and need to include or require config.inc.php in my file to call some prestashop function.

 

I use:

require('C:\xampp\htdocs/prestashop/config/config.inc.php');

 

when this line is executed, it loads the homepage of the shop(index.php) and stop the script.

 

Version is 1.6.0.8

 

Can somebody explain please?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...