[PHP] connection_aborted does not work

2004-08-18 Thread Nolan Eakins
will check de connection Echo My chat; Sleep(1); } fwrite($f, Aborted\n); fclose($f); ? I got that script from php.net's manual page for connection_aborted(), and modified it to write out to a log file. Aborted never ever gets printed to /tmp/aborted.log. Hope this gets fixed ASAP. - Nolan

[PHP] Re: text search in database

2004-06-02 Thread Michael Nolan
Vincent DUPONT wrote: Hi, I need to do a text search on some fileds in a database. I would like the users to be able to use some syntax like 'AND' 'OR' 'NOT' parentheses () and quotes to make their search queries more powefull. I face 2 problems : 1. parse the query 2. execute the search (create

[PHP] Re: Can session.save_path data be saved to a database instead of a file system?

2004-06-02 Thread Michael Nolan
Caleb Walker wrote: I have 2 servers fail-over/load-balanced behind an F5 bigIP. I want session data to be maintained in the event one server takes a dive. In this scenario, if a user is in the middle of doing something while logged in, they will not have to lose all work and log back into the

[PHP] Re: Can session.save_path data be saved to a database instead of a file system?

2004-06-02 Thread Michael Nolan
John W. Holmes wrote: From: Caleb Walker [EMAIL PROTECTED] This looks like modifications that need to be made to the application. I dont really want to touch the application. Instead I just want PHP, through the php.ini file or whatever to take the session data and put it in a database instead

[PHP] Re: PHP Coding Standards

2004-05-29 Thread Michael Nolan
charles kline wrote: Hi all, I was having a conversation with a friend and talking about coding standards in the open source community (focusing on PHP). I seem to remember there being a document out there that sort of laid it out pretty well. Anyone know where I might find a copy? PEAR has a

[PHP] Re: simple image manager app?

2004-04-01 Thread Michael Nolan
Gabriel Guzman wrote: On Thursday 01 April 2004 09:41 am, Jeff D. Hamann wrote: I often travel and would like to be able to upload digital photos to my server (either using a simple multiple file upload (one that I can select multiple file using the windows file dialog, or some other method

[PHP] Re: Printing landscape

2004-03-16 Thread Michael Nolan
Luis Mirabal wrote: actually, you can control your printer, look: http://www.php.net/manual/en/function.printer-set-option.php you have to do: $handle = printer_open(); printer_set_option ($handle, PRINTER_ORIENTATION , PRINTER_ORIENTATION_LANDSCAPE); printer_close($handle); you've got many

[PHP] Re: Help with arrays

2004-03-12 Thread Michael Nolan
, but it will give you an array something like this: print_r($variable); Array ( [michael] = nolan [joe] = bloggs [john] = smith ) HTH, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Get nice variables from POST

2004-03-11 Thread Michael Nolan
Ryan A wrote: Does this look nicer? $fields = array('username', 'password', ...); foreach($fields as $key) $$key = $_POST[$key]; Hi Marek, A bit confused...whats the meaning of the double $ for key...or is that a typo? Thanks, -Ryan This manual page explains:

[PHP] Re: wysiwyg editor

2004-03-10 Thread Michael Nolan
Outbound wrote: Hello, do you have any recommendation about what wysiwyg html(javascript) editor to use in php projects ? People usually don't like textareas and want to increate usability :-/ Best regards, Roman HTMLArea. Version 2 supports IE5.5+ V2:

[PHP] Re: Parse error ???

2004-03-04 Thread Michael Nolan
Mike Mapsnac wrote: The script should upload files (images). Error message is give below, any ideas why I get this errror message? Parse error: parse error in /var/www/html/uploadproc.php on line 3 die() needs brackets around its arguments, eg: die(Error! The expected file wasn't a part of the

[PHP] Re: Parse error ???

2004-03-04 Thread Michael Nolan
11 Warning: move_uploaded_file(): Unable to move '/tmp/phpiMrdlQ' to '/var/www/html/upload/' in /var/www/html/uploadproc.php on line 11 Error Moving the uploaded file failed. From: Michael Nolan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: Parse error ??? Date: Thu, 04 Mar 2004 13

[PHP] Re: Send Attachments via mail using form

2004-02-26 Thread Michael Nolan
Dave Carrera wrote: Hi List, I would like to allow my visitors to send attachments via my contact form. I already have email validation, field verifications and other nice bits but I am stuck on the add attachment bit. Also would this be limited to one file or can multiple files be allowed ?

[PHP] Re: renamed images are now corrupt...

2004-02-26 Thread Michael Nolan
Check the permissions and ownership of the files, especially if you ran the script as some privileged user like root. chmod or chown can be used to changed these. Mike Bryan Henry wrote: Browser and FTP client act as if the image files do not exist, even though the directory contents can be

[PHP] Re: Encrypted Zip Files

2004-02-24 Thread Michael Nolan
Howard Miller wrote: Hi (again), I need to unzip (in/from PHP) files that have been zipped using pkzip on a windows machine using a password. Has anybody any thoughts on how to do this. I was just going to call a command line program (if I can find one!), but thought I would ask if there is

[PHP] Re: Crappy results from query

2004-02-18 Thread Michael Nolan
Ryan A wrote: $result=mysql_query(SELECT distinct(order_id),name,status,total FROM . $tcname._h2o LIMIT $limit1, $limit2); The distinct keyword applies to the whole row. Since you're including other fields that will be different even though the name is the same, MySQL does not consider them

[PHP] Re: UK Postcodes Format

2004-02-17 Thread Michael Nolan
Shaun wrote: Hi, does anyone know the format of the postcodes in the UK so I can keep my database accurate? Thanks http://www.royalmail.com/portal/rm/content1?catId=400044mediaId=9200078#3400055 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: str_replace not replacing

2004-02-11 Thread Michael Nolan
Aaron Merrick wrote: I'm reading in to a variable $section1 an entire php file that creates a mysql table. I can output the variable in a new file just fine (figured out what all had to be escaped in the original file). My problem is, I want to replace the table name in the original file with a

[PHP] Re: Date comparison

2004-02-04 Thread Michael Nolan
Burhan Khalid wrote: BEOI 7308 wrote: Hi I want to substract $first_date to $second_date and print the result this way : xx days, xx hours, xx minutes i tried (strtotime($second_date)-strtotime($first_date)) but what i get is a timestamp and i dont know what to do with it Is there already a

[PHP] Re: Issue with 'W' in the date() function?

2004-02-03 Thread Michael Nolan
William Bailey wrote: Hi all, Can somebody please explain this for me... [EMAIL PROTECTED]:/usr/home/wb [11]- php ?php $time = strtotime('now -5 weeks'); printf(\n\n%s is in week %d of the year %d\n\n, date('Y-m-d', $time), date('W', $time), date('Y', $time)); ? ^D 2003-12-30 is in week 1

[PHP] PHP4, Flash and tab characters

2001-07-29 Thread Nolan
into more things now, but wanted to ask here and see if anyone else has had this happen? The usual flush(), chop() or trim() functions don't seem to be helping. Any other ideas? Thanks in advance, Nolan [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail