2 4 5 6 7 8 9 49 50
Topic: Length.. - part 23
no photo
Sun 06/05/11 08:45 AM
have fun girl, take some pics

HasidicEnforcer's photo
Sun 06/05/11 11:01 AM
I do... wanna see what I look like today?

Totage's photo
Sun 06/05/11 01:56 PM
Like a goddess?

HasidicEnforcer's photo
Sun 06/05/11 03:32 PM
Edited by HasidicEnforcer on Sun 06/05/11 03:40 PM
So how are you doing today?



Totage's photo
Sun 06/05/11 04:59 PM
I'm doing pretty good. How about yourself?

HasidicEnforcer's photo
Sun 06/05/11 05:25 PM
Waiting for a friend to come pick me up so I can get something to eat.

HasidicEnforcer's photo
Sun 06/05/11 05:30 PM
I am struggling to post a picture here... :cry:

Totage's photo
Sun 06/05/11 05:34 PM
What's wrong? Won't upload?

HasidicEnforcer's photo
Sun 06/05/11 05:44 PM
Little box with a broken sign inside every time.

Totage's photo
Sun 06/05/11 05:54 PM
Make sure the URL is correct, including case match.

Or, you can upload it to somewhere like FileUpYours.com and it will give the BBCode to post it.

Mayhem_J's photo
Sun 06/05/11 07:23 PM
You better check yo self before you wreck yourself...

Totage's photo
Sun 06/05/11 09:33 PM

You better check yo self before you wreck yourself...


Good point...


PHP Snytax Check:


<?php
/**
* Check Syntax
* Performs a Syntax check within a php script, without killing the parser (hopefully)
* Do not use this with PHP 5 <= PHP 5.0.4, or rename this function.
*
* @params string PHP to be evaluated
* @return array Parse error info or true for success
**/
function php_check_syntax( $php, $isFile=false )
{
# Get the string tokens
$tokens = token_get_all( '<?php '.trim( $php ));

# Drop our manually entered opening tag
array_shift( $tokens );
token_fix( $tokens );

# Check to see how we need to proceed
# prepare the string for parsing
if( isset( $tokens[0][0] ) && $tokens[0][0] === T_OPEN_TAG )
$evalStr = $php;
else
$evalStr = "<?php\n{$php}?>";

if( $isFile OR ( $tf = tempnam( NULL, 'parse-' ) AND file_put_contents( $tf, $php ) !== FALSE ) AND $tf = $php )
{
# Prevent output
ob_start();
system( 'C:\inetpub\PHP\5.2.6\php -c "'.dirname(__FILE__).'/php.ini" -l < '.$php, $ret );
$output = ob_get_clean();

if( $ret !== 0 )
{
# Parse error to report?
if( (bool)preg_match( '/Parse error:\s*syntax error,(.+?)\s+in\s+.+?\s*line\s+(\d+)/', $output, $match ) )
{
return array(
'line' => (int)$match[2],
'msg' => $match[1]
);
}
}
return true;
}
return false;
}

//fixes related bugs: 29761, 34782 => token_get_all returns <?php NOT as T_OPEN_TAG
function token_fix( &$tokens ) {
if (!is_array($tokens) || (count($tokens)<2)) {
return;
}
//return of no fixing needed
if (is_array($tokens[0]) && (($tokens[0][0]==T_OPEN_TAG) || ($tokens[0][0]==T_OPEN_TAG_WITH_ECHO)) ) {
return;
}
//continue
$p1 = (is_array($tokens[0])?$tokens[0][1]:$tokens[0]);
$p2 = (is_array($tokens[1])?$tokens[1][1]:$tokens[1]);
$p3 = '';

if (($p1.$p2 == '<?') || ($p1.$p2 == '<%')) {
$type = ($p2=='?')?T_OPEN_TAG:T_OPEN_TAG_WITH_ECHO;
$del = 2;
//update token type for 3rd part?
if (count($tokens)>2) {
$p3 = is_array($tokens[2])?$tokens[2][1]:$tokens[2];
$del = (($p3=='php') || ($p3=='='))?3:2;
$type = ($p3=='=')?T_OPEN_TAG_WITH_ECHO:$type;
}
//rebuild erroneous token
$temp = array($type, $p1.$p2.$p3);
if (version_compare(phpversion(), '5.2.2', '<' )===false)
$temp[] = isset($tokens[0][2])?$tokens[0][2]:'unknown';

//rebuild
$tokens[1] = '';
if ($del==3) $tokens[2]='';
$tokens[0] = $temp;
}
return;
}
?>

no photo
Sun 06/05/11 10:51 PM
has toto gone plum loco

no photo
Sun 06/05/11 11:21 PM

I do... wanna see what I look like today?

what if i wanna see what you look like everyday?

Suzanne20's photo
Mon 06/06/11 12:24 AM
Ese I am gonna tell you know who...even though she could probably care lesslaugh

Mayhem_J's photo
Mon 06/06/11 12:45 AM
You are going to tell his mom?

no photo
Mon 06/06/11 02:06 AM

Ese I am gonna tell you know who...even though she could probably care lesslaugh



not my delicious canadian cupcake!!!

no photo
Mon 06/06/11 02:06 AM
Edited by esebulldog on Mon 06/06/11 02:06 AM
grumble

Totage's photo
Mon 06/06/11 08:01 AM

has toto gone plum loco


No, just did a sanity check. I'm good.

kc0003's photo
Mon 06/06/11 10:36 AM


has toto gone plum loco


No, just did a sanity check. I'm good.


this assessment may be in question……

2 4 5 6 7 8 9 49 50