I second this - great to see both finally available. Fantastic release!
Martin Amps | CIO
www.iCracked.com
iCracked | Redwood City, CA
On Jun 21, 2013, at 2:01 PM, Julian jswprog.mailingli...@gmx.at wrote:
Awesome work and the new design for the php.net website is also nice ;)
Am 20.06.2013
it should be the same (for same reason, maybe
compatibility between XHTML and HTML). But could not find anything on
the net which states this. So my memories might be corrupted :)
Based on first tests, it works (but have not checked the W3C validator yet).
Thanks,
Martin
--
PHP General Mailing List
it should be the same (for same reason, maybe
compatibility between XHTML and HTML). But could not find anything on
the net which states this. So my memories might be corrupted :)
Based on first tests, it works (but have not checked the W3C validator yet).
Thanks,
Martin
--
PHP General Mailing List
attribute on a form field (input, textarea,
select, etc) is different to the name attribute on a a or form
element, so this rule does not apply to it.
Thank you, Benjamin, for clarification. This sounds like the source of
my (bogus) feeling.
Martin
--
PHP General Mailing List (http://www.php.net
automatically converted to arrays in PHP?
Thank you for any tips,
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it, but you could also simply try using
ZipArchive::addFromString without deleting the file first. It may just
overwrite the file.
Thanks,
Justin Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
evident is that your script is eating memory.
Thanks,
Justin Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, or is PHP's pack/unpack functionality indeed lacking? And, if the
pack and unpack functions are indeed lacking, is it possible to handle
binary data without those functions?
Thanks,
Justin Martin
attachment: nbt.class.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Sorry, I had forgotten that attachments weren't accepted on the list.
My code can be found at http://pastebin.com/6nmR67c3.
The test NBT can be found via the NBT specification link.
Thanks,
Justin Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
directories or the use a different header for sending the file?
If someone has a working solution let me know.
Best Martin
On Oct 8, 2010, at 17:18, TR Shaw ts...@oitc.com wrote:
I don't have any problem in this regard.
On Oct 8, 2010, at 11:09 AM, Nathan Rixham wrote:
M. Reuter wrote:
Hi
Hello,
I am using PHP 5.3.3 compiled as PHP-FPM.
My Apache is using mod_fastcgi to connect to PHP-FPM and everything works as
expected.
Unfortunately I don't know how to forward request http://localhost/status to
PHP-FPM so that I will see the status page of PHP-FPM.
I found only NGINX
Mess
Dne 27.2.2010 5:01, clanc...@cybec.com.au napsal(a):
A week ago Dasn asked a question about converting arrays, and I quoted one
possible way of
achieving his task, using the operation:
$i = 0; while ($i $k) { $b[$a[$i++]] = $a[$i++]; }
I added the comment that I have always been wary
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
On Tue, Oct 27, 2009 at 9:30 PM, Raymond Irving xwis...@yahoo.com wrote:
Hi Martin,
This works great but I was hoping that I didn't have to loop through
get_declared_classes to find the sub class.
Is there a way to get the subclasses using Reflection? For example:
$r = new ReflectionClass
(get_object_vars($object) as $prop = $value )
--
Martin Scotta
as
well.
But I though that the point of the thread was to present ways of putting
vars inside strings...
--
Thodoris
PHP knows that before $ and {} there is a variable name so, this is
completely correct for PHP
?php // tested on PHP 5.2.6, is this correct on PHP = 5 ?
$name = 'Martin
://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
$ARR = array(
'a' = array('b' = 'blah')
);
function set($key)
{
global $ARR;
foreach ($key as $i = $k) {
if ($i == 0) {
$sourcevar = $ARR[$k];
} else {
$sourcevar = $sourcevar[$k];
}
}
// unset($sourcevar); // will
Robert Cummings napsal(a):
Martin Zvarík wrote:
$ARR = array(
'a' = array('b' = 'blah')
);
function set($key)
{
global $ARR;
foreach ($key as $i = $k) {
if ($i == 0) {
$sourcevar = $ARR[$k];
} else {
$sourcevar = $sourcevar[$k
AHA !!!
OMG... how come I did not see that!?
Instead this:
$array = $array[$final];
unset($array);
This:
unset($array[$final]);
3 AM in the morning... that must be the reason! .)
Thanks.
This is possible. You're just not giving enough consideration to your
exit strategy :)
?php
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
with the remaining complimentary values).
Martin suggested I use the following code for my update script (which is
posted to via the process page):
[code]
foreach($_POST as $key = $value)
if( '0' == $value || '' == $value )
{
/*if*/ session_is_registered( $key
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
.
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
You can use variable variables
?php
$nombre = 'Martin';
$name = 'nombre';
echo $$name; # === Martin
You can make more complicated statements with this technique.
$var1 = 'apple';
${ 'Fruit_' . $var1 } = 'organic';
echo $Fruit_apple; // here you are
When your statements are complex use
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
David Otton napsal(a):
2009/7/20 Martin Zvarík mzva...@gmail.com:
?php
$i = 0;
do {
$i++;
$r = file_put_contents('file.txt', 'content');
} while($r === false $i 3);
if ($r === false) die('error');
?
Makes sense? or is it enough to do it just once?
Assuming 'content' changes
?php
$i = 0;
do {
$i++;
$r = file_put_contents('file.txt', 'content');
} while($r === false $i 3);
if ($r === false) die('error');
?
Makes sense? or is it enough to do it just once?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
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
Imagine you are hosting 10.000 subdomains.
SOLUTION #1:
you create directories like:
a/
b/
...
s/
s/some-subdomain.freehosting.com/ (this includes CONF.php, where you
store some basic infos)
Everytime visitor hits the page you do:
1 - 100 of 1888 matches
Mail list logo