Re: [PHP] Reducing size of htm output

2005-05-09 Thread Prathaban Mookiah
Oops. Sorry, you are correct. I did not look at the ob_gzhandler. I just thought of the ob_start function. But I remember gz encoding works fine with IE 5. Shouldn't be a problem with 5.5. Cheers, Prathap -- Original Message --- From: Rasmus Lerdorf [EMAIL PROTECTED] To:

RE: [PHP] Any alternative to POST method FTP uploads from client computer?

2005-05-09 Thread Richard Lynch
On Sun, May 8, 2005 9:22 pm, Murray @ PlanetThoughtful said: As others have suggested, using an ftp client application is one way to handle it, however, users being users, the feedback has been Why do we need to upload the files via an ftp client, *then* go to the web application and attach

[PHP] setting up browscap.ini with .htaccess

2005-05-09 Thread Ross
I would like to use browscap.ini, I believe you can override the php.ini file values with a php_value line in a .htaccess file. Is this possible? Is so how? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] payment gateways slightly OT

2005-05-09 Thread Angelo Zanetti
thanks greg, will check them out. Greg Donald wrote: On 5/6/05, Angelo Zanetti [EMAIL PROTECTED] wrote: I just want to find out from you which payment gateways you use and what experiences good and bad have you had with them. I'm looking for a reliable payment gateway to handle credit card

Re: [PHP] Between Query (0T)

2005-05-09 Thread Burhan Khalid
Ryan A wrote: clip Your looking at something like. For ages between 21 and 23 $Upper = date(m-d-Y, mktime(0,0,0,date(m),date(d),date(y)-22)); $Lower = date(m-d-Y, mktime(0,0,0,date(m),date(d),date(y)-23)); $sql = SELECT field1,field2,field3 FROM `table_name` WHERE `age` BETWEEN . $Lower . AND .

Re: [PHP] Any alternative to POST method FTP uploads from client computer?

2005-05-09 Thread Burhan Khalid
Murray @ PlanetThoughtful wrote: [ snipped ] when u upload it name it dynamiccaly by appending date and time before the file name like this 2005050501010-filename.jpg Hi, yes, I'm already doing this. Conflict of filename isn't my issue -- it's whether or not the file should be uploaded at all, in

Re: [PHP] sort by date

2005-05-09 Thread William Stokes
Thanks Richard. That did the trick. Now to the DB fixing business... -Will Richard Lynch [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] On Thu, May 5, 2005 10:42 pm, William Stokes said: I made a mistake and stored date information to DB as varchar values (dd.mm.yyy). When I read

RE: [PHP] I'm having a blond moment with a while loop???

2005-05-09 Thread Mark Rees
-Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: 08 May 2005 11:56 To: php-general@lists.php.net Subject: [PHP] I'm having a blond moment with a while loop??? Hi guys, I'm doing something dumb but I can't see it. The basic premise is: sql search of orders

[PHP] need manual reload on Mac client

2005-05-09 Thread Francesco Casalena
Hi, I've a strange problem on this scenario: -SERVER MacOs X server w/ Apache's httpd2, MySql Max, PHP5 -CLIENT1 MacOs X w/ Netscape (JS enabled) -CLIENT2 Linux 2.6 w/ Netscape (JS enabled also) In a web application, I need to open a JS window within data came from MySql and

[PHP] PHP 5, mySQL and Win XP. I NEED HELP

2005-05-09 Thread Rory Browne
Sorry - forgot to CC to list. Personally I have a feeling that if you take out the :3306, your script might just work. I read somewhere that on unix, mysql used a unix socket whenever the hostname was localhost. On unix localhost:something means that something is a unix socket, when it would

Re: [PHP] Reducing size of htm output

2005-05-09 Thread Rory Browne
But I remember gz encoding works fine with IE 5. Shouldn't be a problem with 5.5. Did you try downloading the same compressed page twice, and checking the server logs, to see if it loaded from cache the second time around? Cheers, Prathap -- Original Message ---

Re: [PHP] Reducing size of htm output

