Re: [PHP] Lightweight web server for Windows?

2009-11-19 Thread Peter Ford
to be the first thing that goes on old laptops. They make really good low-power servers for stuff like DNS or even firewalling (as long as you can plug in enough network cards), but only when on mains power :( -- Peter Ford phone: 01580 89 Developer

[PHP] Does PHP block requests?

2009-11-20 Thread Peter Ford
at least) give the same result. For reference, the server is Apache 2.2.10 on a SuSE linux 11.1 box using mod_php5 and mpm_prefork - is that part of the problem, and is there an alternative? -- Peter Ford phone: 01580 89 Developer fax

[PHP] Re: Class not returning value

2009-11-25 Thread Peter Ford
the processing fails. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: logic operands problem

2009-12-07 Thread Peter Ford
believe a programmer has never heard of that! (page==1 XOR page==2) AND page==3 -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

Re: [PHP] Change displayed file name to download

2010-03-14 Thread Peter Lind
You can set the name to display as you see fit, just change $filename to your liking right before the header() call. If you just want to cut the path, use basename($filename) Regards Peter On 14 March 2010 21:29, Php Developer pdevelo...@rocketmail.com wrote: Hi, I'm using the following code

Re: [PHP] ldap_bind() connectivity

2010-03-15 Thread Peter Lind
You might want to check what the function outputs with: var_dump($ldapbind); after the call to ldap_bing(). That way you'll know what actually got returned from the function. On 15 March 2010 09:54, Ashley M. Kirchner ash...@pcraft.com wrote: Thanks to Jochem Mass for helping earlier to the

Re: [PHP] Need routine to tell me number of dimensions in array.

2010-03-16 Thread Peter Lind
in the second example. Regards Peter On 16 March 2010 15:46, Robert Cummings rob...@interjinn.com wrote: Richard Quadling wrote: On 15 March 2010 23:45, Daevid Vincent dae...@daevid.com wrote: Anyone have a function that will return an integer of the number of dimensions an array has

Re: [PHP] Need routine to tell me number of dimensions in array.

2010-03-16 Thread Peter Lind
, that isn't touched. Or maybe I've gotten this completely backwards ... Regards Peter On 16 March 2010 17:12, Robert Cummings rob...@interjinn.com wrote: Peter Lind wrote: This is one example where references actually decrease memory usage. The main reason is the recursive nature

Re: [PHP] web sniffer

2010-03-19 Thread Peter Lind
You should be able to do that by setting context options: http://www.php.net/manual/en/context.http.php On 19 March 2010 08:53, Jochen Schultz jschu...@sportimport.de wrote: Btw., when you use file_get_contets, is there a good way to tell the script to stop recieving the file after let's say 2

Re: [PHP] Re: PHP in HTML code

2010-03-19 Thread Peter Lind
On 19 March 2010 10:17, Michael A. Peters mpet...@mac.com wrote: I don't care what people do in their code. I do not like released code with short tags, it has caused me problems when trying to run php webapps that use short tags, I have to go through the code and change them. So what

Re: [PHP] no svn checkout of the current PHP development repo?

2010-03-20 Thread Peter Lind
You should probably have a look at the internals list - there's a lot of discussion going on as to what should happen in terms of SVN structure. Regards Peter On 20 March 2010 12:32, Robert P. J. Day rpj...@crashcourse.ca wrote:  just for fun, i figured i'd check out the current PHP

Re: [PHP] Filtering all output to STDERR

2010-03-22 Thread Peter Lind
You could consider suppressing errors for the duration of the problematic call - if indeed you're looking at a warning that doesn't grind everything to a halt. On 22 March 2010 18:01, Marten Lehmann lehm...@cnm.de wrote: Hello, we have a strange problem here: - Our ISP is merging STDERR and

Re: [PHP] Filtering all output to STDERR

2010-03-22 Thread Peter Lind
Have you tried with http://dk2.php.net/manual/en/function.error-reporting.php or just the @ operator? On 22 March 2010 23:56, Marten Lehmann lehm...@cnm.de wrote: Hello, You could consider suppressing errors for the duration of the problematic call yes, but how? Regards Marten -- PHP

