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
Job Scheduling in Java
Brightstor 12.5 Exchange Agent issue
sbs2003 exchange external ip change, now emails being sent are bouncing back with smtp errors.
C# Inheritance
DynDNS Setup and configuration
Insert Script from the command prompt
Disable Driver Signature Enforcement during Windows 7 install
HP procurve Core switch vs standard layer 3 switch
Backing up ESX VMs with symantec backup exec 11d
I need assistance with a SQL query