[PHP] trigger_error() problems

2007-09-27 Thread Alexander A Miroch
Hi, my php is 5.2.4 compiled in apache1.3.37 as module I have some trouble with trigger_error function code I get 500 error status (Internal server error) and a record in my error log. And this returns 200 and I have no message in my error log. is it ok ? Thanks. -- Alexander A Miroch -- PHP

Re: [PHP] SimpleXMLElement is not Simple

2007-09-27 Thread Jeffery Fernandez
On Friday 28 September 2007 11:09, Nathan Nobbe wrote: > just curious, what database are you using? I am using MySQL Ver 14.12 Distrib 5.0.22 cheers, Jeffery > > -nathan > > On 9/27/07, Jeffery Fernandez <[EMAIL PROTECTED]> wrote: > > I am having nightmares with this bit off code. > > > > The fol

Re: [PHP] SimpleXMLElement is not Simple

2007-09-27 Thread Nathan Nobbe
just curious, what database are you using? -nathan On 9/27/07, Jeffery Fernandez <[EMAIL PROTECTED]> wrote: > > I am having nightmares with this bit off code. > > The following code work perfectly fine: > > $soap_request_string = << > http://www.w3.org/2003/05/soap-envelope"; > xmlns:ns1="urn:Ga

Re: [PHP] counting with leading zeros

2007-09-27 Thread brian
tedd wrote: At 3:58 PM -0400 9/26/07, brian wrote: Well, this is almost precisely the same thing i have, save for using POSIX character classes, str_pad instead of sprintf(), and incrementing elsewhere. What i was really wondering is if there was a *much simpler* way to do this, not just re-

[PHP] SimpleXMLElement is not Simple

2007-09-27 Thread Jeffery Fernandez
I am having nightmares with this bit off code. The following code work perfectly fine: $soap_request_string = << http://www.w3.org/2003/05/soap-envelope"; xmlns:ns1="urn:Gateway_Proxy" xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:en

Re: [PHP] want to learn about zend

2007-09-27 Thread Tijnema
On 9/27/07, Gonzalo PHPFan <[EMAIL PROTECTED]> wrote: > hello people anyone know a good tutorial to learn the basics of zend, how it > works and how to use? > > Regards, > Gonzalo > Google: "Zend Basics" First result: Understanding the Zend Framework, Part 1: The basics www.ibm.com/developerworks/

[PHP] Curl Timeout causing Firefox to Download PHP File ?!?

2007-09-27 Thread Rahul Sitaram Johari
Ave, I¹m not sure what¹s causing the problem, but I have a feeling that its¹ a timeout issue. I have a curl function that retrieves specific data from a remote webpage. The script works fine on my localhost, but when I upload it to my remote server, the script tries to execute, but 10 ­ 15 second

[PHP] want to learn about zend

2007-09-27 Thread Gonzalo PHPFan
hello people anyone know a good tutorial to learn the basics of zend, how it works and how to use? Regards, Gonzalo

Re: [PHP] Re: languages and PHP

2007-09-27 Thread Per Jessen
Edward Vermillion wrote: > ... and you can guarantee that any data coming into your site comes > from your form?!? WOW!!! > > ;) > > So back to my original question, what breaks if you're *expecting* > UTF-8 and you don't *get* UTF-8? As long as my server isn't vulnerable to it, I couldn't care

Re: [PHP] Re: languages and PHP

2007-09-27 Thread Edward Vermillion
On Sep 27, 2007, at 1:49 PM, Per Jessen wrote: Edward Vermillion wrote: But what happens if you get data that's *not* UTF-8? Just because your html/form is set to UTF-8 doesn't mean that all your incoming data will be UTF-8. Yes it does. If your HTML page was sent in UTF-8, any request orig

Re: [PHP] Re: languages and PHP

2007-09-27 Thread mike
On 9/27/07, Edward Vermillion <[EMAIL PROTECTED]> wrote: > But what happens if you get data that's *not* UTF-8? Just because > your html/form is set to UTF-8 doesn't mean that all your incoming > data will be UTF-8. just my experience, but as long as it has the meta tag w/ utf-8 in it, the browse

Re: [PHP] Re: languages and PHP

2007-09-27 Thread Per Jessen
Edward Vermillion wrote: > But what happens if you get data that's *not* UTF-8? Just because > your html/form is set to UTF-8 doesn't mean that all your incoming > data will be UTF-8. Yes it does. If your HTML page was sent in UTF-8, any request originating from that page will also be in UTF8.