Re: [PHP] Filtering all output to STDERR

2010-03-23 Thread Peter Lind
outputs messages to STDERR, then it's opening that stream somewhere before the output. Regards Peter On 23 March 2010 11:28, Marten Lehmann lehm...@cnm.de wrote: Have you tried with http://dk2.php.net/manual/en/function.error-reporting.php or just the @ operator? Yes. But this does not work

Re: [PHP] PHP to access shell script to print barcodes

2010-03-23 Thread Peter Lind
'); That tells the browser to download the file. You can also try setting the content-type header('Content-type: application/postscript'); Either of the above might do the trick for you. Regards Peter On 23 March 2010 22:10, Rob Gould gould...@me.com wrote: I love the idea of using PHP to insert

Re: [PHP] PHP to access shell script to print barcodes

2010-03-24 Thread Peter Lind
the postscript as-is and the browser sends it to Preview which interprets it. I basically want to replicate the functionality found here: http://blog.maniac.nl/webbased-pdf-lto-barcode-generator/ On Mar 23, 2010, at 5:37 PM, Peter Lind wrote: You can create a .php script that sets a proper

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-24 Thread Peter Lind
On 24 March 2010 10:38, Rene Veerman rene7...@gmail.com wrote: and if threading and shared memory aren't implemented, then hey, the php dev team can build something else in that these naysayers DO need eh... lol... Do you have any idea how sad and pathetic you come across? I'm very sorry to

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-24 Thread Peter Lind
On 24 March 2010 11:53, Tommy Pham tommy...@gmail.com wrote: On Wed, Mar 24, 2010 at 3:44 AM, Per Jessen p...@computer.org wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 3:20 AM, Per Jessen p...@computer.org wrote: Tommy Pham wrote: What I find funny is that one of opponents of PHP

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-24 Thread Peter Lind
On 24 March 2010 12:04, Tommy Pham tommy...@gmail.com wrote: On Wed, Mar 24, 2010 at 3:52 AM, Lester Caine les...@lsces.co.uk wrote: Tommy Pham wrote: How exactly will threading in PHP help with the size of the database? That makes no sense to me, please help me understand how you think

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-24 Thread Peter Lind
On 24 March 2010 12:14, Tommy Pham tommy...@gmail.com wrote: On Wed, Mar 24, 2010 at 4:09 AM, Peter Lind peter.e.l...@gmail.com wrote: On 24 March 2010 12:04, Tommy Pham tommy...@gmail.com wrote: On Wed, Mar 24, 2010 at 3:52 AM, Lester Caine les...@lsces.co.uk wrote: Tommy Pham wrote: How

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Peter Lind
Hmmm, that looks to me like you're trying to solve a problem in PHP with a c/c++c/# overloading solution. I'd give the builder pattern a try instead: http://en.wikipedia.org/wiki/Builder_pattern On 24 March 2010 13:01, Richard Quadling rquadl...@googlemail.com wrote: Hi. I have a scenario

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Peter Lind
in different ways while documenting it properly and avoid the huge switch inside your constructor that Nilesh proposed. On 24 March 2010 13:35, Richard Quadling rquadl...@googlemail.com wrote: On 24 March 2010 12:06, Peter Lind peter.e.l...@gmail.com wrote: Hmmm, that looks to me like you're trying

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Peter Lind
One of the main points of the OP was that you can document the code properly. Your example doesn't allow for nice docblocks in any way, as you'll either have to param points or a whole lot of noise. Quick note: __ prefixed functions are reserved, you shouldn't use that prefix for any of your own

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Peter Lind
On 24 March 2010 15:33, Robert Cummings rob...@interjinn.com wrote: Peter Lind wrote: One of the main points of the OP was that you can document the code properly. Your example doesn't allow for nice docblocks in any way, as you'll either have to param points or a whole lot of noise. I

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Peter Lind
On 24 March 2010 16:09, Robert Cummings rob...@interjinn.com wrote: Peter Lind wrote: On 24 March 2010 15:33, Robert Cummings rob...@interjinn.com wrote: Peter Lind wrote: One of the main points of the OP was that you can document the code properly. Your example doesn't allow for nice

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Peter Lind
On 24 March 2010 16:23, Robert Cummings rob...@interjinn.com wrote: Peter Lind wrote: On 24 March 2010 16:09, Robert Cummings rob...@interjinn.com wrote: Peter Lind wrote: On 24 March 2010 15:33, Robert Cummings rob...@interjinn.com wrote: Peter Lind wrote: One of the main points

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Peter Lind
On 24 March 2010 16:48, Robert Cummings rob...@interjinn.com wrote: Peter Lind wrote: The ,... is a supported syntax. Then I'd add the appropriate docblock for the alternate constructors. It might be but in effect the documentation you're left with is vague and has double the amount

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-25 Thread Peter Lind
be less costly, but as I haven't been involved in writing the PHP code my guess isn't worth much. Regards Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-25 Thread Peter Lind
On 25 March 2010 20:09, Tommy Pham tommy...@gmail.com wrote: On Thu, Mar 25, 2010 at 12:02 PM, Peter Lind peter.e.l...@gmail.com wrote: On 25 March 2010 19:37, Tommy Pham tommy...@gmail.com wrote: On Thu, Mar 25, 2010 at 3:55 AM, Per Jessen p...@computer.org wrote: Tommy Pham wrote: On Thu

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-25 Thread Peter Lind
On 25 March 2010 20:19, Tommy Pham tommy...@gmail.com wrote: Aren't all feature requests must be analyzed the same way?  Example, namespace, how many of us actually uses it now when there is an alternative solution- subfolders - that we've been using since who knows how long.  I don't know if

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-25 Thread Peter Lind
On 25 March 2010 20:59, Tommy Pham tommy...@gmail.com wrote: On Thu, Mar 25, 2010 at 12:28 PM, Peter Lind peter.e.l...@gmail.com wrote: On 25 March 2010 20:19, Tommy Pham tommy...@gmail.com wrote: Aren't all feature requests must be analyzed the same way?  Example, namespace, how many of us

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-25 Thread Peter Lind
On 25 March 2010 22:51, Lester Caine les...@lsces.co.uk wrote: Per Jessen wrote: Tommy Pham wrote: I'm presenting the argument for threading.  Per is presenting the work around using asynchronous queries via mysqlnd.  I did read that link a few days ago, Although the user can send multiple

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-25 Thread Peter Lind
On 25 March 2010 23:23, Tommy Pham tommy...@gmail.com wrote: There's the code example from that same link.  You may have executed the queries asynchronously, but the process of the results are still serial.  Let's face it, all of our processing of queries are not a simple echo.  We

