Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > General > Talk back

Talk back The place were PHP-Editors and site users can exchange opinions.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2004-06-23, 05:16 PM
Junior Member
 
Join Date: Dec 2003
Location: Earth!
Posts: 3
Uzma
Send a message via AIM to Uzma Send a message via MSN to Uzma
Default

Anyone here ever use WordPress? I just installed it for my blogging tool, I used to use b2 then I went over to MoveableType but now they started charging so I switched to WordPress which is amazing but I need some help with php.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2004-06-24, 11:12 AM
stuart's Avatar
Administrator
 
Join Date: Jan 2003
Location: Scotland
Posts: 472
stuart will become famous soon enoughstuart will become famous soon enough
Send a message via MSN to stuart
Default

Hi Uzma,

I tested Wordpress a while ago and thought it was very interesting, but for some reason I never used it... can't remember why now (probably just to bloatted for what I needed at the time). Anyways, what kind of help do you need? you say with PHP, so why not post the PHP code and your question and we can see if anyone can help. Best to post it in the programming help forum.

Cheers,
Stuart
Reply With Quote
  #3 (permalink)  
Old 2004-06-26, 12:28 AM
Junior Member
 
Join Date: Dec 2003
Location: Earth!
Posts: 3
Uzma
Send a message via AIM to Uzma Send a message via MSN to Uzma
Default

Hi,
thank you so much for your reply.
here is the code:
Code:
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php /* Don't remove this line, it calls the WP function files ! */
$blog=1;
require_once("wp/wp-blog-header.php"); ?>
<? include("header.php") ?>
<!-- // loop start -->
<? giggle_autolink($html_string,-1,1); ?>
<?php foreach ($posts as $post) { start_wp(); ?>
<table width="100%"><tr><td class="top">
<?php the_date("d.m.y","<b>","</b>"); ?></td></tr><tr>
   <td class="main"> 
    <?php the_content(); ?>
 <br />Plugs: <? comment_plugger(); ?> <br />
    <p align="right"><?php link_pages("<br />Pages: ","<br />","number") ?>
    <?php comments_popup_link("comments ?", "1 comment", "% comments") ?></p>
    <?php include ("wp/wp-comments.php"); ?>
    <p align="right"><a href="javascript: history.back(-1)">Turn back</a></p>
</td></tr></table><?php } ?></div>
</body>
</html>
Now when I go to my site: http://twinkle-stars.com/wp , I get an error which says:
Quote:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Only one top level element is allowed in an XML document. Error processing resource 'http://twinkle-stars.com/wp'. Line 3, Position 2

Warning: main(wp/wp-blog-header.php): failed to open stream: No such file or directory in /home/twinkles/public_html/wp/index.php on line 5
Now I'm not sure where I messed up because I was trying to make it so each is in its own table.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.0 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.0 (a popular PHP IDE) and NuCoder 1.4 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:56 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.