RE: [PHP] Command line args HELP!!!

2001-07-18 Thread Don Read
() functions. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] adding the date to a database

2001-07-18 Thread Don Read
. -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Prevent user to close web browser

2001-07-19 Thread Don Read
. Especially if they close the browser ... Sharp, heavy objects; get some. -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List

RE: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Don Read
for checking stuff/things.'; $words=preg_split(/[^\w]+/, $line); echo $line, 'P'; while (list ($k, $v) = each($words)) { echo $k - $v, 'BR'; } Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you

RE: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread Don Read
user_id=$foo is likely be faster less load then an open/read/close. Trying to avoid hitting the database is a good maxim, but it's not the goal. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal

RE: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Don Read
); (read as: split on one or more non-word charachers) Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http

Re: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread Don Read
On 20-Jul-2001 [EMAIL PROTECTED] wrote: Hi Don! On Fri, 20 Jul 2001, Don Read wrote: snip Because the database is optimized for this kind of stuff ? Once you get the db handle (and you have. you've authenticated right ?), SELECT count(*) from msgposts where user_id=$foo is likely

RE: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread Don Read
); on the Select / display: echo nl2br(htmlspecialchars(stripslashes($row-foo))); also checkout 'set_magic_quotes_runtime()' Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's

RE: [PHP] keeping track of external image linking with php?

2001-07-23 Thread Don Read
; Header(Content-type: .$types[$ftype]); Header(Content-length: .filesize($fname)); @readfile($fname); $qry =insert into foo (da_time,da_name) values (NOW(), '$img'); @mysql_query($qry); ? Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before

RE: [PHP] Need some help with this idea!

2001-07-24 Thread Don Read
to scan through a column like i mentioned, or give me better ideas on how to do this?? thanks chris 'Old'-est - order by your_timestamp asc 'New'-est - order by your_timestamp desc ... limit x; Regards, -- Don Read [EMAIL PROTECTED] -- It's always

Re: [PHP] mailing in batches

2001-07-24 Thread Don Read
. ~ s/ better / other / Handling all those bounces manually will be a mess. No matter which MTA you use. Alexander Skwar -- Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal

RE: [PHP] URGENT... NEED HELP!!!

2001-07-24 Thread Don Read
has set quota on the Apache user (and why ?). Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net

RE: [PHP] whats wrong

2001-07-24 Thread Don Read
(spoiler: 'WHERE' comes after the field list). Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net

RE: [PHP] can't get gd working at all

2001-07-25 Thread Don Read
); ImageJPEG($image); ImageDestroy($image); ? This is from chapter 16 of Beginning PHP4 from Wrox press. Works fine for me. at the top, try something like: if (! function_exists('ImageCreate')) { Header(Content-type: text/html); echo Graphics not supported !; } Regards, -- Don Read

RE: [PHP] mysql_pconnect

2001-07-25 Thread Don Read
timeout Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] Perl Splice Equivalent

2001-07-25 Thread Don Read
: untested stab: unset($user[1]); unset($user['User2']); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http

RE: [PHP] assigning a part of the name of a variable with anothe

2001-07-26 Thread Don Read
[($fname[$i])]; thanks, while (list ($fld, $val) = each($HTTP_POST_VARS)) { .. do what ever ... } Note: It's a insecure practice to build a data query like this. You might want to do some kind of validation. Regards, -- Don Read [EMAIL PROTECTED

[PHP] no subject

2001-02-23 Thread Don Johnson
Yup. Go figure. Don Johnson It works if you execute only the SELECT (without the UPDATE) ? Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) On Friday 23 February 2001 16:57, Don Johnson wrote: Yup, the data's correct. The new records all have the DownloadedDateTime

[PHP] Concurrency in a multi-user environment

2007-11-21 Thread Don Proshetsky
anyone have any user friendly suggestions or can give me some URLs where I can read up on this? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Open New URL window

2007-09-20 Thread Don Read
, daggummit! if ($_POST['pw'] != burgers ) ^^^ -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List

[PHP] Any known security issues with IMAP?

