<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: An Example Rich Text Editor Image Upload with PHP</title>
	<atom:link href="http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/</link>
	<description>Where stuff from my brain lands</description>
	<pubDate>Wed, 20 Aug 2008 03:33:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: quatromil</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-650</link>
		<dc:creator>quatromil</dc:creator>
		<pubDate>Sun, 10 Aug 2008 20:36:33 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-650</guid>
		<description>It worked Dennis

Thanks ;)</description>
		<content:encoded><![CDATA[<p>It worked Dennis</p>
<p>Thanks <img src='http://allmybrain.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-649</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Sat, 09 Aug 2008 23:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-649</guid>
		<description>Just return whatever path that the image can be viewed at.  The editor doesn't display images any different than your browser does when you put the correct path in your browser's address bar.  User A debugger to see what path is returned and compare against what it should be.</description>
		<content:encoded><![CDATA[<p>Just return whatever path that the image can be viewed at.  The editor doesn&#8217;t display images any different than your browser does when you put the correct path in your browser&#8217;s address bar.  User A debugger to see what path is returned and compare against what it should be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quatromil</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-648</link>
		<dc:creator>quatromil</dc:creator>
		<pubDate>Sat, 09 Aug 2008 23:00:25 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-648</guid>
		<description>sorry, this is my server folders for images and not the last one:
“www/project/images/uploads/” (http://localhost/project/images/uploads).

just in case ;)</description>
		<content:encoded><![CDATA[<p>sorry, this is my server folders for images and not the last one:<br />
“www/project/images/uploads/” (http://localhost/project/images/uploads).</p>
<p>just in case <img src='http://allmybrain.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quatromil</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-647</link>
		<dc:creator>quatromil</dc:creator>
		<pubDate>Sat, 09 Aug 2008 22:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-647</guid>
		<description>Hi Denis.

I realized what is the problem (because i could add an image to the text area, but writing the path with the Image file name), it's the path,
i have in my server this folders for the images:
"project/images/uploads/" (http://project/images/uploads)

I dont know what path do I must to put in:

// define the uploading dir
$path = "Image";
...
//you'll need to modify the path here to reflect your own server.
$path = "http://localhost/project/images/" . $path;

(The path for this code is: http://localhost/project/images/Image.jpg)

Because the Editor saves an image and later takes that new image to the textarea, and i am confuced about what paths should i put there.

Can you help me? :)</description>
		<content:encoded><![CDATA[<p>Hi Denis.</p>
<p>I realized what is the problem (because i could add an image to the text area, but writing the path with the Image file name), it&#8217;s the path,<br />
i have in my server this folders for the images:<br />
&#8220;project/images/uploads/&#8221; (http://project/images/uploads)</p>
<p>I dont know what path do I must to put in:</p>
<p>// define the uploading dir<br />
$path = &#8220;Image&#8221;;<br />
&#8230;<br />
//you&#8217;ll need to modify the path here to reflect your own server.<br />
$path = &#8220;http://localhost/project/images/&#8221; . $path;</p>
<p>(The path for this code is: <a href="http://localhost/project/images/Image.jpg" rel="nofollow">http://localhost/project/images/Image.jpg</a>)</p>
<p>Because the Editor saves an image and later takes that new image to the textarea, and i am confuced about what paths should i put there.</p>
<p>Can you help me? <img src='http://allmybrain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-645</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Sat, 09 Aug 2008 18:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-645</guid>
		<description>It looks to me like you're trying to do this on your local machine.  It's really set up to work with a web server.  Not that you can't do it on your local machine.  The path returned to the script just needs to tell the editor the correct URL to display the image at.  The problem may be that the editor things you're using a relative path instead of an absolute one for the file or something.

Have you tried debugging in FireFox with FireBug?</description>
		<content:encoded><![CDATA[<p>It looks to me like you&#8217;re trying to do this on your local machine.  It&#8217;s really set up to work with a web server.  Not that you can&#8217;t do it on your local machine.  The path returned to the script just needs to tell the editor the correct URL to display the image at.  The problem may be that the editor things you&#8217;re using a relative path instead of an absolute one for the file or something.</p>
<p>Have you tried debugging in FireFox with FireBug?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quatromil</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-644</link>
		<dc:creator>quatromil</dc:creator>
		<pubDate>Sat, 09 Aug 2008 18:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-644</guid>
		<description>i changed the paths like this:

// define the uploading dir
$path = “C:/www/project_name/include”;
…
//you’ll need to modify the path here to reflect your own server.
$path = “C:/www/project_name/include” . $path;

and the image is viewable from my www folder
http://www/project_name/image.jpg

but i have the same problem, i dont understand why</description>
		<content:encoded><![CDATA[<p>i changed the paths like this:</p>
<p>// define the uploading dir<br />
$path = “C:/www/project_name/include”;<br />
…<br />
//you’ll need to modify the path here to reflect your own server.<br />
$path = “C:/www/project_name/include” . $path;</p>
<p>and the image is viewable from my www folder<br />
<a href="http://www/project_name/image.jpg" rel="nofollow">http://www/project_name/image.jpg</a></p>
<p>but i have the same problem, i dont understand why</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-643</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Sat, 09 Aug 2008 18:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-643</guid>
		<description>Sounds like you have a problem with the image page returned by your upload script.

Check 2 things:
1) You are returning the correct path back to the editor with your upload script.
2) That the image is viewable with a web browser at that path. Example: http://myserver/uploads/myimage.jpg</description>
		<content:encoded><![CDATA[<p>Sounds like you have a problem with the image page returned by your upload script.</p>
<p>Check 2 things:<br />
1) You are returning the correct path back to the editor with your upload script.<br />
2) That the image is viewable with a web browser at that path. Example: <a href="http://myserver/uploads/myimage.jpg" rel="nofollow">http://myserver/uploads/myimage.jpg</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quatromil</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-642</link>
		<dc:creator>quatromil</dc:creator>
		<pubDate>Sat, 09 Aug 2008 18:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-642</guid>
		<description>Hi,
I have a problem with the editor and i dont know what it is :(

i have this code in my app:

             Editor = new YAHOO.widget.Editor('body', {
                 height: '400px',
                 width: '548px',
                 dompath: true,
                 animate: true
            });

             Editor.render();

             yuiImgUploader(Editor, 'include/yui_img_uploader.php','image');

In the yui_img_uploader.php file i have this paths:

// define the uploading dir
$path = "C:/";
...
//you'll need to modify the path here to reflect your own server.
$path = "C:/www/project_name/include" . $path;

then when i select the image from the editor and i clic in "upload image", the image is saved in "C:/" and also an alert which says "UPLOADED" is shown, but the image is not added to the text editor.

I want the image to be added to the text editor, but i'm still dont know how to do that :(</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have a problem with the editor and i dont know what it is <img src='http://allmybrain.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>i have this code in my app:</p>
<p>             Editor = new YAHOO.widget.Editor(&#8217;body&#8217;, {<br />
                 height: &#8216;400px&#8217;,<br />
                 width: &#8216;548px&#8217;,<br />
                 dompath: true,<br />
                 animate: true<br />
            });</p>
<p>             Editor.render();</p>
<p>             yuiImgUploader(Editor, &#8216;include/yui_img_uploader.php&#8217;,'image&#8217;);</p>
<p>In the yui_img_uploader.php file i have this paths:</p>
<p>// define the uploading dir<br />
$path = &#8220;C:/&#8221;;<br />
&#8230;<br />
//you&#8217;ll need to modify the path here to reflect your own server.<br />
$path = &#8220;C:/www/project_name/include&#8221; . $path;</p>
<p>then when i select the image from the editor and i clic in &#8220;upload image&#8221;, the image is saved in &#8220;C:/&#8221; and also an alert which says &#8220;UPLOADED&#8221; is shown, but the image is not added to the text editor.</p>
<p>I want the image to be added to the text editor, but i&#8217;m still dont know how to do that <img src='http://allmybrain.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-614</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Mon, 04 Aug 2008 12:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-614</guid>
		<description>The editor itself has a getEditorHTML method.  You can also configure the editor to post it's content along with the parent form if you just want to submit the content like any other textbox to your server for processing.</description>
		<content:encoded><![CDATA[<p>The editor itself has a getEditorHTML method.  You can also configure the editor to post it&#8217;s content along with the parent form if you just want to submit the content like any other textbox to your server for processing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajishankar</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-613</link>
		<dc:creator>rajishankar</dc:creator>
		<pubDate>Mon, 04 Aug 2008 05:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-613</guid>
		<description>I wanted to store all the matter I typed in text box as htm page. How to get it?</description>
		<content:encoded><![CDATA[<p>I wanted to store all the matter I typed in text box as htm page. How to get it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-551</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Mon, 07 Jul 2008 19:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-551</guid>
		<description>Not sure exactly what you mean Hans..  You can of course, use the Yahoo RTE directly from the Yahoo servers.</description>
		<content:encoded><![CDATA[<p>Not sure exactly what you mean Hans..  You can of course, use the Yahoo RTE directly from the Yahoo servers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-550</link>
		<dc:creator>Hans</dc:creator>
		<pubDate>Mon, 07 Jul 2008 16:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-550</guid>
		<description>so, is it mean that we read RTE from yahoo server? thanks</description>
		<content:encoded><![CDATA[<p>so, is it mean that we read RTE from yahoo server? thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-531</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Wed, 11 Jun 2008 20:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-531</guid>
		<description>Fixed.  Thanks.  The actual script I'm using had that commented out.</description>
		<content:encoded><![CDATA[<p>Fixed.  Thanks.  The actual script I&#8217;m using had that commented out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slappy THM</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-530</link>
		<dc:creator>Slappy THM</dc:creator>
		<pubDate>Wed, 11 Jun 2008 20:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-530</guid>
		<description>In your PHP script, the trailing curly bracket on line 26:

24. fwrite($hout,$image);
25. fclose($hout);
26. }

should not be there.</description>
		<content:encoded><![CDATA[<p>In your PHP script, the trailing curly bracket on line 26:</p>
<p>24. fwrite($hout,$image);<br />
25. fclose($hout);<br />
26. }</p>
<p>should not be there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-529</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Mon, 09 Jun 2008 15:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-529</guid>
		<description>My initial guess is that you don't have html and head tags in your editor page, only the basic html.  Because your script isn't in a head tag, it isn't actually executed by my browser (FireFox).  After you get the script executing, then you can debug your uploader php file to make sure that is working as expected.

-Dennis</description>
		<content:encoded><![CDATA[<p>My initial guess is that you don&#8217;t have html and head tags in your editor page, only the basic html.  Because your script isn&#8217;t in a head tag, it isn&#8217;t actually executed by my browser (FireFox).  After you get the script executing, then you can debug your uploader php file to make sure that is working as expected.</p>
<p>-Dennis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek198</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-528</link>
		<dc:creator>abhishek198</dc:creator>
		<pubDate>Mon, 09 Jun 2008 14:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-528</guid>
		<description>Hi Dennis,
Kindly find the URL below:
http://pangaaday.com/RTE/test1.php

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Dennis,<br />
Kindly find the URL below:<br />
<a href="http://pangaaday.com/RTE/test1.php" rel="nofollow">http://pangaaday.com/RTE/test1.php</a></p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-527</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Mon, 09 Jun 2008 13:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-527</guid>
		<description>I could certainly take a quick look at something, just post the URL of the example not working.</description>
		<content:encoded><![CDATA[<p>I could certainly take a quick look at something, just post the URL of the example not working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek198</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-524</link>
		<dc:creator>abhishek198</dc:creator>
		<pubDate>Fri, 06 Jun 2008 13:40:53 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-524</guid>
		<description>Hi Dennis,
Few issues .. i was wondering if you could help me out ..
After i click on upload image .. it does get uploaded to my server but it is not displayed in the textarea ... and secondly the text which the user ll be submitting along with the image .. ll be stored in a database .. what happens to the image info (path and other related info) .. how is it stored ..</description>
		<content:encoded><![CDATA[<p>Hi Dennis,<br />
Few issues .. i was wondering if you could help me out ..<br />
After i click on upload image .. it does get uploaded to my server but it is not displayed in the textarea &#8230; and secondly the text which the user ll be submitting along with the image .. ll be stored in a database .. what happens to the image info (path and other related info) .. how is it stored ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek198</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-521</link>
		<dc:creator>abhishek198</dc:creator>
		<pubDate>Fri, 06 Jun 2008 09:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-521</guid>
		<description>Hi Dennis,
I was trying to use the RTE .. 
but when i click on the upload image button... nothing actually happens ..as far as i see it .. the link points to the same page .. instead of some other page to upload the image ..

this is what i have edited :
yuiImgUploader(myEditor, '/img_uploader.php','image');


Thanks</description>
		<content:encoded><![CDATA[<p>Hi Dennis,<br />
I was trying to use the RTE ..<br />
but when i click on the upload image button&#8230; nothing actually happens ..as far as i see it .. the link points to the same page .. instead of some other page to upload the image ..</p>
<p>this is what i have edited :<br />
yuiImgUploader(myEditor, &#8216;/img_uploader.php&#8217;,'image&#8217;);</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-519</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Wed, 04 Jun 2008 03:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/#comment-519</guid>
		<description>I have tried to implement the image upload portion of this script and when I click the Upload Image link it does nothing. It doesn't even try to process the upload.php script to move the file to the script. And ideas?

Thanx</description>
		<content:encoded><![CDATA[<p>I have tried to implement the image upload portion of this script and when I click the Upload Image link it does nothing. It doesn&#8217;t even try to process the upload.php script to move the file to the script. And ideas?</p>
<p>Thanx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