Re: [PHP] Allowing multiple, simultaneous, non-blocking queries.

2010-03-26 Thread Peter Lind
when ready To get the threaded-ness, just open a connection per query you want to run asynchronous and pick it up when you're ready for it - i.e. iterate over steps 1-2, then do step 3 when things are ready. Regards Peter On 26 March 2010 12:45, Richard Quadling rquadl...@googlemail.com wrote: Hi

Re: [PHP] Re: optimizing PHP for microseconds

2010-03-29 Thread Peter Lind
is adopt the normal good coding standards: don't using functions in loops like the above, for instance. However, be skeptic about tips: single-quotes are not faster than double-quotes, for instance. Regards Peter On 29 March 2010 10:28, Bastien Helders eldroskan...@gmail.com wrote: I have

[PHP] SimpleXMLElement and gb2312 or big5

2010-04-02 Thread Peter Pei
I use the following code to get rss and parse it, but the code occasionally have issues with gb2312 or big-5 encoded feeds, and fails to parse them. However other times may appear just okay. Any thoughts? Maybe SimpleXMLElement is simply not meant for other language encodings...

[PHP] SimpleXMLElement occasionally fails to parse gb2312 or big5 feeds

2010-04-02 Thread Peter Pei
I use the following code to get rss and parse it, but the code occasionally have issues with gb2312 or big-5 encoded feeds, and fails to parse them. However other times may appear just okay. Any thoughts? Maybe SimpleXMLElement is simply not meant for other language encodings...

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
On Sat, 03 Apr 2010 08:58:44 -0600, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sat, 2010-04-03 at 10:29 -0400, tedd wrote: Hi gang: Here's the problem. I have 184 HTML pages in a directory and each page contain a question. The question is noted in the HTML DOM like so: p

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
No javascript's getElementByID() won't work here. As question is a class, not an ID. But like what was mentioned here, you can use getElementByClass() with Opera, and that will work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
Yes, because Opera is pretty much leading the way with its HTML5 support. Not even Firefox supports as much as Opera does. Thanks, Ash http://www.ashleysheridan.co.uk Opera 10.10 is a very nice version, but 10.50 could be quite slow with some web pages. I still remember that once

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
Why don't you just use REGEX? I don't know any possibility to easily process contents which are not valid XML/XHTML just because there's no library to load such stuff (but put me in right there). I'm not an expert of REGEX, but I think the following would do it:

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
Hi You could replace the class with id and then go on with JavaScript. A possible better way are regular expressions... Greetz Piero -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yes, and jquery is hosted on Microsoft CDN, don't

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
I think Tedds main reason not to use Javascript is that he needs it to be done on the server rather than the client machine. ps. please use bottom posting on the list. Thanks, Ash http://www.ashleysheridan.co.uk But he also mentioned that he wanted to avoid copy and paste... it does

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
On Sat, 03 Apr 2010 09:21:17 -0600, Ashley Sheridan a...@ashleysheridan.co.uk wrote: s, first browser to have tabs, first to have that odd homepage with thumbnails of y Talking about Opera's 'speed dial... I downloaded safari yesterday (which I didn't like last time I used it), it now has

Re: [PHP] Re: array or list of objects of different types

2010-04-03 Thread Peter Pei
var_dump( array( true , 12 , php already does this ) ); array(3) { [0]= bool(true) [1]= int(12) [2]= string(21) php already does this } :) Yeah. But this feature of PHP is a boon if used carefully and a curse if careless. You can get AMAZING results if you're not careful to

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
Somejavascript engine already support GetElementByClass, for example Opera does. My example shows how, namely: document.getElementById(question).innerHTML; will return the value within the class. Cheers, tedd In your original post, you said the data you had was: p class=question

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
Sort of. Like I said, the folling will work: document.getElementById(question).innerHTML; While you are using a getElementById, which returns an ID, but adding .innerHTML will return the class value. Try it. Cheers, tedd No, this will not work, if it appeared working, please re-check

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
It might have worked in Internet Explorer, as for a while that browser got confused over the class and id if two different elements on a page had the same class and id values. Thanks, Ash http://www.ashleysheridan.co.uk IE and Opera were the two I tested with. -- Using Opera's

