Problem with "include" |
3/6/2025 3:14:14 PM |
PHPRunner General questions | |
M
Mauipm author
HI, In the "After application initialized" event I inserted, at the beginning: include_once("global.php"); the global.php file is in the root of the application. it contains the simple function: Locally everything works perfectly (in the past I've used many complex php files inclusion, without problem in local but never working on-line) Online, instead, after inserting: to get some messages, I get these errors Warning: Undefined array key "ODBCString" in /home/customer/www/kesira.it/public_html/test_usa_getta/connections/Connection.php on line 60 Has anyone had the same problem in the past? Suggestions? Mauro |
|
![]() |
Sergey Kornilov admin 3/6/2025 |
The first few warning suggest that you use a newer version of PHP on the server while your project was built with an older version of PHPRunner. Probably not important but recommended to rebuild the project using the latest version of the software. The include file problem suggests that you have some whitespace in that global.php file after the closing ?>. Make sure that there are no spaces or empty line after ?> in that file. |
M
|
Mauipm author 3/7/2025 |
Thanks for the suggestions.
I managed to get the include to work online, but only by removing the login. P.S.: I'm using PHPRUNNER 10.91-build 41242 Mauro |
M
|
Mauipm author 3/10/2025 |
I imported the project into phprunner11-build 43060, and the error continues to appear:
Does anyone have the same problem? |