2007-10-03 Thread Don O'Neil
Are there any known security issues/concerns with compiling PHP with imap/pop3 support? Such as hijacking php pages and relaying spam, etc...? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Any known security issues with IMAP?

2007-10-03 Thread Don O'Neil
Are there any known security issues/concerns with compiling PHP with imap/pop3 support? Such as hijacking php pages and relaying spam, etc...? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Core dumps with --with-openssl

2007-10-04 Thread Don O'Neil
I just tried rebuilding my apache php to the latest version and now whenever I try to start it it core dumps. If I remove the --with-openssl and build with 4.4.6 of php at least it starts. I can't even get my old version to build now... Is there a work-around for this? The setup is as follows:

[PHP] OpenSSL problem

2007-10-05 Thread Don O'Neil
Any time I compile PHP 4.4.7 with --with-ssl my apache 1.3.39 server core dumps on my FreeBSD 6.1 box. Anyone have a work around for this or suggestions where to look? I was having a similar problem with Curl, but once I told curl where the OpenSSL home dir was that solved that problem. The

[PHP] RSS Feed using PHP/MySQL errors

2008-08-06 Thread Don Mak
Trying to create an articles rss feed for my site and I keep getting an error that says: = A semi colon character was expected. Line: 7 Character: 60 linkhttp://www.chirunning.com/shop/pages.php?pageid=19id=383/link = I've tried every way imaginable to figure out why I am getting this

Re: [PHP] Removing an element from the middle of an mdlti-dimentsional array

2008-08-14 Thread Don Proshetsky
Yup, thanks. Also execute: $array = array_values(array) in order to fix the indexes - Original Message - From: mike [EMAIL PROTECTED] To: Don [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, August 14, 2008 11:16 PM Subject: Re: [PHP] Removing an element from

[PHP] New to PHP question

2009-01-28 Thread Don Collier
in a browser. Here is the code that I am working with: ?php $hamburger = 4.95; $chocmilk = 1.95; $cola = .85; $subtotal = (2 * $hamburger) + $chocmilk + $cola; $tax = $subtotal * .075; $tip = $subtotal * .16; $total = $subtotal + $tip + $tax; print Welcome to Chez Don.\n; print Here is your receipt:\n

Re: [PHP] New to PHP question

2009-01-28 Thread Don Collier
Paul M Foster wrote: On Wed, Jan 28, 2009 at 12:05:34PM -0700, Don Collier wrote: I am just learning PHP from the O'Reilly Learning PHP 5 book and I have a question regarding the formatting of text. Actually it is a couple of questions. First, when I use the \n and run the script from

Re: [PHP] New to PHP question

2009-01-28 Thread Don Collier
Paul M Foster wrote: See? This is what I'm talking about. *I* understand what you're saying, Don, and I agree. But this guy is just learning PHP from what is arguably not one of the best books on PHP (IMO). And you're throwing MVC at him. Let him master the subtleties of the language first

Re: [PHP] New to PHP question

2009-01-28 Thread Don Collier
Paul M Foster wrote: On Wed, Jan 28, 2009 at 01:45:07PM -0700, Don Collier wrote: On that note, what would be a better book to learn from? I have always been a fan of the O'Reilly books, but I am open to differing flavors of kool-aid. One can never have too many resources

[PHP] Re: curious (and frustrating) php/apache behavior

2005-10-29 Thread Don Brown
?php echo this is from the second php block; ? /body/html Producing from the browser (http://myhost/test.php): this is from the first php block this is from html this is from the second php block Don Brown Co-Founder, Utah Skies Ski champagne powder by day, surf diamond-studded velvet by night

[PHP] curious (and frustrating) php/apache behavior

2005-10-29 Thread Don Brown
?php echo this is from the second php block; ? /body/html Producing from the browser (http://myhost/test.shtml): this is from the first php block this is from html this is from the second php block Don Brown Co-Founder, Utah Skies Ski champagne powder by day, surf diamond-studded velvet

RE: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Don Read
. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] select question

2001-04-17 Thread Don Read
| | trnd| +-+ 10 rows in set (0.02 sec) mysql show tables like 'tmp%'; ++ | Tables_in_cache (tmp%) | ++ | tmpc | | tmpd | ++ 2 rows in set (0.02 sec) Regards, --

Re: [PHP] mySQL Question....

2001-04-17 Thread Don Read
want to DELETE the duplicates, just don't want dups to show up in my SELECT queries. Thanks. Jason select distinct(email_addr) ... -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's

Re: [PHP] IP address enconding

2001-04-19 Thread Don Read
$i 4; $i++) { $k = (int) ($n / $msk); $n -= $msk * $k; $t[$i]= $k; $msk /=256.0; }; $a=join('.', $t); return($a); } Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to

