Re: [PHP] Sample script files with 3 different select boxes with mysql conditions in select boxes

2008-01-03 Thread Jochem Maas
Robert Cummings schreef: On Thu, 2008-01-03 at 09:18 -0600, Balaji A wrote: Hi, I have a table with the below fields. (id, title, language, author link to the book). Initially I want to display a page with 3 select boxes (language, author title). Initially first select box displays the

Re: [PHP] Sample script files with 3 different select boxes with mysql conditions in select boxes

2008-01-03 Thread Jochem Maas
Jim Lucas schreef: Jochem Maas wrote: Robert Cummings schreef: On Thu, 2008-01-03 at 09:18 -0600, Balaji A wrote: Hi, I have a table with the below fields. (id, title, language, author link to the book). Initially I want to display a page with 3 select boxes (language, author title

Re: [PHP] Sample script files with 3 different select boxes with mysql conditions in select boxes

2008-01-03 Thread Jochem Maas
Jim Lucas schreef: Robert Cummings wrote: On Thu, 2008-01-03 at 09:18 -0600, Balaji A wrote: Hi, I have a table with the below fields. (id, title, language, author link to the book). Initially I want to display a page with 3 select boxes (language, author title). Initially first

Re: [PHP] script stoped working over christmas ?

2007-12-30 Thread Jochem Maas
Joker7 schreef: ... config.php ?php $max_summary = 6; $max_latest = 7; $summary_template = t_summary.tp; $article_template = t_article.tp; $password = password; latest.php ?php require('config.php'); $filename = article_summary.php; #- open article summaries

Re: [PHP] Unix date

2007-12-28 Thread Jochem Maas
tedd schreef: Hi gang: Using: $unix_in = 1255845600; echo(date(M d, Y h:i:s a,$unix_in)); On one sever, produces: Oct 18, 2009 02:00:00 am But on another sever, produces: Oct 18, 2009 12:00:00 am This difference appears to be a combination of time-zone and daylight-savings

Re: [PHP] php.ini in php5.2.1

2007-12-28 Thread Jochem Maas
jekillen schreef: Hello; I have not had the necessity to deal with php.ini files for some time. Now, because I switch from Sendmail to Postfix on one system I need to adjust the sendmail path variable. are you sure you need to change it? doesn't postfix come with some kind of compatibility

Re: [PHP] Simple RegEx question

2007-12-25 Thread Jochem Maas
M5 schreef: I'm learning regular expressions, and trying to figure out what's possible and what's not. pretty much anything as far as string parsing goes. Any ideas of how to create a preg_match expression to parse following three lines: yes. given your intention to learn regexps why not

Re: [PHP] loadHTML()

2007-12-25 Thread Jochem Maas
M5 schreef: OK, I already knew that making it valid doesn't change the result. But the question remains, how to parse the HTML as it arrives (which I have no control over anyway), besides doing a str_replace on br and inserting a token, which I later replace (which I shouldn't have to,

Re: [PHP] building PHP5.2.5 on Mac OS X Leopard (anyone know how to build a just an extension)

2007-12-24 Thread Jochem Maas
the following url explains how to build a single extension for an existing php installation .. it's not really Mac specific and may help someone on another system stuck with the same problem: http://lists.apple.com/archives/macos-x-server/2007/Nov/msg00315.html Jochem Maas schreef: hi guys

[PHP] questions about php's configure script ... (somewhat Mac OS X related)

2007-12-23 Thread Jochem Maas
having gone through configure and compile hell getting php built on Mac OS X Leopard I have become a little more familiar with the intricasies of compiling software ... undoubtly I still have a heap to learn. to that end I was hoping someone could shed some light on the following queries 1.

Re: [PHP] about __get,__set Overloading, read-only properties

2007-12-22 Thread Jochem Maas
thread . good. that's one down 1,000,983 to go :-) -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Friday, December 21, 2007 9:11 AM To: ked Cc: php-general@lists.php.net Subject: Re: [PHP] about __get,__set Overloading, read-only properties pleae don't reply

Re: [PHP] building PHP5.2.5 on Mac OS X Leopard (anyone know how to build a just an extension)

2007-12-21 Thread Jochem Maas
Daniel Brown schreef: On Dec 20, 2007 7:56 PM, Jochem Maas [EMAIL PROTECTED] wrote: Frank Arensmeier schreef: How desperately are you trying to get thinks working? desperate enough to move back to my windows machine ;-) For the love of God, Jochem, I will not sit idly by and allow