Re: [PHP] GetElementByClass?

2010-04-03 Thread Peter Pei
?php // here is where you load a single file or change to iterate over a // directory of files $oDomDoc = DOMDocument::loadHTMLFile('./tedd.html'); // here is where you search for the question sections of each file $oDomXpath = new DOMXPath($oDomDoc); $oNodeList =

Re: [PHP] Collections / Static typing - was array or list of objects of different types

2010-04-03 Thread Peter Pei
On Sat, 03 Apr 2010 11:30:36 -0600, Nathan Rixham nrix...@gmail.com wrote: them in a google code project or suchlike. They'll obviously never be as fast as Java/C but they do allow for static typing of collections using primitive types That will be wonderful. -- Using Opera's revolutionary

Re: [PHP] Re: Constructor usage

2010-04-05 Thread Peter Pei
On Sun, 04 Apr 2010 17:46:19 -0600, Nathan Rixham nrix...@gmail.com wrote: Larry Garfield wrote: Hi folks. Somewhat philosophical question here. I have heard, although not confirmed, that the trend in the Java world in the past several years has been away from constructors. That is,

Re: [PHP] Re: Logical reason for strtotime('east') and strtotime('west') returning valid results?

2010-04-07 Thread Peter Lind
On a related note: does anyone know why php -r echo date('Y-m-d H:i:s', strtotime('a')); happily outputs a valid timestamp? And why all other letters work as well (but only one character)? I'm sure there's a good reason for it, it just completely escapes me right now :) Regards Peter -- hype

Re: [PHP] Little php code - error

