php-general Digest 8 Jan 2008 01:37:22 -0000 Issue 5222

2008-01-07 Thread php-general-digest-help
php-general Digest 8 Jan 2008 01:37:22 - Issue 5222 Topics (messages 266837 through 266862): Re: First stupid post of the year. [SOLVED] 266837 by: tedd 266838 by: Zoltán Németh 266840 by: Robert Cummings 266846 by: tedd 266850 by: tedd utf-8 in

[PHP] how can i use zend framework view helper in smarty?

2008-01-07 Thread Wan Chaowei
hello all: my boss want use zend framework with smarty. if i don't use view helper in smarty, it's easy to do it, but how can i use zend framework view helper in smarty? thanks All! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Byte Size of an array

2008-01-07 Thread Sancar Saran
Hello, I just wonder to how can I find a memory size of an array. Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how can i use zend framework view helper in smarty?

2008-01-07 Thread Wan Chaowei
hello all: my boss want use zend framework with smarty. if i don't use view helper in smarty, it's easy to do it, but how can i use zend framework view helper in smarty? thanks All! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delete rows from database

2008-01-07 Thread Jim Lucas
Balasubramanyam A wrote: Hi all, I'm searching names from MySQL and printing it on a browser. Also, I've provided checkbox for all the rows and a delete button for a page. I want to delete the selected rows from MySQL when I click on the Delete button. How do I do that? Here is the code which

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread Nisse Engström
On Sun, 6 Jan 2008 11:28:55 -0500, tedd wrote: At 11:04 PM +0100 1/5/08, Nisse Engström wrote: The page encoding is determined by the HTTP `Content-Type:´ header. Period. A meta element may provide hints to a browser if the HTTP header is missing (eg. when saving a page to disc). In the

[PHP] Float Value Parse Problem

2008-01-07 Thread Cyril Chacko
Hi, I have created a class and passing a float value to a method in it. I have checked the the argument values in the method. The passed argument has the proper value. However, on any arithmetic operation the float as a whole is rounded off. System Information : Operating System : Windows

Re: [PHP] Re: DOMDocument-getElementById() isn't working

2008-01-07 Thread Christoph Boget
that one of the nodes has an id of 'custom'. However, when I try to get the element directly using getElementById(), it doesn't return the node properly. Am I doing something wrong? A common problem. See here: http://wiki.flux-cms.org/display/BLOG/GetElementById+Pitfalls Probably

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread tedd
At 12:03 PM +0100 1/7/08, Nisse Engström wrote: How does the following pages compare? The display should be identical: http://luden.se/test/t-1252.html http://luden.se/test/t-utf8.html Nisse: No, there is quite a difference depending upon the text encoding used in my browser (Safari). For

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread Zoltán Németh
2008. 01. 7, hétfő keltezéssel 10.29-kor tedd ezt írta: At 12:03 PM +0100 1/7/08, Nisse Engström wrote: How does the following pages compare? The display should be identical: http://luden.se/test/t-1252.html http://luden.se/test/t-utf8.html Nisse: No, there is quite a difference

[PHP] utf-8 in $_POST

2008-01-07 Thread Olav Mørkrid
hello does php have any built-in functions to convert post data from whatever format it arrives in to whatever format i wish? example: i use iso-8859-1 internally, and even specify accept-charset=iso-8859-1 in my html, but some browsers (phones) send utf-8 anyway. do i have to manually check

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread Robert Cummings
All of these look the same for me in Opera under Linux. Character sets are not a browser war issue, they're a character set/font issue. Just because a character set supports a character, doesn't mean the character font exists. Cheers, Rob. On Mon, 2008-01-07 at 10:29 -0500, tedd wrote: At

Re: [PHP] PHTML files showing as blank pages

2008-01-07 Thread Andy Smith
Hi All, Ok, I have resolved the problem! Interestingly from the index.phtml page I was still unable to get any info even after setting the display errors options as suggested by Brady. I tried connecting direct to some other random .phtml files included in the CDRTool app and I started

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread [EMAIL PROTECTED]
Olav Mørkrid wrote: hello does php have any built-in functions to convert post data from whatever format it arrives in to whatever format i wish? example: i use iso-8859-1 internally, and even specify accept-charset=iso-8859-1 in my html, but some browsers (phones) send utf-8 anyway. do i

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread mike
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 My experience is that this does not affect only the displayed characters, but the way the form fields are transported. But perhaps I am wrong, Iv This works for me as well. Put in utf-8 and you should be good to go. You

[PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread Steve Finkelstein
Hi folks, Probably the most impressive application I've run into for the iPhone has to be Facebook's implementation. I'm looking for ways to improve my application to be as responsive as theirs. Unfortunately it has quite a way to go. Does anyone know how this form of 'routing' works? For

Re: [PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread mike
It's probably using IUI (the iPhone UI CSS/JS that Joe Hewitt created, now being maintained at http://code.google.com/p/iui/) which allows you to request the page to be loaded via AJAX based on how you setup the link. a href=foo.phpthis will load via AJAX/a a href=foo.php target=_selfthis will

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread tedd
At 4:36 PM +0100 1/7/08, Zoltán Németh wrote: 2008. 01. 7, hétf‘ keltezéssel 10.29-kor tedd ezt írta: however, on firefox with encoding auto-detection both page looks correctly and the same. greets Zoltán Németh Not that you are claiming otherwise, but FF will render the pages incorrectly if

Re: [PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread Steve Finkelstein
Thanks for the reply Mike. I suppose ultimately I'd need to dig into the JavaScript (hopefully it's not compressed) to figure out the PHP routing. I believe re-writing my application with the framework would be quite extensive and just not feasible at this particular point in time, although I

Re: [PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread mike
It's -very- easy to use. Just strip your pages down and let the device do a lot of the work (via the IUI CSS/JS) - I converted our WordPress-based site in maybe 15-20 minutes on my first try. It was tricky when loading up the subpages, I figured out the difference between the full-loading pages

[PHP] is_executable() ???

2008-01-07 Thread Al
clearstatcache(); if(is_executable(PATH_TO_SOURCE_DIR . $filename) { code } Always returns true for: foo.jpg foo.php foo.sh And even if I feed it a non existing file. I found one ref that said is_executable() doesn't work in safemode, seems dumb if true. If that's so, how can I test whether

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread tedd
At 10:41 AM -0500 1/7/08, Robert Cummings wrote: Character setsare not a browser war issue, they're a character set/font issue. Just because a character set supports a character, doesn't mean the character font exists. Cheers, Rob. Rob: What I meant by browser wars was that there is a

[PHP] global address collection

2008-01-07 Thread tedd
Hi: What would be a good form (i.e., fields) for collecting global addresses and phone numbers? In other words, in the USA we ask for name, address, city, state, zip, and phone number. What would be a global equivalent that could cover all (or most) address and phone numbers? Cheers,

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread Olav Mørkrid
i specify iso-8859-1 in both header and body: meta http-equiv=Content-type content=text/html; charset=iso-8859-1/ form action=/ method=post accept-charset=iso-8859-1 if two different people post the norwegian phrase Godt nytt år (happy new year), it may appear in the following variations:

Re: [PHP] global address collection

2008-01-07 Thread Nathan Nobbe
On Jan 7, 2008 1:13 PM, tedd [EMAIL PROTECTED] wrote: Hi: What would be a good form (i.e., fields) for collecting global addresses and phone numbers? In other words, in the USA we ask for name, address, city, state, zip, and phone number. What would be a global equivalent that could cover

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread mike
maybe look at iconv functions but the meta content-type is the only thing i set, and it works 100% fine. all javascripts, forms, etc. inherit it from the looks of it properly. On 1/7/08, Olav Mørkrid [EMAIL PROTECTED] wrote: i specify iso-8859-1 in both header and body: meta

[PHP] ./configure APC problems with 3.0.16 and what happened to --enable-apc-pthreadmutex???

2008-01-07 Thread steve
When configuring APC 3.0.16 I see this, which I don't recall seeing before: checking dlfcn.h presence... no configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: dlfcn.h: proceeding with the compiler's result checking for dlfcn.h... yes Also

[PHP] Re: ./configure APC problems with 3.0.16 and what happened to --enable-apc-pthreadmutex???

2008-01-07 Thread steve
I take it back.. if I use --enable-apc-pthreadmutex I get file locks, but if I don't use the option at all, I get pthreadmutexes. I'm guessing pthead became the new default? On Jan 7, 2008 1:59 PM, steve [EMAIL PROTECTED] wrote: When configuring APC 3.0.16 I see this, which I don't recall

Re: [PHP] global address collection

2008-01-07 Thread Richard Heyes
In other words, in the USA we ask for name, address, city, state, zip, and phone number. What would be a global equivalent that could cover all (or most) address and phone numbers? Full name (optionally forename/surname) Address 1 Address 2 (optional) Address 3 (optional) Town/City

Re: [PHP] is_executable() ???

2008-01-07 Thread Chris
Al wrote: clearstatcache(); if(is_executable(PATH_TO_SOURCE_DIR . $filename) { code } Always returns true for: foo.jpg foo.php foo.sh And even if I feed it a non existing file. Really? ?php $file = 'blah.de.blah'; echo 'file exists: ' . is_file($file) . \n; echo 'is exec: ' .

Re: [PHP] is_executable() ???

2008-01-07 Thread Richard Lynch
is_executable() does not check whether a file's contents will do something useful (or dangerous, depending on one's viewpoint) when you execute the file. It just checks if the file has been set as executable with http://php.net/chmod ANY file with ANY extension, or NO extension at all, can be an

[PHP] passing _GET values to _POST

2008-01-07 Thread Mary Anderson
Hi all, I have a screen get_collection.php which is supposed to be used to select something called 'data sets'. My database (the postgres database is not the problem, PHP is) has an entity called 'data series' which has a child entity called 'data sets'. The user is first shown a list of

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread Larry Garfield
I have to ask... WHY are you forcing ISO-8859-1? If anything, you should be forcing UTF-8. Then you can send, receive, and store data in UTF-8 ad cover most human languages without having to change character set. On Monday 07 January 2008, Olav Mørkrid wrote: i specify iso-8859-1 in both

Re: [PHP] passing _GET values to _POST

2008-01-07 Thread Richard Lynch
On Mon, January 7, 2008 7:20 pm, Mary Anderson wrote: EVERY http request is totally separate and independent of any other http request, unless YOU specifically code something in the URL or SESSION to tie them together. I thought I could just give re_reference_id to get_collection as an

Re: [PHP] is_executable() ???

2008-01-07 Thread Anup Shukla
Al wrote: clearstatcache(); if(is_executable(PATH_TO_SOURCE_DIR . $filename) { code } is_executable() will only tell if the execute bit is set for the provided file. Always returns true for: foo.jpg foo.php foo.sh And even if I feed it a non existing file. Checking on a non-existing

Re: [PHP] Byte Size of an array

2008-01-07 Thread Chris
Sancar Saran wrote: Hello, I just wonder to how can I find a memory size of an array. wild guess echo strlen(serialize($array)); /wild guess -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] how can i use zend framework view helper in smarty?

2008-01-07 Thread Chris
Wan Chaowei wrote: hello all: my boss want use zend framework with smarty. if i don't use view helper in smarty, it's easy to do it, but how can i use zend framework view helper in smarty? Probably best to ask the zend-framework list(s): http://framework.zend.com/community -- Postgresql

Re: [PHP] Float Value Parse Problem

2008-01-07 Thread Chris
Cyril Chacko wrote: Hi, I have created a class and passing a float value to a method in it. I have checked the the argument values in the method. The passed argument has the proper value. However, on any arithmetic operation the float as a whole is rounded off. http://php.net/float There is

Re: [PHP] ./configure APC problems with 3.0.16 and what happened to --enable-apc-pthreadmutex???

2008-01-07 Thread Chris
steve wrote: When configuring APC 3.0.16 I see this, which I don't recall seeing before: checking dlfcn.h presence... no configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: dlfcn.h: proceeding with the compiler's result checking for