Did you try the URL?
<?php require('http://www.kiplingcitizen.com/wp-blog-header.php');?>
The URL should not be used in the the path.
I don’t think you can have it in a .html file. It has to be in a .php file!
Your page should have a php, phtml, or phtm extension if you want to execute PHP on it.
@moshu: Sorry to muddle the issue, but other folks have reported being able to use wp-config.php with sucess. Here’s one:
http://wordpress.org/support/topic/82371?replies=20#post-423237
It HAS to be wp-blog-header.php? Is this perhaps new to this latest release of WP? I’ve created a page that calls the RSS feed function from WP by including wp-config.php, not wp-blog-header.php. This is obvisouly not a support question, but I want the correct information.
I have my htaccess set to handle php script as html
In this file below, which has the duplicate doctype
http://www.kiplingcitizen.com/temp-backup.html
tsquitar,
I looked on that guy’s view code at http://www.amateurillustrator.com/index.php, and I can’t see his use of php require. I did a search for “require” without the quotes and nothing showed up.
Why would the code disappear in my own page?
It is supposed to be located here
<td width=”16%”><img src=”graphics/left-banner.gif” align=”top” alt=”advertise” /></td>
<td width=”68%”><?php require(‘/u/k/kcit0806/www.kiplingcitizen.com/wp-blog-header.php’); ?></td>
<td width=”16%”><img src=”graphics/left-banner.gif” align=”top” alt=”advertise” /></td>
I programmed it as such, save as such, and ftp it in ascii, then that php require line disappears!
You will not see <?php require('/u/k/kcit0806/www.kiplingcitizen.com/wp-blog-header.php'); ?> when you view the source of a page with a browser because this php script gets executed on the server. This goes for all server-side scripting languages. Basically, the server reads the contents of the file, does whatever it says and then outputs it to the browser. If you could see it than that means it has been handled incorrectly.
I see! I can’t see the code in the viewsource because it is being handled correctly. But I did not get any output. There was a blank section where the blog should have been.
So now what do I do if the php is executing correctly?
http://www.kiplingcitizen.com/temp.html
Below shows the WP is working but with the duplicate doctype, etc.
http://www.kiplingcitizen.com/temp-backup.html
Here, I was ready to give up. And now there is still hope to integrate!
Most modern browsers will pick up the slack on a lot of invalid code. This isn’t recommended as you will not be able to be reasonably sure that your site will work for your intended audience. I believe the amount of time you spent putting WP into your site could have easily yielded success with you putting your site into WP. Your site seems to be tentatively working but I am positive you will be running into a multitude of problems down the road when you want to add more functionality in the form of plugins, upgrades, etc…
I have never even thought of putting my site into WP. I guess I should read up on that.
What I mean by that so there is no confusion. Find a theme with the basic format you want and then alter the css to have your original site’s look. Your current navigation would be a little tricky, but if your the one who originally created it than I think you’ll be able to do it just fine. This way you’ll be able to get the full amount of functionality and benifit out of WP instead of associating with a lot of future headaches.