[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

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 tedd.sperl...@gmail.com 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 encoding

[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). ? danondan...@gmail.com pí¹e v diskusním

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

2009-02-26 Thread Ondrej Kulaty
Your answer is neither relevant nor funny. :-| -- Robert Cummings rob...@interjinn.com 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

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 rich...@php.net píse v diskusním príspevku

[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 mpet...@mac.com 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

[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

[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 d...@sidak.net 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

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

2008-12-16 Thread Ondrej Kulaty
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 rob...@interjinn.com 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: I use md5

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 rob...@interjinn.com 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 example where

[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 gould...@mac.com 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. What I'd like to do

Re: [PHP] XML Parser set option

2005-12-20 Thread ondrej
are discarded (node /node - node/node). -- Ondrej Ivanic ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object Function-call handling in PHP5

2005-09-28 Thread Ondrej Ivanič
Thorsten Suckow-Homberg wrote: In your case the __toString() method would be valuable... Beware! This bugs are related to __toString() method: 31766 Open printf and __toString 34286 Assigned __toString() behavior is inconsistent -- Ondrej Ivanič ([EMAIL PROTECTED]) -- PHP General

Re: [PHP] Object Function-call handling in PHP5

2005-09-28 Thread Ondrej Ivanič
Dmitry committed a path for improved __toString() support. However, im not sure if it will be PHP6 only... I know about this patch. I think, it will be PHP6 only. -- Ondrej Ivanic ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] is_dir paths

2005-09-26 Thread Ondrej Ivanič
Jochem Maas wrote: what does the following output: var_dump (getcwd()); I have better question: what does the following output: var_dump (realpath(getcwd())); var_dump (realpath('temp')); var_dump (realpath(/lists/admin/temp)); -- Ondrej Ivanic ([EMAIL PROTECTED]) -- PHP General Mailing

Re: [PHP] is_dir paths

2005-09-26 Thread Ondrej Ivanič
'. If you need check existence of dir 'temp' in your current working directory you can try one of: is_dir('temp'); is_dir('./temp'); is_dir('C:\...\htdocs\lists\admin\temp'); IMHO every is_dir() return true. -- Ondrej Ivanč ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net

Re: [PHP] Intelligent session_destroy()

2005-09-22 Thread Ondrej Ivanič
but not for production environment (default value (1%) is enough). Sessions which is last modified (before php 4.2.? was used last access time) before current time minus gc_maxlifetime is a old session and will be deleted. -- Ondrej Ivanic ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: error message: Nesting level too deep - recursive dependency?

2002-08-26 Thread Ondrej Ivanic
($obj2); // Error: I want remove Obj2 not Obj1 and more... -- Ondrej Ivanic ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php