Re: [PHP] Re: languages and PHP

2007-09-27 Thread Per Jessen
Colin Guthrie wrote: > Per Jessen wrote: >> I work almost exclusively in UTF-8 (language irrelevant), but I've >> never had to do any of the above. The mb_convert_encoding() >> fromUTF-8 to UTF-8 doesn't seem to make much sense? > > I agree. Provided you HTML is dished out with UTF-8 in the doct

Re: [PHP] Re: languages and PHP

2007-09-27 Thread Edward Vermillion
On Sep 27, 2007, at 10:09 AM, Colin Guthrie wrote: Per Jessen wrote: David Christopher Zentgraf wrote: Your biggest problem will be if you accept any kind of user input which could be in any kind of language. Depending on your server configuration you'll probably have some serious cleaning a

Re: [PHP] Re: PDOStatement execute memory issue?

2007-09-27 Thread Carlton Whitehead
Hi Colin, The MS documentation says the image type can hold up to 2GB: http://technet.microsoft.com/en-us/library/ms187993.aspx It appears someone beat me to filing a bug report about this: http://bugs.php.net/bug.php?id=42765 I guess that's that for now until this gets fixed. Regards, Carlto

RE: [PHP] Conditional jump menu

2007-09-27 Thread Jay Blanchard
[snip] Does anyone know how to create a field based on a menu choice? When the menu is selected, then another field is created with an associated number. For instance: Selection = Collie Field = 1 Selection = AkitaField = 2 [/snip] Javascript, DHTML, and AJAX -- PHP General Mailing List

[PHP] Conditional jump menu

2007-09-27 Thread Steve Marquez
Does anyone know how to create a field based on a menu choice? When the menu is selected, then another field is created with an associated number. For instance: Selection = Collie Field = 1 Selection = AkitaField = 2 And so on... Thanks, -- Steve M.

Re: [PHP] PDOStatement execute memory issue?

2007-09-27 Thread Carlton Whitehead
The problem is isolated to PDO ODBC -- old school ODBC works fine. Below are my test cases. Plain old ODBC: $stp = 'SELECT attdata FROM fm_faxin_att WHERE id = 11908591344 AND attid = 0'; // statement to prepare $ps = odbc_prepare($res, $stp); if (!$res) { die ('failed to prepare stateme

[PHP] Re: languages and PHP

2007-09-27 Thread Colin Guthrie
Per Jessen wrote: > David Christopher Zentgraf wrote: > >> Your biggest problem will be if you accept any kind of user input >> which could be in any kind of language. >> Depending on your server configuration you'll probably have some >> serious cleaning and filtering to do. >> I often have to em

Re: [PHP] simple product selection guide

2007-09-27 Thread tedd
At 12:07 PM -0400 9/26/07, David wrote: This is probably pretty basic but : I'd like to create a page where the end result is the product(s) listed based on certain criteria selected by the user, so I would like a drop down menu or other means that they select from and based on that selection a s

Re: [PHP] problems with donwload

2007-09-27 Thread Jim Lucas
Hulf wrote: Under the results there are 3 files to download. Some users are getting an uable to read or corrupt message. http://vps.aztechost.co.uk/~trisco/index.php and 3 here http://vps.aztechost.co.uk/~trisco/rankings.php The upload script is similar if(isset($_POST['_upload']) && $_

Re: [PHP] languages and PHP

2007-09-27 Thread Per Jessen
David Christopher Zentgraf wrote: > Your biggest problem will be if you accept any kind of user input > which could be in any kind of language. > Depending on your server configuration you'll probably have some > serious cleaning and filtering to do. > I often have to employ this line for example:

Re: [PHP] counting with leading zeros

2007-09-27 Thread tedd
At 10:39 PM -0400 9/26/07, brian wrote: Now you're obviously just trying to be a dickhead. While someone is, it's not Rob. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] counting with leading zeros

2007-09-27 Thread tedd
Robert Cummings wrote: Suit yourself. But better programmer's don't just wave their hands in the air and hope for the best. Ah crap -- there's another technique I have to cross off my list. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PH

Re: [PHP] counting with leading zeros

2007-09-27 Thread tedd
At 3:58 PM -0400 9/26/07, brian wrote: Well, this is almost precisely the same thing i have, save for using POSIX character classes, str_pad instead of sprintf(), and incrementing elsewhere. What i was really wondering is if there was a *much simpler* way to do this, not just re-arranging thing

Re: [PHP] languages and PHP

