Re: [PHP] Clearing POST variable on page refresh

2006-12-18 Thread Jochem Maas
Beauford wrote: Hi, I have a page with a form on it which posts to itself. The problem is when someone refreshes the page it enters the data into the DB again. How do I clear these variables so that doesn't happen. I tried the unset function, but no luck. I really don't want to use sessions

Fwd: [PHP] Problems with Zip+IE6

2006-12-18 Thread Javier Ruiz
Apologies... forgot to CC to the list... -- Forwarded message -- From: Javier Ruiz [EMAIL PROTECTED] Date: Dec 18, 2006 11:25 AM Subject: Re: [PHP] Problems with Zip+IE6 To: [EMAIL PROTECTED] Hi, Nah, the only thing I'm trying to do is to serve a regular zip file to the user of

[PHP] config error

2006-12-18 Thread Simon Forster
Hi I'm trying to get PHP to build and keep on getting an error: configure: error: mysql configure failed. Please check config.log for more information. FWIW, I'm trying to install on Mac OS Server 10.3.9 with the following options: ./configure --prefix=/usr/local/php5 --with-apxs

Re: [PHP] config error

2006-12-18 Thread Jochem Maas
Simon Forster wrote: Hi I'm trying to get PHP to build and keep on getting an error: configure: error: mysql configure failed. Please check config.log for more information. FWIW, I'm trying to install on Mac OS Server 10.3.9 with the following options: ./configure

Re: [PHP] $POST Q

2006-12-18 Thread Nisse Engström
On Fri, 15 Dec 2006 23:22:13 -0600 (CST), Richard Lynch wrote: $selected = $l == $limit ? 'selected=selected' : ''; echo option value=\$l\ $selected$l/option\n; [snip] The value=x *is* optional, but you'll never convince the people who tell you it isn't, unless you force them to

[PHP] Php Error Output Redirection

2006-12-18 Thread Sancar Saran
Hi, Is anyone know that errors generated by php (like Notice: Uninitialized string offset: 0 in ...) may stored in a php variable and print out later ? I want to put them some other location and show them in a debug window. I do this for my error reporting and I could not manage how to do with

Re: [PHP] Php Error Output Redirection

2006-12-18 Thread Saqib Ali
Use the set_error_handle function: http://us2.php.net/manual/en/function.set-error-handler.php saqib http://www.full-disk-encryption.net On 12/18/06, Sancar Saran [EMAIL PROTECTED] wrote: Hi, Is anyone know that errors generated by php (like Notice: Uninitialized string offset: 0 in ...) may

Re: [PHP] Php Error Output Redirection

2006-12-18 Thread Jochem Maas
Sancar Saran wrote: Hi, Is anyone know that errors generated by php (like Notice: Uninitialized string offset: 0 in ...) may stored in a php variable and print out later ? I want to put them some other location and show them in a debug window. I do this for my error reporting and I

Re: [PHP] config error

2006-12-18 Thread Simon Forster
On 18 Dec 2006, at 11:05, Jochem Maas wrote: do you need mysql and mysqli? have you tried the configure line wirth the following?: --with-mysql --with-mysqli what version of mysql do you have intalled? mysqli may not compile because your mysql server is too old. Thanks for the

Re: [PHP] config error

2006-12-18 Thread Jochem Maas
Simon Forster wrote: On 18 Dec 2006, at 11:05, Jochem Maas wrote: do you need mysql and mysqli? have you tried the configure line wirth the following?: --with-mysql --with-mysqli what version of mysql do you have intalled? mysqli may not compile because your mysql server is too old.

RE: [PHP] Clearing POST variable on page refresh

2006-12-18 Thread Brad Fuller
-Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 3:39 AM To: Beauford Cc: PHP Subject: Re: [PHP] Clearing POST variable on page refresh Beauford wrote: Hi, I have a page with a form on it which posts to itself. The problem is

Re: [PHP] Clearing POST variable on page refresh

2006-12-18 Thread Jochem Maas
Brad Fuller wrote: -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 3:39 AM To: Beauford Cc: PHP Subject: Re: [PHP] Clearing POST variable on page refresh Beauford wrote: Hi, I have a page with a form on it which posts to itself. The

Re: [PHP] config error

2006-12-18 Thread Simon Forster
On 18 Dec 2006, at 14:00, Jochem Maas wrote: Thanks for the suggestions. Stripped back the configure options, made a couple of other tweaks and got it to compile. you mean you got it to configure, right? Oops. Sloppy. You're right of course. Got it to configure. Then it failed on make.

RE: [PHP] Clearing POST variable on page refresh

