[PHP] Fwd: How to enable php-mysqli on linux

2008-07-08 Thread Kapil Kapil
Hi How can we enable php-mysqli support on linux machine using yum etc., without reinstalling php again? Also how to check it - Is php-mysqli package is present or not? Thanks Kapil

Re: [PHP] Fwd: How to enable php-mysqli on linux

2008-07-08 Thread Per Jessen
Kapil Kapil wrote: > Hi > > How can we enable php-mysqli support on linux machine using yum etc., > without reinstalling php again? Just install the appropriate package. > Also how to check it - Is php-mysqli package is present or not? Check output from phpinfo(). /Per Jessen, Zürich -- PH

Re: [PHP] how to create a slide show using PHP5

2008-07-08 Thread Peter Ford
tedd wrote: At 4:37 PM -0400 7/2/08, philip wrote: Hi everyone, I want to create a slide show of photos for my web site. How is this done using php5? I am using Opensuse 10.3, Apache, PHP5. TIA for any assistance, Philip Philip: With a combination of php, html, and javascript, you can ge

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Philip Thompson
On Jul 7, 2008, at 12:46 PM, tedd wrote: At 2:51 PM +0100 7/7/08, Mayer, Jonathan wrote: Hiya all, I have coded a PHP site on an intranet which forms a MySQL query based on multiple inputs on a large form. The form results are POSTed back to itself, and query is formed, and the results are

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Bastien Koert
On Tue, Jul 8, 2008 at 9:29 AM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Jul 7, 2008, at 12:46 PM, tedd wrote: > > At 2:51 PM +0100 7/7/08, Mayer, Jonathan wrote: >> >>> Hiya all, >>> >>> I have coded a PHP site on an intranet which forms a MySQL query based on >>> multiple inputs on a lar

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-08 Thread Philip Thompson
On Jul 7, 2008, at 2:19 PM, Eric Butera wrote: On Mon, Jul 7, 2008 at 2:47 PM, mike <[EMAIL PROTECTED]> wrote: On 7/7/08, Eric Butera <[EMAIL PROTECTED]> wrote: Laziness/convenience. I always get my data from the exact source I want. If someone chooses to use REQUEST it shouldn't break th

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Mayer, Jonathan
Yup, some good work there Tedd! In the end I decided the simplest way of coding the functionality was to do something similar to what Eric said, and have some extra submit buttons in the form, called Next, Previous and Jump. When clicked, they each submitted the form again with a different flag se

Re: [PHP] Multiple words str_shuffle

2008-07-08 Thread Daniel Brown
On Mon, Jul 7, 2008 at 10:44 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > grrr ... I rear my ugly head, briefly ... [snip!] > > questions on a postcard to Dan Brown, he just got married, he deserves it > ;-) Welcome back, brother. Thanks for the well-wishes. I hope you and your son are doing

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Robert Cummings
On Tue, 2008-07-08 at 16:18 +0100, Mayer, Jonathan wrote: > Yup, some good work there Tedd! > > In the end I decided the simplest way of coding the functionality was to do > something similar to what Eric said, and have some extra submit buttons in > the form, called Next, Previous and Jump. When

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 11:33 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 16:18 +0100, Mayer, Jonathan wrote: >> Yup, some good work there Tedd! >> >> In the end I decided the simplest way of coding the functionality was to do >> something similar to what Eric said, and ha

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Robert Cummings
On Tue, 2008-07-08 at 11:57 -0400, Eric Butera wrote: > On Tue, Jul 8, 2008 at 11:33 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > Just a comment... the submit button/session technique sucks with respect > > to passing along links to people. I would suggest scrapping that > > approach and

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 12:00 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 11:57 -0400, Eric Butera wrote: >> On Tue, Jul 8, 2008 at 11:33 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> > >> > Just a comment... the submit button/session technique sucks with respect >> >

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Mayer, Jonathan
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 08 July 2008 17:01 To: Eric Butera Cc: Mayer, Jonathan; Bastien Koert; Philip Thompson; PHP-General List Subject: Re: [PHP] Keeping POST values when paging On Tue, 2008-07-08 at 11:57 -0400, Eric Butera wrote: > On T

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 12:07 PM, Mayer, Jonathan <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: 08 July 2008 17:01 > To: Eric Butera > Cc: Mayer, Jonathan; Bastien Koert; Philip Thompson; PHP-General List > Subject: Re: [PHP] Keepin

