beneberle


Member since 06/18/2009

10 snippets

4156 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

beneberle's Recent SnippetsTagged php



« Prev 1 Next »
Condition = The condition which must be met. True = Executed if the condition is met. False = Executed if the condition failes.
0 544 posted 12 years ago by beneberle
1 654 posted 12 years ago by beneberle
0 622 posted 12 years ago by beneberle
Though an old post, this is my solution that's been pieced together from various comments on the article linked above.
1 1069 posted 13 years ago by beneberle
I needed to trim a simple numerical array that might have duplicate values into an array with no duplicates. I came up with this before finding array_unique(). D\'oh.
0 699 posted 13 years ago by beneberle
Substitute new_ placeholder in the second line with your new prefix. Run it: http://www.yoursite.com/rename.php and wait until it responds with an OK, usually after a couple of seconds. Delete the rename.php script. Edit the configuration.php file...
0 747 posted 13 years ago by beneberle
Returns path to physical
0 484 posted 13 years ago by beneberle
To make an image browser, add these lines: $ext = strtolower(substr("$dirArray[$index]", strrpos("$dirArray[$index]", '.') + 1)); //get file extensions if ("$ext" == "jpg") { // if file is a jpg print("<TR><TD>$dirArray[$index]<br/><a href=\...
1 581 posted 14 years ago by beneberle
« Prev 1 Next »