Re: [PHP] Will the progress bar like Xupload add too much weight to the Apache server?

2008-03-20 Thread Shelley
Sorry. I won't. :( On Thu, Mar 20, 2008 at 11:01 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Thu, Mar 20, 2008 at 2:32 AM, Shelley <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > Here is the Xupload progress bar link: > > http://www.sibsoft.net/xupload.html > > > > My question is: > > Wil

Re: [PHP] Re: fwrite/fclose troubles

2008-03-20 Thread Mark Weaver
Peter Ford wrote: Mark Weaver wrote: Hi all, I've been lurking and reading now for some time, but have decided to come out of the shadows cause I've got an issue that's gonna drive me crazy! I'm developing an application and within this application is a class that is very simple and only ser

Re: [PHP] question about customized error

2008-03-20 Thread Jim Lucas
Sudhakar wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page which will still have t

Re: [PHP] Convert html to pdf with php

2008-03-20 Thread Al
I think Imagemagick will do it. Philip Thompson wrote: On Mar 20, 2008, at 4:42 PM, Robert Burdo wrote: Does anyone know how to convert an HTML form to a pdf with php? Have you STFW? =D http://www.google.com/search?q=php+html+to+pdf I use dompdf. Unfortunately, the guy who created it isn'

Re: [PHP] Convert html to pdf with php

2008-03-20 Thread Philip Thompson
On Mar 20, 2008, at 4:42 PM, Robert Burdo wrote: Does anyone know how to convert an HTML form to a pdf with php? Have you STFW? =D http://www.google.com/search?q=php+html+to+pdf I use dompdf. Unfortunately, the guy who created it isn't intending to upgrade it. Nonetheless, for most things

[PHP] question about customized error

2008-03-20 Thread Sudhakar
if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page which will still have the same look and f

[PHP] Convert html to pdf with php

2008-03-20 Thread Robert Burdo
Does anyone know how to convert an HTML form to a pdf with php? -- Robert Burdo nuschooldesign.com

[PHP] MCrypt not decrypting simple text

