Re: [PHP] SimpleXML output encoding

2009-05-05 Thread Ondrej Kulaty
Because i am working on an old system which is in ISO, i cant use unicode. -- Ondrej Kulaty "tedd" píse v diskusním príspevku news:p06240802c625f6b4e...@[192.168.1.101]... > At 2:40 PM +0200 5/5/09, Ondrej Kulaty wrote: >>Hi, >>is there any way how to set output enc

[PHP] SimpleXML output encoding

2009-05-05 Thread Ondrej Kulaty
Hi, is there any way how to set output encoding for SimpleXML? It will load XML document in any encoding, but internally, it converts the document to UTF-8 and outputs it in this encoding. I would like to have output encoding set to ISO-8859-2, is it possible? thanks. -- Ondrej Kulaty

[PHP] Re: Browser timeout

2009-03-01 Thread Ondrej Kulaty
40 seconds is not very long execution time for timeout, if you have some loop in the script, try to output a dot character, for example, on every iteration, with flush() immediately after echo (or whatever command you use for sending output). ""? "" pí¹e v diskusním pøíspìvku news:907

[PHP] Re: Stupid is as Stupid does

2009-02-26 Thread Ondrej Kulaty
Use var_dump() to see contents of a variable. It will print something even if variable is empty or undefined. ""Michael A. Peters"" píse v diskusním príspevku news:49a79416.6060...@mac.com... > As my web app is coming to completion, I added a means to search records > (different from site sear

Re: [PHP] A puzzler (well, for me at least)

2009-02-26 Thread Ondrej Kulaty
Sorry i've missed the first sentence, i thought the answer was only the very last sentence. my fault. -- S pozdravem Ondrej Kulatý - Winternet s.r.o. odd. vývoje aplikací tel. 585 209 132 www.winternet.cz "Richard Heyes" píse v diskusním príspevku news:af8726440902260659

Re: [PHP] A puzzler (well, for me at least)

2009-02-26 Thread Ondrej Kulaty
Your answer is neither relevant nor funny. :-| -- "Robert Cummings" pí¹e v diskusním pøíspìvku news:1235653678.13128.32.ca...@localhost... > On Thu, 2009-02-26 at 12:47 +, Richard Heyes wrote: >> Hi, >> >> I've been recently wondering (musing if you will) about timings, and >> roughly how l

[PHP] Re: PHP OOP

2009-02-10 Thread Ondrej Kulaty
I don't think that PHP is good language for teaching OOP as many folks above said. I have never programmed in OOP style but i plan to learn it. I started in PHP but i was little confused and i am used to program in procedural way in PHP, so i've decided to learn some pure OOP language. I am read

[PHP] Re: Throwing an exception seems to defeat output buffering

2009-02-03 Thread Ondrej Kulaty
Output buffer is flushed at the end of script. When you throw that exception in try block, this command: exit( 'Contents: ' . ob_get_clean()); never executes and it continues to catch block where you are outputing exception message, and it is added to the buffer, then the script ends and buffer

[PHP] Re: Programming general question

2009-01-28 Thread Ondrej Kulaty
Depends on what for you want to use that. Array is simple data structure, it holds data, like variable, but objects has methods and properties, it acts as someting which can do some sort of task and you access it via it's interface (you call it's methods). You can use array for example to hold

[PHP] Re: CLI in background on windows

2008-12-18 Thread Ondrej Kulaty
What about to try run it as service? I don't know exactly how to do that but service programs run in background on my Win XP ""Fanda"" pí¹e v diskusním pøíspìvku news:7d.3d.09584.c2f7a...@pb1.pair.com... > Hi, > I am looking for some method, how to run php cli script on background in > windows

Re: [PHP] Re: Create unique non-autoincrement key for700,000records?

2008-12-16 Thread Ondrej Kulaty
s.r.o. odd. vývoje aplikací tel. 585 209 132 www.winternet.cz "Robert Cummings" pí¹e v diskusním pøíspìvku news:1229416450.9173.46.ca...@localhost... > On Tue, 2008-12-16 at 09:21 +0100, Ondrej Kulaty wrote: >> I think he knows how to use it, he didn't show us a certain exa

Re: [PHP] Re: Create unique non-autoincrement key for 700,000records?

2008-12-16 Thread Ondrej Kulaty
rform this task on the same id at the same time. yes, it's not very probable but if you have system with many users it can happen "Robert Cummings" pí¹e v diskusním pøíspìvku news:1229410766.9173.41.ca...@localhost... > On Tue, 2008-12-16 at 07:35 +0100, Ondrej Kulaty wrote:

[PHP] Re: Create unique non-autoincrement key for 700,000 records?

2008-12-15 Thread Ondrej Kulaty
I use md5(microtime()); -- Ondrej Kulaty "Rob Gould" píse v diskusním príspevku news:1492934866135048840337272044147195196-webm...@me.com... >I have a mySQL database with 700,000 records in it, which are presently >keyed with an "auto-increment" field. > &g