[PHP] Re: OOP Hello World

2006-10-04 Thread Martin Alterisio
it just now, I'll post it later on the spanish list) Well, I think that sums it all up. 2006/9/29, Martin Alterisio [EMAIL PROTECTED]: What's up folks? I just wanted to tell you about a thread that's going on in the spanish php mailing list. A fellow software developer which had just started with OOP

Re: [PHP] Re: OOP Hello World

2006-10-05 Thread Martin Alterisio
PROTECTED]: Are you sure you're not on a Spanish *Java* mailing list? :) On 10/5/06, Martin Alterisio [EMAIL PROTECTED] wrote: Me... again, still boring you to death with meaningless OOP rantings. First I would like to point out that there was a design mistake in what I proposed in the last

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/4, Deckard [EMAIL PROTECTED]: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I have the class:

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/5, Satyam [EMAIL PROTECTED]: I've seen you already had a good answer on the errors in the code so I won't go on that. As for OOP, the one design error you have is that you are asking for an action, not an object. You want to make SQL inserts, that is your purpose, and that is an

Re: [PHP] Re: OOP Hello World

2006-10-05 Thread Martin Alterisio
2006/10/5, John Wells [EMAIL PROTECTED]: On 10/5/06, Martin Alterisio [EMAIL PROTECTED] wrote: PHP seems to be getting more and more object oriented, I think it's the right time to start questioning what have been done so far in terms of OOP in PHP, because, honestly, there are too many php

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/5, Satyam [EMAIL PROTECTED]: - Original Message - *From:* Martin Alterisio [EMAIL PROTECTED] *To:* Satyam [EMAIL PROTECTED] *Cc:* Deckard [EMAIL PROTECTED] ; php-general@lists.php.net *Sent:* Thursday, October 05, 2006 3:50 PM *Subject:* Re: [PHP] Help on objects 2006/10/5

Re: [PHP] OOP slow -- am I an idiot?

2006-10-10 Thread Johan Martin
a programming problem just like yours. Johan Martin Catenare LLC 534 Pacific Ave San Francisco, CA. 94133 http://www.catenare.com http://www.linkedin.com/in/catenare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Imagecopyresampled creates black pictures

2006-10-30 Thread Martin Hochreiter
Hi! I'm using imagecopyresampled to create thumbnails of various pictures. That works well except some pictures that imagecopyresampled converts to small black thumbnails (although it converts it correctly to a bigger size) What is wrong here? lg Martin (Suse Linux 10.1, Apache 2.2, gd

Re: [PHP] Imagecopyresampled creates black pictures

2006-10-30 Thread Martin Hochreiter
Ed Lazor schrieb: On Oct 30, 2006, at 12:52 AM, Martin Hochreiter wrote: Hi! I'm using imagecopyresampled to create thumbnails of various pictures. That works well except some pictures that imagecopyresampled converts to small black thumbnails (although it converts it correctly to a bigger

Re: [PHP] Imagecopyresampled creates black pictures

2006-10-30 Thread Martin Hochreiter
tedd schrieb: At 9:52 AM +0100 10/30/06, Martin Hochreiter wrote: What is wrong here? Martin: Damn, that's a lot of code to do something pretty simple. I had no problems uploading and resampling your image with a lot less. Try using ob_start() and ob_end() to grab your image.: ob_start

[PHP] Re: Imagecopyresampled creates black pictures

2006-10-31 Thread Martin Hochreiter
Tedd, may I ask you what GD library version and php version are you using? I am using: php5-5.1.2 gd-2.0.32-23 All Suse 10.1 machines using that versions and on all that machines I have the same problem ... lg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Mac PHP MySQL

2006-11-02 Thread Johan Martin
and mysql support. Johan Martin Catenare LLC 534 Pacific Ave San Francisco, CA. 94133 Phone: (415) 834-9802 Fax: (415) 294-4495 http://www.catenare.com AOL: catenarellc Yahoo: martin_johan GTalk: [EMAIL PROTECTED] FreeWorldDialup :716798 - http://www.freeworlddialup.com/ Gizmo Project: 747-627

