Category Archives: PHP

responsive file manager with laravel

Official

https://github.com/Kwaadpepper/laravel-responsivefilemanager

Thumb folder creation issue on windows:

System will try to create thumb folders with relative path and will fail to detect if the folder exists or not in
\vendor\kwaadpepper\laravel-responsivefilemanager\src\ResponsiveFileManager\utils.php

 

CodeIgniter with Zebra Session

Install

https://github.com/stefangabos/Zebra_Session

index.php

Do not use session_start();

Note: Put $session in $GLOBALS is very important or this variable wont’ be accessible in controllers and data in session will be lost after redirection and won’t be saved in database.

截斷中文字避免亂碼 Cut Chinese Characters

https://blog.xuite.net/chenbruse/bruse/13351768-%E8%A7%A3%E6%B1%BAPHP+substr%E5%88%87%E5%89%B2%E4%B8%AD%E6%96%87%E5%AD%97%E5%95%8F%E9%A1%8C

自已寫的

 

Line break from PHP to Javascript

 

Escape XML node value