With gpeasy 2.3.2 and Execute PHP, i can't include a php file with include() nor require(), the first one do not give the included file
I tried lot of path or chmod possibilty but without success ..
here is the debug output :
the name of the file is formulaire.php but it seems not to be properly interpreted..
i tried to add <?php ?> tags but it's the same
Any idea ?
Ok, looks like there are a couple things happening here. You have notices saying "Use of undefined constant" so it sounds like one of the things you need is to wrap the file path in quotes like this:
This may only fix the 'undefined constant' notices though. The other thing you need to do is provide the correct path for the file. Notice that the error messages provide long file paths for the file throwing the error: "/var/www/vhosts/mysite.com/subdomains/formation/httpdocs/data/_addoncode/us5pn25/ExecPHP.php". Your include_once(...) needs something like that:
All depending on where you've put the formulaire.php file.
Find out more about our Provider Spotlight