2010-04-08 Thread Peter Lind
On 8 April 2010 16:30, David Otton phpm...@jawbone.freeserve.co.uk wrote: On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote: The structure is pretty easy to understand, however I'm not able to solve this. Could you tell me why I'm not able to run this code. Your else has a

Re: [PHP] another useless message.

2010-04-09 Thread Peter Lind
On 9 April 2010 12:20, Rene Veerman rene7...@gmail.com wrote: lolz :)) u try to be nice, and this is what u get?!?! :-D Rene, it's nice of you to post messages on the availability of some OS tools. However, you should also be aware that it's a minority of people on this list that use those

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Peter Lind
On 9 April 2010 22:20, Merlin Morgenstern merli...@fastmail.fm wrote: This sounds like the best solution to me. The only problem is that my regex knowledge is pretty limited. The command: RewriteRule ^(.+) /subapp_members/search_user.php The above rule will try to redirect everything to

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Peter Lind
On 9 April 2010 23:08, Merlin Morgenstern merli...@fastmail.fm wrote: Am 09.04.2010 22:58, schrieb Peter Lind: On 9 April 2010 22:20, Merlin Morgensternmerli...@fastmail.fm  wrote: This sounds like the best solution to me. The only problem is that my regex knowledge is pretty limited

Re: [PHP] Mail Function Problem

2010-04-12 Thread Peter Lind
, bad ports, etc. Along these lines: there's a chance that sending a mail from yourself, to yourself, through PHP like this, will cause mail servers to think it's spam. For testing email sending, normal scenarios are better (i.e. send an email to another account). Regards Peter -- hype WWW: http

Re: [PHP] Solution

2010-04-12 Thread Peter Lind
On 13 April 2010 00:04, Gary gwp...@ptd.net wrote: For those that were looking to see a solution, this is what I have come up with.  It was pointed out on another board (MySQL) that inserting multiple in one script is probably prohibited because of security reasons. What I did was open the

Re: [PHP] Saving form data into session before leaving a page

2010-04-13 Thread Peter Lind
On 13 April 2010 15:20, Merlin Morgenstern merli...@fastmail.fm wrote: Hello everybody, I have form where users enter data to be saved in a db. How can I make php save the form data into a session before the user leaves the page without pressing the submit button? Some members leave the page

Re: [PHP] Saving form data into session before leaving a page

2010-04-13 Thread Peter Lind
On 13 April 2010 17:27, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Apr 13, 2010 at 03:20:23PM +0200, Merlin Morgenstern wrote: Hello everybody, I have form where users enter data to be saved in a db. How can I make php save the form data into a session before the user leaves the

Re: [PHP] How define if javascript is on with php

2010-04-16 Thread Peter Lind
Javascript is client-side - only way to detect it is to have a page send back information (post/get). What might work easiest is to have jquery look for a given cookie upon page render, and if it doesn't find it, then do an ajax call to the server. On the server side, initiate a session for the

Re: [PHP] How define if javascript is on with php

2010-04-16 Thread Peter Lind
On 16 April 2010 13:54, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-04-16 at 12:50 +0100, Paulo-WORK wrote: Hello and thanks for any replies that this message may get. I have a issue to solve regarding PHP. My website relies heavlly  on jquery and does not dowgrade properly.

Re: [PHP] limit to var_dump?

2010-04-16 Thread Peter Lind
There's a limit to how deep var_dump goes, at least if you're using xdebug. Compare the output with that of print_r which is not limited in the same way. On 16 April 2010 16:15, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I'm seeing some strange behaviour with var_dump. Is there a limit to

Re: [PHP] Replacing a special character

2010-04-18 Thread Peter Lind
an HTML email which would have the email reader interpret that code correctly Bastien Another option would be to use mysql_real_escape_string and make sure that your code and the database are using utf-8. Then when the email is sent, make sure that uses utf-8 as well. Regards Peter -- hype WWW

Re: [PHP] How to do i18n better?

2010-04-19 Thread Peter Lind
Consider checking out http://php.net/gettext - it's the set of functions in PHP for i18n. With regards to language switching, you should consider using a url hierarchy for it, instead of just serving all pages with changing content. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk

Re: [PHP] Mail Function Using PEAR Issues

