[轉]HOW TO MAKE UPLOAD IMAGE IN CKEDITOR.

http://www.dukaweb.net/2014/01/how-to-make-upload-image-in-ckeditor.html In script tag, which we call CKEditor put one more code: CKEDITOR.replace( ’editor1’, { filebrowserUploadUrl: “upload/upload.php” } ); In upload.php if (file\_exists("img/"; . $\_FILES\["upload"\]\["name"\])) { echo $\_FILES\["upload"\]\["name"\] . " already exists please choose another image."; } else { move\_uploaded\_file($\_FILES\["upload"\]\["tmp\_name"\], "img/" . $\_FILES\["upload"\]\["name"\]); echo "Stored in: " . "img/" . $\_FILES\["upload"\]\["name"\]; } If you get an error “image source url is missing“, that means the url of the image doesn’t pass to the image info tab, you can fix this error by adding the php code to pass the image url. ...

2015-09-02 · 2 min · 219 words · Me

CRUD jquery free datatable jtable

以前開發的經驗,用過兩個算是功能最多最好用的 https://datatables.net/ MIT license 在六七年前有回覆過bug,在某間公司開發網頁時,有套用,前台顯示+後台MSSQL Storeprocess,在search按下任何一個字元,直接在後台的DB抓資料出來,速度非常的快,幾萬幾都沒問題。 https://editor.datatables.net/ 要付費,但付一次,無限站台,無限使用者 三、四年前有套過一次,上馬很快,但15天後到期,沒付費,轉找別的… http://www.jtable.org/ MIT license 三、四年最後用這套,很快就套起來,CRUD全有了 以上很快的意思是,網站的demo含php,基本上,table column設好,就新、修、刪全有了,而且可以設定顯不顯示等等。 這些套件只有一個問題,就是css在修改上需要蠻多時間熟悉,不過有的是套jquery ui,可以用jquery ui產生器,也許會更快套色。 ====== Evolutility 1.1.2 AGPL v3http://evoluteur.github.io/evolutility/ jsGrid MIThttp://js-grid.com/ X-editable MIT https://vitalets.github.io/x-editable/ ===== 手寫 https://github.com/sitepoint-editors/SCRUD 修改、刪除是在server輸出

2015-09-01 · 1 min · 32 words · Me

php pdo

https://www.codeofaninja.com/2013/05/crud-with-php-jquery.html while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ // extract row // this will make $row[’name’] to // just $name only extract($row); 這樣就能直接引用 例: 原本是用$row[‘id’],現在直接$id 如果有重覆變數,請看 http://pydoing.blogspot.tw/2013/03/PHP-extract.html

2015-08-31 · 1 min · 24 words · Me

[轉]Top 12 Best PHP RESTful Micro Frameworks (Pro/Con)

http://www.gajotres.net/best-available-php-restful-micro-frameworks/ I will recommend these 4 frameworks: Silex **Slim Lumen Phalcon

2015-08-31 · 1 min · 11 words · Me

node.js

一但重開機,要執行npm,就要執行底下 nvm use stable 應該是自己那沒設好 http://learn.bevry.me/node/install/ git clone git://github.com/creationix/nvm.git ~/.nvm printf “\n\n# NVM\nif [ -s /.nvm/nvm.sh ]; then\n\tNVM_DIR=/.nvm\n\tsource ~/.nvm/nvm.sh\nfi” » /.bashrc NVM_DIR=/.nvm source ~/.nvm/nvm.sh nvm use stable nvm list

2015-08-29 · 1 min · 29 words · Me