When I try to include a long file path the PHP include fails to load. A short include path works fine.
For example, the following will fail:
../../contents/2010-St-Louis-Rams-Tickets-Season-Package-Includes-Tickets-For-All-Regular-Season-Home-Games/inc/title.inc
Does anyone have any idea where the problem could be?
Please check if your path (including drive name etc) exceeds 260 characters. Because that's the maximum directory length for Windows. Click here to see the reference.
The reference also states that there is the possibility to create extra-long path names by prepending the path name with "\?\". That should expand the maximum path length to 32767 characters. But I have no idea if this can be used within PHP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With