RE: [PHP] update form design question.

2001-04-25 Thread Don Read
, ideas and or suggestions are all welcome. I'd think a commit changes on the last page would be more intuitive for the users, but the programming would get a bit complex ... Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you

RE: [PHP] the SkyBiz matrix|downline program using PHP mySQL

2001-04-25 Thread Don Read
it would. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Syntax for select statement

2001-04-27 Thread Don Pro
= '$portname'); My question is, if the variable $portname has the ' character within in, will this cause an error in my select statement? If the answer is Yes, can someone give me a more robust way of writing it using PHP? Thanks, Don -- PHP General Mailing List (http://www.php.net

[PHP] Windows mail() problem with newlines

2002-12-12 Thread Don Sutherland
it. I've seen it on 2 different windows 2000 machines running the same versions of php and apache, as well as connecting to 2 different smtp servers. Environment Window 2000 Apache 1.3.27 PHP 4.2.3 Thanks Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Re: Auto Incrementing in PHP

2003-01-19 Thread Don Read
On 19-Jan-2003 Don Mc Nair wrote: Thanks Guys I just needed a pointer. I decided to use the database and created two tables, one for invoice number and one for order number then defined a function to read the current number and the increment it. That'll work, but it's not atomic. At high

RE: [PHP] Finding out if a table exists

2003-01-21 Thread Don Read
LIMIT 1); return ($res ? true : false); } Regards, -- Don Read [EMAIL PROTECTED] -- Beer is proof that God loves us and wants us to be happy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Using custom button form element instead of standard submit?

2003-01-29 Thread Don Read
=submit name=parent value=fooimg src=icon.gif/button $parent will equal img src=icon.gif NOT foo How do I get the value of foo to be returned in $parent and still use a graphical icon instead of a standard submit button? input TYPE=IMAGE NAME=parent VALUE=foo SRC=icon.gif Regards, -- Don Read

Re: [PHP] How do I do this PERL in PHP?

2003-09-17 Thread Don Read
=file_get_contents('dafile.txt'); $msgblks=explode('TO', $data); foreach($msgblks as $blk) { list($to, $subj, $msg) = explode($marker,preg_replace($pat, $marker, $blk)); ... do__your_stuff($to, $subj, $msg); ... } Regards, -- Don Read [EMAIL PROTECTED] -- It's

Re: [PHP] RE: newbie alternate row colours in dynamic table

2003-04-05 Thread Don Read
Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] combining text with $_POST

2003-04-05 Thread Don Read
On 06-Apr-2003 David McGlone wrote: Hi all, how can I combine this line to use just 1 echo statement? echo Name: ; echo $_POST['name'] echo 'Name: ', $_POST['name']; -or- echo 'Name: ' .$_POST['name']; Regards, -- Don Read [EMAIL PROTECTED

RE: [PHP] String Manipulation

2003-06-02 Thread Don Read
. I'd start with : $var=preg_replace('!tr bgcolor=.+!m', '[breakhere]', $var); $listing=explode('[breakhere]', $var); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper

RE: [PHP] Making a PHP Script Very Cache Friendly

2003-06-02 Thread Don Read
adding one more 'hint': header('Cache-Control: max-age=3600'); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http

RE: [PHP] TABLE COLUMNS

2003-06-02 Thread Don Read
; Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Using register_globals

2003-06-07 Thread Don Read
IMHO, of course. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] TIMESTAMP - Y-m-d

