[PHP] 304 Not Modified header not working within a class

2010-01-16 Thread Camilo Sperberg
Hi list, my first message here :) To the point: I'm programming a class that takes several CSS files, parses, compresses and saves into a cache file. However, I would like to go a step further and also use the browser cache, handling the 304 and 200 header types myself. Now, what is the problem?

Re: [PHP] order by ASC

2010-01-16 Thread Robert Cummings
John Taylor-Johnston wrote: Did some googling. This worked: ORDER BY CAST(`rollnumber` AS SIGNED) What is the difference? My problem in the meanwhile must be my version of MySQL? You could have skipped quotes altogether. The difference is that you are referencing a field name, not a string v

Re: [PHP] order by ASC

2010-01-16 Thread John Taylor-Johnston
Did some googling. This worked: ORDER BY CAST(`rollnumber` AS SIGNED) What is the difference? My problem in the meanwhile must be my version of MySQL? John Taylor-Johnston wrote: It hates me: SELECT * FROM ... WHERE `type` IN ('Member', 'Affiliated', 'Life Member') ORDER BY CAST(rollnumber

Re: [PHP] order by ASC

2010-01-16 Thread John Taylor-Johnston
It hates me: SELECT * FROM ... WHERE `type` IN ('Member', 'Affiliated', 'Life Member') ORDER BY CAST(rollnumber AS int) SELECT * FROM ... WHERE `type` IN ('Member', 'Affiliated', 'Life Member') ORDER BY CAST(`rollnumber` AS int) SELECT * FROM ... WHERE `type` IN ('Member', 'Affiliated', 'Life

Re: [PHP] order by ASC

2010-01-16 Thread Robert Cummings
John Taylor-Johnston wrote: Ok, I think this is a MySQl question. Take pity on me? $sql = "SELECT * FROM $db.`mailinglist` WHERE `type` IN ('Member', 'Affiliated', 'Life Member') ORDER BY `rollnumber` ASC"; rollnumber is a varchar(50). I need it to be a text field. ASC does not order the way

[PHP] order by ASC

2010-01-16 Thread John Taylor-Johnston
Ok, I think this is a MySQl question. Take pity on me? $sql = "SELECT * FROM $db.`mailinglist` WHERE `type` IN ('Member', 'Affiliated', 'Life Member') ORDER BY `rollnumber` ASC"; rollnumber is a varchar(50). I need it to be a text field. ASC does not order the way I want. 1000 1001 998 999

[PHP] Shipping calculator

2010-01-16 Thread Skip Evans
Hey all, I've written a few shopping carts, but not one that calculated shipping charges. So I did a bit of Googling and found SONICODE that looks pretty good here. http://www.sonicode.com/php_shipping_rates_calculator.php It's a PHP library that handles the calls to the carries USPS, UPS a

Re: [PHP] mysql_real_escape_string(0xffffffff) yields -1

2010-01-16 Thread Shawn McKenzie
LinuxManMikeC wrote: > On Fri, Jan 15, 2010 at 3:22 PM, Richard Lynch wrote: >> The subject line says it all: >> >> mysql_real_escape_string(0x) yields -1 >> >> What's up with that? >> >> Is there some way to convince mysql_real_escape_string to use BIGINT? >> >> I guess I'll just PCRE for

[PHP] Re: Compiling PHP-GTK with PHP-5.3.1

2010-01-16 Thread Thomas Worm
Hello, problem is solved. After some fixing of configure.js for MS VS.NET 2008 and fixing confutils.js it works. Thankts to Elizabeth M Smith for the help! My fixes have been postet to the php-gtk-dev mailinglist for beeing published in svn. Best Regards, Thomas -- Mit freundlichen Grüßen, T

Re: [PHP] mysql_real_escape_string(0xffffffff) yields -1

2010-01-16 Thread LinuxManMikeC
On Fri, Jan 15, 2010 at 3:22 PM, Richard Lynch wrote: > The subject line says it all: > > mysql_real_escape_string(0x) yields -1 > > What's up with that? > > Is there some way to convince mysql_real_escape_string to use BIGINT? > > I guess I'll just PCRE for digits and then pass it in and.

[PHP] Re: mysql_real_escape_string(0xffffffff) yields -1

2010-01-16 Thread Nisse Engström
On Fri, 15 Jan 2010 16:22:46 -0600 (CST), "Richard Lynch" wrote: > The subject line says it all: > > mysql_real_escape_string(0x) yields -1 Says nothing. Are you really asking PHP to convert an integer literal to string before passing it to m_r_e_s? That could easily explain the "-1", an

[PHP] Compiling PHP-GTK with PHP-5.3.1 with VC9

2010-01-16 Thread Thomas Worm
Hello, I tried to compile PHP-GTK 2.0.1 with PHP 5.3.1 on Windows. The first errors I was able to fix. The patch file with my fixes you find as an attachment to this mail. But now I get following error and I don't know why. VC9 doesn't find the SG-definition, but SAPI.h is included in php_gtk+.c.

[PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1

2010-01-16 Thread Vasily Pupkin
add X11BASE=${LOCALBASE} as it is shown below: #echo "X11BASE=${LOCALBASE}" >> /etc/make.conf The problem is in recent changeset for ports/Mk/bsd.port.mk: (http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk.diff?r1=1.630;r2=1.631;f=h) ..if ${X11BASE} != ${LOCALBASE} ..BEGIN: @${ECHO_MSG}

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-16 Thread Eric Lee
Hi, As I know that php did't setting user name and password. So, just install any smtp server with authenticaton set to "no authentication" Much list IIS smtp server. Eric, Regards, On 1/16/10, Andy Shellam wrote: > > Hi, > > > > > Also http://www.softstack.com/freesmtp.html which vikash men