2007-09-27 Thread David Christopher Zentgraf
Your biggest problem will be if you accept any kind of user input which could be in any kind of language. Depending on your server configuration you'll probably have some serious cleaning and filtering to do. I often have to employ this line for example: foreach (array_keys($_POST) as $key) $c

Re: [PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]

2007-09-27 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Jim Lucas wrote: [EMAIL PROTECTED] wrote: Jim Lucas wrote: [EMAIL PROTECTED] wrote: post_max_size = 10M max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 3600 ; Maximum amount of time each script may spend

Re: [PHP] counting with leading zeros

2007-09-27 Thread Robert Cummings
On Wed, 2007-09-26 at 21:56 -0700, Jim Lucas wrote: > > Now, if you plan to delete any images in the list, this will not work. > > But if you don't expect to delete any images in the list and always want > the ($total_images + 1), then follow along. > > > function getNextImage($path, $prefix)

Re: [PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]

2007-09-27 Thread edwardspl
Jim Lucas wrote: >[EMAIL PROTECTED] wrote: > > >>Jim Lucas wrote: >> >> >> >>>[EMAIL PROTECTED] wrote: >>> >>> >>> post_max_size = 10M max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 3600 ; Maximum amount of time each scrip

Re: [PHP] languages and PHP

2007-09-27 Thread Angelo Zanetti
Per Jessen wrote: Paul Scott wrote: On Thu, 2007-09-27 at 12:15 +0200, Angelo Zanetti wrote: What are the implications of having a site that has many different languages, including latin and non latin characters? Keep everything as universal (UTF-8) as possible, and make sure

Re: [PHP] languages and PHP

2007-09-27 Thread Angelo Zanetti
Paul Scott wrote: On Thu, 2007-09-27 at 12:15 +0200, Angelo Zanetti wrote: What are the implications of having a site that has many different languages, including latin and non latin characters? Keep everything as universal (UTF-8) as possible, and make sure that you code for right-t

Re: [PHP] languages and PHP

2007-09-27 Thread Per Jessen
Paul Scott wrote: > > On Thu, 2007-09-27 at 12:15 +0200, Angelo Zanetti wrote: >> What are the implications of having a site that has many different >> languages, including latin and non latin characters? > > Keep everything as universal (UTF-8) as possible, and make sure that > you code for rig

Re: [PHP] languages and PHP

2007-09-27 Thread Paul Scott
On Thu, 2007-09-27 at 12:15 +0200, Angelo Zanetti wrote: > What are the implications of having a site that has many different > languages, including latin and non latin characters? Keep everything as universal (UTF-8) as possible, and make sure that you code for right-to-left languages as well.

[PHP] languages and PHP

2007-09-27 Thread Angelo Zanetti
Hi all. this is more of a general question but Im sure some people will have experience and also it will be useful to others who are looking for the same answers as I am. What are the implications of having a site that has many different languages, including latin and non latin characters?

[PHP] problems with donwload

2007-09-27 Thread Hulf
Under the results there are 3 files to download. Some users are getting an uable to read or corrupt message. http://vps.aztechost.co.uk/~trisco/index.php and 3 here http://vps.aztechost.co.uk/~trisco/rankings.php The upload script is similar if(isset($_POST['_upload']) && $_FILES['userfil

[PHP] freopen?

2007-09-27 Thread Per Jessen
Is there no freopen function in php? I need to redirect stdin to a filename - outside of a shell so I can't use a plain < redirect). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] move_uploaded_file permission problem under php5

2007-09-27 Thread Torsten Rosenberger
Hey when i upload a file with the move_uploaded_file function the perm on the uploaded file is 0600 the same work with copy the result ist 0644 with php4 the result was always the same and know with php5 it is diffrent i serached in the bug list and found this in the link below and it is not a b

[PHP] Re: PDOStatement execute memory issue?

2007-09-27 Thread Colin Guthrie
Carlton Whitehead wrote: > Is something causing the memory allocation > to loop until it reaches this maximum value? I don't think so as the 4GB value is mentioned in the error message. Usually when memory is exhausted in a loop it will say "(tried to allocate 100 bytes)" - e.g. a little amount.

Re: [PHP] trouble trying to connect to gmail server.

2007-09-27 Thread Tom Chubb
This may not be relevant as I'm only glancing over this as I have to leave for a meeting, but you have to enable POP access in Gmail before you can download to another email client like Thunderbird or Outlook, so maybe the same applies? Anyway, I'm looking to find a way of accessing my gmail as I a