Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
Larry Garfield wrote: If I had to venture a guess, you nested 100 functions (called 100 functions in a stack), and therefore reached the maximum limit in PHP. That is, you overflowed the stack. You may have a recursion problem, especially if you're using an XML parser that is not the

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
Paul Scott wrote: On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: since when is there an arbitrary maximum recursion limit??? Since forever... ;) thats you think, personally I test this kind of thing when Im not sure: php -r 'function foo() { static $x = 1; echo foo , $x++, \n; foo

Re: [PHP] e-mail code

2007-10-26 Thread Jochem Maas
arash moosavi wrote: First: how can I write php code that alert me when I have new mail? such as Gmail first you read lots about php and programming, whilst your doing that you you try out lots of code to see what it does ... eventually your understanding gets to a level where you are capable

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
T.Lensselink wrote: On Fri, 26 Oct 2007 14:32:42 +0200, Jochem Maas [EMAIL PROTECTED] wrote: Paul Scott wrote: On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: since when is there an arbitrary maximum recursion limit??? Since forever... ;) thats you think, personally I test

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
T.Lensselink wrote: ... php -r 'function foo() { static $x = 1; echo foo , $x++, \n; foo(); } foo();' ... Running your code shows that there is a limit. Although it doesn't throw an error. It just stops after n recursive calls: php4 recursive calls: 796 php5 recursive calls:

Re: [PHP] CURL + Frames, fopen + remote sessions

2007-10-26 Thread Jochem Maas
jenix wrote: Hi, When using CURL to access a page with frames I get the Your browser does not appear to support frames error. How can get around this? Is there special header info that can be added? try spoofing the USer Agent string - i.e. tell the server your 'Firefox' rather than Curl.

Re: [PHP] unable to find running php script

2007-10-26 Thread Jochem Maas
ah yes ... Dan said it better :) but then he is a bigger nerd than me ... he has a truck which is more dalek than pickup :-P Daniel Brown wrote: On 10/26/07, Jean-Christophe Roux [EMAIL PROTECTED] wrote: Hello, I am runnign on a Centos 5.0 php 5.1.6 as Server API Apache 2.0 Handler I launched

Re: [PHP] unable to find running php script

2007-10-26 Thread Jochem Maas
Jean-Christophe Roux wrote: Hello, I am runnign on a Centos 5.0 php 5.1.6 as Server API Apache 2.0 Handler I launched a script, which contains an infinite loop, from bash typing: php script.php I'd like to end that process. when typing ps -A, try ps -e, or run top and look there (you can

Re: [PHP] SPL

2007-10-27 Thread Jochem Maas
Børge Holen wrote: On Sunday 28 October 2007 01:32:15 you wrote: On 10/27/07, Børge Holen [EMAIL PROTECTED] wrote: I'm currently using RecursiveDirectoryIterator and RecursiveIteratorIterator. I'm using fwrite to write to a file while parsing throught the file structure, and was wondering

Re: [PHP] using `php' in the name of software

2007-10-28 Thread Jochem Maas
Andrew O. Shadoura wrote: Hello. I'm developing an extension for PHP to support netCDF format (a special format for multidimensional scientific data). It is non-commercial open source project. At http://www.php.net/license/3_01.txt it is said that I cannot name my extension php-netcdf

Re: [PHP] using `php' in the name of software

2007-10-28 Thread Jochem Maas
Andrew O. Shadoura wrote: Hello. Jochem Maas wrote: you should ask this on [EMAIL PROTECTED] but if you ask me you should just call the extension netcdf e.g. it's full name would be the php netcdf extension. the 'php-' is superfluous no? The extension itself named `netcdf

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread Jochem Maas
David Christopher Zentgraf wrote: Hi, I'm trying to set up my PHP app at my host, but am stumbling over the PHP configuration there. register_globals is enabled, which seems to auto-serialize my objects into $_SESSION, which in some cases overwrites variables in there. I'm not sure if

Re: [PHP] Stopping objects from auto-serializing

2007-10-31 Thread Jochem Maas
David Christopher Zentgraf wrote: On 31 Oct 2007, at 15:32, Jochem Maas wrote: aside from this error (my guess is your not allowed to override it) I can't see the problem of serialization .. don't put the object in $_SESSION? ... what are you doing? show us the code? I'm not putting

