Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
You should edit your WordPress plugin so that the $source variable at the end shows this value. Though it is a shame that code can't have an 'ol' as a childNode, and neither can the pre element. Couldn't find any way of making it all fit: http://lear...
3
534
posted 16 years ago by rolandog
usage is simple:
$result = mysqli_query($query,db_conn('local')); for instance.
if written in patterns, this should probably be a singleton, but I haven't bothered converting it - feel free to comment with your modification though!
3
482
posted 16 years ago by Aeon
Not a great solution will need to look further at why files are being sent in binary form
Add this to the mime types array in the Upload class
3
568
posted 16 years ago by benpjohnson
This function split a several lines long text into an array. It works with Windows and Linux texts.
4
512
posted 16 years ago by katxorro70
I use this object verry often, so that I only need to pass one object as parameter on any function. No need to wory when we refactore the function
Usage:
$var = new open();
$var->url = 'http://www.world.com';
$var->title = 'Testing Site';
ech...
1
668
posted 16 years ago by ekobudisetiyo
这个问题出现在home.phpä¸ã€‚
from:天佑
在 home.php ä¸ $myrecentposts å…§çš„ SQL 是用 post_date å’Œ NOW() 作比較.
NOW() 這個 function 是會以 server çš„ timezone 讀å–ç¾æ™‚的時間,但 post_date 這個 field çš„ timezone...
0
355
posted 16 years ago by championeer
Exclude Posts From Some Category
è¿™æ ·å°±å¯ä»¥åœ¨é¦–页ä¸ä¸æ˜¾ç¤ºæŸäº›ç±»åˆ«ï¼ˆæ¯”如asides)的帖å了
1
931
posted 16 years ago by championeer
PHP
Intercepta los errores de ejecución y los envÃa por mail al administrador con detalle del contexto
3
718
posted 16 years ago by cochambre
Esta funcion toma valores del espacio global $HTTP_*_VARS desde un array
en la llamada a la funcion, y si existen y tienen contenido, las registra
como globales para que puedan ser accedidas a continuación.
Debe recibir una lista de elementos en...
1
643
posted 16 years ago by Navegante
The standard tag for the new class Smarty_Backoffice in my application.
0
412
posted 16 years ago by Bunker