18 | Posts |
hie,
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 ?
2K | Posts |
304K | Downloads |
16 | Themes |
18 | Plugins |
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:
include_once('formulaire.php');
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:
include_once('/var/www/vhosts/mysite.com/subdomains/formation/formulaire.php');
or
include_once('/var/www/vhosts/mysite.com/subdomains/formulaire.php');
All depending on where you've put the formulaire.php file.
18 | Posts |
A new release for Typesetter is in the works with a lot of improvements including the ... Read More
Typesetter 5.1Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More
More NewsFind out more about our Provider Spotlight
What CMS: Find out what CMS a site is using.
Who Hosts This: Find out who is hosting any web site
WordPress Theme Detect: Find out which theme a WordPress site is using