2005-05-09 Thread Prathaban Mookiah
I just finished testing what you said. It comes from the cache during the second time. But this happens with all the other pages too (the non- compressed) not only the ones that were returned using ob_gzhandler. It is the same phenomena with Opera 8 too. Prathap -- Original Message

[PHP] flashPHP Issue

2005-05-09 Thread Khorosh Irani
Hello Can I get the background color a swf file with php? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] need manual reload on Mac client

2005-05-09 Thread Mark Rees
-Original Message- From: Francesco Casalena [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 10:18 To: php-general@lists.php.net Subject: [PHP] need manual reload on Mac client Hi, I've a strange problem on this scenario: -SERVER MacOs X server w/ Apache's httpd2, MySql Max, PHP5

Re: [PHP] Between Query (0T)

2005-05-09 Thread Ryan A
On 5/9/2005 9:47:50 AM, Burhan Khalid ([EMAIL PROTECTED]) wrote: Ryan A wrote: clip Your looking at something like. For ages between 21 and 23 $Upper = date(m-d-Y, mktime(0,0,0,date(m),date(d),date(y)-22)); $Lower = date(m-d-Y, mktime(0,0,0,date(m),date(d),date(y)-23)); $sql

Re: [PHP] Between Query (0T)

2005-05-09 Thread andreja
I am not sure but maybe something like this is posible $current_year = date(Y); $qry = SELECT * FROM `table` WHERE ($current_year-YEAR(birthday)) BETWEEN 25 AND 26 Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Ryan A [EMAIL PROTECTED] : Thanks for

RE: [PHP] Between Query (0T)

2005-05-09 Thread Kim Madsen
-Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Monday, May 09, 2005 1:02 PM Luck and me? You dont know who you are talking to my friendI am still on mysql 3.23 not even 4.1 !!! TO_DAYS() works on 3.23 too ;-) -- Med venlig hilsen / best regards ComX

[PHP] text with $

2005-05-09 Thread Martín Marqués
I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. I tried escaping the $ put with no luck. Is there something I can do? -- 09:21:28 up 37 days, 17:45, 1 user, load average: 2.54, 2.04, 1.50

Re: [PHP] payment gateways slightly OT

2005-05-09 Thread Deep
Hi, CCavenue is good. Also try 2checkout.com, but i wont reccomenrd that because their interface is not that good as ccavenue's. ..Deeps.. --- Angelo Zanetti [EMAIL PROTECTED] wrote: Hi guys, I just want to find out from you which payment gateways you use and what experiences good and

Re: [PHP] Between Query (0T)

2005-05-09 Thread Matthew Weier O'Phinney
* [EMAIL PROTECTED] [EMAIL PROTECTED] : I am not sure but maybe something like this is posible $current_year = date(Y); $qry = SELECT * FROM `table` WHERE ($current_year-YEAR(birthday)) BETWEEN 25 AND 26 No -- because this incorrectly identifies somebody born on June 14 as 26 even

Re: [PHP] if then else statement not working

2005-05-09 Thread Deep
Hi, Where are the dollar signs before seatnum, seat1 etc in the if condition. ..Deeps.. --- Anasta [EMAIL PROTECTED] wrote: What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error());

Re: [PHP] Sending htm as it's being generated

2005-05-09 Thread Brent Baisley
Bottom line is that you can't do it reliably with PHP or anything on the server. Different browsers will display content at different times. I think Internet Explorer will only display something after it gets a certain amount of information (i.e. 18k) or the entire page. I don't think any

Re: [PHP] need manual reload on Mac client

2005-05-09 Thread Brent Baisley
I would first look to the browser configuration and your html code. Are you using meta tags in your web page like pragma nocache and page expiration? If not, then it's really kind of up to the browser if it's going to reload the entire page from the server. I know there have been issues with

Re: [PHP] text with $

2005-05-09 Thread Richard Davey
Hello Martín, Monday, May 9, 2005, 1:23:45 PM, you wrote: MM I have a text variable that contains $ symbols, that when I pass it out PHP MM thinks that the $ mean that a variable name comes right after. MM I tried escaping the $ put with no luck. $string = hello\$world; Best regards,