[PHP] fwrite() timeout

2006-11-06 Thread Martin Cetkovsky
(), but it seems not to be effective on the fwrite(), only on fread(). Thanks, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Microsoft Partners With Zend

2006-11-06 Thread Martin Cetkovsky
IDE like Visual Studio to dev in... But I'm also terrified they'll pervert PHP. [/snip] Please NO PHP.NET === ACCCKKK The .NET compiler for PHP exists for many years. It was created by students of the Charles University in Prague. Martin -- PHP General Mailing List

Re: [PHP] Microsoft Partners With Zend

2006-11-06 Thread Martin Cetkovsky
terrified they'll pervert PHP. [/snip] Please NO PHP.NET === ACCCKKK The .NET compiler for PHP exists for many years. It is created and managed by students of the Charles University in Prague. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] fwrite() timeout

2006-11-06 Thread Martin Cetkovsky
(), but it seems not to be effective on the fwrite(), only on fread(). Thanks, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problems re-reading from socket

2006-11-24 Thread Martin Marques
I have a daemon class which reads and answers using socket_read and socket_write functions. The things is that I connect to the daemon, sent a chain and the I get an answer, but after that the daemon get's struck in the next socket_read. The problem appears to be here (a method from my class).

Re: [PHP] problems re-reading from socket

2006-11-24 Thread Martin Marques
On Fri, 24 Nov 2006 13:41:59 -0600 (CST), Richard Lynch [EMAIL PROTECTED] wrote: On Fri, November 24, 2006 1:21 pm, Martin Marques wrote: I have a daemon class which reads and answers using socket_read and socket_write functions. The things is that I connect to the daemon, sent a chain

Re: [PHP] EZ array problem - What's wrong with my brain?

2006-12-04 Thread Martin Alterisio
2006/11/30, Brian Dunning [EMAIL PROTECTED]: var_dump() gives me this: array(1) { [1.2]= array(2) { [code]= array(1) { [0]= string(3) 111 } [status]= array(1) { [0]= string(3) new } } } I'm trying to set a variable to that

Re: [PHP] Count empty array

2006-12-21 Thread Martin Marques
On Thu, 21 Dec 2006, Kevin Murphy wrote: I'm wondering why this is. $data = ; $array = explode(,,$data); $count = count($array); $count will = 1 $array has 1 element: An empty string. $data = Test; $array = explode(,,$data); $count = count($array); $count will = 1 $array has 1 element:

Re: [PHP] Clarification: Jump to a record/PHP paging...

2006-12-24 Thread Martin Alterisio
To solve a problem like yours I ussualy do the following: First you need to use a deterministic order criteria when displaying the results, this means that according to the order columns you provide, MySQL will not have to decide how to order two rows that have the same values for this columns.

Re: [PHP] Odd behavior

2006-12-25 Thread Martin Alterisio
2006/12/25, jekillen [EMAIL PROTECTED]: On Dec 25, 2006, at 7:21 AM, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-24 18:11:03 -0800: function display($list, $in, $out, $save, $req, $x) { for($i = 0; $i count($in); $i++) {$j = $i + 1; // two sets of links

Re: [PHP] Clarification: Jump to a record/PHP paging...

2006-12-25 Thread Martin Alterisio
2006/12/25, Robert Cummings [EMAIL PROTECTED]: WRONG! See Martin Alterisio's post for the same thread. You must not have understood the OP's requirements. xD I was starting to think my mails weren't getting through the list, maybe its nothing else than only a bigger delay than the usual

Re: [PHP] array_intersect problem

2006-12-25 Thread Martin Alterisio
2006/12/25, Leo Liu [EMAIL PROTECTED]: Hi, I try to intersect associative array and it seems to fail to do so. Can anyone show me a walk around? For example I have array1 Array ( [0] = Array ( [imageID] = 1 ) [1] = Array (

Re: [PHP] Basic question - Starting a background task without waiting for its end.

2007-01-01 Thread Martin Alterisio
2006/12/31, Michel [EMAIL PROTECTED]: I (very simply) try to open a notepad on a simple text file in a simplistic PHP script, and would like to go on and display the next page without waiting for this notepad to be shut. After various attempts, I have used an : exec ('bash -c cmd /C start

Re: [PHP] classes and objects: php5. The Basics

2007-01-16 Thread Martin Alterisio
Backward compatibility with PHP4, where member functions couldn't be declared as static. Any member function could be called statically providing a static context instead of an object instance. 2007/1/16, Cheseldine, D. L. [EMAIL PROTECTED]: Hi I'm stuck on The Basics page of the php5 Object

Re: [PHP] classes and objects: php5. The Basics

2007-01-16 Thread Martin Alterisio
Forgot to mention that calling a non-statical function this way should generate an E_STRICT warning. 2007/1/16, Martin Alterisio [EMAIL PROTECTED]: Backward compatibility with PHP4, where member functions couldn't be declared as static. Any member function could be called statically providing

Re: [PHP] nuSoap -method '' not defined in service

2007-01-20 Thread Martin Alterisio
Try the following: $server-register('getColumns', array(), array()); The second argument is an array containing an entry for each argument of the webservice call, and the third argument is an array for the return value. Since you don't have either arguments nor return value, empty arrays should

Re: [PHP] preg_match problem

2007-01-20 Thread Martin Alterisio
Double slash to prevent PHP interpreting the slashes. Also using single quotes would be a good idea: if (preg_match('/[\\w\\x2F]{6,}/',$a)) 2007/1/19, Németh Zoltán [EMAIL PROTECTED]: Hi all, I have a simple checking like if (preg_match(/[\w\x2F]{6,}/,$a)) as I would like to allow all

[PHP] CMS-Blog system

2008-09-03 Thread Martin Zvarík
with some individual settings. Is there better idea? I appreciate your discussion on this topic. Martin Zvarik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] CMS-Blog system

2008-09-04 Thread Martin Zvarík
would be fair. So, I will stick with separate databases for each user + central databases used for searches etc. I am pretty sure I am up for this wheel reinventing ;-) The only thing I am not strong in is the MySQL, but with you guys there is nothing impossible! Martin -- PHP General Mailing

[PHP] PHP tags - any reasons to close ?

2008-09-23 Thread Martin Zvarík
also seen this in some projects. Thanks for ideas, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: searching by tags....

2008-10-19 Thread Martin Zvarík
Ryan S napsal(a): Hey, this the first time I am actually working with tags but it seems quite popular and am adding it on a clients requests. By tags I mean something like wordpress' implementation of it, for example when an author writes an article on babies the tags might be baby,babies,

[PHP] XCache, APC, Memcached... confused

2008-10-22 Thread Martin Zvarík
... it will automatically cache the website into the memory. What happens if the memory will get full? Thanks for explanation, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XCache, APC, Memcached... confused

2008-10-22 Thread Martin Zvarík
I guess the XCache everybody talks about is the open-source here: http://xcache.lighttpd.net/ But what about this: http://www.xcache.com/ ... is it the same author? :-O Martin Zvarík napsal(a): Hi, I became confused after an hour trying to understand the PHP cache solutions. XCache, APC

[PHP] Re: ZendOptimizer + APC

2008-10-22 Thread Martin Zvarík
Jochem Maas napsal(a): anyone know whether running ZendOptimizer + APC simultaneously still causes allsorts of problems ... I know it did in the past but I can't find any very recent stuff about the issues online. I believe you should look up eAccelerator or XCache, which should work with

Re: [PHP] XCache, APC, Memcached... confused

2008-10-22 Thread Martin Zvarík
Thanks for reply Stut. So, the APC, XCache etc. doesn't work as FileCache and also doesn't decrease the number of database queries, since it is not caching the content... I see now, it is obvious that it would be very hard to run out of memory. -- Martin Stut napsal(a): On 22 Oct 2008

Re: [PHP] XCache, APC, Memcached... confused

2008-10-22 Thread Martin Zvarík
? are the variables accessible across the whole server? I still don't really understand, but I am trying... Stut napsal(a): On 22 Oct 2008, at 22:19, Martin Zvarík wrote: I became confused after an hour trying to understand the PHP cache solutions. XCache, APC, eAccelerator and others

[PHP] Dynamically creating multi-array field

2008-10-26 Thread Martin Zvarík
PHP Version 5.2.4 ? $node = '[5][1][]'; ${'tpl'.$node} = 'some text'; print_r($tpl); // null ? I really don't like to use the EVAL function, but do I have choice?? This sucks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamically creating multi-array field

2008-10-26 Thread Martin Zvarík
No offense, but I thought it's obvious what I want to print. print_r() shows null, and it should print what you just wrote = array field. It works when first defining with eval(): eval('$tpl'.$node.'=array();'); I guess that's the only way. Anyway, I appreciate your quick reply, Martin Jim

Re: [PHP] Dynamically creating multi-array field

2008-10-26 Thread Martin Zvarík
Nope, you have to use the eval() everytime for read/write. Martin Zvarík napsal(a): No offense, but I thought it's obvious what I want to print. print_r() shows null, and it should print what you just wrote = array field. It works when first defining with eval(): eval('$tpl'.$node.'=array

Re: [PHP] Dynamically creating multi-array field

2008-10-27 Thread Martin Zvarík
:-D :-D :-D :-D :-D :-D :-D :-D ok :) Robert Cummings napsal(a): On Mon, 2008-10-27 at 02:09 -0400, Robert Cummings wrote: On Sun, 2008-10-26 at 22:39 -0700, Jim Lucas wrote: Even slimmer ?php $node = '[5][1][]'; $text = 'some text'; preg_match_all('|\[([^\]\[]*)\]|', $node,

Re: [PHP] create/write to psd file

2008-10-27 Thread Martin Zvarík
What I know is that you can control GIMP over the command line = you can use PHP to do this. Though I guess GIMP doesn't support PSD files, I had to express myself anyways. vuthecuong napsal(a): Hi all Is there a way to create/read/write to psd file? (photoshop format) I would like to

Re: [PHP] Dynamically creating multi-array field

2008-10-27 Thread Martin Zvarík
2008/10/26 Martin Zvarík [EMAIL PROTECTED]: PHP Version 5.2.4 ? $node = '[5][1][]'; ${'tpl'.$node} = 'some text'; print_r($tpl); // null ? I really don't like to use the EVAL function, but do I have choice?? This sucks. Hi there, While this question can spur some neat solutions

[PHP] Re: how to kill a session by closing window or tab clicking on X?

2008-11-03 Thread Martin Zvarík
Afan Pasalic napsal(a): hi. I'm sorry for posting this more javascript then php question, but it's somehow php related. here is the issue: very often people close the window/tab without logging out. I need solution how to recognize when [x] is clicked (or File Close) and kill the session

[PHP] Re: Secure redirection?

2008-11-09 Thread Martin Zvarík
I might have not read your post thorougly, but it's important to know, that Header sends a HTTP request to the browser - you are not hiding the destination URL. So, calling header(location: in PHP is basically same as redirect using JS. Martin Zoran Bogdanov napsal(a): Hi, I'm building

[PHP] Re: operators as callbacks?

2008-11-29 Thread Martin Zvarík
Joe napsal(a): Is it possible to use a PHP operator as a callback? Suppose I want to add two arrays elementwise, I want to be able to do something like this: array_map('+', $array1, $array2) but this doesn't work as + is an operator and not a function. I can use the BC library's math functions

[PHP] IP and gethostbyaddr() --- difference?

2008-12-13 Thread Martin Zvarík
name for? When IP changes the hostname does too and vice-versa? What's the difference between these two values? And why do I need both of them? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] get_browser() too slow

2008-12-22 Thread Martin Zvarík
one? The basic browsers for Win, Mac, and Linux - others would be unknown. And then only to check for OS. I tryed get_browser() but that thing is way too slow for my needs: 0.09 sec. Thanks in advance, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: get_browser() too slow

2008-12-22 Thread Martin Zvarík
Martin Zvarík napsal(a): Hello, anyone has a good function for getting a user's browser, OS and crawler detection ? I have looked at google etc, but I ran only into long list of ineffective ereg()s functions or not checking if it's crawler... Is it possible to make an array list and just

[PHP] Re: =.='' what wrong ? just simple code, however error.

2009-01-03 Thread Martin Zvarík
It works as expected on my PHP 5.2.4 LKSunny napsal(a): ? $credithold = 100; for($i=1;$i=1000;$i++){ $credithold -= 0.1; echo $creditholdbr /; } //i don't know why, when run this code, on 91.3 after expect is 91.2, however..91.2001 //who can help me ? and tell me why ?

[PHP] PHP webhosting - USA

2009-01-24 Thread Martin Zvarík
me hit by bus is higher than someone cracking my 15 letter password with numbers! Thank you powweb for keeping me secure. Thanks for reading my story, now, does someone know a better hosting alternative? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP webhosting - USA

2009-01-24 Thread Martin Zvarík
That's an awful looking website, but thanks for reply. I am looking for rather a US hosting company. Andrew Williams napsal(a): go to www.willandy.co.uk http://www.willandy.co.uk best value for money On Sat, Jan 24, 2009 at 3:03 PM, Martin Zvarík mzva...@gmail.com mailto:mzva...@gmail.com

[PHP] Re: PHP webhosting - USA - conclusion

2009-01-24 Thread Martin Zvarík
I should have said in the beginning it's a small website and I am not looking for a dedicated server. Howewer, I decided to move to Lypha.com Thanks for all your fruitful* comments :) Martin PS: PHP mailgroup rulz *) that was in dictionary -- PHP General Mailing List (http://www.php.net

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Martin Zvarík
Ashley Sheridan napsal(a): On Sat, 2009-01-24 at 10:14 +0200, Dora Elless wrote: That's why I am sending this email only to people I know and care about. And they send to a mailing list. Come again? Ash www.ashleysheridan.co.uk The sad thing though is that there will be always people who

Re: [PHP] cgi vs php

2009-02-05 Thread Martin Zvarík
Thodoris napsal(a): Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard jblanch...@pocket.com

Re: [PHP] Speed Opinion

2009-02-08 Thread Martin Zvarík
Nathan Rixham napsal(a): Ashley Sheridan wrote: On Thu, 2009-02-05 at 09:44 +1100, Chris wrote: PHP wrote: Hi all, I am seeking some knowledge, hopefully I explain this right. I am wondering what you think is faster. Say you have 1000 records from 2 different tables that you need to get

[PHP] ZEND Certification

2005-05-20 Thread Martin Zvarik
Hi, anyone has taken ZEND PHP Certification Exam??? Please can you give me some information about it? Thank you, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ZEND Certification

2005-05-21 Thread Martin Zvarik
at yellow pages, seems like you're not there either, Rory Browne... If many people here have taken it, can someone please answer my questions above? Thank you! Martin -Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 1:31 PM To: Martin Zvarik Cc: php

RE: [PHP] Re: Strange comparison behaviour

2005-05-21 Thread Martin Zvarik
String info is converted to integer, which is 0... a) if(info == 0) b) if(info === 0) c) if(info == (string)0) Or use strcmp() Cya... Read a book PHP for beginners -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED] Sent: Friday, May 13, 2005 5:13 AM To:

