PHP On Codera Homepage

by Lokycss, October 27, 2007 20:32

Sorry, my level english is ...

D4aeba3e57cfa78a5dfd84a08849611e Talk

PHP On Resolving TinyURLS to the d...

by KangOl, October 27, 2007 09:49
Avatar Talk

PHP On handling GET and POST in a ...

by Marcus, October 26, 2007 17:24

It's also important for sit...

Avatar Talk
1
2
3
4
<?php
// check to see if image has been uploaded

...

PHP On image upload script

by typefreak, October 26, 2007 13:40

A bit of rewriting:

Commen...

A2c8fecfd1fb707dd0a8f292ade77e1e Talk

PHP On image upload script

by typefreak, October 26, 2007 13:21

The wrong filetype is easy ...

A2c8fecfd1fb707dd0a8f292ade77e1e Talk
1
2
3
4
function random_password($length = 6)
{
	$pass = '';
...

PHP On Random password

by Ted, October 26, 2007 12:06 Star_fullStar_fullStar_fullStar_fullStar_full

The problem with these scri...

Da8018e455a59bc1a8b5d40ff60f0966 Talk
1
2
3
4
<?php

# Function removeInjection(GPC)
...

PHP On PHP Get

by Diggler, October 24, 2007 21:01 Star_fullStar_full

Hello, this is my version f...

Fa7281f07bc7aaefe94a4274e3f2c7a8 Talk

PHP On Codera Homepage

by macournoyer, October 22, 2007 17:44

hey thelittleninja, I doubt...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk
1
2
3
4
<?php
function secure_input(&$v) {
    if(is_array($v)) foreach($v as $i => $a) secure_input($v[$i]);
...

PHP On making user html input secure

by JWvdV, October 20, 2007 14:30
584799d026024e108d87aeceb51804d3 Talk

PHP On FTPSocket

by JWvdV, October 20, 2007 14:19

@techietim:
PHP.NET doesn't...

584799d026024e108d87aeceb51804d3 Talk

PHP On FTPSocket

by techietim, October 20, 2007 14:10

That's pretty good. You sho...

441c4f02db55ef2cbe96027af7012e01 Talk
1
2
3
4
<?php
$allowedPages = array('imprint','news','main'); //add more

...

PHP On PHP Get

by Felix, October 20, 2007 12:33 Star_fullStar_full

With alternative if syntax

Avatar Talk
1
2
3
4
<?php
function random_password($length = 8){
    return substr(str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'),0,$length);
...

PHP On Random password

by Felix, October 19, 2007 16:07 Star_fullStar_fullStar_full

The easy way.

Avatar Talk
1
2
3
4
function randomString($length = 8, $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_')
{
    $string = '';
...

PHP On Random password

by Random, October 18, 2007 15:02
Avatar Talk

PHP On Random password

by richardhealy, October 17, 2007 18:18

I suppose that answers that...

28e65a85a625f7c0689bcf96ccf6043d Talk
1
2
3
4
Meir:

<?php
...

PHP On Random password

by Meir, October 17, 2007 16:46 Star_fullStar_fullStar_full

My new code is faster, a si...

Avatar Talk
1
2
3
4
[php]
<?php
function random_password($length = 6)
...

PHP On Random password

by richardhealy, October 17, 2007 16:15

Not sure what the speed dif...

28e65a85a625f7c0689bcf96ccf6043d Talk
1
2
3
4
function random_password($length = 6)
{
	$characters = array_merge(range('a', 'z'), range('A', 'Z'), range(0, 9));
...

PHP On Random password

by jmut, October 17, 2007 15:45

Seems this is limited to 62...

E00300dcac141ff16bee8e33401aa3af Talk

PHP On Copyright Year

by richardhealy, October 15, 2007 14:15

Ah! I didn't know that! Che...

28e65a85a625f7c0689bcf96ccf6043d Talk

PHP On making user html input secure

by blank714.myopenid.com, October 14, 2007 15:40

wow okay cool, thanks

Avatar Talk

PHP On making user html input secure

by typefreak, October 14, 2007 10:00

Overdoing it.
After the lin...

A2c8fecfd1fb707dd0a8f292ade77e1e Talk
1
2
3
4
$variable_1 = secure_input($_POST[$variable_1]);
$variable_2 = secure_input($_POST[$variable_2]);
...

PHP On making user html input secure

by blank714.myopenid.com, October 13, 2007 18:05

so this could work like thi...

Avatar Talk
1
2
3
4
function secure_input($v) {
    if ( is_array($v) ) {
        return array_map('secure_input', $v);
...

PHP On making user html input secure

by typefreak, October 13, 2007 15:42 Star_fullStar_fullStar_fullStar_full

I don't know why you're usi...

A2c8fecfd1fb707dd0a8f292ade77e1e Talk
1
2
3
4
<?php
if(isset($_POST['asdasd'])){
foreach($_POST as $pname => $pvalue){
...

PHP On making user html input secure

by techietim, October 13, 2007 00:50

That cleans all of the $_PO...

441c4f02db55ef2cbe96027af7012e01 Talk

PHP On making user html input secure

by blank714.myopenid.com, October 12, 2007 23:38

how exactly would that work...

Avatar Talk