Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Prints an array (recursive) as PHP code (can be pasted into a php file and it will work).
Note: This function can process arrays with integers/strings/sub-arrays. It is impossible to process resources (they have a state), and while it is possible...
1
943
posted 14 years ago by BrunoDeBarros
Installation .bin file must be modified:
There's old commands than must be commented/deleted.
The 'tail' command is changed (check the starting line for the binary data).
Thanks Johan Louwers!
0
872
posted 14 years ago by ashsa
Handy, especially when you have large logs and you want to see what just happened
0
847
posted 14 years ago by bionic
This was a fix for the form that allowed me to automatically replace the text when I focused on area.
Find the file text.php inside modules. Replace line 89 with this code.
0
972
posted 14 years ago by gera3d
Used the first sql statement to find your menu item. (Replace menu-% with the name of your menu eg. "primary-links" .
Then using the menu item id fix the items you want to regain the good old delete button on the menu item.
0
1113
posted 14 years ago by Onfire60
The css style's in the <style></style> tags are important for this snippet to work.
1
1109
posted 14 years ago by bobbym245
Does the same as `System.arraycopy(source, copyFrom ,target, copyTo, length)` but without worrying about invalid input. Example for an array of characters.
0
627
posted 14 years ago by Voil
If you want to run Google Chrome with additional program arguments under OSX, one way, is to use "open" and its --args argument.
Use it to start Chrome with the --allow-file-access-from-files setting (or any other).
Create a link to it to run i...
0
959
posted 14 years ago by nonlinearsound