2008-03-20 Thread Dan
I'm using MCrypt and I have two very simple functions. All I'm doing is giving the function some text and a password, it encrypts the text and saves it as a text file on the server. Then I at some later time run another php file which decrypts using the decrypt function given the text and the

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Philip Thompson
On Mar 20, 2008, at 12:05 PM, George Jamieson wrote: Hi Philip, Hope you don't mind me sending this to you direct. Thanks for the answer but... I'm sorry I don't follow you. My form sets up the query parameters. It works. My pagination code passes the page no. It works. What it doesn't do

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread tedd
At 12:08 PM -0400 3/20/08, Rod Clay wrote: Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to have much in common!). In every other language I've worked with there is a way for one program to pass cont

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rick Pasotto
On Thu, Mar 20, 2008 at 12:08:39PM -0400, Rod Clay wrote: > Hello. I am new to php programming, but have spent many years > programming in many other languages, most recently perl (with which > php seems to have much in common!). In every other language I've > worked with there is a way for one

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread George J
Hi Shawn, >> My query code- >> >> ---SQL query construction block >> $query = "SELECT * FROM prods "; >> if($catagory != 0){ >> // >> if category != 0 >> $where="WHERE c = $catagory "; >> if ($manu != 0){ // >> check >> m

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Shawn McKenzie
George J wrote: > ""Thiago Pojda"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> De: George J [mailto:[EMAIL PROTECTED] >> >>> So calling the script via the form works i.e it passes the >>> neccessary variables to constrct the sql query for the next >>> call. >> As Shawn said, i

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Daniel Brown
On Thu, Mar 20, 2008 at 12:37 PM, Rod Clay <[EMAIL PROTECTED]> wrote: > Yes, let me try to say more about exactly what I'm trying to do. I have > a php script running in a browser window (opened specifically for this > purpose) in which the user keys a blog item, then hits 'submit.' After > th

[PHP] Re: selling gpl software?

2008-03-20 Thread Colin Guthrie
Larry Garfield wrote: > If the code is "work for hire" and the initial ownership is with the > client/company, then there is no distribution and so you are not required to > do anything. That includes if you are a full time employee of the company. OK, that's more or less my understanding. It

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Lamp Lists
- Original Message From: Nathan Nobbe <[EMAIL PROTECTED]> To: Lamp Lists <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Sent: Thursday, March 20, 2008 11:35:42 AM Subject: Re: [PHP] why use {} around vraiable? On Thu, Mar 20, 2008 at 12:22 PM, Lamp Lists <[EMAIL PROTECTED]> wrote: > h

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Brady Mitchell
On Mar 20, 2008, at 922AM, Lamp Lists wrote: $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'"); For a non-array value, the curly braces are unnecessary: $query = mysql_query("SELECT * FROM table1 WHERE id='$session_id'") WIth an array element, you have to either us

[PHP] Re: Playing around with strings

2008-03-20 Thread Robin Vickery
On 20/03/2008, Robin Vickery <[EMAIL PROTECTED]> wrote: > Hiyah, > > Here's a trick you can use to evaluate expressions within strings. It > may not be particularly useful, but I thought it was interesting. > > It exploits two things: > > 1. If you interpolate an array element within a string,

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Robin Vickery
On 20/03/2008, Lamp Lists <[EMAIL PROTECTED]> wrote: > hi, > I saw several times that some people use this > > $parameters = array( > 'param1' => "{$_POST["param1"]}", > 'param2' => "{$_POST["param2"]}" > ); > > or > > $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'")

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Ray Hauge
Lamp Lists wrote: hi, I saw several times that some people use this $parameters = array( 'param1' => "{$_POST["param1"]}", 'param2' => "{$_POST["param2"]}" ); or $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'"); I would use: $parameters = array( 'param1' => $_P

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rod Clay
Yes, let me try to say more about exactly what I'm trying to do. I have a php script running in a browser window (opened specifically for this purpose) in which the user keys a blog item, then hits 'submit.' After this script has successfully added the new blog item to the database, what I'd

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Nathan Nobbe
On Thu, Mar 20, 2008 at 12:22 PM, Lamp Lists <[EMAIL PROTECTED]> wrote: > hi, > I saw several times that some people use this > > $parameters = array( > 'param1' => "{$_POST["param1"]}", > 'param2' => "{$_POST["param2"]}" > ); > > or > > $query = mysql_query("SELECT * FROM table1 WHERE id='{$s

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Jason Pruim
On Mar 20, 2008, at 12:22 PM, Lamp Lists wrote: hi, I saw several times that some people use this $parameters = array( 'param1' => "{$_POST["param1"]}", 'param2' => "{$_POST["param2"]}" ); or $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'"); I would use: $parameters =

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Robert Cummings
On Thu, 2008-03-20 at 09:22 -0700, Lamp Lists wrote: > hi, > I saw several times that some people use this > > $parameters = array( > 'param1' => "{$_POST["param1"]}", > 'param2' => "{$_POST["param2"]}" > ); Ignorance. > or > > $query = mysql_query("SELECT * FROM table1 WHERE id='{$sess

[PHP] why use {} around vraiable?

2008-03-20 Thread Lamp Lists
hi, I saw several times that some people use this $parameters = array( 'param1' => "{$_POST["param1"]}", 'param2' => "{$_POST["param2"]}" ); or $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'"); I would use: $parameters = array( 'param1' => $_POST["param1"], 'par

RE: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread admin
Im not sure I understand the question. Pass control from index.php to welcome.php ??? index.php : "; ?> welcome.php That kind of pass control? Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to h

Re: [PHP] Double click problem

2008-03-20 Thread Lamp Lists
- Original Message From: Eric Butera <[EMAIL PROTECTED]> To: Lamp Lists <[EMAIL PROTECTED]> Cc: tedd <[EMAIL PROTECTED]>; php-general@lists.php.net Sent: Thursday, March 20, 2008 11:00:19 AM Subject: Re: [PHP] Double click problem On Thu, Mar 20, 2008 at 10:39 AM, Lamp Lists <[EMAIL PROTE

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread George J
""Thiago Pojda"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > De: George J [mailto:[EMAIL PROTECTED] > >> So calling the script via the form works i.e it passes the >> neccessary variables to constrct the sql query for the next >> call. > > As Shawn said, if you really need the q

[PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rod Clay
Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to have much in common!). In every other language I've worked with there is a way for one program to pass control to another. However, so far in all of

Re: [PHP] Double click problem

2008-03-20 Thread Eric Butera
On Thu, Mar 20, 2008 at 10:39 AM, Lamp Lists <[EMAIL PROTECTED]> wrote: > the way I solved the "click back button" issue (simplified vresion): > > confirmation page (conf.php) -> transfer page (tp.php) -> thank you page > (typ.php) > > #conf.php > # after the form is submitted and confirmed >

RE: [PHP] Checking how many letters are in a string.

2008-03-20 Thread Edward Kay
> -Original Message- > From: tedd > Chapter 4 is all about l16n, L10n, and Unicode. Makes a good read. What's l16n? Did you mean i18n (internationasation)? (I'm not being a pedant; just wondered if I was missing something) :) Edward -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Philip Thompson
On Mar 19, 2008, at 5:13 PM, George J wrote: Hi Jason, Hope this helps - my 'display_products.php' script -- ... ... // pagination routine conditional code... }else{ echo("\"0\" "); } --- So calling the script via the form works i.e it passes the neccessary variables t

Re: [PHP] php book

2008-03-20 Thread Wolf
Lamp Lists <[EMAIL PROTECTED]> wrote: > opinions of "good book is almost the same as opinion of "good car". I myself prefer books along the lines of the "Sam's teach yourself * in * hours/minutes" series. I picked up the PHP/MySQL/Apache book when I first started learning PHP and still

Re: [PHP] Re: algorithm of pages beaking

2008-03-20 Thread Robert Cummings
On Thu, 2008-03-20 at 11:32 -0400, tedd wrote: > At 11:35 PM + 3/19/08, George J wrote: > >Hi, > > > >I'm trying to resolve an issue with a pagination routine. Sounds like we're > >working on a similar routine. I have a query returning products from a > >database and then display the results i

Re: [PHP] Checking how many letters are in a string.

2008-03-20 Thread tedd
At 9:10 AM +0200 3/20/08, Dotan Cohen wrote: On 20/03/2008, tedd <[EMAIL PROTECTED]> wrote: > At least, that's my understanding. Cheers, tedd Thank you Tedd, that was very helpful. After reading your mail from yesterday I went to wikipedia to learn what graphemes and ligatures are. Yo

[PHP] Re: algorithm of pages beaking

2008-03-20 Thread tedd
At 11:35 PM + 3/19/08, George J wrote: Hi, I'm trying to resolve an issue with a pagination routine. Sounds like we're working on a similar routine. I have a query returning products from a database and then display the results in a defined number of products per page. Checkout - 'Newbie qu

Re: [PHP] php book

2008-03-20 Thread Lamp Lists
opinions of "good book is almost the same as opinion of "good car". I can suggest you to go to barnes and noble or borders or any other bookstore, buy cup of coffee or tea, grab all php books from shelf and read some chapters. you are no going to learn anything, rather to compare "styles". some a

Re: [PHP] Will the progress bar like Xupload add too much weight to the Apache server?

2008-03-20 Thread Daniel Brown
On Thu, Mar 20, 2008 at 2:32 AM, Shelley <[EMAIL PROTECTED]> wrote: > Hi all, > > Here is the Xupload progress bar link: > http://www.sibsoft.net/xupload.html > > My question is: > Will the upload progress bar like that add too much weight to the Apache > server, especially to a server with mi

Re: [PHP] Fastest way to get table records' number

2008-03-20 Thread Philip Thompson
On Mar 19, 2008, at 11:55 PM, Shelley wrote: Nathan Nobbe wrote: On Wed, Mar 19, 2008 at 9:42 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: That works; I'm just wondering why you went with a count on an 'ID' column rather than COUNT(*). ouch, it looks like im horribly wrong :O mysql>

Re: [PHP] Double click problem

2008-03-20 Thread Lamp Lists
the way I solved the "click back button" issue (simplified vresion): confirmation page (conf.php) -> transfer page (tp.php) -> thank you page (typ.php) #conf.php # after the form is submitted and confirmed header('location: tp.php?url=typ.php'); exit; #tp.php header('location:$_GET['url']); exi

Re: [PHP] Re: selling gpl software?

2008-03-20 Thread Larry Garfield
On Thursday 20 March 2008, Colin Guthrie wrote: > Larry Garfield wrote: > > On Wednesday 19 March 2008, Colin Guthrie wrote: > >> Also as it's GPL and as you are "supplying" the modifications you make > >> to your client, you are obliged to release the changes you make to the > >> community. If thi

[PHP] Playing around with strings

2008-03-20 Thread Robin Vickery
Hiyah, Here's a trick you can use to evaluate expressions within strings. It may not be particularly useful, but I thought it was interesting. It exploits two things: 1. If you interpolate an array element within a string, the index of the element is evaluated as a php expression. 2. You can ca

RES: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Thiago Pojda
De: George J [mailto:[EMAIL PROTECTED] > So calling the script via the form works i.e it passes the > neccessary variables to constrct the sql query for the next > call. As Shawn said, if you really need the query again add it to session, never, NEVER give the user the ability to see/execute

[PHP] Re: selling gpl software?

2008-03-20 Thread Colin Guthrie
Larry Garfield wrote: > On Wednesday 19 March 2008, Colin Guthrie wrote: > >> Also as it's GPL and as you are "supplying" the modifications you make >> to your client, you are obliged to release the changes you make to the >> community. If this was a 100% internal development (e.g. you are >> empl

[PHP] Anyone using clsMsDocGenerator?

2008-03-20 Thread George Pitcher
Hi, If anyone is using clsMsDocGenerator to produce MSWord files without using COM, I have a just one question (I tried the PHPClasses forum, but couldn't get my forum post in). How do you remove borders from tables? I am preformatting a html string with att the data going into the document, inc

[PHP] Re: fwrite/fclose troubles

2008-03-20 Thread Peter Ford
Mark Weaver wrote: Hi all, I've been lurking and reading now for some time, but have decided to come out of the shadows cause I've got an issue that's gonna drive me crazy! I'm developing an application and within this application is a class that is very simple and only serves a singular purp

Re: [PHP] Problems with mime encoding of Japanese Characters in Subject and 'From:', 'Reply-to:', ... fields.

2008-03-20 Thread Dietrich Bollmann
Hi - in order to see the Japanese Characters in the previous mail you might have to switch the "Character Encoding" of your Email reader to Unicode (UTF-8). In my case (I am using the "Evolution" mail program on Linux): View > Character Encoding > Unicode (UTF-8) Dietrich On Thu, 2008-03-20

[PHP] Re: Problems with mime encoding of Japanese Characters in Subject and'From:', 'Reply-to:', ... fields.

2008-03-20 Thread Manuel Lemos
Hello, on 03/20/2008 04:06 AM Dietrich Bollmann said the following: > Hi, > > --- note --- > I sent a similar message already to php-i18n - but this list seems > not to be used very much (20 messages this year) so I am posting it > here again... > > > I try to send messages written

[PHP] Re: Will the progress bar like Xupload add too much weight to the Apacheserver?

2008-03-20 Thread Manuel Lemos
Hello, on 03/20/2008 03:32 AM Shelley said the following: > My question is: > Will the upload progress bar like that add too much weight to the Apache > server, especially to a server with millions of visitors each day? It is hard to tell. It seems to rely on a mod_perl script. You may also want

Re: [PHP] Checking how many letters are in a string.

2008-03-20 Thread Dotan Cohen
On 20/03/2008, tedd <[EMAIL PROTECTED]> wrote: > At 9:29 PM +0200 3/19/08, Dotan Cohen wrote: > >I am asking the second question: how many Hebrew characters in a > >string that _very_likely_ contains other characters as well. The array > >suggestion sounds about what I am doing: checking if each

[PHP] Problems with mime encoding of Japanese Characters in Subject and 'From:', 'Reply-to:', ... fields.

2008-03-20 Thread Dietrich Bollmann
Hi, --- note --- I sent a similar message already to php-i18n - but this list seems not to be used very much (20 messages this year) so I am posting it here again... I try to send messages written in Japanese (Kana/Kanji) with php. Everything works fine - only when the subject (or