Re: [PHP] GD Library

2007-10-31 Thread Jochem Maas
Charlene wrote: I have the GD Library installed, but I don't see any of the fonts. What is the preferred location to download fonts (standard fonts like Arial, Verdana, etc.) and which directory should they be stored in? 'standard fonts' is not. and any directory you want. upload any legal

Re: [PHP] Re: Function variables in classes

2007-11-01 Thread Jochem Maas
Sebastian Hopfe wrote: I think you should log it, because it seems to be, and you found this error. it's not a bug - especially because nobody has bothered to mention the php version. I'm guessing that it's being run on a version php5, in which case the fatal error seems correct - you have a

Re: [PHP] Foreign Key Problem

2007-11-01 Thread Jochem Maas
Kulluji wrote: Hi Everybody, I am working in WAMP server for a small project. I am useing mysqlAdmin to create my tables. In this version of Mysql I am unable to set foreign key constraint. How do we do that? ask someone in on a mysql or phpmyadmin mailing list - we are not here to support

Re: [PHP] Re: Function variables in classes

2007-11-01 Thread Jochem Maas
Robert Cummings wrote: On Thu, 2007-11-01 at 16:10 +0100, Jochem Maas wrote: I've completely lost track of the state of the exact OO rules in any given version of php5) Haha, you too eh!? BTW, I finally bothered to download PHP 5.2.4 last night and checked it out. This is the first time

Re: [PHP] Threads

2007-11-01 Thread Jochem Maas
Instruct ICC wrote: Greetings everyone, I was wondering where I could find information on the status and possibilities of threads being included in PHP. Or if you are knowledge-able on the status of threads, if it is a planned addition or not and the reasons as such. I understand PHP is not

Re: [PHP] Transfer query result to another script

2007-11-02 Thread Jochem Maas
C.R.Vegelin wrote: ... Hi Jochem, The reason for a redirect is that Report.php has functionality such as sorting on report columns, checkboxes to make graphs etc. Suppose the following report columns: Country 06.Q1 06.Q2 06.Q3 06.Q4 07.Q1 07.Q2 1 Austria 1226 1211

Re: [PHP] Transfer query result to another script

2007-11-02 Thread Jochem Maas
C.R.Vegelin wrote: - Original Message - From: Jochem Maas [EMAIL PROTECTED] To: C.R.Vegelin [EMAIL PROTECTED] Cc: David Giragosian [EMAIL PROTECTED]; php-general php-general@lists.php.net Sent: Friday, November 02, 2007 10:41 AM Subject: Re: [PHP] Transfer query result to another

Re: [PHP] Transfer query result to another script

2007-11-02 Thread Jochem Maas
C.R.Vegelin wrote: Hello David, Jim, Thanks for your response. Yes, I do have session_start() at the top of Report.php. The reason for having the query on a different page than the result is that the result may be sent to various output types / scripts. I will change my code as follows:

Re: [PHP] Re: Function variables in classes

