Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 33 34 35 36 37 ... 64
When retrieving table rows with PHP and prepared statements, you must use a method called bind_result() and pass in a variable name for each column that is being returned from the database. For example, if you are selecting three columns (say, id, ti...
3 1664 posted 15 years ago by Nettuts
The current time, converted from UNIX timestamp to use in MySQL DATETIME
0 1421 posted 15 years ago by koko
<img>
1 1295 posted 15 years ago by stuntsnippets
Simple piece of PHP to get the contents of a specified tag from an XML file and return it
3 2543 posted 15 years ago by ollie101
Send SMS via www.smsmatrix.com SMS Gateway using PHP See more examples at <A HREF="http:/www.smsmatrix.com">SMS/Voice/TTS Gateway</a>
0 1117 posted 15 years ago by smsmatrix
I used to program in classic ASP and would sometimes check if a certain word or letter would be in a string with instr. if instr(haystack, needle)>0 then DO SOMETHING end if If the needle starts on the first position of the haystack, instr...
0 1133 posted 15 years ago by seloh77
Here's a handy (relatively undocumented) tip. PHP supports the following method of assigning strings (borrowed from Perl)
0 905 posted 15 years ago by Snaver
Save the source provided to /app/view/helpers/timezone_select.php To use the below helper, just put this code into your view: echo $timezoneSelect->select('timezone', 'Please select your timezone', 'Europe/London'); Also, don't forget to...
1 1142 posted 15 years ago by richt
Меня часто спрашивают как с помощью CodeIgniter получить доступ к $_GET параметрам. Для этого нужна всего лишь одна строчка кода в контроллере:...
1 1098 posted 15 years ago by stancox
A source to help you interpreting URLs in plain text as a HTML link. It's an improvement of what was proposed here : http://snipplr.com/view/2371/regex-regular-expression-to-match-a-url/
3 1628 posted 15 years ago by keevkilla
1 2952 posted 15 years ago by gilbitron
0 1940 posted 15 years ago by gilbitron
2 1020 posted 15 years ago by kwanhon
If your WordPress blog is outdated even by a few days and there's a security hole in your old version you could be seriously compromised without even knowing it. Trust me. This has happened to two of my clients and the fix is not easy. Usually, once...
0 1128 posted 15 years ago by josephknight
The problem As a WordPress user, you probably know how important the wp-config.php file is. This file contains all of the information required to access your precious database: username, password, server name and so on. Protecting the wp-config.php...
0 1178 posted 15 years ago by josephknight
The problem Protecting dynamic websites is especially important. Most developers always protect their GET and POST requests, but sometimes this is not enough. We should also protect our blog against script injections and any attempt to modify the PH...
3 1383 posted 15 years ago by josephknight
Check to see if HTTP POST variable exists before doing something with it.
0 1187 posted 15 years ago by jonkemp
0 894 posted 15 years ago by orenus
0 935 posted 15 years ago by orenus
Use this to disable view and layout in Zend Framework controller action
2 1737 posted 15 years ago by jdstraughan
Start your CSS files with the following PHP (and name it style.php) include it with: <link>
0 1012 posted 15 years ago by yves
1 1041 posted 15 years ago by screamwork
1 ... 33 34 35 36 37 ... 64