Re: [PHP] Splitting up long URLs

2008-07-08 Thread tedd
At 12:05 PM -0400 7/8/08, Andrew Ballard wrote: > However, there isn't a way to change what the user see's in the browser's url box, is there? For example, can you send a user to http://example.com/a.php, but they see http://example.com/b.php in their browser? Cheers, tedd Sounds pret

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread tedd
At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: In the end I decided the simplest way of coding the functionality was to do something similar to what Eric said, and have some extra submit buttons in the form, called Next, Previous and Jump. When clicked, they each submitted the form again with a

Re: [PHP] Splitting up long URLs

2008-07-08 Thread Robert Cummings
On Tue, 2008-07-08 at 12:42 -0400, tedd wrote: > At 12:05 PM -0400 7/8/08, Andrew Ballard wrote: > > > However, there isn't a way to change what the user see's in the browser's > >> url box, is there? > >> > >> For example, can you send a user to http://example.com/a.php, but they see > >> http

Re: [PHP] Splitting up long URLs

2008-07-08 Thread tedd
At 2:07 PM -0400 7/8/08, Robert Cummings wrote: On Tue, 2008-07-08 at 12:42 -0400, tedd wrote: > At 12:05 PM -0400 7/8/08, Andrew Ballard wrote: > >Sounds pretty phishy to me, tedd. :-) > >Andrew Andrew: Yes, but there's nothing wrong with learning -- it's like talking to other women wh

[PHP] Creating zip files

2008-07-08 Thread It flance
Hi, I am using the "pclziplibrary" to create a zip archive. Now i have the following error message: Error : PCLZIP_ERR_READ_OPEN_FAIL (-2) : Unable to open archive 'archive.zip' in wb mode If someone is using the same library please tell me what this error means exactly. I am using the same co

Re: [PHP] Creating zip files

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 3:17 PM, It flance <[EMAIL PROTECTED]> wrote: > Hi, > > I am using the "pclziplibrary" to create a zip archive. > Now i have the following error message: > Error : PCLZIP_ERR_READ_OPEN_FAIL (-2) : Unable to open archive 'archive.zip' > in wb mode > > If someone is using the

[PHP] Linking stuff

2008-07-08 Thread Philip Thompson
Hi all. I think I might be having a brain-fart afternoon, but I can't think of how to accomplish this. I want these "centers" to be linked to 1 another. If center A links to B and C, I want B to be linked to A and C, and C to A and B. So... it should look something like this: center li

Re: [PHP] Creating zip files