2003-06-08 Thread Don Read
On 05-Jun-2003 nabil wrote: Please help me how to print a timestamp string retrived from the database, and print it as -MM-DD MySQL ? http://www.mysql.com/doc/en/Date_and_time_functions.html -- Don Read [EMAIL PROTECTED] -- It's always darkest

Re: [PHP] Newman's Problem with Images.

2003-06-08 Thread Don Read
the wwwroot' Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Using register_globals

2003-06-08 Thread Don Read
will mysteriously go tits-up (or worse) and good code will keep on cranking. No matter what register_globals= is set to. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper

Re: [PHP] Creating Images

2003-06-15 Thread Don Read
'til the image is properly created ... snip //here: Header('Content-type: image/png'); ImagePng($image); } ImageDestroy($image); ? Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So

Re: [PHP] Re: fetch then put record?

2003-06-15 Thread Don Read
(', ', $chgflds) .'WHERE id=' .$_POST['id'];  mysql_query($update); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http

Re: [PHP] Sendmail Problem

2003-06-15 Thread Don Read
out: To: @mainservername:[EMAIL PROTECTED] -- or -- To: [EMAIL PROTECTED]@mainservername ... and the sysadmin will probably whack your pee-pee for doing that. So let him/her know beforehand so they don't TOS you. And the last resort is fsockopen(mainservername, 25) Regards, -- Don Read

Re: [PHP] Mail() problem

2003-06-15 Thread Don Read
=' ' REMOTE_ADDR=127.0.0.2 HOME=/ PS1='$ ' OPTIND=1 PS2=' ' PPID=2614 PATH=/sbin:/bin:/usr/sbin:/usr/bin IFS=' ' Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's

Re: [PHP] slow mail()

2003-06-15 Thread Don Read
or queue at lower loads. Delivery is done later in the background. try one of the option string: '-O DeliveryMode=b' -- or, if you can wait for a queue run -- '-O DeliveryMode=q' mail($to, $subj, $msg, $hdrs, '-O DeliveryMode=q'); Regards, -- Don Read [EMAIL

Re: [PHP] session question

2003-06-15 Thread Don Read
Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] mysql_errno codes

2003-06-17 Thread Don Read
On 16-Jun-2003 Thomas Hochstetter wrote: Hi. [3rd try] ... where can i get mysql_error codes from? The ones that mysql_errno returns. You can get all the OS and MySQL error codes with: $ perror `jot 1500` | grep -v 'Unknown error' Regards, -- Don Read

Re: [PHP] REGEX Question

2003-06-18 Thread Don Read
(/!--start_tag--(.*)!--end_tag--/m, ... Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http

Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Don Read
/movies/news/2003/03/26/sens ational_scenes/ :) Oh. OK, Good. Did you and Rasmus do a basketball scene in The Great Santini ? -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper

Re: [PHP] unique random id

2003-06-19 Thread Don Read
On 19-Jun-2003 Awlad Hussain wrote: How do i generate a unique random number? http://www.php.net/manual/en/function.uniqid.php Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal

Re: [PHP] strange crypt() problem