2007-11-02 Thread Jochem Maas
Paul van Haren wrote: OK guys, thanks for all your inputs. Based on your guidance, I have tested the following code with a series of variations: class foobar { function bar2 () { echo Yep, in bar2() right now\n; }

Re: [PHP] Looking for ways to prevent timeout

2007-11-04 Thread Jochem Maas
Jon Westcot wrote: Hi all: I'm hoping to find a solution to the problem I'm having with my script timing out while inserting records into a table. Overall, the process is pretty fast, which is impressive, but when it gets to the 22,000 to 23,000 record mark, it seems to time

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jochem Maas
Jon Westcot wrote: Hi Nathan: Another quick question regarding the use of the .htaccess file: If I'm trying to set something like post_max_size, which takes a shorthand value such as 16M in place of the full value, will using the php_value type of statement also accept the

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Jochem Maas
with this concept here, and I appreciate the help that everyone is giving me! dont forget to read the manuAl AND the user comments on the pages relevant to the functions you are using to tackle the problem Jon - Original Message - From: Jochem Maas [EMAIL PROTECTED] To: Jon

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jochem Maas
Stut wrote: Jônata Tyska Carvalho wrote: Im having a big problem because the name of one input type text that is ' table.name' in my html, becomes 'table_name' in php, it is a kind of bug?? =S form method=post input type=text nametable.name /form in PHP we have: $_POST[table_name]

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Jochem Maas
Nathan Nobbe wrote: On 11/5/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Nathan: No, I'm not familiar with Ajax. Where can I read up on it? More important, how can I find out if Ajax is implemented on the server? Or is it something I can add myself? although it might sound cool -

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jochem Maas
, don't f'ing reply off-list (unless asked), etiquette asks that you keep the conversation on the mailing list. if you wAnt to call me an ass because you don't like the way I tried to help that's fine but please do it in public :-) On Nov 5, 2007 1:44 PM, Jochem Maas [EMAIL PROTECTED] mailto:[EMAIL

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jochem Maas
seem right or necessary ... that said you may have a perfectly sound reason :-) On Nov 5, 2007 11:22 AM, Jochem Maas [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Stut wrote: Jônata

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Jochem Maas
Nathan Nobbe wrote: On 11/5/07, Jochem Maas [EMAIL PROTECTED] wrote: ... yes yes yes to all that, except for one thing. Im personally of the opinion such 'import' operation should involve no human interaction and garanteed to complete (e.g. auto resume), save for possibly initializing a process

Re: [PHP] More info on timeout problem

2007-11-05 Thread Jochem Maas
Jon Westcot wrote: Hi all: just show us the code. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Close a session knowing it's ID (not the current session)

2007-11-05 Thread Jochem Maas
Richard Heyes wrote: ?php unlink('/tmp/sess_' . session_id()); unlink(session_save_path().'/'.session_id()); // no? ? You'll need to know the session_id of the session you want to close. The code above closes/ends the current users session, but simply substitute the desired session

Re: [PHP] More info on timeout problem, with code

2007-11-07 Thread Jochem Maas
Jon Westcot wrote: Hi Chris: ... That is, I need to close the single quote, place a comma after the field, and then add in another opening quote. One other thing: I suspect I need to use addslashes() to the elements in $data -- is there a way to do this with one statement as you've

Re: [PHP] re-post (unanswered) Tables, flash and text

2007-11-07 Thread Jochem Maas
Per Jessen wrote: Brad wrote: I just picked up an account to fix a website and the code is making no sense. Brad, it's been barely six hours since you first posted that question. 1) be patient. 2) it's a lot of code to ask someone else to look at for you. I would start by

Re: [PHP] Re: Help with preg_replace

2007-11-07 Thread Jochem Maas
Al wrote: Delimiters needed. Can use about anything not already in your pattern. / is very commonly used; but I like # or % generally; but, you can't use % because your pattern has it. $html = preg_replace(#%ResID#,$bookid,$html); wont a str_replace() do just fine in this case? // and we

Re: [PHP] Re: debugging imap_open

2007-11-10 Thread Jochem Maas
John Gunther wrote: Since no one seems to know about the debug feature, let me ask about the imap argument directly. None of the following work, always Couldn't open stream: mail.usservas.org:143 mail.usservas.org:110 wrong? Here's my code: ini_set('error_log','/tmp/imap.txt'); some

Re: [PHP] Cannot send a hyperlink

2007-11-10 Thread Jochem Maas
; mail( $email, Your FREE book from Zone of Success Club .com, $headers, $message, From: $email ); ? -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Saturday, November 10, 2007 3:44 PM To: Brad Subject: Re: [PHP] Cannot send a hyperlink this will help

Re: [PHP] chrooted php5-cgi in a non chrooted apache

2007-11-10 Thread Jochem Maas
hi Joerg, not a solution but the open_basedir ini setting on a per Vhost setting may offer a [partial] work around What I've get so far is, that I've created a chroot jail within the web-directory. I can chroot to there and execute php (I used jailer, for this). But I don't get it to

Re: [PHP] PHP editor

2007-11-11 Thread Jochem Maas
Jay Blanchard wrote: [snip] Being very new to PHP (empahsis on VERY...), I wonder what most of you use to develop in PHP? [/snip] Search the archives, there was a discussion on IDE's just last week. and pretty much every week before that :-) when beginning your most valuable tool is not

Re: [PHP] PHP editor

2007-11-11 Thread Jochem Maas
Børge Holen wrote: On Sunday 11 November 2007 20:36:39 Jochem Maas wrote: Jay Blanchard wrote: [snip] Being very new to PHP (empahsis on VERY...), I wonder what most of you use to develop in PHP? [/snip] Search the archives, there was a discussion on IDE's just last week. and pretty much

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

2007-11-13 Thread Jochem Maas
Ronald Wiplinger wrote: Chris wrote: Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try

Re: [PHP] Simple reading a file and extract fields

2007-11-13 Thread Jochem Maas
Ronald Wiplinger wrote: I got a larger file which consists of lines with a defined length of 56 how large? for very big files it's dangerous to read them in all at once, as was exampled in other replies. I would say that large in this case would be anything bigger than 5 Mb (this is a very rough

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

2007-11-13 Thread Jochem Maas
Al wrote: Install the Firefox extension HTML Validator. It does a real time Tidy check for every page. good advice. Make your code W3C compatible and it'll work on all modern browsers. less good advice. I agree you should be doing everything to make your code validate 100% BUT having 100%

Re: [PHP] PHP 5.2.3 segfault with syslog standard extension

2007-11-13 Thread Jochem Maas
hi Nir, I think you should direct this question to [EMAIL PROTECTED] (the php core developers list). Rachmel, Nir (Nir) wrote: Hi, I am running PHP 5.2.3 as a statically compiled module for a web server (appWeb, which is an embbeded apache-like server). My platform is a ppc processor,

Re: [PHP] Tree-like structure in PHP? (closed)

2007-11-16 Thread Jochem Maas
Paul van Haren wrote: Thanks, the empasant helps! ampersand :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tree-like structure in PHP?

2007-11-16 Thread Jochem Maas
Paul van Haren wrote: I'm trying to use arrays to implement a sort of data tree. For the code to work, it is essential that the nodes can be edited after they have become part of the tree. That would require that the array elements are pushed by reference rather than by value. ?php

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Jochem Maas
Kiketom wrote: Hi all. Yesterday i have looking for the overloading members Member overloading void __set ( string name, mixed value ) mixed __get ( string name ) As an example i put this code: class foo { private $ID; private $Name; private $LastName; when you

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Jochem Maas
Kiketom wrote: Then if i make this $foo = new foo(); $foo-ID = 12; what is happening?? if __Set and __Get only works if a member isn't exits, How come I do this? $foo-ID = 12; if the member $ID is private??? I thought that this was possible because i have declared the two method

Re: [PHP] overloading members. aghhh!!!

2007-11-20 Thread Jochem Maas
Peter Ford wrote: Jochem Maas wrote: Kiketom wrote: Hi all. Yesterday i have looking for the overloading members Member overloading void __set ( string name, mixed value ) mixed __get ( string name ) As an example i put this code: class foo { private $ID; private $Name

Re: [PHP] two small issues with php mail OT

2007-11-20 Thread Jochem Maas
Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue,

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-20 Thread Jochem Maas
Andrés Robinet wrote: -Original Message- ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Just wanted to add, I found a log.txt at D:\xampp\apache which happens to be the root of the apache installation on my system... so,

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-21 Thread Jochem Maas
chetan rane wrote: Sorry Buddie But Session dose not serialize the Object Please Have a look at the Code Again I have tried it with PHP 5.2 IT dose not call __sleep function. only when you have serialize it calls it. this is completely untrue. during the shutdown phase objects in the $_SESSION

Re: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
pere roca wrote: Hi, a basic question: I want to send a CSV file and some other parameters. In my FORM I have method=POST input type=file and action=http://php;; It sends it to the php file but I don't want the php to be visualized (in fact it just works with the data and inserts in

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Colin Guthrie wrote: T.Lensselink wrote: On Wed, 21 Nov 2007 08:38:18 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Seems to me Pere want's to do an upload without reloading the whole page. [/snip] The problem is that you cannot upload files using Ajax alone. But you can do it

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Jay Blanchard wrote: [snip] So that I can get my head around this, are all of you saying there is no Ajax equivalent of: form action=index.php enctype=multipart/form-data method=post input type=hidden name=MAX_FILE_SIZE value=2048000 input name=userfile type=file input type=hidden

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
tedd wrote: At 12:23 PM -0600 11/21/07, Jay Blanchard wrote: [snip] But, take a look at this: http://www.captain.at/ajax-file-upload.php They look like their blowing the same wind. [/snip] Yep, look at all of the gotchas. Well, I wasn't able to get it to work -- I couldn't find

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Jay Blanchard wrote: [snip] huh? if I post a file to a script that returns a 204 status and nothing else then the page should not change in the browser. [/snip] True, the missing piece is that the post cannot move the file up to the server. I was referring to a standard POST not using

Re: [PHP] Code Critique Please :)

2007-11-21 Thread Jochem Maas
Simeon F. Willbanks wrote: Hello, I am trying to increase my knowledge and understanding of OO and OO Design Patterns. I'd like to request a critique of a program that extracts MySQL table information and translates it into XML. In the program, I tried to accomplish a few things: 1.

Re: [PHP] Code Critique Please :)

2007-11-21 Thread Jochem Maas
- but then again I didn't see any faux pas' either. you might consider checking out other implementations of similar functionality to compare your own idea/implementation against. oh and we prefer to keep all communications on list :-) Simeon On Nov 21, 2007, at 2:23 PM, Jochem Maas wrote