2010-04-19 Thread Peter Lind
Most, if not all, mail servers keep log files. You should look for the log files to see if the mail server has sent your mail properly or is experiencing problems (those may not feed back into PHP). Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com

Re: [PHP] Class constants

2010-04-19 Thread Peter Lind
On 19 April 2010 10:30, Gary . php-gene...@garydjones.name wrote: Should I be able to do this: class X {  const FOO = 'foo';  const FOOBAR = X::FOO . 'bar'; ... } ? Because I can't. I get syntax error, unexpected '.', expecting ',' or ';'. I assume this is because the constants are

Re: [PHP] Class constants

2010-04-19 Thread Peter Lind
On 19 April 2010 14:24, Gary . php-gene...@garydjones.name wrote: On Mon, Apr 19, 2010 at 10:36 AM, Peter Lind wrote: On 19 April 2010 10:30, Gary wrote: Should I be able to do this: class X {  const FOO = 'foo';  const FOOBAR = X::FOO . 'bar'; ... } So no, you shouldn't be able to do

Re: [PHP] How to do i18n better?

2010-04-19 Thread Peter Lind
://pl2.php.net/_ Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: Re[2]: [PHP] How to do i18n better?

2010-04-19 Thread Peter Lind
On 19 April 2010 12:54, Andre Polykanine an...@oire.org wrote: Hello Peter, Regarding the URL switching suggested by you and Michiel, how do I do this if I have a rather complicated .htaccess file? For instance, a blog entry URL is formed as follows: http://oire.org/menelion/entry/190/ which

Re: [PHP] Class constants

2010-04-19 Thread Peter Lind
On 19 April 2010 16:18, Gary . php-gene...@garydjones.name wrote: On Mon, Apr 19, 2010 at 2:37 PM, Peter Lind peter.e.l...@gmail.com wrote: On 19 April 2010 14:24, Gary wrote: On Mon, Apr 19, 2010 at 10:36 AM, Peter Lind wrote: So no, you shouldn't be able to do that. Okay. Why not? Hate

Re: [PHP] Array to csv or excel in php

2010-04-19 Thread Peter Lind
.    // Manipulate the data in $row if necessary.    fputcsv($fp, $row); } ? An interesting idea. I'd do: echo implode(',', $row); regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51

Re: [PHP] Array to csv or excel in php

