<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1121335636140583247</id><updated>2024-09-05T11:28:13.185-07:00</updated><title type='text'>maxwhit&#39;s blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://max-white.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://max-white.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>maxwhite</name><uri>http://www.blogger.com/profile/10804603013756802877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1121335636140583247.post-6081303622905083564</id><published>2013-10-08T10:40:00.001-07:00</published><updated>2013-10-08T10:40:50.457-07:00</updated><title type='text'></title><content type='html'>&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLxz1p3xM6xhHmbB9-jOh1Nf69QAADWDO-3gcwYtXbx_zXHGZg4w9QyUTp5emsptlzJOlDU-YYQ5InbU_Ol8c8-La189HPsr6E2srrj0JR8I2FMT2GMWHbHUj9byOD3reGU_igsfodzgg/s1600/image-upload-1-746059.jpg&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLxz1p3xM6xhHmbB9-jOh1Nf69QAADWDO-3gcwYtXbx_zXHGZg4w9QyUTp5emsptlzJOlDU-YYQ5InbU_Ol8c8-La189HPsr6E2srrj0JR8I2FMT2GMWHbHUj9byOD3reGU_igsfodzgg/s320/image-upload-1-746059.jpg&quot;/&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;Уросок&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://max-white.blogspot.com/feeds/6081303622905083564/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://max-white.blogspot.com/2013/10/blog-post.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/6081303622905083564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/6081303622905083564'/><link rel='alternate' type='text/html' href='http://max-white.blogspot.com/2013/10/blog-post.html' title=''/><author><name>maxwhite</name><uri>http://www.blogger.com/profile/10804603013756802877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLxz1p3xM6xhHmbB9-jOh1Nf69QAADWDO-3gcwYtXbx_zXHGZg4w9QyUTp5emsptlzJOlDU-YYQ5InbU_Ol8c8-La189HPsr6E2srrj0JR8I2FMT2GMWHbHUj9byOD3reGU_igsfodzgg/s72-c/image-upload-1-746059.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121335636140583247.post-3456867722299908543</id><published>2013-05-21T23:37:00.001-07:00</published><updated>2013-05-21T23:37:07.470-07:00</updated><title type='text'>М</title><content type='html'>&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeu6Lf2pQDSNZ4eLnLJkZpdnLZUkkCaXK566O9r658NZY9EWfh9hsOZrV-pGWy2ZBcV4nYCyPP9EExXAz1YcjFfsUh2GU1TnxvWtsillVEtPMAE5wD4JoT2WVlOjcaYNJGDEMEPuOyHA4/s1600/image-upload-9-726075.jpg&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeu6Lf2pQDSNZ4eLnLJkZpdnLZUkkCaXK566O9r658NZY9EWfh9hsOZrV-pGWy2ZBcV4nYCyPP9EExXAz1YcjFfsUh2GU1TnxvWtsillVEtPMAE5wD4JoT2WVlOjcaYNJGDEMEPuOyHA4/s320/image-upload-9-726075.jpg&quot;/&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;М&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://max-white.blogspot.com/feeds/3456867722299908543/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://max-white.blogspot.com/2013/05/blog-post.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/3456867722299908543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/3456867722299908543'/><link rel='alternate' type='text/html' href='http://max-white.blogspot.com/2013/05/blog-post.html' title='М'/><author><name>maxwhite</name><uri>http://www.blogger.com/profile/10804603013756802877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeu6Lf2pQDSNZ4eLnLJkZpdnLZUkkCaXK566O9r658NZY9EWfh9hsOZrV-pGWy2ZBcV4nYCyPP9EExXAz1YcjFfsUh2GU1TnxvWtsillVEtPMAE5wD4JoT2WVlOjcaYNJGDEMEPuOyHA4/s72-c/image-upload-9-726075.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121335636140583247.post-3062137634401587723</id><published>2012-11-11T05:13:00.001-08:00</published><updated>2012-11-11T05:13:42.350-08:00</updated><title type='text'>Датский кот</title><content type='html'>&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx0dWP5FH82hhM_vo6oboWnAP6dvkECMKHXFjvmOQCs1yuEP20JBwNmUNQvbcCxwl-3S1lIsCU-Mu9Ft6U2ZzoEYORH7ttVSxKOis5UdH2Wcpcjd2Y3Ig7vIvApevsqH1wUK6CwEltaOg/s1600/image-upload-79-720379.jpg&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx0dWP5FH82hhM_vo6oboWnAP6dvkECMKHXFjvmOQCs1yuEP20JBwNmUNQvbcCxwl-3S1lIsCU-Mu9Ft6U2ZzoEYORH7ttVSxKOis5UdH2Wcpcjd2Y3Ig7vIvApevsqH1wUK6CwEltaOg/s320/image-upload-79-720379.jpg&quot;/&gt;&lt;/a&gt;&lt;br /&gt;&lt;span/&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://max-white.blogspot.com/feeds/3062137634401587723/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://max-white.blogspot.com/2012/11/blog-post_11.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/3062137634401587723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/3062137634401587723'/><link rel='alternate' type='text/html' href='http://max-white.blogspot.com/2012/11/blog-post_11.html' title='Датский кот'/><author><name>maxwhite</name><uri>http://www.blogger.com/profile/10804603013756802877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx0dWP5FH82hhM_vo6oboWnAP6dvkECMKHXFjvmOQCs1yuEP20JBwNmUNQvbcCxwl-3S1lIsCU-Mu9Ft6U2ZzoEYORH7ttVSxKOis5UdH2Wcpcjd2Y3Ig7vIvApevsqH1wUK6CwEltaOg/s72-c/image-upload-79-720379.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121335636140583247.post-694548012358735643</id><published>2012-11-11T05:12:00.001-08:00</published><updated>2012-11-11T05:12:13.585-08:00</updated><title type='text'>Коты</title><content type='html'>&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQW9bhNhsGpROLuk2GBi8KUfJUH18V-GlfnLc_jb6JGdFdTy5x26CF1_fDcOJSfJU7_9foxMU8XF_vhk4NwXvKaWiWO4WLqNQwm2_98bBipppnqZaDLaO5K1yolwLMncznizDsnpPvbIY/s1600/image-upload-5-730572.jpg&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQW9bhNhsGpROLuk2GBi8KUfJUH18V-GlfnLc_jb6JGdFdTy5x26CF1_fDcOJSfJU7_9foxMU8XF_vhk4NwXvKaWiWO4WLqNQwm2_98bBipppnqZaDLaO5K1yolwLMncznizDsnpPvbIY/s320/image-upload-5-730572.jpg&quot;/&gt;&lt;/a&gt;&lt;br /&gt;&lt;span/&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://max-white.blogspot.com/feeds/694548012358735643/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://max-white.blogspot.com/2012/11/blog-post.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/694548012358735643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/694548012358735643'/><link rel='alternate' type='text/html' href='http://max-white.blogspot.com/2012/11/blog-post.html' title='Коты'/><author><name>maxwhite</name><uri>http://www.blogger.com/profile/10804603013756802877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQW9bhNhsGpROLuk2GBi8KUfJUH18V-GlfnLc_jb6JGdFdTy5x26CF1_fDcOJSfJU7_9foxMU8XF_vhk4NwXvKaWiWO4WLqNQwm2_98bBipppnqZaDLaO5K1yolwLMncznizDsnpPvbIY/s72-c/image-upload-5-730572.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121335636140583247.post-8710883192816828838</id><published>2012-10-17T08:38:00.004-07:00</published><updated>2013-06-18T04:32:20.628-07:00</updated><title type='text'>Litecommerce install Add on problem.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you are developing &lt;b&gt;Add On&lt;/b&gt; for &lt;i&gt;Litecommerce&lt;/i&gt; and in process of Uploading your &lt;b&gt;.tar&lt;/b&gt; module package you get the following error:&lt;br /&gt;
&lt;b&gt;&quot;ERROR: &quot;0&quot; (code N/A)&lt;br /&gt;
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: &#39;&#39; for column &#39;packSize&#39; at row 1&quot;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
It seems you are developing on Windows. I spend a day with this bug....&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
How to fix ? Just go to &lt;b&gt;&lt;i&gt;Includes\Utils\FileManager.php&lt;/i&gt;&amp;nbsp;&lt;/b&gt;and find this function:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=HC0bJaGY&quot; style=&quot;border: none; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div id=&quot;content_left&quot; style=&quot;background-color: white; color: #181818; font-family: &#39;segoe ui&#39;, &#39;trebuchet MS&#39;, &#39;Lucida Sans Unicode&#39;, &#39;Lucida Sans&#39;, sans-serif; font-size: 16px; line-height: 24px; margin-left: 10px; margin-right: 332px;&quot;&gt;
&lt;div class=&quot;content_text&quot; style=&quot;font-size: 0.8em; line-height: 22px; padding: 10px 0px;&quot;&gt;
&lt;div class=&quot;code_box&quot; style=&quot;background-color: #ffffef; border: 1px dotted rgb(221, 221, 170); font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, monospace, serif; font-size: 12px; margin: 10px; overflow: auto; padding: 7px; white-space: pre;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: left; margin: 10px 0px;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Because fucking Windows has a problem with is_file() function...&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.php.net/manual/en/function.is-file.php#93481&quot;&gt;http://www.php.net/manual/en/function.is-file.php#93481&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://max-white.blogspot.com/feeds/8710883192816828838/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://max-white.blogspot.com/2012/10/litecommerce-install-add-on-problem.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/8710883192816828838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/8710883192816828838'/><link rel='alternate' type='text/html' href='http://max-white.blogspot.com/2012/10/litecommerce-install-add-on-problem.html' title='Litecommerce install Add on problem.'/><author><name>maxwhite</name><uri>http://www.blogger.com/profile/10804603013756802877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121335636140583247.post-8862359082197991221</id><published>2011-09-25T06:49:00.000-07:00</published><updated>2011-09-25T06:49:11.146-07:00</updated><title type='text'>How to make CKEditor upload photos without CKFinder.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;CKEditor has built in feature to upload images, but from scratch this feature&lt;br /&gt;
unfortunately&amp;nbsp;doesn&#39;t work. You can make it work doing the following steps:&lt;br /&gt;
&lt;br /&gt;
1. &amp;nbsp;After you install CKEditor, go to&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;/ckeditor/plugins/image/dialogs/image.js, find &amp;nbsp;&#39;id:&#39;Upload&#39;,hidden:&lt;b&gt;true&#39;&lt;/b&gt; and replace it with &amp;nbsp;&#39;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;id:&#39;Upload&#39;,hidden:&lt;b&gt;false&#39;&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;2. Now &amp;nbsp;when you click on Image icon in editor, you will see new tab &#39;Upload&#39; (1) in Image dialog:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://docs.cksource.com/images/0/04/CKEditor_Image_Dialog.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://docs.cksource.com/images/0/04/CKEditor_Image_Dialog.png&quot; width=&quot;313&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;3. Now you can go on &#39;Upload&#39; tab, click &#39;Choose file&#39; and then &#39;Send it to server&#39;, but you will no have success, and that&#39;s right. We will work on it on next step.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;4. After you added &#39;Upload&#39; tab, you must handle file uploading by edding script that will be handle our file upload. I created php file &#39;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;b&gt;ckupload.php&#39;&amp;nbsp;&lt;/b&gt;in my web root folder and added the following code in it:&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 15px;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;?php&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$callback = $_GET[&#39;CKEditorFuncNum&#39;];&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$file_name = $_FILES[&#39;upload&#39;][&#39;name&#39;];&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$file_name_tmp = $_FILES[&#39;upload&#39;][&#39;tmp_name&#39;];&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$file_new_name = &#39;/var/www/ckeditortest/upload/&#39;;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$full_path = $file_new_name.$file_name;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$http_path = &#39;/upload/&#39;.$file_name;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$error = &#39;&#39;;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if( move_uploaded_file($file_name_tmp, $full_path) ) {&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;} else {&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$error = &#39;Some error occured please try again later&#39;;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$http_path = &#39;&#39;;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo &quot;&amp;lt;script type=\&quot;text/javascript\&quot;&amp;gt;window.parent.CKEDITOR.tools.callFunction(&quot;.$callback.&quot;, &amp;nbsp;\&quot;&quot;.$http_path.&quot;\&quot;, \&quot;&quot;.$error.&quot;\&quot; );&amp;lt;/script&amp;gt;&quot;;&lt;/div&gt;&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 14px; line-height: 15px;&quot;&gt;?&amp;gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;5. Also you must add this line in your config file:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp;In the /ckeditor/config.js:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;CKEDITOR.editorConfig = function( config )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// Define changes to default configuration here. For example:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// config.language = &#39;fr&#39;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// config.uiColor = &#39;#AADC6E&#39;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp;config.filebrowserUploadUrl = &#39;/ckupload.php&#39;;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;}; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;6. Thats it. Hope this help to anybody.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://max-white.blogspot.com/feeds/8862359082197991221/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://max-white.blogspot.com/2011/09/how-to-make-ckeditor-upload-photos.html#comment-form' title='Комментарии: 2'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/8862359082197991221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/8862359082197991221'/><link rel='alternate' type='text/html' href='http://max-white.blogspot.com/2011/09/how-to-make-ckeditor-upload-photos.html' title='How to make CKEditor upload photos without CKFinder.'/><author><name>maxwhite</name><uri>http://www.blogger.com/profile/10804603013756802877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121335636140583247.post-8897300501249870595</id><published>2011-09-25T05:02:00.000-07:00</published><updated>2016-03-10T07:15:27.463-08:00</updated><title type='text'>Как заставить CKEditor  загружать картинки на сервер (без применения CKFinder).</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;a href=&quot;http://ckeditor.com/&quot;&gt;CKEditor&lt;/a&gt;&amp;nbsp;является прекрасным&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; font-weight: bold; line-height: 18px;&quot;&gt;WYSIWYG&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp;редактором, но к сожалению не всегда можно найти то, что нужно в официальной документации, так что приходится иногда &quot;рыскать&quot; по сети в поисках ответа на нужные вопросы ).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;Этот уикэнд Я посвятил тому, что пытался заставить редактор последней версии грузить картинки на сервер без дополнительных приблуд, типа ckfinder, т.к. в документации заявлена эта возможность:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;a href=&quot;http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)&quot;&gt;http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1.5em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
CKEditor can be easily integrated with an external file browser/uploader.&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1.5em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Once properly set up, all file browser features will automatically become available. This includes the&amp;nbsp;&lt;b style=&quot;font-weight: bold;&quot;&gt;Upload&lt;/b&gt;&amp;nbsp;tab&lt;sup style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1.5em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;(1)&lt;/sup&gt;&amp;nbsp;in the&amp;nbsp;&lt;b style=&quot;font-weight: bold;&quot;&gt;Link&lt;/b&gt;,&lt;b style=&quot;font-weight: bold;&quot;&gt;Image&lt;/b&gt;, and&amp;nbsp;&lt;b style=&quot;font-weight: bold;&quot;&gt;Flash Properties&lt;/b&gt;&amp;nbsp;dialog windows as well as the&amp;nbsp;&lt;b style=&quot;font-weight: bold;&quot;&gt;Browse Server&lt;/b&gt;&amp;nbsp;button&lt;sup style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1.5em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;(2)&lt;/sup&gt;.&lt;/div&gt;
&lt;div class=&quot;center&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1.5em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div class=&quot;thumb tnone&quot; style=&quot;border-bottom-color: white; border-bottom-style: solid; border-bottom-width: 0px; border-color: initial; border-left-color: white; border-left-style: solid; border-left-width: 0px; border-right-color: white; border-right-style: solid; border-right-width: 0px; border-style: initial; border-top-color: white; border-top-style: solid; border-top-width: 0px; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;&quot;&gt;
&lt;div class=&quot;thumbinner&quot; style=&quot;background-color: #fafafa; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; font-size: 11px; line-height: 1.5em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px !important; padding-left: 3px !important; padding-right: 3px !important; padding-top: 3px !important; text-align: center; width: 464px;&quot;&gt;
&lt;a class=&quot;image&quot; href=&quot;http://docs.cksource.com/File:CKEditor_Image_Dialog.png&quot; style=&quot;color: #189de1; text-decoration: none;&quot; title=&quot;File browser features available for images in CKEditor&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;thumbimage&quot; src=&quot;http://docs.cksource.com/images/0/04/CKEditor_Image_Dialog.png&quot; height=&quot;471&quot; style=&quot;border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; line-height: 1.5em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; width=&quot;462&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;thumbcaption&quot; style=&quot;border-bottom-style: none; border-bottom-width: 0px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 0px; border-right-style: none; border-right-width: 0px; border-style: initial; border-top-style: none; border-top-width: 0px; border-width: initial; font-size: 11px; line-height: 1.4em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px !important; padding-left: 3px !important; padding-right: 3px !important; padding-top: 3px !important; text-align: left;&quot;&gt;
File browser features available for images in CKEditor&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;Вобщем после долгих часов гугления и экспериментов, мне таки удалось заставить редактор делать то, что мне надо.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;Итак, пошагово:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;1. Скачиваем и устанавливаем последнюю версию CKEditor (не FCKEditor, &amp;nbsp;кстати, кто не в курсе &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;CKEditor и F&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;CKEditor&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;это одно и то же по сути, раньше он назывался&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;FCKEditor, но автор решил его переименовать, т.к. FCK похое на аббревиатуру слова &quot;fuck&quot; :))&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;2. Идем в /ckeditor/plugins/image/dialogs/image.js, находим строчку id:&#39;Upload&#39;,hidden:true и меняем ее на&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;id:&#39;Upload&#39;,hidden:false.&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp;Теперь если зайти на диалоговое око Image в окне редактора, то там должна появится&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;вкладка &#39;Upload&#39; &amp;nbsp;с кнопками &amp;nbsp;&#39;Browse&#39; &amp;nbsp;и &amp;nbsp;&#39;Send it to server&#39;. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;Теперь можно выбирать файл на диске и нажимать кнопку &#39;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;Send it to server&#39;. Естественно при этом ничего происходить не должно, и это праивильно.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;3. Далее, добавляем в конфиге редактора путь к обработчику наших загрузок (в нашел случае пусть это будет php скрипт).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;В файле /ckeditor/config.js пишем 1 строчку:&lt;/span&gt;&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=2tEdEzxN&quot; style=&quot;border: none; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;Где&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;b&gt;&#39;../ckupload.php&#39; &lt;/b&gt;собственно путь к обработчику загруженных файлов.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;Вычислить правильность пути, можно нажав на кнопку&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;Send it to server&#39; при открытой вкладке Net в Firebug. Вы должны добиться того, чтобы из php скрипта приходил ответ на ваш запрос.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;4. В обработчике &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;b&gt;ckupload.php &lt;/b&gt;пишем:&lt;/span&gt;&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=YFRnasHg&quot; style=&quot;border: none; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;5.&amp;nbsp;Всё. По идее у вас все должно заработать. &amp;nbsp;В скрипте ничего военного, обычная загрузка файла на сервер в указанную папку.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Единственное, что скрипт печатает это: &amp;nbsp;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=XVBgejPZ&quot; style=&quot;border: none; width: 100%;&quot;&gt;&lt;/iframe&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Где $callback это имя функции, которое приходит в файл в массиве $_GET[],&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$http_path - путь к картинке, котрая тут же покажется в превью.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$error - возможные ошибки. Если что-то пошло не так, вы увидите алерт с&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;текстом ошибки.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://max-white.blogspot.com/feeds/8897300501249870595/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://max-white.blogspot.com/2011/09/ckeditor.html#comment-form' title='Комментарии: 33'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/8897300501249870595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121335636140583247/posts/default/8897300501249870595'/><link rel='alternate' type='text/html' href='http://max-white.blogspot.com/2011/09/ckeditor.html' title='Как заставить CKEditor  загружать картинки на сервер (без применения CKFinder).'/><author><name>maxwhite</name><uri>http://www.blogger.com/profile/10804603013756802877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>33</thr:total></entry></feed>