[PHP] .INC files

2005-05-31 Thread Martin Zvarik
Hi, I saw files like file.inc.php and file.inc What is the *.inc suffix good for ? Thank you for replies. Martin

[PHP] [Files suffix] .inc.php files

2005-05-31 Thread Martin Zvarik
Hi, I saw files like file.inc.php and file.inc What is the *.inc suffix good for ? Thank you for replies. Martin

[PHP] TEST

2005-05-31 Thread Martin Zvarik
test dammit, doesnt work

[PHP] Re: .INC files

2005-06-01 Thread Martin Zvarik
Sorry I didnt know the post delay is that LONG... On 5/31/05, Jason Barnett [EMAIL PROTECTED] wrote: Martin Zvarik wrote: Hi, I saw files like file.inc.php and file.inc What is the *.inc suffix good for ? Thank you for replies. Martin STOP SPAMMING THE LIST! .inc

Re: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-08 Thread Chris Martin
Martin Web Developer Open Source Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best way how to STORE DATA

2005-06-09 Thread Martin Zvarik
Hi, what's the best way how to store a small amount of data, like list of categories or sections of a website. CVS (comma delimited text) x Database (MySQL, or other) x XML ? Which method is the fastest? Anyone has any personal experiences? Thank you in advance for replies. Martin Zvarik

