[PHP] Re: [PHP-DEV] [PHP] PHP 5.5.0 final has been released!

2013-06-21 Thread Martin Amps
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

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
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

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
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

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
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

[PHP] HTML id attribute and arrays

2010-12-17 Thread Martin C
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

[PHP] Re: Zip files: generate text file in archive on the fly

2010-10-17 Thread Justin Martin
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

[PHP] Re: Fatal error: Allowed memory size of XXXXX bytes exhausted

2010-10-17 Thread Justin Martin
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

[PHP] Binary data unpacking

2010-10-16 Thread Justin Martin
, 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

[PHP] Addendum: Binary data unpacking

2010-10-16 Thread Justin Martin
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

Re: [PHP] Re: zip and mac safari

2010-10-09 Thread Martin Reuter
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

[PHP] /status page of php-fpm 5.3.3

2010-08-10 Thread Martin Minka
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

[PHP] Re: PHP: inexplicable behaviour of pre- and post-increment operators

2010-03-01 Thread Martin Zvarík
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

Re: [PHP] Re: My experience with the Forms Generation and Validation class

2009-11-24 Thread Martin Scotta
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Martin Scotta

Re: [PHP] Multiple file upload

2009-11-11 Thread 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

Re: [PHP] Suppress Right-Click and Hide hover URL

2009-11-09 Thread Martin Scotta
... -- Martin Scotta

Re: [PHP] Assignment in Conditional - How are they evaluated?

2009-10-29 Thread 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

Fwd: [PHP] Assignment in Conditional - How are they evaluated?

2009-10-29 Thread 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

Re: [PHP] Re: UrlRewrite htaccess confusion

2009-10-29 Thread 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

Re: [PHP] [php] INSERT and immediately UPDATE

2009-10-28 Thread Martin Scotta
-id.php -- Martin Scotta

Re: [PHP] How to Get the Sub Classes of a Parent Class

2009-10-27 Thread 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

Re: [PHP] Array

2009-10-24 Thread Martin Scotta
(get_object_vars($object) as $prop = $value ) -- Martin Scotta

Re: [PHP] how call a variable in a text

2009-10-22 Thread 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

Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Martin Scotta
://www.ashleysheridan.co.uk -- Martin Scotta

Re: [PHP] Insult my code!

2009-10-07 Thread 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

Re: [PHP] FILTER_VALIDATE_INT - newbie question

2009-10-07 Thread Martin Scotta
-- Martin Scotta

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-06 Thread 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

Re: [PHP] Re: Class variable value lost

2009-09-09 Thread Martin Scotta
and you'll be fine. -- Martin Scotta

Re: [PHP] Overwrite value of true or false in PHP

2009-09-07 Thread 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

Re: [PHP] Overwrite value of true or false in PHP

2009-09-07 Thread 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

Re: [PHP] how to strip empty lines out of a txt using preg_replace()

2009-09-04 Thread Martin Scotta
) { ++$i; } $lines[] = $buffer; $buffer = ''; break; default: $buffer .= $code{$i}; } if( '' !== $buffer ); $lines[] = $buffer; return $lines; } -- Martin Scotta

[PHP] Array references - how to unset() ?

2009-09-02 Thread Martin Zvarík
$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

Re: [PHP] Array references - how to unset() ?

2009-09-02 Thread Martin Zvarík
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

Re: [PHP] Array references - how to unset() ?

2009-09-02 Thread Martin Zvarí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

Re: [PHP] LoginShare | How to authenticate once, and login to different websites

2009-09-01 Thread Martin Scotta
decide which action should be taken. -- Martin Scotta

Re: [PHP] IRC and English

2009-09-01 Thread 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

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Martin Scotta
practice. This simple script also helps to prevent session problems under some evil web-server by closing the session before any output. -- Martin Scotta

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread 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

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread Martin Scotta
/) To unsubscribe, visit: http://www.php.net/unsub.php -- Martin Scotta

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread Martin Scotta
by other method. PHP provides non-yet-standard HttpRequest class that can handle this perfectly -- Martin Scotta

Re: [PHP] Sockets (reading)

2009-08-27 Thread 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

Re: [PHP] Re: How to output a NULL field?

2009-08-27 Thread 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

Re: [PHP] __destruct() not called ! we shot us in the foot try the script

2009-08-25 Thread Martin Scotta
/) To unsubscribe, visit: http://www.php.net/unsub.php -- Martin Scotta

[PHP] DOMNode children iteration (was Re: array() returns something weird)

2009-08-25 Thread 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

Re: [PHP] session variables - help

2009-08-14 Thread Martin Scotta
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

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread 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

[PHP] PHP_SAPI

2009-08-14 Thread 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

[PHP] literal strings vs variable strings

2009-08-13 Thread 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

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Martin Zvarík
. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] design pattern

2009-08-13 Thread 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

Re: [PHP] Calendar Problem

2009-08-12 Thread Martin Scotta
week } while( $day $end ); # job's done! print_r( $friday ); -- Martin Scotta