Re: [PHP] Which file called the function?

2007-12-20 Thread Jochem Maas
Christoph Boget schreef: I believe __FILE__ is resolved at compile time, not run-time which means what you're seeing is expected behavior. I'm not sure how you'd get the name of the file that a function call was made from. Could you explain why you need this information in your

Re: [PHP] building PHP5.2.5 on Mac OS X Leopard (anyone know how to build a just an extension)

2007-12-20 Thread Jochem Maas
Frank Arensmeier schreef: 20 dec 2007 kl. 00.55 skrev Jochem Maas: hi guys, well having tried for countless hours to build php on leopard I pretty much gave up. that's too bad... 'give up' is too strong - but deadlines and frustration has caused me to put it aside right now

Re: [PHP] building PHP5.2.5 on Mac OS X Leopard (anyone know how to build a just an extension)

2007-12-20 Thread Jochem Maas
Daniel Brown schreef: On Dec 20, 2007 2:30 PM, Richard Lynch [EMAIL PROTECTED] wrote: ./configure --with-interbase should build the interbase extension, as well as a PHP binary that you don't want. Then just copy the interbase.so thingie over, and Bob's your uncle. I don't know who

Re: [PHP] about __get,__set Overloading, read-only properties

2007-12-20 Thread Jochem Maas
pleae don't reply to an existing thread when posting a new question. ked schreef: Hi. all , I got a article from php 5.0 manual's comments. It's useful, offer readonly properties for classes. (look at the end of this message for the article ) find out function __construct(), I want

Re: [PHP] building PHP5.2.5 on Mac OS X Leopard (anyone know how to build a just an extension)

2007-12-20 Thread Jochem Maas
I hit send too soon ... Frank Arensmeier schreef: 20 dec 2007 kl. 00.55 skrev Jochem Maas: ... is interbase available via PEAR or PECL? alas no. it would be PECL at any rate - and I don't hold much faith in PECL being able to build anything usable anyway How desperately are you trying

Re: [PHP] php with threaded MPM problem ?

2007-12-19 Thread Jochem Maas
Rashmi Badan schreef: Hi, Thank you all for your response. But turns out that the problem I am facing is caused by something else and unrelated to MPMs being threaded. The test case details gave me a clue. The test was trying to load mod_php between graceful restarts, i.e start apache

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
Sancar Saran schreef: Hello list. I want know to you opinions about using $GLOBALS directly. like $GLOBALS['myString'] = 'test'; $GLOBALS['myArray']['this'] = 'this'; $GLOBALS['myArray']['that'] = 'that'; $GLOBALS['myClassObj] = new SomeClass; there is no real difference between

Re: [PHP] PHP and VB.NET communication

2007-12-19 Thread Jochem Maas
Zoran Bogdanov schreef: Hi, I know this isn't purely php question but if you know please reply. I have a server with a PHP script on it. I need to write an app(VB.NET) that will connect to a server and request a script to process some info, and the php script will return XML data, in

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
understand what I am saying (as your last reply seemed to imply) then please let's just leave it at that. On Dec 19, 2007 11:07 PM, Jochem Maas [EMAIL PROTECTED] wrote: please reply to the list ... js schreef: I always store database handler in $GLOBALS. I think that's the best place

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
getDB($args) { static $conn = array(); $key = serialize($args); if (!isset($conn[ $key ]) $conn[ $key ] = new DBConn($args); return $conn[ $key ]; } On Dec 19, 2007 9:52 PM, Jochem Maas [EMAIL PROTECTED] wrote: Sancar Saran schreef: Hello list

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
Richard Heyes schreef: I always store database handler in $GLOBALS. I think that's the best place to save request-level-global. I wonder where other people save that kind of data. how about a static variable inside a function or a static member of a class. e.g. function getDB($args) {

Re: [PHP] Just to confirm...

2007-12-19 Thread Jochem Maas
Daniel Brown schreef: On Dec 18, 2007 10:01 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, December 18, 2007 9:17 am, Richard Heyes wrote: Emails that bounce get sent back to the address in the Return-Path: header. Correct? Depends on who is following which standards from which era...

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
that there is less scope pollution and no chance of overwriting the dbh/db-object var) I agree that's better method to manage dbh. :-) On Dec 19, 2007 11:27 PM, Jochem Maas [EMAIL PROTECTED] wrote: js schreef: That wouldn't work well when you have to update multiple tables in a transaction. I

[PHP] building PHP5.2.5 on Mac OS X Leopard (anyone know how to build a just an extension)

2007-12-19 Thread Jochem Maas
hi guys, well having tried for countless hours to build php on leopard I pretty much gave up. apparently it's pretty much impossible unless your name is Marc Liyanage (entropy.ch) ... the problem lies with the fact that you need 64bit libs and the some (most notably iconv) of the libs

Re: [PHP] PRG pattern - how to implement a load page using GET

2007-12-17 Thread Jochem Maas
Per Jessen schreef: Robert Erbaron wrote: yes - abusing redirects as described is wasteful. and certainly it's the first time I've ever heard the statement 'Never show pages in response to POST' sounds like hubris too me. I've seen the statement in a number of messages in the archives here

[PHP] re-compiling PHP on Mac OS X

2007-12-17 Thread Jochem Maas
hi guys ( girls), any Mac heads about? I have a MacBook Pro in front of me ... super cool, it even comes with apache php installed as standard. nice. only thing is php is not compiled with with all the extensions I need, the question is what is the *correct* way to update/recompile the standard

Re: [PHP] re-compiling PHP on Mac OS X

2007-12-17 Thread Jochem Maas
Frank Arensmeier schreef: hi guys ( girls), any Mac heads about? I have a MacBook Pro in front of me ... super cool, it even comes with apache php installed as standard. nice. only thing is php is not compiled with with all the extensions I need, the question is what is the *correct* way

Re: [PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-16 Thread Jochem Maas
Casey wrote: On Dec 15, 2007 11:27 PM, Jochem Maas [EMAIL PROTECTED] wrote: Casey wrote: Comment out all Javascript. Casey - exactly how would javascript being causing a webserver to segfault in this context??? On Dec 15, 2007, at 2:00 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 15

Re: [PHP] PRG pattern - how to implement a load page using GET

2007-12-16 Thread Jochem Maas
Robert Erbaron wrote: I've been reading up on login mechanisms using redirects, and have a basic mechanism down. a1.php: ?php $site_title='My Site'; if (isset($_SESSION['errmsg_s'])) {$errmsg = 'Warning! '.$_SESSION['errmsg_s'].'!';} else {$errmsg = ''; } if

Re: [PHP] Fatal error: Class 'DOMDocument' not found

2007-12-16 Thread Jochem Maas
Jeff Schwartz wrote: I'm attempting to run the sample script on the PHP site: ?php $dom = new DOMDocument('1.0', 'iso-8859-1'); echo $dom-saveXML(); /* ?xml version=1.0 encoding=iso-8859-1? */ ? but get the error: Fatal error: Class 'DOMDocument' not found in

Re: [PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-15 Thread Jochem Maas
Casey wrote: Comment out all Javascript. Casey - exactly how would javascript being causing a webserver to segfault in this context??? On Dec 15, 2007, at 2:00 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 15, 2007 4:55 PM, Mary Anderson [EMAIL PROTECTED] wrote: My code

Re: [PHP] temp tables mysql OT

2007-12-15 Thread Jochem Maas
tedd wrote: At 12:20 PM +0100 12/13/07, Zoltán Németh wrote: 2007. 12. 12, szerda keltezéssel 20.13-kor tedd ezt írta: I would like to create a temporary table to perform searches. From my main table, I need to exclude records that have certain fields that are null or empty; and then

Re: [PHP] php with threaded MPM problem ?

2007-12-14 Thread Jochem Maas
Rashmi Badan wrote: Hi, I'm using php 5.2.1 with apache 2.2.6 and while running certain tests I see a segmentation fault - the relevant stack is given below. My php configure line is as follows configure '--prefix=/my/php/installdir' *'--with-tsrm-pthreads' *'--with-ldap'

Re: [PHP] how to Harmonic Mean manual

2007-12-14 Thread Jochem Maas
LKSunny wrote: i know stats_harmonic_mean(), but i am not server admin, i can't install PECL, so i need make it by manual, but i have't Statistics knowledge, any one can help me ? thank you very much !! I doubt anyone is going to write a php version of that function for you. given that you

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-14 Thread Jochem Maas
tedd wrote: At 11:59 PM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 16:21 -0500, tedd wrote: Yeah, but we haven't proven order yet either. :-) Order exists all around us. Maybe around you, but I have a wife, two daughters, and four female grandchildren. that would

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-14 Thread Jochem Maas
Daniel Brown wrote: On Dec 14, 2007 10:36 AM, Jochem Maas [EMAIL PROTECTED] wrote: omg this is so off topic it's liable to come full circle - actually circles seem pretty damned orderly ... which just leaves the question as to whether circles exist or that we merely projection them onto

Re: [PHP] how to Harmonic Mean manual

2007-12-14 Thread Jochem Maas
/Harmonic_Mean Jochem Maas [EMAIL PROTECTED] ???:[EMAIL PROTECTED] LKSunny wrote: i know stats_harmonic_mean(), but i am not server admin, i can't install PECL, so i need make it by manual, but i have't Statistics knowledge, any one can help me ? thank you very much !! I doubt anyone

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-13 Thread Jochem Maas
Robert Cummings wrote: On Wed, 2007-12-12 at 16:21 -0500, tedd wrote: At 3:35 PM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 13:16 -0500, tedd wrote: At 10:17 AM -0500 12/12/07, Robert Cummings wrote: In my ancient past I worked with a x-ray detector and we simply

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Jochem Maas
tedd wrote: At 5:15 PM -0500 12/10/07, Daniel Brown wrote: Just for fun, I decided to write out an algorithm to randomize with a never-known seed that would update constantly, with no human or external script intervention required to initiate or maintain it. My guess is that if there

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Jochem Maas
Robert Cummings wrote: The universe is the machine... all sub machines are part of the greater machine that is the universe. heh, that makes me a browser. :-P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Jochem Maas
Stut wrote: Richard Heyes wrote: You use a session variable for that? Why not? Because it's not user data, it's server data. That's entirely the wrong place to store something like which database API is installed. Not really. You could even wrap a function called (for example)

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Jochem Maas
hi Nathan, any chance of a 'full blown' example for all the muppets who want to try and grok this stuff? (bork bork, say I :-)) Nathan Rixham wrote: stream_socket_server simply listens, stream_socket_accept handles the connection, stream_set_write_buffer and stream_set_blocking help you keep

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Jochem Maas
Per Jessen wrote: Jochem Maas wrote: Nathan Rixham wrote: Key I find though is multithreading, listener thread with stream_socket_server, 2 or 3 stream_socket_accept threads and a pair of new thread spawned to handle each connection (one to read, one to write) (not needed for stateless

Re: [PHP] A SESSION Problem

2007-12-11 Thread Jochem Maas
are you looking at a cache problem - i.e. (pun intended ;-)) the second page is a locally cached copy and thereby not showing the data you would expect? tedd wrote: Hi gang: I just had this happen and wonder what the fix is for it. I am sending session data from a script in a http to

Re: [PHP] Help Sending Mail

2007-12-11 Thread Jochem Maas
heh Richard! long time no see, guess you had withdrawal symtoms or you managed to bust out of whatever compound they were holding you in ;-) ... Richard Lynch wrote: PS GMail will not accept \r\n between header lines, only \n I dunno if RFC822 specifies which ending but I *do* know that

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Jochem Maas
Per Jessen wrote: René Fournier wrote: However, the number of socket clients connecting in the past 3-4 months has steadily increased, and this seems to have exposed (if not created) a strange performance issue with PHP 5.2.4, MySQL 5.0.45 and/or Mac OS X Server 10.4.11. (I say and/or

Re: [PHP] LoadXML trouble

2007-12-11 Thread Jochem Maas
Dani Castaños wrote: Hi Nathan! Thank you for all your help! Problem has been fixed... The thing is, when request is sent, there is a little difference in what i get... I get ?xml version=\1.0\ and so on... These backslashes make the loadXML not load data properly... I've put an

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Jochem Maas
Chris wrote: Dan wrote: First off I must ask, why do you need to run windows commands when you don't even know how to use a PHP function. That's a pretty extreme response - maybe he's an extreme programmer :-P maybe the OP forgot the function name or didn't know it in the first place.

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Jochem Maas
Chris wrote: Jochem Maas wrote: Chris wrote: Dan wrote: First off I must ask, why do you need to run windows commands when you don't even know how to use a PHP function. That's a pretty extreme response - maybe he's an extreme programmer :-P maybe the OP forgot the function name

Re: [PHP] Advice with some code

2007-12-10 Thread Jochem Maas
Steve Finkelstein wrote: Hi all, I'm having a brain freeze with some simple code that I wrote and now trying to refactor. I have a block of code that looks like this: public function backup() public function backup($errors) { $fname = $this-dbName.sql.$this-zip;

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-10 Thread Jochem Maas
Jim Lucas wrote: Tom Rogers wrote: Hi, ... Also, make sure you are not using an array that you are not re-initializing through each iteration of the loop. If the array keeps getting bigger, PHP might $*% on itself. Always re-initialize arrays to clean them up. even then he may still

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-10 Thread Jochem Maas
Rob your sick ;-) this thread made me think about the Observer Effect - probably the randomness is just in your/my/his/her head :-P or we're all green men or something. Robert Cummings wrote: On Mon, 2007-12-10 at 17:45 -0500, Daniel Brown wrote: On Dec 10, 2007 5:39 PM, Robert Cummings

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-10 Thread Jochem Maas
Jochem Maas wrote: Jim Lucas wrote: Tom Rogers wrote: Hi, ... Also, make sure you are not using an array that you are not re-initializing through each iteration of the loop. If the array keeps getting bigger, PHP might $*% on itself. Always re-initialize arrays to clean them up

Re: [PHP] build a multi chat server with php

2007-12-09 Thread Jochem Maas
Nathan Rixham wrote: Anybody up for (or indeed see a need for) a multi threaded php daemonised jabber client? Looks like an interesting challenge! u know the old saying, if you build it they will come ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] nested objects

