General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
= $file_array)
The keys in $_FILES are the input type=file / in your form.
If you have 3 files... then count( $_FILES ) should be 3
--
Martin Scotta
...
--
Martin Scotta
is evaluated (to
true or false), or is the actual assignment tested (does the assignment
fail, etc)?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The code is interpreted this way...
$data = somefunc();
if ($data)
--
Martin Scotta
can fail...
if( $a $b = do_something() )
The problem here is the precedence between and =
The correct sentence will be...
if( $a ($b = do_something()) )
C coders knows this behaviour very well.
cheers,
Martin Scotta
--
Martin Scotta
and use it:
echo 'a href=' . BASEURL .
'packages/basketball/2010/nba-all-star-gameSomething/a';
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
-id.php
--
Martin Scotta
($name);
print_r($r-getSubClasses());
Many Thanks
--
*From:* Martin Scotta martinsco...@gmail.com
*To:* Raymond Irving xwis...@yahoo.com
*Cc:* David Otton phpm...@jawbone.freeserve.co.uk; PHP-General List
php-general@lists.php.net
*Sent:* Mon, October 26, 2009
(get_object_vars($object) as $prop = $value )
--
Martin Scotta
$swap, PHP_EOL;
I feel ${ $var } safer for developers than $$var because I feel it more
readable.
$$var can be interpreted by a typo for somebody, while with ${ $var } there
is no doubt what was the coder intent.
--
Martin Scotta
://www.ashleysheridan.co.uk
--
Martin Scotta
you allow the view to use the model?
This way you have...
# the controller is responsible to instantiate the model(s) and view(s)
# the model is responsible for the business logic
# the view is responsible for the presentation
--
Martin Scotta
--
Martin Scotta
is not
evaluated.
and what about these?
$array[ $index++ ] = $elem;
$array[ ++$index ] = $elem;
You can read more about the side effect at
http://en.wikipedia.org/wiki/Side_effect_%28computer_science%29
--
Martin Scotta
and you'll be fine.
--
Martin Scotta
);
This happens because values are converted before comparison so, 'false'
becomes true.
PHP converts everything different to an empty string as *true*
This also affect any type of variable.
--
Martin Scotta
the boolean variable to string before print its content.
That's why...
echo true; # prints '1'
echo false; # does not prints anything, or prints ''
$bool = false;
var_dump(
(string) $bool,
(int) $bool
);
--
Martin Scotta
)
{
++$i;
}
$lines[] = $buffer;
$buffer = '';
break;
default:
$buffer .= $code{$i};
}
if( '' !== $buffer );
$lines[] = $buffer;
return $lines;
}
--
Martin Scotta
decide which action should be taken.
--
Martin Scotta
that It's a English based list.
Or is it allowed to discriminate here?
As a non-english speaker I feel very uncomfortable with this thread.
With the best intentions for the community, sincerely yours,
Martin Scotta
Spanish Speaker
practice.
This simple script also helps to prevent session problems under some evil
web-server by closing the session before any output.
--
Martin Scotta
On Fri, Aug 28, 2009 at 10:39 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Fri, 2009-08-28 at 10:34 -0300, Martin Scotta wrote:
Actually there aren't a safe way to make a redirect
We have 4 alternatives (correct me if I miss anything) to do a safe
redirection.
Erm wtf
/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
by other method.
PHP provides non-yet-standard HttpRequest class that can handle this
perfectly
--
Martin Scotta
/unsub.php
socket related:
Does this solution work on both, blocking and non-blocking sockets ?
And what about different read method?
solution related:
Does strlen works fine with binary data?
Does this snippet work for sending/receiving multibytes strings?
--
Martin Scotta
, or your client, do not have to pay for use it.
I'm not going to say *that* DB is better that *this* other, this is a matter
of taste.
--
Martin Scotta
/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
-- Forwarded message --
From: Martin Scotta martinsco...@gmail.com
Date: Tue, Aug 25, 2009 at 6:24 PM
Subject: Re: [PHP] DOMNode children iteration (was Re: array() returns
something weird)
To: webmas...@strefarytmu.pl
Fatal error: Call to a member function getAttribute
code fixed
?php
foreach($_POST as $key = $value)
if( ('0' == $value || '' == $value)
array_key_exists( $key, $_SESSION) )
{
unset( $_SESSION[ $key ] );
}
--
Martin Scotta
this line
;?php exit;?
So, when the file is opened as an ini file the semilcolon indicates that
it's a comment.
But, when the browser call for this file... php just exit's in the first
line.
Our data will be safe as long as the first line will remains there.
--
Martin Scotta
-fcgi,
cli, Continuity, embed, isapi, milter, nsapi, phttpd, pi3web, roxen, thttpd,
tux,webjames
should I look at php source-code for these values?
--
Martin Scotta
Hi all.
Is this going to save me anything?
?php # literal
foreach($items as $item)
if( 'something' == $item-something() )
return true;
?php # variable
$something = 'something';
foreach($items as $item)
if( $something == $item-something() )
return true;
--
Martin Scotta
the decorator
pattern.
Also features such as late static binding were added because a design
pattern.
I think there will be some separation in the community, those who will
stay using scripts and those who will use heavily OOP. I do not know who the
dark side will be, xD
--
Martin Scotta
week
} while( $day $end );
# job's done!
print_r( $friday );
--
Martin Scotta
is usually a common bottle-neck for most applications.
You can have several webservers, but can't do that with the DB... of course,
you can have multiples slaves but just 1 master.
is this the best way to send queries?
What's the better and faster way?
--
Martin Scotta
://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well, this was a nice experiment.
What do we must learn about this? performance legibility
Stuart solutions look that's the faster, but in the other hand Shawn's
solution 2 looks the most legible (so far).
--
Martin Scotta
--
*Von:* Martin Scotta martinsco...@gmail.com
*An:* Ralph Deffke ralph_def...@yahoo.de
*CC:* php-general@lists.php.net
*Gesendet:* Mittwoch, den 12. August 2009, 16:18:01 Uhr
*Betreff:* Re: [PHP] Re: Is select_db necessary?
Wed, Aug 12, 2009 at 10:37 AM, Ralph Deffke ralph_def...@yahoo.de wrote
this list... so, if you
want a copy just reply to this message.
Any bug, comment, or anything you like to say is welcome!
--
Martin Scotta
On Wed, Aug 12, 2009 at 6:27 PM, Ralph Deffke ralph_def...@yahoo.de wrote:
it would help if u would tell us what u want to accomplish with this
ativity
cheers
ralph_def...@yahoo.de
Martin Scotta martinsco...@gmail.com wrote in message
news:6445d94e0908121323x721254c4ja389978d67bc0
', 'gray' );
foreach($items as $item)
{
printf( 'li class=%s%s/li', current( $styles ), $item );
next( $styles ) or reset( $styles );
}
The simplest solution is always the best choice.
This provides maintainability and flexibility to changes ( that we don't
know yet )
--
Martin Scotta
);
And of course, this is a matter of taste!
--
Martin Scotta
against the isset ()
one first. It makes if() look more intelligent that I would think... as if
it saying, good now that we've established that the var isset, now is it
also equal to '___'., as opposed to just, is var set, and is var equal to
___'.
--
Martin Scotta
--
Martin Scotta
(to a boolean).
?
TIA! -G
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It is up to you to read the book or not.
--
Martin Scotta
, and I
don't suspect it's near it either, so it's definitely way premature to
write a book on PHP6 and silly to buy one.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
? Are there laws in that country about this sort of
thing?
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
...@ashleysheridan.co.uk wrote:
On Wed, 2009-08-05 at 11:10 -0300, Martin Scotta wrote:
Nobody can actually do anything. This happen all the time.
Sites like facebook or myspace send invitations to all your mail's
contacts, but that's not the problem. What I can't understand is why
do they do pre
with (former issues and
whatnot) please let me know what I'm doing wrong. I would be happy to give
you any code you want to look at (index.php or navigation.php, whatever).
Thanks again for your help PHP gurus!
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net
again for your help PHP gurus!
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
John Butler (Govinda)
govinda.webdnat...@gmail.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of classes that handle ncurses easily?
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all
Is there a formal definition for the php language?
Where I can found it?
I've STW with no results.
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
(); ?
Short tag and not recommended as its deprecated now, would be void at PHP
6.0
--
Martin Scotta
()* inside of a function,
only the local variable is destroyed. The variable in the calling
environment will retain the same value as before *unset()* was called.
I think the manual is very clear about unset.
--
Martin Scotta
.
Consequence of having (at least) two separate error handling
mechanisms in the same language.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
hopefully the menu system would support PHP and ASP.
Thanks for any information!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
On Thu, Jul 16, 2009 at 12:01 PM, Miller, Terion
tmil...@springfi.gannett.com wrote:
One question I still have...I had help with this script of course and I'm
confused with the %s what does it do?
On 7/16/09 9:53 AM, Martin Scotta martinsco...@gmail.com wrote:
On Thu, Jul 16, 2009 at 11
this?
--
Martin Scotta
?
Looks like you meant to do something like this:
// Always better to be plural when you have an array.
$rows = whatever_your_rows_come_from();
foreach($rows as $row)
{
$inType = $row['inType'];
echo $inType . 'br /';
}
HTH,
Kyle
--
Martin Scotta
://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Jul 15, 2009 at 4:55 AM, Carlos Medinai...@simply-networks.de wrote:
Martin Scotta schrieb:
Hi
Do you noted that all the discussion here are about problems, bugs, or
just urgent pleaaase help me
I have an idea. It is not really THE idea... but it is.
What happen if tell this idea
, is really difficult to implement
specially about security
so, do you like me idea?
-- Martin Scotta
sorry if this is getting OT:
Martin, I wrote a really fun and charming remake of a great that 2 others
wrote in the 1980's. My version has really fun graphics and sounds. I used
visual
On Wed, Jul 15, 2009 at 12:29 PM, teddtedd.sperl...@gmail.com wrote:
At 1:21 AM -0300 7/15/09, Martin Scotta wrote:
Hi
Do you noted that all the discussion here are about problems, bugs, or
just urgent pleaaase help me
I have an idea. It is not really THE idea... but it is.
What happen
as $test = $_test)
echo bol2string($boolean) , $boolean ? ' ': ' ' ,
$test ,' $int === ' , bol2string($_test[-1]),
$_test[0] !== $_test[-1] ? ' / $int !== 0' : '' ,
PHP_EOL;
?
--
Martin Scotta
List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the overhead of creating a new instance of the
class.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/a
This is how the browser looks it without javascript
a href=lalalal.html
Click to lalalal
/a
I've said it is not for a php thread
On Tue, Jul 14, 2009 at 10:29 AM, Bob McConnellr...@cbord.com wrote:
From: Martin Scotta
hahahahahaha
How are you to delete my history?
The fact that you
.: I get the same result when I write $immagine =
imagecreatefromjpeg(...)
(Sorry for my english)
Thanks in advance,
Alfio.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http
He is calling the function by variable
something like this
$func = 'var_dump';
$func( new Foo );
On Tue, Jul 14, 2009 at 1:30 PM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tue, 2009-07-14 at 13:27 -0300, Martin Scotta wrote:
$immagine = $tipo($this-updir.$id.'.png');
$tipo
On Tue, Jul 14, 2009 at 1:48 PM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tue, 2009-07-14 at 13:41 -0300, Martin Scotta wrote:
He is calling the function by variable
something like this
$func = 'var_dump';
$func( new Foo );
On Tue, Jul 14, 2009 at 1:30 PM, Ashley
Sheridana
' );
}
hey, look, just 2 lines!
On Tue, Jul 14, 2009 at 2:20 PM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tue, 2009-07-14 at 14:16 -0300, Martin Scotta wrote:
On Tue, Jul 14, 2009 at 1:48 PM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tue, 2009-07-14 at 13:41 -0300, Martin
with him, even
have fun with it.
My idea is to make a simple game where your have to write some AI to
beat the other players AI
The idea, as simple as it looks, is really difficult to implement
specially about security
so, do you like me idea?
--
Martin Scotta
--
PHP General Mailing List
,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if you need to access to a class constant use the built-in function
if( defined( get_class($myClass) .'::THE_CONST' ) )
constant( get_class($myClass) .'::THE_CONST' );
They are very helpful
--
Martin Scotta
--
PHP General
.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in the class? Is it a reserved word?
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, but that furthers my
point: I want an editor that I can be productive with more or less out
of the box.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net
it?
--
Martin Scotta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Conheça os novos produtos Windows Live! Clique aqui.
http://www.windowslive.com.br
--
Martin Scotta
http://www.chiccantine.com/andypantry.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
/;
}
if ($howlong) {
echo How Long has seller owned property: $howlongbr /br /;
}
Thanks
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
: ;
I get
The mortgage amount is
What am I missing here?
Thanks
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
sessions, which would be a bad
thing for what I'm doing. my oh-so-limited knowledge of PHP is shining
through, I think :)
Thanks so much!
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
(http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
Shared Hosting Plans at PilotPig: Use Coupon DOW1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Martin Scotta
93 matches
Mail list logo