Re: [PHP] Re: Is select_db necessary?

2009-08-12 Thread 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

Re: [PHP] Calendar Problem

2009-08-12 Thread 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

Re: [PHP] Re: Is select_db necessary?

2009-08-12 Thread 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

[PHP] Design Patterns

2009-08-12 Thread Martin Scotta
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

Re: [PHP] Re: Design Patterns

2009-08-12 Thread 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

Re: [PHP] how to say inverse your value (to a boolean)?

2009-08-11 Thread Martin Scotta
', '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

[PHP] Single quoted strings (was: ereg_replace to preg_replace translation)

2009-08-11 Thread Martin Scotta
); And of course, this is a matter of taste! -- Martin Scotta

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-10 Thread 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

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-10 Thread Martin Scotta
-- Martin Scotta

Re: [PHP] how to say inverse your value (to a boolean)?

2009-08-10 Thread 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

Re: [PHP] how to say inverse your value (to a boolean)?

2009-08-10 Thread Martin Scotta
Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Martin Scotta

Re: [PHP] Displaying user data and picture

2009-08-06 Thread 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

Re: [PHP] PHP 6 and MySQL 5 for Dynamic Web Sites Book

2009-08-06 Thread Martin Scotta
It is up to you to read the book or not. -- Martin Scotta

Re: [PHP] PHP 6 and MySQL 5 for Dynamic Web Sites Book

2009-08-06 Thread 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

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-05 Thread 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

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-05 Thread Martin Scotta
...@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

Re: [PHP] navigation include not functioning

2009-08-05 Thread Martin Scotta
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

Re: [PHP] navigation include not functioning

2009-08-05 Thread Martin Scotta
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

Re: [PHP] dynamically naming PHP vars on the fly?

2009-08-05 Thread Martin Scotta
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

[PHP] PHP 5.2.9 + NCurses

2009-07-30 Thread Martin Scotta
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

[PHP] PHP as Language

2009-07-24 Thread Martin Scotta
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

Re: [PHP] Re: unsetting a referenced parameter in a function

2009-07-23 Thread Martin Scotta
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Martin Scotta

Re: [PHP] Renaming all variables in a repository

2009-07-23 Thread Martin Scotta
List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Martin Scotta

Re: [PHP] Re: newbie question - php parsing

2009-07-22 Thread Martin Scotta
(); ? Short tag and not recommended as its deprecated now, would be void at PHP 6.0 -- Martin Scotta

Re: [PHP] Re: unsetting a referenced parameter in a function

2009-07-22 Thread 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

[PHP] Re: file_set_contents() do several times?

2009-07-20 Thread Martin Zvarík
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] file_set_contents() do several times?

2009-07-19 Thread Martin Zvarík
?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

Re: [PHP] Exception not being caught

2009-07-16 Thread 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

Re: [PHP] Sub Menu System?

2009-07-16 Thread 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

Re: [PHP] Alphabetical pagination (RESOLVED)

2009-07-16 Thread 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

[PHP] Add php.net to my browser search box

2009-07-16 Thread Martin Scotta
this? -- Martin Scotta

Re: [PHP] Invalid Argument why?

2009-07-16 Thread 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

Re: [PHP] Alphabetical pagination

2009-07-15 Thread 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

Re: [PHP] Re: I have an idea

2009-07-15 Thread Martin Scotta
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

Re: [PHP] I have an idea

2009-07-15 Thread Martin Scotta
, 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

Re: [PHP] I have an idea

2009-07-15 Thread Martin Scotta
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

[PHP] boolean vs int comparison

2009-07-15 Thread Martin Scotta
as $test = $_test) echo bol2string($boolean) , $boolean ? ' ': ' ' , $test ,' $int === ' , bol2string($_test[-1]), $_test[0] !== $_test[-1] ? ' / $int !== 0' : '' , PHP_EOL; ? -- Martin Scotta

Re: [PHP] Need Help.

2009-07-14 Thread 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

Re: [PHP] Scope of Variables and use of global and this-var

2009-07-14 Thread Martin Scotta
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

Re: [PHP] Need Help.

2009-07-14 Thread Martin Scotta
/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

Re: [PHP] [GD] Image errors

2009-07-14 Thread Martin Scotta
.: 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

Re: [PHP] [GD] Image errors

2009-07-14 Thread Martin Scotta
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

Re: [PHP] [GD] Image errors

2009-07-14 Thread Martin Scotta
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

Re: [PHP] [GD] Image errors

2009-07-14 Thread Martin Scotta
' ); } 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

[PHP] I have an idea

2009-07-14 Thread Martin Scotta
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

Re: [PHP] RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-13 Thread Martin Scotta
, 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

Re: [PHP] runtime access to static variable

2009-07-10 Thread Martin Scotta
://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

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Martin Scotta
. 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

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Martin Scotta
. 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

[PHP] Lookup domain in directories VS database

2009-07-05 Thread Martin Zvarík
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   2   3   4   5   6   7   8   9   10   >