Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 122 123 124 125 126 ... 147
1 1297 posted 16 years ago by selfmadepsyche
1 1103 posted 16 years ago by selfmadepsyche
get_the_author_email outputs the post author’s email and the “80” is the size of the avatar image in pixels & it has to be in the loop!
0 1987 posted 16 years ago by selfmadepsyche
0 1419 posted 16 years ago by troynt
0 1082 posted 16 years ago by troynt
In my app, we have to auto-generate usernames for our users, here is the code I did.
2 1721 posted 16 years ago by luctus
Here’s a snippet that can help you to remove a non-empty directory from the server. It’s a recursive function that deletes the directory with its files, folders and sub-folders.
2 1559 posted 16 years ago by fackz
Put this in the template.php within your template directory.
7 1710 posted 16 years ago by troynt
This is a function that selects files from a directory and orders them by the last time they were changed, in ascending or descending order. The snippet also calculates how much time passed since the file’s content was changed.
2 2328 posted 16 years ago by fackz
To use href.in API to generate a short URL. using php curl
1 1288 posted 16 years ago by nerdsane
3 1707 posted 16 years ago by troynt
Figure out if the string possesses only hexadecimal characters in the string. If not, fail. Remember, white spaces are not hexadecimal, so make sure you trim() your strings before you send it in or explode your string.
0 1672 posted 16 years ago by duniyadnd
your database needs id, bezeichner and parent fields
1 1245 posted 16 years ago by antpaw
To display a list of your 10 most commented posts from 2008, simply paste the following code on your blog sidebar, or anywhere on your theme.
1 1162 posted 16 years ago by selfmadepsyche
I just wanted to have the argument code as text. It is provided as an image.
2 2869 posted 16 years ago by lexx
This is a basic shell for PayPal IPN. It is by no means a complete solution, but it should provide a good starting point for anyone that wants to work out IPN. Or it can be used as is to do basic IPN.
2 1246 posted 16 years ago by xtheonex
0 1487 posted 16 years ago by ping_ch
3 1632 posted 16 years ago by ping_ch
1 1493 posted 16 years ago by iroybot
One other thing to note, is that the php generated css file can make use of query parameters, for instance: <link rel="stylesheet" href="base.css.php?type=alternate" type="text/css" > in your PHP file you can use the variable: if ($_GE...
2 1923 posted 16 years ago by dbug13
Create theme override file: `upload_attachments.tpl.php` in your theme directory. [CSS styles](http://snipplr.com/view/11848)
2 1527 posted 16 years ago by zachharkey
2 1280 posted 16 years ago by zachharkey
Few different ways to output primary links in your page.tpl.php template.
3 1804 posted 16 years ago by zachharkey
paste it in wp-config.php and make sure the prefixes are right (wp_* is default) also the blogs must be installed on the same database with different prefixes. For example, you might have a primary blog with the table prefix wp_ on the database...
0 1106 posted 16 years ago by philiph
I wanted to show a block of the current taxonomy term info (desc, name, img) in Drupal 6 views 2 Provide default argument
0 1073 posted 16 years ago by lexx
0 1279 posted 16 years ago by stavelin
1 ... 122 123 124 125 126 ... 147