Re: [PHP] Question about acessing databases and formatting output

2005-05-09 Thread The Doctor
On Mon, May 09, 2005 at 08:29:34AM +0530, bala chandar wrote: On 5/9/05, bala chandar [EMAIL PROTECTED] wrote: Hi On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Sun, May 08, 2005 at 01:49:08PM -0600, The Doctor wrote: On Sun, May 08, 2005 at 08:56:25PM +0530, bala chandar wrote:

Re: [PHP] text with $

2005-05-09 Thread Andy Pieters
On Monday 09 May 2005 14:23, Martín Marqués wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. To include the string symbol in a variable, use the single quotes. $myvar='this is $$$ test'; Andy --

Re: [PHP] text with $

2005-05-09 Thread =?ISO-8859-1?Q?Victor_Salda=F1a_D=2E?=
On 5/9/05, Martín Marqués martin@bugs.unl.edu.ar wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. I tried escaping the $ put with no luck. Is there something I can do? $var = 'hi $there'; --

Re: [PHP] text with $

2005-05-09 Thread Petar Nedyalkov
On Monday 09 May 2005 15:23, Martín Marqués wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. I tried escaping the $ put with no luck. Use single quote. Is there something I can do? --

[PHP] Re: text with $

2005-05-09 Thread Jason Barnett
Martín Marqués wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. I tried escaping the $ put with no luck. Is there something I can do? ?php echo '$'; echo \$; ? -- PHP General Mailing List

Re: [PHP] text with $