[PHP] PHP Install with MySQL in 64 bit libraries.

2005-08-08 Thread Martin McGinn
. Thanks Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php vulnerability

2005-08-22 Thread Chris Martin
You might also scan your machine (and/or network) with something such as nessus, or another vulnerability scanner -- Chris Martin Web Developer Open Source Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] php5 COM strange behaviour

2005-08-23 Thread Martin Staiger
Hello NG, we have a script to create a word-document via COM which, so far, run pretty stable under php 4.3.7 Since we upgraded to php 5.0.3.3 the same script works only on the first run! On the following runs the same script causes a fatal error on the code below: Fatal error: Uncaught

Re: [PHP] php5 COM strange behaviour

2005-08-23 Thread Martin Staiger
we have a script to create a word-document via COM which, so far, run pretty stable under php 4.3.7 are you using apache2 with php4? Yes ! are you using the prefork version of apache2? (you should be!!) No - not to my knowledge. I couldn't really find out HOW to implement this prefork

Re: [PHP] php5 COM strange behaviour

2005-08-23 Thread Martin Staiger
we have a script to create a word-document via COM which, so far, run pretty stable under php 4.3.7 are you using apache2 with php4? Yes ! Sorry - my mistake here : the problems are caused under PHP5. With PHP4 the script runs fine, so right now we are using PHP4, but due to other