2008-07-08 Thread Daniel Brown
On Tue, Jul 8, 2008 at 3:17 PM, It flance <[EMAIL PROTECTED]> wrote: > Hi, > > I am using the "pclziplibrary" to create a zip archive. > Now i have the following error message: > Error : PCLZIP_ERR_READ_OPEN_FAIL (-2) : Unable to open archive 'archive.zip' > in wb mode Does the file `archive.

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Philip Thompson
On Jul 8, 2008, at 12:32 PM, tedd wrote: At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: In the end I decided the simplest way of coding the functionality was to do something similar to what Eric said, and have some extra submit buttons in the form, called Next, Previous and Jump. When click

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Thiago H. Pojda
On Tue, Jul 8, 2008 at 4:11 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Jul 8, 2008, at 12:32 PM, tedd wrote: > > At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: >> >>> In the end I decided the simplest way of coding the functionality was to >>> do >>> something similar to what Eric said,

Re: [PHP] Linking stuff

2008-07-08 Thread Børge Holen
On Tuesday 08 July 2008 21:22:34 Philip Thompson wrote: > Hi all. > > I think I might be having a brain-fart afternoon, but I can't think of > how to accomplish this. > > I want these "centers" to be linked to 1 another. If center A links to > B and C, I want B to be linked to A and C, and C to A a

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Philip Thompson
On Jul 8, 2008, at 2:42 PM, Thiago H. Pojda wrote: On Tue, Jul 8, 2008 at 4:11 PM, Philip Thompson <[EMAIL PROTECTED] > wrote: On Jul 8, 2008, at 12:32 PM, tedd wrote: At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: In the end I decided the simplest way of coding the functionality was to do

Re: [PHP] push data directlly to the client(was Creating zip files)

2008-07-08 Thread It flance
Hi, Thank you for your answer. Now i figured out how to build the zip archive. I am using a class that returns the compressed data: $zipedresult = $zipfile->zipped_file(); This data, i can write it to a file. but i would like to make it downloadable without having to store it in the server. Is

Re: [PHP] Linking stuff

2008-07-08 Thread tedd
At 2:22 PM -0500 7/8/08, Philip Thompson wrote: Hi all. I think I might be having a brain-fart afternoon, but I can't think of how to accomplish this. I want these "centers" to be linked to 1 another. If center A links to B and C, I want B to be linked to A and C, and C to A and B. So... it

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Stut
On 8 Jul 2008, at 21:09, Philip Thompson wrote: On Jul 8, 2008, at 2:42 PM, Thiago H. Pojda wrote: On Tue, Jul 8, 2008 at 4:11 PM, Philip Thompson <[EMAIL PROTECTED] > wrote: On Jul 8, 2008, at 12:32 PM, tedd wrote: At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: In the end I decided the si

[PHP] Re: Linking stuff

2008-07-08 Thread Shawn McKenzie
Philip Thompson wrote: Hi all. I think I might be having a brain-fart afternoon, but I can't think of how to accomplish this. I want these "centers" to be linked to 1 another. If center A links to B and C, I want B to be linked to A and C, and C to A and B. So... it should look something li

Re: [PHP] push data directlly to the client(was Creating zip files)

2008-07-08 Thread Shawn McKenzie
It flance wrote: Hi, Thank you for your answer. Now i figured out how to build the zip archive. I am using a class that returns the compressed data: $zipedresult = $zipfile->zipped_file(); This data, i can write it to a file. but i would like to make it downloadable without having to store it

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Shawn McKenzie
Stut wrote: On 8 Jul 2008, at 21:09, Philip Thompson wrote: On Jul 8, 2008, at 2:42 PM, Thiago H. Pojda wrote: On Tue, Jul 8, 2008 at 4:11 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: On Jul 8, 2008, at 12:32 PM, tedd wrote: At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: In the end I de

Re: [PHP] push data directlly to the client(was Creating zip files)

2008-07-08 Thread Shawn McKenzie
Shawn McKenzie wrote: It flance wrote: Hi, Thank you for your answer. Now i figured out how to build the zip archive. I am using a class that returns the compressed data: $zipedresult = $zipfile->zipped_file(); This data, i can write it to a file. but i would like to make it downloadable w

Re: [PHP] Re: Linking stuff

2008-07-08 Thread Philip Thompson
On Jul 8, 2008, at 3:38 PM, Shawn McKenzie wrote: Philip Thompson wrote: Hi all. I think I might be having a brain-fart afternoon, but I can't think of how to accomplish this. I want these "centers" to be linked to 1 another. If center A links to B and C, I want B to be linked to A and C, a

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Jim McIntyre
At 1:32 PM -0400 7/8/08, tedd wrote: Actually, you don't need to use sessions, post, nor get to pass variables between scripts. Here's an example: http://www.webbytedd.com/bb/tedd/index.php Of course, the smart ones on this list will figure it out pretty quickly. So, this code in the HTML

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread tedd
At 1:32 PM -0400 7/8/08, tedd wrote: Actually, you don't need to use sessions, post, nor get to pass variables between scripts. Here's an example: http://www.webbytedd.com/bb/tedd/index.php Of course, the smart ones on this list will figure it out pretty quickly. So, this code in the HTML

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread tedd
At 9:33 PM +0100 7/8/08, Stut wrote: I've only had a quick look but as far as I can see it's keeping the vars in a form, the form posts to index.php so I'm guessing index.php simply includes the script you specify on the form. Not what I would call "pass[ing] variables between scripts" but th

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Philip Thompson
On Jul 8, 2008, at 4:19 PM, tedd wrote: At 9:33 PM +0100 7/8/08, Stut wrote: I've only had a quick look but as far as I can see it's keeping the vars in a form, the form posts to index.php so I'm guessing index.php simply includes the script you specify on the form. Not what I would call "

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-08 Thread ioannes
My current theory on this is that the initial input page creates a per-session cookie. Is CURL able to send this when the page is submitted and if so how do I find out the name and value of the cookie as per my reading it is not stored on the computer, though I reckon it must be there somewher

[PHP] What font/size do you use for programming?

2008-07-08 Thread tedd
Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://eart

Re: [PHP] What font/size do you use for programming?

2008-07-08 Thread Jim Lucas
tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd Courier New 10pt w/ClearType Enabled @ 1680x1050 wit

Re: [PHP] What font/size do you use for programming?

2008-07-08 Thread Ray Hauge
tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd 12pt Adobe Sans MM (Zend Studio) on a 19" LCD @ 1280

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-08 Thread ioannes
The way this page works is you access index.asp?SerialNo=abc123 from a link, that is re-directed to a frameset containing the main page, main.asp, just that. main.asp does not have any fields showing the SerialNo, there is a comment with it but that is all. Fom this page, you input some dat

Re: [PHP] What font/size do you use for programming?

2008-07-08 Thread Robert Cummings
On Tue, 2008-07-08 at 16:28 -0700, Jim Lucas wrote: > tedd wrote: > > Hi gang: > > > > I'm running a Mac (so I know mine is a bit different size wise) but I'm > > currently using Veranda at 14 point for coding. > > > > Just out of curiosity, what font and size do you ppls use for your > > progr

Re: [PHP] What font/size do you use for programming?

2008-07-08 Thread Robert Cummings
On Tue, 2008-07-08 at 21:35 -0400, Robert Cummings wrote: > On Tue, 2008-07-08 at 16:28 -0700, Jim Lucas wrote: > > tedd wrote: > > > Hi gang: > > > > > > I'm running a Mac (so I know mine is a bit different size wise) but I'm > > > currently using Veranda at 14 point for coding. > > > > > > Jus

[PHP] PDOStatement - dump params to log after binding

2008-07-08 Thread Radek Zajkowski
Hi all, is there a way to access parameters in the PDOStatement object after they have been bound? it would be very useful for my debug logging. Thanks, Radek. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-08 Thread VamVan
Hey, Dude you could use it this way Once u submit it, do a small server side validation if(isset($_POST['something'] || $_POST['something']) != ""){ insert... } This way you could avoid replacing the values with nulls. Thanks, Vam On Mon, Jul 7, 2008 at 12:25 PM, Jason Pruim

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-08 Thread VamVan
sorry it needs to be a array for checkbox for the example below. So you could use is_empty() instead. something like that. On Tue, Jul 8, 2008 at 7:37 PM, VamVan <[EMAIL PROTECTED]> wrote: > Hey, > > Dude you could use it this way > > > > > > Once u submit it, > > do a small server side

[PHP] Re: What font/size do you use for programming?

2008-07-08 Thread Shawn McKenzie
tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd Font: Agent Orange Size: 64pt 19" Westinghouse flats

Re: [PHP] What font/size do you use for programming?

2008-07-08 Thread Sancar Saran
On Wednesday 09 July 2008 02:23:49 tedd wrote: > Hi gang: > > I'm running a Mac (so I know mine is a bit different size wise) but > I'm currently using Veranda at 14 point for coding. > > Just out of curiosity, what font and size do you ppls use for your > programming? > > Cheers, > > tedd > Monos