2005-05-09 Thread disguised.jedi
On 5/9/05, Martín Marqués martin@bugs.unl.edu.ar wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. /* This is standard behavior, as far as I know. Are you using an IDE, or just a standard text

[PHP] Accessible HTML - OT

2005-05-09 Thread Mikey
Hiya! I have just come back from the client visit and one of the issues that arose was over the use of accessible markup, more specifically the use of tables versus the use of layers. Now, my long held belief was that div/layers were added to the spec so that designers could separate

Re: [PHP] text with $

2005-05-09 Thread Marek Kilimajer
Martín Marqués wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. I tried escaping the $ put with no luck. Is there something I can do? How did you escape the symbol? You should use backslash: \ Or

[PHP] project looking for a web designer/developer

2005-05-09 Thread bruce
Hi.. Is this a correct mailing list to submit a posting looking for a web developer/web designer? The project will initially be a Sweat Equity project? Are there members here interested in being part of a Start-Up. Even though this is a PHP/Development list, we thought we'd ask! We have a

Re: [PHP] Question about acessing databases and formatting output

2005-05-09 Thread bala chandar
Hi, On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:29:34AM +0530, bala chandar wrote: On 5/9/05, bala chandar [EMAIL PROTECTED] wrote: Hi On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Sun, May 08, 2005 at 01:49:08PM -0600, The Doctor wrote: On

Re: [PHP] text with $

2005-05-09 Thread bala chandar
hi On 5/9/05, Martín Marqués martin@bugs.unl.edu.ar wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. use this $$text = $text; I tried escaping the $ put with no luck. Is there something I

Re: [PHP] text with $

2005-05-09 Thread =?iso-8859-1?q?Mart=EDn_Marqu=E9s?=
El Lun 09 May 2005 11:44, Marek Kilimajer escribió: Martín Marqués wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. I tried escaping the $ put with no luck. Is there something I can

Re: [PHP] text with $

2005-05-09 Thread Brent Baisley
Do you mean you named a variable like $varia$le? I wouldn't do that. If you mean you have something like: A text $tring with $ome dollar$ Just put it in single quotes instead of double quotes. PHP doesn't evaluate what's inside single quotes. 'A text $tring with '.$variable.' dollar' On May 9,

Re: [PHP] Question about acessing databases and formatting output

2005-05-09 Thread The Doctor
On Mon, May 09, 2005 at 08:19:47PM +0530, bala chandar wrote: Hi, On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:29:34AM +0530, bala chandar wrote: On 5/9/05, bala chandar [EMAIL PROTECTED] wrote: Hi On 5/9/05, The Doctor [EMAIL PROTECTED] wrote:

RE: [PHP] text with $

2005-05-09 Thread Mikey
I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. To include the string symbol in a variable, use the single quotes. $myvar='this is $$$ test'; Or, if you still want to use interpolation, use

RE: [PHP] Accessible HTML - OT

2005-05-09 Thread Mark Rees
-Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 15:40 To: php-general@lists.php.net Subject: [PHP] Accessible HTML - OT Hiya! I have just come back from the client visit and one of the issues that arose was over the use of accessible markup, more

[PHP] Re: Accessible HTML - OT

2005-05-09 Thread Matthew Weier O'Phinney
* Mikey [EMAIL PROTECTED]: I have just come back from the client visit and one of the issues that arose was over the use of accessible markup, more specifically the use of tables versus the use of layers. Now, my long held belief was that div/layers were added to the spec so that designers

[PHP] Wash with SOAP

2005-05-09 Thread Jay Blanchard
It has come to a point where a vendor is requiring that we use SOAP to access a service that they provide, so I need some recommendations... a. Do I build my own request/receipt functions. 2. Do I use something like nusoap or Pears' SOAP classes? Would those of you who are experienced with PHP

Re[2]: [PHP] text with $

2005-05-09 Thread Richard Davey
Hello bala, Monday, May 9, 2005, 3:51:21 PM, you wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. bc use this bc $$text = $text; While I'm sure creating a variable variable is useful in lots of

Re: [PHP] Accessible HTML - OT

2005-05-09 Thread eoghan
hi perhaps have a look here: http://www.webstandards.org/about/ Mikey wrote: Hiya! I have just come back from the client visit and one of the issues that arose was over the use of accessible markup, more specifically the use of tables versus the use of layers. Now, my long held belief was that

RE: [PHP] Any alternative to POST method FTP uploads from client computer?

2005-05-09 Thread Jared Williams
Hi All, I need to implement the ability to ftp upload files from client machines via a form in a web application I'm developing. From reading the PHP help, all I can find to perform this is the POST method for handling file uploads

Re: [PHP] Question about acessing databases and formatting output

2005-05-09 Thread bala chandar
On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:19:47PM +0530, bala chandar wrote: Hi, On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:29:34AM +0530, bala chandar wrote: On 5/9/05, bala chandar [EMAIL PROTECTED] wrote: Hi

[PHP] Re: [PHP-DEV] make new return a reference to existent object

2005-05-09 Thread Jochem Maas
Leonardo Pedretti wrote: I would like (for code cleanliness purposes) to make 'new' return a reference to an already created object under certain circumstances without using a factory, is it possible? not unless you hack the php engine (in which case your code will only work on your custom php

[PHP] numbers as strings

2005-05-09 Thread Jon Aston
how do I set a number as a string example let us say $a = 1; $b = 2; $c = 0; I would like to be able to $str = $c.$a.$b; to result with $str = 012; is there something that I have missed or I guess the question should be what did I miss -- PHP General Mailing List (http://www.php.net/) To

[PHP] A couple questions about templating

2005-05-09 Thread James Williams
Hey fellas, sorry to infest the list with another question about a templating engine, but I am looking for some professional opinions here... I am trying to make a small, fast, and simple templating class... Now I have mastered the art of variable replacement, and have made two versions. The

[PHP] mail() Problem

2005-05-09 Thread Mary-Anne Nayler
Hi. I am very new to this group and this is my first request for help so please be patient. when I try to use the mail() function in a PHP based webpage I get the following error: Fatal error: Call to undefined function: mail() in the path to my script on line line number I have tried

Re: [PHP] numbers as strings

2005-05-09 Thread Rory Browne
For the most part you can simply treat them as strings. What is happening that shouldn't be happening, or what should be happening, but isn't? let us say $a = 1; $b = 2; $c = 0; $str_a = (string)$a; $str_b = $b I would like to be able to $str = $c.$a.$b; Does that not work? What happens

Re: [PHP] Re: Accessible HTML - OT

2005-05-09 Thread Mary-Anne Nayler
Nested tables are the absolute worst thing you can do! A screen reader is able to tab to a table and tab within a table but once you begin to have tables within tables, UGH! To quote accessibility guru Joe Clark; With nested tables, a screen reader user ends up working from within a maze

Re: [PHP] Re: [PHP-DEV] make new return a reference to existent object

2005-05-09 Thread Rory Browne
I think Leonardo might have a point here. Built-in support for Singletons could be a nice feature, without the use of static functions, would be nice. I wouldn't use the 'new' keyword however. I think something along the lines of existing, or ref $ref = existing TEST; // which would return an

Re: [PHP] Accessible HTML - OT

2005-05-09 Thread Mary-Anne Nayler
I was under the belief that tables are very bad for accessibility. I once attended a conference on accessibility and standards and witnessed a blind person attempting to read a website that had it's information laid out in a table with a screen reader. It was awful and shamed me into never

Re: [PHP] A couple questions about templating

2005-05-09 Thread Rory Browne
I am trying to make a small, fast, and simple templating class... Now I have mastered the art of variable replacement, and have made two versions. The first one I made simply used file() to load up the file into an array, Personally I think you should use file_get_contents() instead.

Re: [PHP] A couple questions about templating

2005-05-09 Thread Greg Donald
On 5/9/05, James Williams [EMAIL PROTECTED] wrote: 1st question) I need a professionaly opinion on to which solution is better, considering speed, security, and expandability. Bench them both with Apache's ab. 2nd question) Like I said before, I've mastered the art of variable replacement,

Re: [PHP] A couple questions about templating

2005-05-09 Thread James Williams
On 5/9/05, Rory Browne [EMAIL PROTECTED] wrote: I made a second one, which reads the file into an array, changes the variables the same way, but instead compiles the finished product into a compile directory and then reads the compiled file back to the page. the benefit to this being that

Re: [PHP] mail() Problem

2005-05-09 Thread dan
Mary-Anne Nayler wrote: Hi. I am very new to this group and this is my first request for help so please be patient. when I try to use the mail() function in a PHP based webpage I get the following error: Fatal error: Call to undefined function: mail() in the path to my script on line line

Re: [PHP] mail() Problem

2005-05-09 Thread Richard Lynch
On Mon, May 9, 2005 4:02 pm, Mary-Anne Nayler said: Fatal error: Call to undefined function: mail() in the path to my script on line line number That means PHP has no mail() function to even call, which is MUCH earlier in the process than sendmail location. Most likely, your webhost has

[PHP] Re: A couple questions about templating

2005-05-09 Thread Matthew Weier O'Phinney
* James Williams [EMAIL PROTECTED]: Hey fellas, sorry to infest the list with another question about a templating engine, but I am looking for some professional opinions here... I am trying to make a small, fast, and simple templating class... Now I have mastered the art of variable

Re: [PHP] Re: Accessible HTML - OT

2005-05-09 Thread Matthew Weier O'Phinney
* Mary-Anne Nayler [EMAIL PROTECTED] : Nested tables are the absolute worst thing you can do! I agree -- which, if you read my post, you'll see I didn't advocate nested tables -- just a single table for columnar layout of the page. Within each column, items are floated or positioned using CSS.

Re: [PHP] Re: Accessible HTML - OT

2005-05-09 Thread Manuel Lemos
Hello, on 05/09/2005 08:24 PM Mary-Anne Nayler said the following: Nested tables are the absolute worst thing you can do! A screen reader is able to tab to a table and tab within a table but once you begin to have tables within tables, UGH! To quote accessibility guru Joe Clark; With nested

[PHP] While and echoing HTML

2005-05-09 Thread Mark Sargent
Hi All, this page, http://www.freewebmasterhelp.com/tutorials/phpmysql/5 has the below code, ? $i=0; while ($i $num) { $first=mysql_result($result,$i,first); $last=mysql_result($result,$i,last); $phone=mysql_result($result,$i,phone); $mobile=mysql_result($result,$i,mobile);

[PHP] Test: Please Ignore

2005-05-09 Thread Mark Sargent
Testing receipt of post..cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php