2006-12-18 Thread Robert Cummings
On Mon, 2006-12-18 at 09:34 -0500, Brad Fuller wrote: -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 3:39 AM To: Beauford Cc: PHP Subject: Re: [PHP] Clearing POST vari My way of getting around this has been to put the data

[PHP] Recomended host

2006-12-18 Thread R B
Hello. I'm looking for a host to put my website. I was looking godaddy.com, but i read in phplist forum that godaddy have limitations in the number of mail to send per day. Someone can recomend me a good host provider, with good stability, good support, good features, and no limitation in the

Re: [PHP] cannot quiet notice error

2006-12-18 Thread Youri LACAN-BARTLEY
Gonzalo Gorosito wrote: Hello friends, I have a little problem with the error_reporting in my php.ini Every time I get errors like this: Notice: Undefined index: userData in /var/www/devzone/megacam/inc/functions.php on line And here is my php.ini:

RE: [PHP] cannot quiet notice error

2006-12-18 Thread Gonzalo Gorosito
List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Información de NOD32, revisión 1925 (20061218) __ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] config error

2006-12-18 Thread Jochem Maas
Simon Forster wrote: On 18 Dec 2006, at 14:00, Jochem Maas wrote: Thanks for the suggestions. Stripped back the configure options, made a couple of other tweaks and got it to compile. you mean you got it to configure, right? Oops. Sloppy. You're right of course. Got it to configure.

Re: [PHP] cannot quiet notice error

2006-12-18 Thread Jochem Maas
Gonzalo Gorosito wrote: I tried to do this: error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR and this: error_reporting = E_ERROR and the php still display notices :( phpinfo() will probably show that either you are editing the wrong php.ini, that you forgot to restart your

Re: [PHP] cannot quiet notice error

2006-12-18 Thread Sumeet
how can I do to shut up these f** notices? :$ error_reporting( 0 ); -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] cannot quiet notice error

2006-12-18 Thread Robert Cummings
On Mon, 2006-12-18 at 21:28 +0530, Sumeet wrote: how can I do to shut up these f** notices? :$ error_reporting( 0 ); Or preferably he could learn to code :/ Putting hands over ears while singing lalalalallalala at the top of your voice isn't a solution. Cheers, Rob. --

Re: [PHP] Recomended host

2006-12-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-18 08:56:09 -0600: Someone can recomend me a good host provider, with good stability, good support, good features, and no limitation in the use of a list of members...? Mailing list hosting queries are OT on [EMAIL PROTECTED] -- How many Vietnam vets does it

Re: [PHP] Php Error Output Redirection

2006-12-18 Thread Sancar Saran
On Monday 18 December 2006 15:39, Jochem Maas wrote: Sancar Saran wrote: Hi, Is anyone know that errors generated by php (like Notice: Uninitialized string offset: 0 in ...) may stored in a php variable and print out later ? I want to put them some other location and show them in a

Re: [PHP] Php Error Output Redirection

2006-12-18 Thread Robert Cummings
On Mon, 2006-12-18 at 20:55 +0200, Sancar Saran wrote: Oh really? so where is my spy-adware windows trojan prize ? Thank you Jochem, asking you always easy than the searching documentation and I always wonder what can I do without you and your great comments :). I promise, next time

Re: [PHP] cannot quiet notice error

2006-12-18 Thread Richard Lynch
On Mon, December 18, 2006 8:39 am, Gonzalo Gorosito wrote: I have a little problem with the error_reporting in my php.ini Every time I get errors like this: Notice: Undefined index: userData in /var/www/devzone/megacam/inc/functions.php on line And here is my php.ini: error_reporting =

Re: [PHP] $POST Q

2006-12-18 Thread Richard Lynch
On Mon, December 18, 2006 7:09 am, Nisse Engström wrote: On Fri, 15 Dec 2006 23:22:13 -0600 (CST), Richard Lynch wrote: $selected = $l == $limit ? 'selected=selected' : ''; echo option value=\$l\ $selected$l/option\n; [snip] The value=x *is* optional, but you'll never convince the

Re: [PHP] $POST Q

2006-12-18 Thread Jochem Maas
Richard Lynch wrote: On Mon, December 18, 2006 7:09 am, Nisse Engström wrote: On Fri, 15 Dec 2006 23:22:13 -0600 (CST), Richard Lynch wrote: $selected = $l == $limit ? 'selected=selected' : ''; echo option value=\$l\ $selected$l/option\n; [snip] The value=x *is* optional, but

Re: [PHP] Recomended host