2010-04-19 Thread Peter Lind
On 19 April 2010 17:40, Andrew Ballard aball...@gmail.com wrote: On Mon, Apr 19, 2010 at 11:14 AM, Peter Lind peter.e.l...@gmail.com wrote: On 19 April 2010 17:00, Andrew Ballard aball...@gmail.com wrote: On Mon, Apr 19, 2010 at 9:45 AM, Manolis Vlachakis   1. $save=split([|;],$listOfItems

Re: [PHP] Directory permissions question

2010-04-19 Thread Peter Lind
a question of: is any other part of the system getting used against me. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http

Re: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Peter Lind
look for the log files to see if the mail server has sent your mail properly or is experiencing problems (those may not feed back into PHP). Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51

Re: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Peter Lind
On 21 April 2010 04:25, Alice Wei aj...@alumni.iu.edu wrote: Well, from my experience with Ubuntu, looks like that it does not do that. Unless, I am doing it wrong? So did you try using the 'smtp' backend and passing all the connection details rather than 'mail'? -- hype WWW: http://plphp.dk

Re: [PHP] replying to list

2010-04-21 Thread Peter Lind
On 21 April 2010 12:38, David McGlone da...@dmcentral.net wrote: Maybe it's not how the list is set up, but instead how people are replying to the list. One would think that in a tech world where most programmers/developers try to minimize the workload and a good programmer is lazy is seen as

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Peter Lind
On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote: Why change the way that has been around for years and adopted by multiple e-mail lists? It feels like it's more problem to change the way for thousands of users just to satisfy a couple of few. David was venting based on a

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Peter Lind
On 21 April 2010 15:41, Dan Joseph dmjos...@gmail.com wrote: When you hit reply all, just take out all the other addresses and leave the list one in there.  The list was setup like this years ago on purpose, and they've stated in the past they don't want to change it.. And waste time every

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Peter Lind
* email list have it's settings changed a bit ... I start to wonder if you've considered things from both sides. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51

Re: [PHP] Re: replying to list (I give up)

2010-04-21 Thread Peter Lind
On 21 April 2010 20:09, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hello Peter Lind, Hi Michelle Am 2010-04-21 15:47:54, hacktest Du folgendes herunter: And waste time every single time you post to the list ... why do people become programmers/developers again? To end creating

Re: [PHP] Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Peter Lind
or not a 'reply-to' is used. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Peter Lind
On 22 April 2010 17:05, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-04-22 at 17:06 +0200, Peter Lind wrote: On 22 April 2010 12:14, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I believe Dan Brown mentioned a very good reason why this is not as simple an issue as just

Re: [PHP] Structured PHP studying

2010-04-23 Thread Peter Lind
(it's also directed at getting Zend certified, so it's covering the stuff you need to know for that, not connected things). Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51

Re: [PHP] creating a PHP wrapper script?

2010-04-23 Thread Peter Lind
php.net/curl should be able to do what you want. file_get_contents with a proper stream context should also work (have a look at functions like http://dk.php.net/manual/en/context.http.php ) Regards Peter On 23 April 2010 17:18, Robert P. J. Day rpj...@crashcourse.ca wrote:  i'm sure

Re: [PHP] public readonly variables

2010-04-23 Thread Peter Lind
use them for everything (i.e. 5 magic calls per request will do very, very little to your app, whereas 1000 per request will have some significance on a site with lots of users). Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http

Re: [PHP] public readonly variables

2010-04-23 Thread Peter Lind
On 23 April 2010 18:26, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote: On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind peter.e.l...@gmail.com wrote: On 23 April 2010 18:10, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I think

Re: [PHP] PHP not being read?

2010-04-25 Thread Peter Lind
as *nix) Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Peter Lind
of $isfile, then  it  is working.   Quoting of $isfile does not work too. What have a overseen? var_dump($isfile); Don't make assumptions of what the value is, just check it. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Peter Lind
the amount of content you want, then use one of the tools to repair and clean the html. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Peter Lind
On 26 April 2010 13:23, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've been thinking about this problem for a little while, and the thing is, I can think

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
confusing. There's nothing worse than This didn't work, sorry - why didn't it work?? Was it my fault? Can I get it to work somehow? Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51

Re: [PHP] Weird while issue

2010-04-27 Thread Peter Lind
of the block, I receive so many echo's as iterations the while do ( this is logical ). However I don't understand why the echo is printed above the while even when I put it after the while and out of the while's block. Check your html for broken html table code. Regards Peter -- hype WWW: http

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
for alternatives. Whether or not there's a coding problem, you have to look at the situation from the point of the user: a complete failure with no information is like a BSOD/TSOD ... and we all know the effect they have on a user. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
On 27 April 2010 16:07, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: On 27 April 2010 15:36, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote: How do you guys handle errors

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
On 27 April 2010 16:24, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Apr 27, 2010 at 04:13:20PM +0200, Peter Lind wrote: On 27 April 2010 16:07, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: On 27 April 2010 15:36, Paul M

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
On 27 April 2010 18:21, tedd tedd.sperl...@gmail.com wrote: At 4:31 PM +0200 4/27/10, Peter Lind wrote: While I love to rant at stupid users, the truth is probably that programmers are the ones who should take courses in how users think. In the end, if I fail to understand my users

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Peter Lind
)); and I can't see what I've done wrong :( In your code snippet, you do not declare Pg_Error::INTEGRITY_CONST_UNIQUE - and equally to the point, in the class you only use INTEGRITY_CONST_UNIQUE in the array, not Pg_Error::INTEGRITY_CONST_UNIQUE Regards Peter -- hype WWW: http://plphp.dk / http

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Peter Lind
the class, I'd use self::YOUR_CONSTANT Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Project TIME calculated, in PHP

2010-05-02 Thread Peter Lind
for calculations, then convert back to 12 hour am/pm format in PHP? Consider the DateTime class, might suit your needs. http://dk2.php.net/manual/en/class.datetime.php Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos

<    9   10   11   12   13   14   15   16   17   18   >