[PHP] Themes, pictures directory

2005-08-25 Thread Martin Zvarík
the pictures the theme is using will have URL like www.site.com/themes/default/images/bla.jpg. Is there a way how I can change it? So noone can see I have themes in that directory? I was thinking about: ShowImage.php?blah.jpg, but that is too slow... :-/ Any help appreciated. Martin

[PHP] (Yet another) I'm blind ... post

2005-08-30 Thread Martin S
like pointing it out to me? Martin S ?php print H2BJoin the lists/b/H2; print FORM Method=POST ACTION='http://www.bollmora.org/mailman/subscribe/' . $lista . 'br'; print Your E-mail address: INPUT type=\Text\ name=\email\ size=\30\ value=\\br; print Your Name (optional): INPUT type=\Text\ name

Re: [PHP] Beware of OS X PHP security update...

2006-03-03 Thread Geoff Martin
On 03/03/2006, at 11:15 PM, Marcus Bointon wrote: The OS X security update issued yesterday includes a PHP 'fix', by which they mean that it installs PHP 4.4.1. If you have installed PHP 5 from elsewhere, it will get trashed along with your PEAR setup. PEAR is now completely confused or

[PHP] MySQL close connection, what's the purpose?

2006-03-31 Thread Martin Zvarík
Hi, I was wondering why is it necessary to use mysql_close() at the end of your script. If you don't do it, it works anyways, doesn't it? MZ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL close connection, what's the purpose?

2006-03-31 Thread Martin Zvarík
Richard Lynch wrote: On Fri, March 31, 2006 2:30 pm, Martin Zvarík wrote: I was wondering why is it necessary to use mysql_close() at the end of your script. If you don't do it, it works anyways, doesn't it? Yes, but... Suppose you write a script to read data from one MySQL