2006-12-18 Thread tedd
At 7:29 PM + 12/18/06, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-18 08:56:09 -0600: Someone can recomend me a good host provider, with good stability, good support, good features, and no limitation in the use of a list of members...? Mailing list hosting queries are OT on

Re: [PHP] simplest way in php to get our content on another site / included javascript question

2006-12-18 Thread Richard Lynch
On Sun, December 17, 2006 8:44 pm, jonathan wrote: I'm working on a project where we'd want partner sites to get our content on the other web sites. Might I suggest that you support several options?... A key priority is that they won't have much technical sophistication (probably no db

Re: [PHP] Clearing POST variable on page refresh

2006-12-18 Thread Richard Lynch
On Sun, December 17, 2006 4:59 pm, Beauford wrote: I have a page with a form on it which posts to itself. The problem is when someone refreshes the page it enters the data into the DB again. How do I clear these variables so that doesn't happen. I tried the unset function, but no luck. I

Re: [PHP] problem with imagecreate on new webserver

2006-12-18 Thread Richard Lynch
On Sat, December 16, 2006 2:53 pm, [EMAIL PROTECTED] wrote: i am moving my webserver from a windows box to a linux box with php ver 5.2.0 and noticed i am having a problem with a php file(code below). i thought it was a module i was missing but looking at the php config file all the same

Re: [PHP] problem loading phpinfo

