Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

PHP: Warning: include failed to open stream no such file or directory on Windows

I would make it dynamic so that you can also include this file in other files and still have it work properly.

include_once(dirname(__FILE__).'/../config/eventInfoConfig.php');

Fixing the include_path() to include the right path does the trick.

Tags:

Php

Include

Related

How to put a new line into a wpf TextBlock control? Programmatically setting the name of a variable What Does Question Mark Mean in Xcode Project Navigator? JSON.parse unexpected character error Hibernate throws strange error: Class is not mapped Java Reflection: How can I get the all getter methods of a java class and invoke them Jenkins Slave Environment Variable Refresh Xcode custom build configuration causes "library/file not found" for static libraries Remove accents from String Reset Embedded H2 database periodically Get most recent row for given ID How do I move a relative symbolic link?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy