Re: [PHP] Window close.

2006-02-06 Thread James Kaufman
On Mon, Feb 06, 2006 at 02:05:55PM -0500, tedd wrote: > Hi: > > This might seem like a odd question, but in php I can leave a script > by "exit;" But, how can I also close the html page that contains the > script? > > I know that I can close the page many different ways via a user > actions, b

Re: [PHP] large files and readfile

2006-02-06 Thread James Kaufman
On Mon, Feb 06, 2006 at 09:21:22AM -0800, Daniel Bondurant wrote: > I am using php and readfile() to control the download of large files; > These files can be up to 1GB.There is nothing really exciting or > special about the script itself. > > The problem I am running into is php is loadin

Re: [PHP] LIMIT?

2006-02-06 Thread James Kaufman
On Mon, Feb 06, 2006 at 05:08:59PM +0200, Andrei wrote: > > You can use SELECT fields FROM table WHERE condition LIMIT 15, -1 and it > will select all from 15... > > Andy > > William Stokes wrote: > >Hello > > > >I have a news page which is getting quite long now and I would like to > >s

Re: [PHP] Decision table/business rule parser?

2005-11-22 Thread James Kaufman
On Tue, Nov 22, 2005 at 02:49:41PM +0100, Jochem Maas wrote: > Geoff - Creative Living wrote: > >Hi Mike > > > >As an alternative, I worked briefly on a native PHP Petri-net workflow > >engine with a guy called Tony Marston before we parted ways. He has > >written it up here: > > > >http://www.tony

Re: [PHP] Pre global configuration

2005-09-27 Thread James Kaufman
On Tue, Sep 27, 2005 at 10:40:06AM -0400, Jake Gardner wrote: > This is a stretch and I doubt you can do this very easily, but I was > wondering if there is a way to define behaviors that happen throughout > a script before execution for example if the OS is windows, all > strings are terminated wi

Re: [PHP] Learning PHP - question about hidden form fields

2005-09-07 Thread James Kaufman
On Wed, Sep 07, 2005 at 06:47:28PM -0400, Iggep wrote: > Hey all! I sat down and started learning PHP today and ran into a bit of a > spot. Hoped someone here could lead me in the right direction. I created a > simple test form called form.php. I thought I had this strait in my mind > when I

Re: [PHP] Best practices for deleting and restoring records - moving vs flagging

2005-08-11 Thread James Kaufman
On Thu, Aug 11, 2005 at 10:47:09AM -0700, Saqib Ali wrote: > Hello All, > > What are best practices for deleting records in a DB. We need the > ability to restore the records. > > Two obvious choices are: > > 1) Flag them deleted or undeleted > 2) Move the deleted records to seperate table for d

Re: [PHP] Running a PHP script everyday

2005-07-30 Thread James Kaufman
On Sat, Jul 30, 2005 at 09:17:20AM -0700, [EMAIL PROTECTED] wrote: > I have a PHP script that I need to run once a day. I have it currently > setup so that I just run it from my cell phone, but I would prefer something > automated. I'd looked into a cron job, but that just looks like it's for > do

Re: [PHP] Creating intelligent forms

2005-04-14 Thread James Kaufman
On Wed, Apr 13, 2005 at 06:54:25PM -0700, dan wrote: > Hello, all - > > I had some questions regarding the creation of "intelligent" forms - > forms that take data, and then parse it for errors, "real" data, etc etc. > > The first idea I had was to make a function to display the form. When > t

Re: [PHP] Re: Illegal string offset error in array

2005-03-27 Thread James Kaufman
On Mon, Mar 28, 2005 at 11:29:28AM +1200, Jasper Bryant-Greene wrote: > Rasmus Lerdorf wrote: > >>>Jasper Bryant-Greene wrote: > You can't access string offsets with square brackets [] in PHP5. You > need to use curly braces {} instead. > >>> > >>>Not sure where you got that idea. This is

Re: [PHP] Re: Script stuck on final ?>

2005-02-03 Thread James Kaufman
On Thu, Feb 03, 2005 at 08:25:43PM +0800, Alp wrote: > Thanks to both of you. Unfortunately I have found out it was due to another > reason: in one function I am trying to insert 3 sets of data into 3 seperate > tables. In trying to accomplish that I am using a 'for' loop. The minute I > write in t

Re: [PHP] cal_days_in_month() missing, how can I tell if it exists

2005-02-01 Thread James Kaufman
On Tue, Feb 01, 2005 at 08:47:29PM +, Ben Edwards wrote: > I have been implementing a system on a different ISP than I normally use > and have got:- > > Fatal error: Call to undefined function: cal_days_in_month() > in > /home/hosted/www.menublackboard.com/public_html/dev/classes/validator.cl