2007-12-07 Thread Jochem Maas
Victor Matherly wrote: Hello list, I want to create a new object and nest the objects variable in an array of another object. I think I am going about it the correct way I think you are trying to swat a fly with a nuclear missle. in practice abstracting an HTML table into a big

Re: [PHP] Professional inquiry for you freelancers

2007-12-06 Thread Jochem Maas
Steve Finkelstein wrote: Hi all, ... Basically what I'm asking is, am I going to be end up being a jack of all trades, master of none, if I continue pursuing design AND development? leonardo da vinci - i.e. there is nothing to say you can't be a master of all trades. but realistically

Re: [PHP] auto-populating multiple boxes... php and pg_fetch_array problem?

2007-12-05 Thread Jochem Maas
pere roca wrote: hi everybody, there is a nice tool using jquery/php to populate multiple select boxes out there : http://remysharp.com/2007/09/18/auto-populate-multiple-select-boxes/ it must be a very stupid question but I’m trying to apply this tool to get data from postgreSQL, but I

Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hello All, Is the a built-in PHP call that I am overlooking which lets me replace key values in an array. $inputArray = array(0 = array, 1 = array); (generated programtically) I want to end up with : $newArray = array('FAF1' = array, 'ODM1' =

[Fwd: Re: [PHP] Maps]

2007-12-05 Thread Jochem Maas
I forgot to CC the list, sorry. Original Message Subject: Re: [PHP] Maps Date: Wed, 05 Dec 2007 20:25:06 +0100 From: Jochem Maas [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Robert Fitzpatrick wrote: Well, I have two clients that both want mapping

Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Quoting Jochem Maas [EMAIL PROTECTED]: ... $newArray = array('FAF1', 'ODM1', /* bla bla bla */); $inputArray = array_combine($newArray, $inputArray); I guess reading through this page was too much trouble for you: http://php.net/array Jochem: Nope

Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread Jochem Maas
come accross stuff that you'll use 3 months down the line which you would otherwise have to search deity knows how long for ... at least that's my experience. Thanks for the help. please come back soon. my spleen needs the exercise. ;-) Scot Quoting Jochem Maas [EMAIL PROTECTED

Re: [PHP] Re: Need a hint how to track an error

2007-12-05 Thread Jochem Maas
not the last and not the only, imho. The other thing I've been doing lately is to conform to XHTML 1.0 strict. It's no significant extra effort and a good habit to develop good practice. Al... Jochem Maas wrote: Al wrote: Install the Firefox extension HTML Validator

Re: [PHP] sprintf() oddness

2007-12-01 Thread Jochem Maas
Per Jessen wrote: Christoph Boget wrote: Why does sprintf( '%.03f', 0.1525 ) return 0.152 while sprintf( '%.03f', 0.1575 ) return 0.158? most likely it's an artifact of the fact that the binary representations of those floating point values are not exact e.g. 0.1575 is

Re: [PHP] Join question

2007-12-01 Thread Jochem Maas
Crayon Shin Chan wrote: On Friday 30 November 2007, Jochem Maas wrote: ... So let me get this straight, only paid up members of the old boys club are allowed to make off-topic posts? The rest can lump it? if by the rest you mean you, then yes, absolutely, please crawl back under

Re: [PHP] Join question

2007-12-01 Thread Jochem Maas
Jay Blanchard wrote: [snip] If you try you can probably make a connection from php to everything under the sun, doesn't mean everything under the sun is an appropriate topic for this list. [/snip] The Oracle of PHP - 6 Degrees of Separation I joined PHP to Oracle, Kevin Bacon and

[PHP] PHP Celebrity Death Match ...

2007-12-01 Thread Jochem Maas
Brad v. Crayon. any good animators among us up to the challenge? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Join question

2007-12-01 Thread Jochem Maas
chris smith wrote: On Dec 1, 2007 3:53 PM, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Saturday 01 December 2007, tedd wrote: At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote: On Friday 30 November 2007, tedd wrote: I'm trying to understand joins, Ask on a database related list. Really?

Re: [PHP] Before to submission RFC datas

2007-11-30 Thread Jochem Maas
Andrés Robinet wrote: -Original Message- From: Norde-Amijkzegl Tomas [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 8:16 PM To: php-general@lists.php.net Subject: [PHP] Before to submission RFC datas All of yous people, hi! I seeing yesterday on the Googles for RFC

Re: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread Jochem Maas
Warren Vail wrote: Not to mention that syntax works in the US, but not large portions of the rest of the world. (even with the 1 country code in front). can't remember when that ever stopped an american. e.g. Windows print subsystem that shoves 'Letter' format down your throat as the default

Re: [PHP] excluding parenthesis, space and dashes from phone number

2007-11-30 Thread Jochem Maas
afan pasalic wrote: hi, I store phone number in mysql as integer, e.g. (123) 456-7890 is stored as 1234567890. though, in search form they usually type in a phone number with parenthesis/space/dashes. I have to extract numbers before I search through mysql. currently, I use

Re: [PHP] Rewind foreach loop

2007-11-30 Thread Jochem Maas
Jeffery Fernandez wrote: Hi all, Is it possible to rewind a foreach loop? eg: $numbers = array(0,1,2,3,4,5,6,7,8,9,10); foreach ($numbers as $index = $value) { if ($value == 5) { prev($numbers); } echo Value: $value . PHP_EOL; }

Re: [PHP] Join question

2007-11-30 Thread Jochem Maas
Crayon Shin Chan wrote: On Friday 30 November 2007, Robert Cummings wrote: That's an amusing statement. I took a peek back in time and noticed that in the past 5 months you've only made two on-topic useful posts to the PHP General list-- and they were both for the same thread. If you have

Re: [PHP] Join question

2007-11-30 Thread Jochem Maas
Daniel Brown wrote: On Nov 30, 2007 10:22 AM, Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown wrote: I was tempted to flame Tedd just because he's Tedd. ;-P lol. but then the guy was programming Rocks(tm) way before I was born, that has to count for something :-) Please keep

Re: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread Jochem Maas
. I do believe a good site designer, will plan for a global market, instead of a local US one, even if others fail to share his vision. quite, quite, I was just jesting :-) Warren -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 1

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Jochem Maas
[EMAIL PROTECTED] wrote: I got different portions of code only used for certain purposes (who don't ;-)?). But what, in your opinion (better: in your experience) would be the best regarding script-performance: Putting each code-portion in a separate file and include it if required, putting

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Jochem Maas
Tomi Kaistila wrote: ... You can avoid duplication by only using require_once or include_once. PHP indeed require_once() and include_once() help with maintainability but it should be mentioned that if you are going to use an op-code cache (as Rob Cummings mentioned also) then it is highly

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Jochem Maas
Stut wrote: Jochem Maas wrote: [EMAIL PROTECTED] wrote: I got different portions of code only used for certain purposes (who don't ;-)?). But what, in your opinion (better: in your experience) would be the best regarding script-performance: Putting each code-portion in a separate file

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Jochem Maas
Stut wrote: Jo chem baas wrote: Stut wrote: Jochem Maas wrote: [EMAIL PROTECTED] wrote: I got different portions of code only used for certain purposes (who don't ;-)?). But what, in your opinion (better: in your experience) would be the best regarding script-performance: Putting each code

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Jochem Maas
Stut wrote: Jochem Maas wrote: Stut wrote: Jo chem baas wrote: ^- wtf happened here? :-) it's quite funny if you know dutch :-) ... Whether there is conditional definition or not, the opcode cache will look the same. The reason for this is that function and class definitions

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Just to be curious: when something like if (defined('FOO') FOO) { class foo{}; function foo(){}; } is parsed and FOO is not defined, will the code inside be parsed nevertheless? Or is anything inside skipped, leading to a (fragments of microseconds)

Re: [PHP] Functions with Static Variables vs. Classes

2007-11-29 Thread Jochem Maas
[EMAIL PROTECTED] wrote: From: Zoltán Németh [EMAIL PROTECTED] function example($elem='') { static $store = array(); AFAIK the above line should cause an error on the second run of the function, as you declare the same static variable for the second time. or am I wrong? indeed you

Re: [PHP] parsing text for special characters

2007-11-29 Thread Jochem Maas
Adam Williams wrote: I've got an html form, and I have PHP parse the message variables for special characters so when I concatenate all off the message variables together, if a person has put in a ' or other special character, it exactly how are ' and special inside the body of an email

Re: [PHP] Batch process PDF files -- reduce color depth and resolution

2007-11-29 Thread Jochem Maas
Dan Harrington wrote: Hello, Does anyone know of a good PDF library that works well with PHP (or even not) that can process multi-page PDF files (I am talking thousands) and reduce their color depth from color to black and white as well as reduce the resolution. yes and when you learn to

Re: [PHP] Calling parent function with call_user_func_array

2007-11-29 Thread Jochem Maas
Tommy Baggett wrote: I'm a self-confessed PHP newb (first step towards a cure, right?), so if these are your first steps why use php4? php5 has been out for going on 3 years. apologies in advance for what may be a basic question. I spent an hour searching for an answer to this and couldn't

Re: [PHP] Calling parent function with call_user_func_array

2007-11-29 Thread Jochem Maas
Tommy Baggett wrote: Thanks for taking the time to reply. I'm working on a Wordpress theme and extending one of their existing classes (the Walker class if you're familiar with WP). Since WP still supports PHP4, my theme needs to as well. I know WP, don't like the code too much - but you

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
tedd wrote: At 12:56 AM +0100 11/28/07, Jochem Maas wrote: Colin Guthrie wrote: tedd wrote: ... Sorry Tedd, but I'm not sure where the browser sniffing stuff came in. IE and FF both offer a UI to input the user's preferred language, it's an HTTP standard thing and nothign to do

Re: [PHP] The PHP License

2007-11-28 Thread Jochem Maas
AmirBehzad Eslami wrote: Hi list, Below statement is borrowed from PHP License here[1]: The name PHP must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact [EMAIL PROTECTED]

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
Jeff Benetti wrote: ... Am I correct that if two people are logged on using two different languages that the session var will keep track of the different users (by IP I assume) and the server won’t mess up? yes, the contents of $_SESSION are stored per user. this is tracked by way of a

Re: [PHP] CVS TO ICAL

2007-11-28 Thread Jochem Maas
Wolf wrote: Always make sure you reply to the list... And yes, you can export as an ical format, just look at an ical file and format your output to it. It's just like doing the CSV/CVS/TXT or any other file, you just have to put it in the right format with the right extension when

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
tedd wrote: At 3:01 PM +0100 11/28/07, Jochem Maas wrote: ... Jochem: This just hasn't been my week -- everyone (long story) thinks I'm being sarcastic when I'm not. ouch! The Sorry, my bad means I apologize, my mistake. How can that be taken as sarcasm? guess it's down to my input

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
Jean-Michel Philippon-Nadeau wrote: Dear Tedd, Dear List, tedd wrote: As for being hung-up -- again, I'm clueless. I mistakenly thought that anything obtained from the browser was subject to suspicion as is any outside data. But apparently you can trust (I realize within certain limits)

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread Jochem Maas
you need a *seperate* script that outputs the image data only (+ relevant headers) and then you refer to that script (passing it a suitable parameter so it knows which image to output) in the src attribute of an IMG tag. you seem to be trying to output image data and html in a single request,

Re: [PHP] running cmd via php

2007-11-28 Thread Jochem Maas
Daniel Brown wrote: On Nov 28, 2007 3:28 PM, adam_99 [EMAIL PROTECTED] wrote: [snip] On the server? http://www.php.net/exec [/snip] I don't know how to use these functions in PHP can you explaine it? And I don't need outpu from the function. Thanks you! -- PHP General Mailing List

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread Jochem Maas
... http://www.wellho.net/solutions/php-example-php-form-image-upload-store-in-mysql-database-retreive.html having taken a quick look at that page I can only hope that you aspire to write alot better code than that! Thanks very much for reading this long post. David Thing is, the above

Re: [PHP] Instantiate phpmailer in a separate class?

2007-11-28 Thread Jochem Maas
Mike Yrabedra wrote: Hello, I want to have a class send some emails. I wanted to use the excellent phpMailer class to do this. What is the proper way to use the phpMailer class from within a method of a separate class? the same way you would use it outside of a method of a class.

[PHP] any phpers in or around Rotterdam, Holland looking for a job?

2007-11-27 Thread Jochem Maas
please contact me off list :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie asks about multi-lingual website strategies

2007-11-27 Thread Jochem Maas
your all missing something, namely that the browser can tell you what it's preferred language is (which you can use to select a language in the event no language has yet been determined for the current session). you do this by parsing the value of the HTTP_ACCEPT_LANGUAGE request header.

Re: [PHP] Nested include/require not working in 5.2

2007-11-27 Thread Jochem Maas
Mike Yrabedra wrote: I am not able to use includes or requires in nested files using php 5.2.3 (osx) Including or Requiring files directly works. Including files, that also have includes in them, does not. Say you have this... -TopDirectory --index.php (contains

<    3   4   5   6   7   8   9   10   11   12   >