Re: [PHP] Parsing XML with DTD

2007-11-22 Thread Jochem Maas
Skip Evans wrote: Hey all, I've been asked if it's possible to parse XML files given a DTD file that describes the elements within it, so I've been looking through the docs at php.net. So far I've found this: http://us.php.net/manual/en/ref.xml.php Which has some samples on, but

Re: [PHP] quicktime new window php

2007-11-24 Thread Jochem Maas
kNish wrote: Hi, Given that a pc has quicktime loaded, how is it possible to have a hyper link open a new quicktime window. i.e. a window that has a .mov file playing. Along with it, it has the play stop pause options too. this is nothing to do with php. please find a

Re: [PHP] URL Parsing...

2007-11-24 Thread Jochem Maas
Amanda Loucks wrote: Hi, I'm working on redesigning the backend of the website for work. It was originally done in ColdFusion, but I'm switching it over to PHP - probably going to transfer the website from where it's currently hosted to something a lot cheaper, too, hence the switching to

Re: [PHP] URL Parsing...

2007-11-25 Thread Jochem Maas
Richard Heyes wrote: one of these should give you something to go on: echo preg_replace('\.cfm$', '-meta.cfm', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)), \n; echo preg_replace('\.cfm$', '-meta.cfm', $_SERVER['PATH_TRANSLATED']), \n; echo preg_replace('\.cfm$', '-meta.cfm',

Re: [PHP] URL Parsing...

2007-11-25 Thread Jochem Maas
Richard Heyes wrote: well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'? How does this: /\.cfm$/ take into account that? WTF -- PHP

Re: [PHP] How to ask if private IP?

2007-11-26 Thread Jochem Maas
Ronald Wiplinger wrote: I use $aa=$_SERVER[REMOTE_ADDR]; and if(($aa==192.168.2.108) || ($aa==192.168.2.34)) { $aa=61.64.101.101;// for testing put in a public IP } However, I would like to cover all private IPs (192.168.x.x and 10.x.x.x and 172.??.x.x). How can I do that

Re: [PHP] How to ask if private IP?

2007-11-26 Thread Jochem Maas
. [EMAIL PROTECTED] This confirmation verifies that your message is legitimate and not junk-mail. You should only have to confirm your address once. If you do not respond to this confirmation request within 14 days, your message will not be delivered. /BLA BLA BLA Jochem Maas wrote: Ronald

Re: [PHP] URL Parsing...

2007-11-26 Thread Jochem Maas
Richard Heyes wrote: Chris wrote: Richard Heyes wrote: well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'? How does this: /\.cfm$/ take into

[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

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

2007-11-27 Thread Jochem Maas
tedd wrote: At 9:37 AM -0400 11/27/07, Jeff Benetti wrote: Any any and all comments are welcome, it will be a learning curve no matter which route I take so a little advice on the best direction pros cons would be great. Thanks, Jeff Jeff: If it were me, I wouldn't use any

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

2007-11-27 Thread Jochem Maas
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 with user agents string parsing. It uses the Accept-Language header

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.

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] 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

  1   2   3   4   5   6   7   8   9   10   >