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
MS-Access doesn't recognize all rows in text file ...
Current Logged In User
average value of a function
Cost of CAT5e cable installation
JavaScript: Alert when checkbox value changed
Any ideas how to create your own loadbalancer using linux?
Outlook 2007/Mozilla Thunderbird Cannot Connect to Email Server
classic asp recordset paging
Windows XP and Microsoft Outlook and Windows Installer problems
This search script is presenting the option for Next 10 when there aren't any results. What do I need to add to not show when there aren't results?