Microsoft
Software
Hardware
Network
Question : Problem with require('./wp-blog-header.php'); The ./ is throwing a 500 error message.
Problem with require('./wp-blog-header.
php'); The ./ is throwing a 500 error message.
I am running on a Windows 2008 server, 64 bit, with IIS7.
You can see my php info at
http://www.greatersba.org/
php-info.p
hp
I have a Wordpress installation, that I discovered this issue in. But the problem doesn't seem to be a Wordpress issue, it seems to be more of a PHP on Windows issue.
For some reason, in the information I found (when looking around) the use of ./ is supposed to tell PHP to look in the "currrent folder" for the file that is being called, as in require('./wp-blog-header.
php');
But, with the ./ in front, I always get a 500 error. Even if I put just a / I get a 500 error.
I would like to fix this if possible so it would work normally, but since I am on a Windows 2008 server with IIS7 .. I am not sure how to get this to work properly. Most of what I see on the net refers to Linux servers.
Can someone explain why it's not working properly on my Windows server .. and what I might be able to do or change (somewhere) so this will work (without my having to remove the ./ in front of the file name??
Thanks,
Gary
Answer : Problem with require('./wp-blog-header.php'); The ./ is throwing a 500 error message.
On a windows install I do not believe you need the ./ or the / just:
require('wp-blog-header.ph
p');
I will have to connect and look at one of mine but I am out of the office right now. Give that a try though and let me know.
Random Solutions
ASA 5505 DMZ won't Access Internet
Server does not boot
FAXCOOLWAREZ037 192.168.1.38 00-1A-73-C3-39-8A
VPN split tunneling not working on ASA5510
SBS2008 migration to Windows 2008 Std
ACT Sage, reattach a database that has already been re-created possible?
Resolve User Name Display Issue and Change Admin PWD in Windows Server 2003
Visual studio Team System
Hyper-V server 2008 R2
Read data from registry key not working