[PHP] Re: elseif statements

2009-05-04 Thread Gary
This just keeps getting weirder, the results change sometimes even when the same info is entered.. This is the revised code (after some helpful hints from some readers) Anyone help, I am supposed to show this tomorrow to client. Gary =5)) { echo 'Yes, Your property appears to qualify!';

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-04 Thread Ashley Sheridan
On Mon, 2009-05-04 at 18:42 -0400, PJ wrote: > Jim Lucas wrote: > > PJ wrote: > >> Is there a module to be activated or what has to be installed to have > >> ttf support in php? > >> My port on FreeBSD does not have an option for ttf support under make > >> config . > >> I'm trying to learn & under

Re: [PHP] Avoid to open mysql querries then times in the page

2009-05-04 Thread Ashley Sheridan
On Mon, 2009-05-04 at 23:09 +0030, Bastien Koert wrote: > Yep, though I would still query 2x. Once for the login data, no sense > retrieving more if the log on fails. Then the second query is to get > all the user data into a session object. There are two schools of > thought about this, pull all t

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-04 Thread PJ
Jim Lucas wrote: > PJ wrote: >> Is there a module to be activated or what has to be installed to have >> ttf support in php? >> My port on FreeBSD does not have an option for ttf support under make >> config . >> I'm trying to learn & understand the following: >> In file1 : >> In file2 (button.php

Re: [PHP] Avoid to open mysql querries then times in the page

2009-05-04 Thread Bastien Koert
Yep, though I would still query 2x. Once for the login data, no sense retrieving more if the log on fails. Then the second query is to get all the user data into a session object. There are two schools of thought about this, pull all the required data into the session, which doesn't scale well but

Re: [PHP] Re: Query stopping after 2 records?

2009-05-04 Thread Martin Zvarík
If the query stopped after getting 2 entries then this has nothing to do with max_execution_time. But stupid topic anyway, I don't know why are we even trying to figure what Miller meant, he most probably solved it already... Andrew Hucks napsal(a): When you say die, does it just stop, or d

[PHP] Avoid to open mysql querries then times in the page

2009-05-04 Thread Matthieu
Hello, I'm a totally newbie to php/Mysql but I'd like to know if it is normal that I have to connect 3 times to the db in one page. For example, I have 1. A connection for the login / pass a $_SESSION['login'] before the HTML tags 2. I need to say hello to the user so I reconnect, run a qu

Re: [PHP] Re: Query stopping after 2 records?

2009-05-04 Thread Andrew Hucks
When you say die, does it just stop, or do you get an error message? Depending on how long it's taking to perform the action, the script will stop just because it's taking a while. (by default, I think it's 30 seconds.) If so, use: ini_set("max_execution_time", "time in seconds"); On Mon, May 4,

[PHP] Re: Query stopping after 2 records?

2009-05-04 Thread Martin Zvarík
Miller, Terion napsal(a): I need help/advice figuring out why my query dies after 2 records. Here is the query: // Build your INSERT statement here $query = "INSERT into `warrants` (wid, name, age, warrant, bond, wnumber, crime) VALUES ("; $query .= " '$wid', '$name', '$a

[PHP] elseif statements

2009-05-04 Thread Gary
I am trying to get this to work, however it only reads the second if statement. I get no error messages, but as I change counties, the % stays the same. Can someone enlighten me, or should I be looking at switch statements? Thanks for your help. Gary =5)) { echo 'Yes, Your property ap

Re: [PHP] Re: Static and/or Dynamic site scraping using PHP

2009-05-04 Thread haliphax
On Thu, Apr 30, 2009 at 8:03 AM, 9el wrote: > On Thu, Apr 30, 2009 at 3:33 AM, 9el wrote: >> I just got a project to do on PHP of scraping the body items from >> static sites or just html sites. >> Could you experts please suggest me some quick resources? >> >> I have to make an WP plugin with th

Re: [PHP] ImageMagick

2009-05-04 Thread haliphax
On Fri, May 1, 2009 at 7:11 AM, Kevin Waterson wrote: > This one time, at band camp, Michael A. Peters wrote: >> Here's the scenario - >> >> Website has some demonstrative images. >> >> I create these images with the gimp - starting with a jpeg, adding a few >> text layers and straight lines. >> >

Re: [PHP] compiling a test php from latest csv snapshot on os-x

2009-05-04 Thread Tom Worster
On 5/4/09 2:52 AM, "Michael A. Peters" wrote: > Tom Worster wrote: >> i've an outstanding verification to do for a php bug fix. can anyone point >> me at instructions for compiling the latest csv snapshot for testing on os-x >> without installing over my current installed php? > > I assume you c