Re: [PHP] Avoiding NOTICEs with list()

2005-01-24 Thread James Kaufman
On Mon, Jan 24, 2005 at 03:54:45PM -0500, [EMAIL PROTECTED] wrote: > This construct: > > list($v1, $v2, $v3) = explode($sep, $string, 3); > > will generate NOTICE level errors if there are not enough parts of the > string to fill all the variables in the list. What I really want is > for

Re: [PHP] Problem with foreatch()

2005-01-16 Thread James Kaufman
On Sun, Jan 16, 2005 at 03:20:26PM +, Ben Edwards (lists) wrote: > I have the following Code: > > foreatch( $_POST["mtype"] as $akey => $avalue ) { > echo "$akey, $avalue"; > } > > When I run it I get: > > Parse error: parse error, unexpected T_AS > in /var/www/mb/mb_estab_upd

Re: [PHP] MD5 Hashing Comparison

2004-11-20 Thread James Kaufman
On Sat, Nov 20, 2004 at 05:49:04PM -0500, Gregori Halsiber wrote: > Hi, I'm trying to write a md5 hash to auth users... And before I get flamed > about md5 not being a crypt system but a hashing system I know... Security > is not a problem.. > I'm trying to build a standalone Message Update Center

Re: [PHP] Error when I try to display 20 records per page

2004-11-15 Thread James Kaufman
On Mon, Nov 15, 2004 at 06:56:45PM -0600, Scott McWhite wrote: > Hi, > > > > I'm using an HTML search form that passes the searchterm to a php file. > > In my case the searchterm can have 1000s of records in my database, so I > implemented a limit which displays 20 records per page. The pagin

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread James Kaufman
Stuart, On Sat, Nov 13, 2004 at 05:31:06AM -0800, Stuart Felenstein wrote: > > It was not apparent whatsoever. Let me show the code > again , but I'll include the print_r returns inline > code. > > $sql = 'SELECT PostStart, JobTitle, Industry, > LocationState, VendorID > FROM VendorJob

Re: Re: [PHP] Big table dump stopping in between

2004-11-06 Thread James Kaufman
On Sat, Nov 06, 2004 at 10:10:56AM -0500, Ritesh Nadhani wrote: > > I even tried an HTTP utility but it is also stopping half way thru. I think its a > problem with ISPs server. Looks like some server option has to be configured. > What database is this again? I had a similar problem with an '

Re: [PHP] 4.3.9 slower then 4.3.8 ... ?

2004-11-03 Thread James Kaufman
On Wed, Nov 03, 2004 at 08:43:52PM -0400, Marc G. Fournier wrote: > > I'm not sure how to debug this further ... on the 27th, I upgraded our > server(s) to 4.3.9, and since then, the sites just aren't performing very > well ... I've tried adding mmcache, and it makes no improvement ... I've > t

Re: [PHP] Help With PEAR::DB Connection

2004-09-11 Thread James Kaufman
On Sat, Sep 11, 2004 at 01:48:43AM -0500, [EMAIL PROTECTED] wrote: > Hello everyone, > > I have a problem connecting to the Database. When I execute the code at the > bottom, it gives me this message: "DB Error: extension not found". It sees > the DB file and the parameters are correct. I checked

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread James Kaufman
On Wed, Sep 01, 2004 at 04:39:51PM -0400, blackwater dev wrote: > I have tried recompiling with --with-mssql and --with-mssql=/usr/include/freetds > It all appears to compile correctly, except the info page does not > reflect the config was done with mssql at all. below is a snippet of > the confi

Re: [PHP] mail() function problem

2004-09-01 Thread James Kaufman
On Wed, Sep 01, 2004 at 06:09:04PM +0300, Dre wrote: > Hi > I was trying to use the mail() function, but it did not work, maybe because > of some settings problem or something that I can't figure out > > I went online and tried to execute the following > //=

Re: [PHP] row colours

2004-06-05 Thread James Kaufman
On Sat, Jun 05, 2004 at 04:54:33PM +0200, Marek Kilimajer wrote: > BigMark wrote: > > this piece of script makes alternate row colours, but i want the rows to > > be > >coloured in blocks of 8. So the first 8 rows are white then the next are > >mauve etc etc. > > > >Alternatively i could make the

Re: [PHP] sessions

2004-06-04 Thread James Kaufman
On Fri, Jun 04, 2004 at 04:22:57PM -0800, BigMark wrote: > why is this not working. I am using instead of a form ($name = > $_POST[name];) > and linking to it from a users logged in page. > > $FirstName = $_SESSION['first_name']; > $LastName = $_SESSION['last_name']; > $name = "$FirstName , $LastN

Re: [PHP] Lista en Espanol?

2004-05-19 Thread James Kaufman
On Wed, May 19, 2004 at 02:02:37PM -0300, Lucas Passalacqua wrote: > Hole, queria saber si alguien conoce alguna lista en espanol sobre PHP. > Gracias! > Start with http:///www.php.net/mailing-lists.php and look for Spanish PHP Mailing List. -- Jim Kaufman Linux Evangelist public key 0x6D80

Re: [PHP] elseif carry

2004-05-15 Thread James Kaufman
Try this: echo ""; On Sat, May 15, 2004 at 07:47:28PM +0400, Ronald The Newbie Allen wrote: > I did a cut asnd paste to your code and this is the error that I receive > > Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting > T_STRING or T_VARIABLE or T_NUM_STRING in c:\inet

Re: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread James Kaufman
On Wed, Mar 10, 2004 at 02:21:19PM -0500, Shaunak Kashyap wrote: > I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's > get_browser function which needs a file called browscap.ini on the server. > It *seems* that there is no such file available for Linux (I have checked > the

Re: [PHP] pdflib alternatives

2004-02-16 Thread James Kaufman
On Mon, Feb 16, 2004 at 09:35:10PM -0300, Fernando M. Maresca wrote: > Hello everybody: > Is there are any alternatives to the pdflib for on the fly generation of > printable documents? May be a postcript lib? > I need no fancy things, just speed and minimal formating facilities, > even no graphics

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread James Kaufman
On Thu, Feb 05, 2004 at 02:32:49PM -0500, Phillip Jackson wrote: > it's this easy with register_globals off: > > $_SESSION['order'] = "someValue"; > > no need to name the session. > > ~Phillip > > > "John Nichel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Randall Perry w

Re: [PHP] Re: progress in PHP

2003-12-23 Thread James Kaufman
On Tue, Dec 23, 2003 at 11:46:50AM -0500, Ed Curtis wrote: > > > Join the 11,000 people who use megaupload progress bar (with a little > > help from perl) > > http://www.sourceforge.net/projects/megaupload/ > > I tried. It wasn't worth all the perl mods I would to have had to > install to make i

[PHP] Recommendation for Unique URL

2003-10-25 Thread James Kaufman
I have an application that does not require a user to log in. But, they do enter their email address and their dept. manager's email address. I want to send an email to the dept. manager that contains a personalized URL so they can click on that and see a page relevant to what the employee entered.

Re: [PHP] SESSION Not behaving II: permission denied(13)

2003-10-18 Thread James Kaufman
On Sat, Oct 18, 2003 at 03:44:31PM +0300, Burhan Khalid wrote: > [-^-!-%- wrote: > >Yep. It's me again. 96 hours into the battle, and SESSIONS are still > >winning. > > > >I've written my login script and is now getting the following error. > >Please advise. > > > >Warning: open(/tmp/sess_a690c089d

Re: [PHP] Sessions Question

2003-10-15 Thread James Kaufman
On Tue, Oct 14, 2003 at 05:23:54PM -0800, Chris Hubbard wrote: > to use php sessions: > you will need some place where you set up/create the sessions. typically > this is the login page. let's assume you'll use the login page. The logic > for the login page goes something like this: > 1. presen

Re: [PHP] Unknown Syntax

2003-07-11 Thread James Kaufman
On Fri, Jul 11, 2003 at 01:56:46PM +0100, Chris Morrow wrote: > Does anybody recognize this: > > !== > > with 2 '=' > > Ive known != to mean not equal to but i'm just looking at someone elses > script and they use this instead. Does anyone know if this works or any > problems with it? > > Cheer

[PHP] Checking if an array key exists

2003-05-29 Thread James Kaufman
I have a multi-dimensional array. Looks like this: $work_order_hdr = array ('whdr_id'=>'record_no', 'whdr_order_no'=>'request_no', 'whdr_site_id'=>'site_id', 'whdr_user_id'=>'user_id', 'whdr_locatio

[PHP] Using SELECT and MULTIPLE in a form

2003-02-01 Thread James Kaufman
I am displaying a form using values obtained from a database query. One of the elements contains about 20 different values. I want the use to be able to select multiple values before pressing submit. This seems to work, but when my php script is called, all I see is the last data value assigned to