2003-06-20 Thread Don Read
, $dbpass); if (strcmp($dbpass,$epass)) { ... Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. (53kr33t w0rdz: sql table

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-20 Thread Don Read
#@@#, between them. Then, when you read the cookie value in, just explode it by your delimiter. setcookie (twovar, serialize(array($var1, $var2)), ...); ... list($var1, $var2) = unserialize($_COOKIE['twovar']); Regards, -- Don Read [EMAIL PROTECTED] -- It's

Re: [PHP] updateable database- please help- only displaying first word from field

2003-06-20 Thread Don Read
, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] updateable database 2nd question

2003-06-20 Thread Don Read
=' .$_POST['id'] .'; echo '!--Debug :', $update, '--'; mysql_query($update); ... Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP

Re: [PHP] Seating chart registration system?

2003-06-21 Thread Don Read
a [optional] seat: UPDATE seating SET guest='$idguest' WHERE idforum='$idforum' AND block='$idblock' [AND seat='$idseat'] AND guest=0 General admission: UPDATE seating SET guest='$idguest' WHERE idforum='$idforum' AND block='$idblock' AND guest=0 /programmer doodle Regards, -- Don Read

Re: [PHP] Small problem with date and location information?

2003-06-21 Thread Don Read
date('F j, Y, g:i a'), 'br'; putenv('TZ=PST8PDT'); echo date('F j, Y, g:i a'), 'br'; putenv('TZ=CHAST'); echo date('F j, Y, g:i a'), 'br'; ? Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal

Re: [PHP] execute a command

2003-06-22 Thread Don Read
($cmd 21, $output); -- or -- exec($cmd, $output, $errno); echo posix_strerror($errno); -- or -- proc_open(...) and read from pipe[2] Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal

Re: [PHP] How do I get the exit code of an external program?

2003-06-22 Thread Don Read
. that is the equivillent of the php exit() function but for external programs. One that simply returns the integer exit code of an executed shell program... exec(), system(), popen()/pclose() will return exit code. The manual is your friend. Regards, -- Don Read [EMAIL

Re: [PHP] Reg Exp help needed

2003-06-24 Thread Don Read
= preg_replace('!\d+!', '', $goodbadnum); 2nd: $goodbadnum =~ tr/0-9/x/; I think this one replaces and numbers with an 'x'. Yep. that replaces every digit with an 'x'. $goodbadnum= preg_replace('!\d!', 'x', $goodbadnum); Regards, -- Don Read [EMAIL PROTECTED

Re: [PHP] a generic getsql() function

2003-06-25 Thread Don Read
)) { return $arr; // Something has to happen here!!! Nothing will happen here!!! You've already returned from the function. } snipage Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before

Re: [PHP] calculating kilobytes

2003-02-15 Thread Don Read
. write a shell script (and put in your safe_mode_exec_dir): --- #!/bin/sh /usr/bin/du -k $1 | tail -1 exit 0 --- then use popen/fgets to call the script and parse output. Regards, -- Don Read [EMAIL PROTECTED] -- Beer is proof that God loves us and wants us to

[PHP] form with multiple lines to insert

2003-02-27 Thread Don Hicks
with me? Thanks, Don Hicks Portland, OR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL

2003-03-04 Thread Don Read
On 03-Mar-2003 Dan Sabo wrote: Thanks Larry, What are some of the more active MySQL lists? Do you have a URL or two? Thanks, Dan post to [EMAIL PROTECTED] or browse http://www.mysql.com/documentation/lists.html Regards, -- Don Read [EMAIL

RE: [PHP] Date Question.

2003-03-05 Thread Don Read
On 05-Mar-2003 Sebastian wrote: I have a date field in mysql in this format: Y-m-d H:i:s I would like to echo Today if the date is today, can someone offer some help? Thanks. SELECT IF(TO_DAYS(datefld)=TO_DAYS(current_date),'Today',LEFT(datefld,10)) as datefld, ... Regards, -- Don Read

RE: [PHP] Images out side the wwwroot

2003-03-10 Thread Don Read
Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] HTTP_REFERER security implications?

2003-03-10 Thread Don Read
-authenticate method would work better for your application. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http

RE: [PHP] Performance and Function Calls

2003-03-15 Thread Don Read
2-3 micro-seconds? Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] group by get last record

2003-03-16 Thread Don Read
table with all the desired fields and with the userid as primary key. Then do 'REPLACE INTO temptbl SELECT ... ORDER BY whatever'. And finally do a 'SELECT * FROM temptbl' Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So

RE: [PHP] require_once for php3

2003-03-24 Thread Don Read
emulation lib. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Re[2]: [PHP-DB] mysql timestamps