Re: [PHP] simpleXML - simplexml_load_file() timeout?

2006-04-10 Thread Martin Alterisio
Maybe you can read the contents of the feeds using fsockopen() and stream_set_timeout() to adjust the timeout, or stream_set_blocking() to read it asynchronously, and then load the xml with simplexml_load_string(). PS: I forgot to reply to all and mention you'll have to send the GET http command

Re: [PHP] function by reference

2006-04-11 Thread Martin Alterisio
The ampersand before the function name indicates that the function returns a reference instead of a copy of the variable, for example: ?php function max($var1, $var2) { if ($var1 $var2) return $var1; else return $var2; } $global1 = 10; $global2 = 9; $maxglobal = max($global1,

Re: [PHP] Re: double lines

2006-04-13 Thread Martin Zvarík
different. Linux adds extra line. Martin [Zend Certified] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fwd: [PHP] Include Problem

2006-04-16 Thread Martin Alterisio
Ups, I forgot to reply to everyone again, sorry. -- Forwarded message -- From: Martin Alterisio [EMAIL PROTECTED] Date: 16-abr-2006 13:53 Subject: Re: [PHP] Include Problem To: Shaun [EMAIL PROTECTED] You're using an absolute path to the file, maybe what you really meant to do

Re: [PHP] Passing Form As Argument

2006-04-20 Thread Martin Alterisio
My first answer to your question would be: no, you can't refer to an html form in any way in php. My second answer would be, as usual, a question: what, exactly, are you trying to do? 2006/4/20, Chris Kennon [EMAIL PROTECTED]: Hi, I'm new to the list so Hello to all. I'm drafting a

Re: [PHP] Creating an OO Shopping Cart

2006-04-20 Thread Martin Alterisio
The $_SESSION array is already being serialized before saving it to the session datafile. You'll only have to: $_SESSION['cart'] = $cart; And before session_start(): require_once 'fileWhereClassIsDefined'; . . . session_start(); If the class isn't defined before serialization (session start)

Re: [PHP] Linebreak

2006-04-20 Thread Martin Alterisio
You wouldn't feel/look stupid if you had RTFM: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single 2006/4/20, Peter Lauri [EMAIL PROTECTED]: I feel stupid. In many examples I have seen similar to: echo 'pWhatever./p\n'; echo 'pAn other

Re: [PHP] Re: Creating an OO Shopping Cart

2006-04-21 Thread Martin Alterisio
You don't need the unserialize(), it's done internally by the session_start(). All the things you put inside $_SESSION, except for resources, will be rebuilt when the session is regenerated. This way you don't need to worry about serializing. Read the manual section about sessions. 2006/4/21,

Re: [PHP] array problem

2006-04-22 Thread Martin Alterisio
You're wrong, he isn't using an associative array, since the keys used are only integers. array(10,10,40,30,30,10); and array(0=10,1=10,2=40,3=30,4=30,5=10); create the same array. The problem is that array_unique preserves keys (read the manual!!!) If you don't want this, use array_values() to

Re: [PHP] CMS for Auto Parts

2006-04-24 Thread Johan Martin
front-end and use PHP for the back- end. Also, now has the option for either DHTML or Flash on the client side. Johan Martin Catenare LLC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Standard style of writing your code

2006-04-24 Thread Martin Zvarík
Hi, I see everyone has its own way of writing the code. If there is 10 programmers working on same thing, it would be good if they would have same style of writing the PHP code. So, my question is: Is there anything what would define standard style of writing PHP code? Thanks, Martin

Re: [PHP] How to execute multiples querys

2006-04-26 Thread Martin Alterisio
You should be able to do this in two calls to the mysql_query() function. mysql_query(SET @var1=3); mysql_query(SELECT * from table1 Where [EMAIL PROTECTED]); 2006/4/26, Mauricio Pellegrini [EMAIL PROTECTED]: Hi all I'm trying to execute two querys and they execute perfectly in fact, but

Re: [PHP] Debuggin PHP

2006-04-26 Thread Martin Alterisio
2006/4/26, John Nichel [EMAIL PROTECTED]: hicham wrote: Hello I'm a newbie in php world , and I'm trying to get a php 4 script work on an php5 version how do i debug php ? I get a blank page and nothing tells me what 's wrong ? Thanks hicham Turn on error reporting. --

Re: [PHP] PHP 4.3.11, call_user_func and instances of classes

2006-04-26 Thread Martin Alterisio
The problem is not what it seems. PHP4 assigns object by copy, not by reference. This is causing the call_user_func() to use a copy of the object instead of the original object. So, all modifications are lost once the call is done. One solution to this is to assign objects by reference: $addition

Re: [PHP] forms and dynamic creation and unique field names

2006-04-27 Thread Martin Zvarík
Jason Gerfen wrote: I have come upon a problem and am not sure how to go about resolving it. I have an web form which is generated dynamically from an imported file and I am not sure how I can loop over the resulting post variables within the global $_POST array due to the array keys not

Re: [PHP] how to get the absolute path of an included file?

2006-04-27 Thread Martin Alterisio
2006/4/27, Bing Du [EMAIL PROTECTED]: Hello, Here are the two scripts. The result is 'var is' rather than 'var is foo'. My suspect is I did not set the file path right in 'include'. So in file2.php, how should I get the actual absolute path it really gets for file1.php? Is it stored in

Re: [PHP] Re: forms and dynamic creation and unique field names

2006-04-27 Thread Martin Alterisio
2006/4/27, Jason Gerfen [EMAIL PROTECTED]: Oops, I thought there might be an array function that would be better to use then foreach loops. Thanks. There are other functions (check the Array Functions section in the manual), but they just don't get along with the KISS principle. Dave

Re: [PHP] Recommended PHP frameworks

2006-04-27 Thread Martin Alterisio
2006/4/27, Robert Cummings [EMAIL PROTECTED]: A funny PHPClasses article... http://www.phpclasses.org/blog/post/52-Recommended-PHP-frameworks.html One thing I understood after hitting my head many times to a wall is that a good idea can be, and should be, explained in just three lines of

Re: [PHP] Help!

2006-04-28 Thread Martin Alterisio
2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang. I am working on a viral marketing application that uses multipart

Re: [PHP] Help!

2006-04-28 Thread Martin Alterisio
2006/4/28, Barry [EMAIL PROTECTED]: Martin Alterisio schrieb: 2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang

Re: [PHP] undefined variable

2006-04-29 Thread Martin Alterisio
2006/4/29, Smart Software [EMAIL PROTECTED]: code below shows all records from products table with an textbox and an order button for each record ? $query1 = mysql_query(SELECT * FROM products ); while ($rowType = mysql_fetch_array($query1)) { ? table width=500 border=0 tr class=largeheader

Re: [PHP] Help!

2006-04-29 Thread Martin Alterisio
person who will ever use it. Rather anal. On 29/04/06, Martin Alterisio [EMAIL PROTECTED] wrote: 2006/4/28, Barry [EMAIL PROTECTED]: Martin Alterisio schrieb: 2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me

[PHP] Session - when they expirate ?

2006-05-01 Thread Martin Zvarík
session.gc_divisor = 100 session.gc_probability = 1 session.cache_expire = 180 So, does this mean, that if the visitor is 180 minutes inactive it automatically deletes the session ?? Thanks, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Syntax Oddity

2006-05-02 Thread Martin Alterisio
2006/5/2, Richard Lynch [EMAIL PROTECTED]: Does anybody have a rational explanation for what purpose in life the following syntax is considered acceptable? ?php $query = UPDATE whatever SET x = 1; $query; ? Note that the line with just $query; on it doesn't, like, do anything. I suppose

<    6   7   8   9   10   11   12   13   14   15   >