Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 70 71 72 73 74 ... 147
cause i'm so lazy
0 1880 posted 16 years ago by Savio
0 1881 posted 16 years ago by Savio
For several reasons, including portability, reducing download size, and general code neatness, I like to make all links within a website root relative.
0 1739 posted 16 years ago by weboholic
Will help convert string to number OR get number in a selected string.
0 2051 posted 16 years ago by carbonr
Turns /n to <br> and /n/n to </p><p> Usage: echo stripslashes(nl2br(nls2p($text)));
0 1914 posted 16 years ago by jmiller
The script below connects to a MySQL database server on "localhost" using the login name "test" and password "123456" and then connects to the database "test". It then copies the table structure and data from the table "products" to a new table "prod...
4 3870 posted 16 years ago by fackz
0 1616 posted 16 years ago by newsok
0 1579 posted 16 years ago by newsok
0 1560 posted 16 years ago by newsok
0 2133 posted 16 years ago by newsok
Open your search.php file and find the the_title() function. Replace it with the following: 1.echo $title; Save the search.php file and open style.css. Append the following line to it: strong.search-excerpt { background: yellow; }
0 1771 posted 16 years ago by newsok
0 2032 posted 16 years ago by newsok
0 1600 posted 16 years ago by dmistriotis
This code war written for a project I'm working on where a map of the world may need to be offset to center the view on specific areas. I'm also using it as a part of an iterative blur function to prevent seams from the blur operation. I would lik...
0 2071 posted 16 years ago by Jamie
Existen varias formas para hacerlo, pero lo que dejo aquí es a lo que tenemos que acostumbrarnos a hacer cada vez que programemos para prevenir que se pueda inyectar HTML o modificar las consultas SQL.\r\n\r\nThere are several ways to do it, but wha...
0 1437 posted 16 years ago by arucordoba
1 1814 posted 16 years ago by sybrex
1 1887 posted 16 years ago by sybrex
1 2311 posted 16 years ago by mloberg
Useful for displaying copyright notices on a website.
0 2115 posted 16 years ago by f6design
A Twitter pull-in that I coded using PHP. Uses the JSON user_timeline Twitter API call. It displays the tweet with links to any urls, users, or hashtags, the time ago, and if it was in reply to anyone.
2 2412 posted 16 years ago by mloberg
I need to create a new template that just show the photo ordered by «department» and «title». It should also include an hidden <DIV> with full name, email, social links and bio.
0 1095 posted 16 years ago by ipublicis
Script to send mails with Swift Mailer
0 1994 posted 16 years ago by juanchifc
This is a very simple use of the Vimeo API. All it does is list the video title, a thumbnail of the video, and the description. More advance script coming later.
0 1915 posted 16 years ago by mloberg
2 2341 posted 16 years ago by mloberg
1 ... 70 71 72 73 74 ... 147