2003-03-24 Thread Don Read
operate on the formatted `UNIX_TIMESTAMP()' `UNIX_TIMESTAMP(date)' `UNIX_TIMESTAMP()' is called with a `date' argument, it returns snip -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's

RE: [PHP] PHP Send Mail Main headers.

2003-03-24 Thread Don Read
Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Oh, and I hope you're going to consider a multipart/alternative message body. HTML-only e-mail is evil. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before

RE: [PHP] Retrieve values from checkboxes

2003-03-24 Thread Don Read
[]. Whatever's leftover --those are the project_ids to remove. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. (53kr33t

RE: [PHP] problems with rename() - permission denied

2003-03-25 Thread Don Read
Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do

Re: [PHP] PHP Send Mail Main headers.

2003-03-27 Thread Don Read
Applications Development * Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. (53kr33t w0rdz: sql table query) -- PHP

RE: [PHP] HTML mail being sent with mail() not working for some people

2003-03-27 Thread Don Read
same people an HTML email composed in Outlook comes across just fine, perhaps it's the anti abuse headers causing the issue? Has anyone heard or had experience with this? google 'mime multipart alternative HTML' Regards, -- Don Read [EMAIL PROTECTED

RE: [PHP] Return Character in a Text File?

2003-03-27 Thread Don Read
wordpad (or whatever they calling it this week) will grok bare linefeeds. Thanks! Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do

RE: [PHP] split

2003-03-27 Thread Don Read
/) To unsubscribe, visit: http://www.php.net/unsub.php -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. (53kr33t w0rdz: sql table

RE: [PHP] Grid edit form

2003-03-28 Thread Don Read
is submitted. Thank You Very much. if ( (isset($submit)) ($submit =='Update') ) { while (list($id, $val) = each($row)) { // do something with $id and $val }  } yourforloop { // fetch $id, $val echo INPUT TYPE=TEXT NAME=\row[$id]\ VALUE=\$val\; } Regards, -- Don Read

RE: [PHP] Get the HTTP Server Username

2003-03-28 Thread Don Read
']; Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. (53kr33t w0rdz: sql table query) -- PHP General Mailing List (http

RE: [PHP] Get the HTTP Server Username

2003-03-28 Thread Don Read
On 28-Mar-2003 Chris Shiflett wrote: --- Mike [EMAIL PROTECTED] wrote: Is there anyway to get the HTTP Server Username (something like $_SERVER['username']) I tried printing all the variables defined in a page (and looking at a phpinfo.php) and wasn't able to figure it out... --- Don Read

RE: [PHP] mysql ending at start up

2003-03-28 Thread Don Read
shutdown. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.Don Read [EMAIL PROTECTED] -- PHP General Mailing

RE: [PHP] Adding a URL

2003-03-29 Thread Don Read
(and can't figure out) is how to have each email address have a URL (i.e. mailto:[EMAIL PROTECTED]). I'm fairly new to PHP, I hope this question made some sense. Suggestions? Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before

RE: [PHP] question

2003-03-30 Thread Don Read
; }  if (count($blk) ) echo 'td', implode('br', $blk), '/td'; echo '/tr'; Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General

Re: [PHP] question

2003-03-30 Thread Don Read
bit --well it's a handy spot to increment $i, and the pre-increment notation gets around the case when $i == 0. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's

RE: [PHP] Test tables existance

2003-03-30 Thread Don Read
On 30-Mar-2003 Antti wrote: How do I test if a mysql table exists or not? Is there a function for this? I didn't find a good one. -antti function tableexists($tbl) { $res = @mysql_query(SELECT 1 FROM $tbl LIMIT 1); return ($res ? true : false); } Regards, -- Don Read

Re: [PHP] if statment

2003-03-31 Thread Don Read
On 31-Mar-2003 Tim Haskins wrote: My bad, I actually meant that the nothing was like, if the pr_ID in the url is empty then show the following text. if (empty($HTTP_GET_VARS[pr_ID])) Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before

RE: [PHP] Wierd PHP Image

2003-04-01 Thread Don Read
of it. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

<    1   2   3   4   5   6   >