Topic Closed
rearea
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 :

  • Notice (8)Use of undefined constant formulaire - assumed 'formulaire'
        in: /var/www/vhosts/mysite.com/subdomains/formation/httpdocs/data/_addoncode/us5pn25/ExecPHP.php(30) : eval()'d code
        on line: 1
  • Notice (8)Use of undefined constant php - assumed 'php'
        in: /var/www/vhosts/mysite.com/subdomains/formation/httpdocs/data/_addoncode/us5pn25/ExecPHP.php(30) : eval()'d code
        on line: 1
  • Warning (2)include_once(formulairephp) [function.include-once]: failed to open stream: No such file or directory
        in: /var/www/vhosts/mysite.com/subdomains/formation/httpdocs/data/_addoncode/us5pn25/ExecPHP.php(30) : eval()'d code
        on line: 1
  • Warning (2)include_once() [function.include]: Failed opening 'formulairephp' for inclusion (include_path='.:')
        in: /var/www/vhosts/mysite.com/subdomains/formation/httpdocs/data/_addoncode/us5pn25/ExecPHP.php(30) : eval()'d code
        on line: 1

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 ?

 

11 years ago#2818

Josh S.
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.

11 years ago#2820

rearea
18 Posts

wow such a noob error... i did it so many times... okay working 24h long is not good for brain... Thank you very much :)

11 years ago#2823

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In

  Register