2006-12-18 Thread Richard Lynch
You didn't actually install PHP correctly. Check your httpd error.log file -- You may need to restart Apache and check the log to get the error messages it spews out at start up if you've had it going with a bunch of other messages clogging up the log (e.g., Missing robots.txt, missing

Re: [PHP] Recomended host

2006-12-18 Thread tg-php
I'm going to be controversial here and take issue with both of you. 1. The original question was about a hosting provider. Presumably a PHP web hosting provider. So it is vaguely on-topic and is a question that's asked a lot. It's easy to get a list of hosting providers online, but I believe

Re: [PHP] Recomended host

2006-12-18 Thread tg-php
I'm going to be controversial here and take issue with both of you. 1. The original question was about a hosting provider. Presumably a PHP web hosting provider. So it is vaguely on-topic and is a question that's asked a lot. It's easy to get a list of hosting providers online, but I believe

Re: [PHP] Problems with Zip+IE6

2006-12-18 Thread Richard Lynch
On Sat, December 16, 2006 6:17 am, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-15 22:55:54 -0600: On Tue, December 12, 2006 11:04 am, Frank M. Kromann wrote: if you use: header(Content-Type: application/zip); header(Content-Disposition: attachment; filename=\somefile.zip\);

Re: [PHP] php redirection..

2006-12-18 Thread Richard Lynch
On Sat, December 16, 2006 5:58 am, Stut wrote: Casey Chu wrote: Well... They skip all !-- --'s, so they skip script!-- //--/script's. And you *know* this how? They may well skip comments in terms of what content actually gets indexed, but I would expect their indexer is smart enough to

Re: [PHP] php redirection..

2006-12-18 Thread Richard Lynch
On Mon, December 18, 2006 12:08 am, Chris Shiflett wrote: Richard Lynch wrote: The old school HTTP-EQUIV of a refresh with a time and URL would probably be suitable for this. YMMV And it's still not PHP. :-) It is if you use header(). :-) You mean Refresh is a real header? I always

[PHP] DOMDocument Size limit

2006-12-18 Thread Chris W
When calling |-createElement($name, $value) My content is truncated to around 4k. If what is in $value is less than 4000 bytes then it works fine but if it is more, the data is truncated. Is there a setting I don't know about that will change that limit? I need it to be more like 100k or

Re: [PHP] How php works?

2006-12-18 Thread Richard Lynch
On Sat, December 16, 2006 6:24 am, Robert Cummings wrote: On Sat, 2006-12-16 at 19:58 +0800, Kai Xiang wrote: On 12/16/06, Richard Lynch [EMAIL PROTECTED] wrote: (*) Actually, if somebody wants to embed the ZE inside of something other than PHP, then I think Zend expects to get paid for

Re: [PHP] Recomended host

2006-12-18 Thread Jochem Maas
[EMAIL PROTECTED] wrote: I'm going to be controversial here and take issue with both of you. 1. The original question was about a hosting provider. Presumably a PHP web hosting provider. So it is vaguely on-topic and is a question that's asked a lot. It's easy to get a list of hosting

Re: [PHP] DOMDocument Size limit

2006-12-18 Thread Jochem Maas
Chris W wrote: When calling |-createElement($name, $value) My content is truncated to what version of php? what version of libxml? around 4k. If what is in $value is less than 4000 bytes then it works is the limit actually 4096 bytes per chance? (that seems more likely) what happens when

Re: [PHP] imap_open('/path/to/mbox', '', '')

2006-12-18 Thread Richard Lynch
On Sat, December 16, 2006 4:02 am, Jochem Maas wrote: Richard Lynch wrote: I'm having trouble with Windows imap_open. I have the exact same mbox on a Linux box, with the exact same PHP code opening it just fine. I FTP (binary) to the Windows box (and a second time to be sure it wasn't an

RE: [PHP] Clearing POST variable on page refresh

2006-12-18 Thread Beauford
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: December 18, 2006 3:46 PM To: Beauford Cc: PHP Subject: Re: [PHP] Clearing POST variable on page refresh On Sun, December 17, 2006 4:59 pm, Beauford wrote: I have a page with a form on it which posts to

Re: [PHP] imap_open('/path/to/mbox', '', '')

2006-12-18 Thread Jochem Maas
Richard Lynch wrote: On Sat, December 16, 2006 4:02 am, Jochem Maas wrote: Richard Lynch wrote: I'm having trouble with Windows imap_open. ... http://bugs.php.net/bug.php?id=39880 Looks like it's time to just dual boot and abandon Windows. (again). :-v ouch. one day you'll have a

[PHP] New windows build

2006-12-18 Thread Edin Kadribasic
Hello all, Since we will soon be switching to the new Microsoft compiler for making official PHP builds I have created a couple test builds to see how it goes. There were some initial problems and we do have to adjust things in the build to accommodate for changes of how the C++ redistributable

Re: [PHP] New windows build

2006-12-18 Thread Jürgen Wind
edink wrote: Hello all, Since we will soon be switching to the new Microsoft compiler for making official PHP builds I have created a couple test builds to see how it goes. There were some initial problems and we do have to adjust things in the build to accommodate for changes of how

Re: [PHP] How php works?

2006-12-18 Thread Robert Cummings
On Mon, 2006-12-18 at 15:20 -0600, Richard Lynch wrote: On Sat, December 16, 2006 6:24 am, Robert Cummings wrote: On Sat, 2006-12-16 at 19:58 +0800, Kai Xiang wrote: On 12/16/06, Richard Lynch [EMAIL PROTECTED] wrote: (*) Actually, if somebody wants to embed the ZE inside of something

Re: [PHP] Recomended host

2006-12-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-18 15:50:07 -0500: I'm going to be controversial here and take issue with both of you. 1. The original question was about a hosting provider. Presumably a PHP web hosting provider. The mail again: # [EMAIL PROTECTED] / 2006-12-18 08:56:09 -0600: : Hello. : I'm

Re: [PHP] Problems with Zip+IE6

2006-12-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-18 15:00:48 -0600: On Sat, December 16, 2006 6:17 am, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-15 22:55:54 -0600: On Tue, December 12, 2006 11:04 am, Frank M. Kromann wrote: if you use: header(Content-Type: application/zip);

[PHP] Search Results Accuracy

2006-12-18 Thread zoticaic
Hello, I'm just wondering, from a list of search results from a database query, how do we trim down and return the most accurate one? Hints, links and suggestions are most welcome. TIA Jervin -- Outsource Now | GetAFreelancer http://www.getafreelancer.com/affiliates/shockx/

Re: [PHP] How php works?

2006-12-18 Thread Larry Garfield
On Monday 18 December 2006 15:20, Richard Lynch wrote: Put it this way: In 2000, if somebody wanted to embed the ZE in a commercial product, Zend was planning on charging for it. I dunno what their license for the ZE reads like today, and I wasn't authorized to speak on this topic for them

[PHP] ob_flush() possible memory leak in Apache

2006-12-18 Thread Chris Miller
Server Specs CentOS 4.4 Apache 2.0.52 (httpd-2.0.52-28.ent.centos4) PHP 5.1.6 (php-5.1.6-1.2.centos) PHP running as Apache Module. Simple script reads a file in (mp3 or other binary file) and spits out to browser. Upon completion, memory consumption of the Apache child rises

Re: [PHP] php redirection..

2006-12-18 Thread Chris Shiflett
Richard Lynch wrote: You mean Refresh is a real header? Yeah, although if I remember correctly, the W3C really dislikes people using it for redirection instead of just refreshing the current URL. If that's the case, however, why can we indicate the URL at all? :-) A few years ago, someone

[PHP] ECHO

2006-12-18 Thread Fahad Pervaiz
ECHO is a language construct but still is there any work around to override it or change its functionality???

Re: [PHP] ECHO

2006-12-18 Thread Casey Chu
Why do you need to change its functionality? On 12/18/06, Fahad Pervaiz [EMAIL PROTECTED] wrote: ECHO is a language construct but still is there any work around to override it or change its functionality??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: ECHO

2006-12-18 Thread Fahad Pervaiz
I have written a framework for internationalization. Now i have incoorperate it into and existing system that is huge and it will take alot of time to change ECHO to a function call, so i want to override its implementation so that i can use it for my own purposes with having to change all the

Re: [PHP] Re: ECHO

2006-12-18 Thread Casey Chu
You could try to manipulate what the echo's output by ob_start(), etc. Or maybe you could change the standard output? On 12/18/06, Fahad Pervaiz [EMAIL PROTECTED] wrote: I have written a framework for internationalization. Now i have incoorperate it into and existing system that is huge and it

[PHP] Re: ECHO

2006-12-18 Thread Fahad Pervaiz
Manipulating out with Output Control Functions sounds a good idea but it can become cumbersome. Do you know any good methods to control standard output?? On 12/19/06, Casey Chu [EMAIL PROTECTED] wrote: You could try to manipulate what the echo's output by ob_start(), etc. Or maybe you could

[PHP] heredoc

2006-12-18 Thread clr
Please can someone advise me on heredoc and its shortcommings, I am designing a complex site and elected to use DIV's as opposed to frames. Heredoc seems to be ideal in that I can do all processing first and then layout with relative ease. I was wondering if it was acceptable to use and

RE: [PHP] Search Results Accuracy

2006-12-18 Thread zoticaic
Hi, I'm not really sure which is the best path to go but let me give you an example scenario : 1. We already have a database of varchar data : +---+ | links |

Re: [PHP] DOMDocument Size limit

2006-12-18 Thread Chris W
Jochem Maas wrote: what version of php? what version of libxml? php: 5.2.0 libxml: 2.6.26 is the limit actually 4096 bytes per chance? (that seems more likely) the limit is probably 4096 but I think it may be due to the length of tags and other things not just the value. what happens

Re: [PHP] ECHO

2006-12-18 Thread Chris
Fahad Pervaiz wrote: ECHO is a language construct but still is there any work around to override it or change its functionality??? Nope. You're stuck with how it works now. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] heredoc

2006-12-18 Thread Chris
clr wrote: Please can someone advise me on heredoc and its shortcommings, I am designing a complex site and elected to use DIV's as opposed to frames. Heredoc seems to be ideal in that I can do all processing first and then layout with relative ease. I was wondering if it was acceptable to

Re: [PHP] heredoc

2006-12-18 Thread Paul Novitski
At 12/18/2006 10:14 PM, clr wrote: Please can someone advise me on heredoc and its shortcommings, I am designing a complex site and elected to use DIV's as opposed to frames. Heredoc seems to be ideal in that I can do all processing first and then layout with relative ease. I was wondering

Re: [PHP] Re: ECHO

2006-12-18 Thread Paul Novitski
On 12/18/06, Fahad Pervaiz [EMAIL PROTECTED] wrote: I have written a framework for internationalization. Now i have incoorperate it into and existing system that is huge and it will take alot of time to change ECHO to a function call, so i want to override its implementation so that i can use

Re: [PHP] Search Results Accuracy

2006-12-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-19 09:33:02 +0800: Hello, I'm just wondering, from a list of search results from a database query, how do we trim down and return the most accurate one? Hints, links and suggestions are most welcome. is this what you're looking for?

Re: [PHP] heredoc

2006-12-18 Thread Casey Chu
I usually use an include rather than a heredoc. On 12/18/06, Paul Novitski [EMAIL PROTECTED] wrote: At 12/18/2006 10:14 PM, clr wrote: Please can someone advise me on heredoc and its shortcommings, I am designing a complex site and elected to use DIV's as opposed to frames. Heredoc seems to be

Re: [PHP] DOMDocument Size limit

2006-12-18 Thread Jochem Maas
Chris W wrote: Jochem Maas wrote: what version of php? what version of libxml? php: 5.2.0 libxml: 2.6.26 nothing wrong there I believe, although I haven't yet played with php5.2 myself is the limit actually 4096 bytes per chance? (that seems more likely) the limit is probably 4096

RE: [PHP] Search Results Accuracy

2006-12-18 Thread zoticaic
Thanks, All I needed was that to get started with. Regards jervin -- Outsource Now | GetAFreelancer http://www.getafreelancer.com/affiliates/shockx/ _ From: Shafiq Rehman [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 2:41 PM To: zoticaic Subject: Re: [PHP]