RE: [PHP] last_insert_id function

2001-01-24 Thread Don Read
? You're wrong; from the manual: " ... The last ID that was generated is maintained in the server on a per-connection basis. It will not be changed by another client. " Regards, -- Don Read[EMAIL PROTECTED] -- The problem with peopl

RE: [PHP] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-04 Thread Don Read
,$PHP_AUTH_PW, $realm))) { Header('WWW-authenticate: basic realm="'.$realm .'"'); Header('HTTP/1.0 401 Unauthorized'); echo 'META HTTP-EQUIV="Refresh" CONTENT="1; URL='.SITEHOME.'/"'; echo 'CENTERFailed LoginPInvalid name or password'; exit

Re: [PHP] anchor # not working?

2001-03-04 Thread Don Read
working. maybe faulty memory on my part, but i think I've seen something similar (i.e. "a name" is flakey inside tables). play with putting a name ../a within your tr or h3 tags. Regards, -- Don Read [EMAIL PROTECTED] -- If you are going to s

RE: [PHP] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-04 Thread Don Read
whatever Bill the boys from Redmond call it now). But i'll agree that if IE keeps the authentication after you close the browser, it _is_ borken. Regards, -- Don Read [EMAIL PROTECTED] -- If you are going to sin, sin against God, not the bureaucracy.

RE: [PHP] Slideshow problem

2001-03-07 Thread Don Read
using latest php4 version. snip You are confused on how HTTP works. http://www.acts.eku.edu/web/FASTWEB/HTMLOUCH.HTM (scroll down a couple of paragraphs) Regards, -- Don Read [EMAIL PROTECTED] -- If you are going to sin, sin against God

RE: [PHP] Combo Box containing field

2001-03-10 Thread Don Read
@mysql_query($qry); if ($dbres) { echo 'SELECT NAME=country SIZE="5"'; while ( $row = mysql_fetch_object($dbres)) { selectoption($row-id, $row-name, $usercountry); } echo "/SELECT\n"; } Regards, -- Don Read

RE: [PHP] Getting name of the main file from external included s

2001-03-13 Thread Don Read
URI is what you want. -- Don Read [EMAIL PROTECTED] -- If you are going to sin, sin against God, not the bureaucracy. God will forgive you but the bureaucrats won't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

RE: [PHP] software localization with PHP

2001-03-14 Thread Don Read
/ title open body ... $ds=formatdate($dte); // localized date string ... printf('H5' .nls('Statistics for') ."/H5\n", $ds); ... printf('H5'.nls('Topsignupurls').' /H5', 30, $ds); Regards, -- Don Read [EMAIL PROTECTED]

RE: [PHP] Array help

2001-03-14 Thread Don Read
On 15-Mar-01 Chris wrote: Hi, Is there a way to do an array_pop with php3? unset($dirs[sizeof($dirs)-1]); // php4 array_pop(); Regards, -- Don Read [EMAIL PROTECTED] -- If you are going to sin, sin against God, not the bureaucracy

RE: [PHP] include() suggestion

2001-03-17 Thread Don Read
as ds from webmaster where id=$qwid"; debug(__FILE__,__LINE__, $qry); $res = mysql_query($qry); if ( $res) { ... just add debug=1 to the url to trace out execution. Regards, -- Don Read [EMAIL PROTECTED] -- If you are going to s

Re: [PHP] include() suggestion

2001-03-17 Thread Don Read
porting(31); ... fpstats.php --- removed a semi-colon. browser output --- br bParse error/b: parse error in bfpstats.php/b on line b130/bbr -- PHP/3.0.18 (maybe a 4.0 thing ?) Regards, -- Don Read [EMAIL PROTECTED] -- If you are going to sin, sin a

Re: [PHP] PHP/MySQL Control Structures - if (mysql_query())

2001-03-20 Thread Don Read
",$db)); // This should be faster, but doesn't seem to work // echo count(mysql_query("select * FROM phPetition",$db)); ? ;) $result= mysql_query("select count(*) as cnt FROM phPetition",$db)); if ($result) { $row = mysql_fetch_object($result); echo 'count: ', $row-c

RE: [PHP] addslash/stripslashes

2001-12-18 Thread Don Read
/strip slashes functions. Any comments would be greatly appreciated. Check your 'magic_quotes_gpc', it might explain it. Regards, -- Don Read [EMAIL PROTECTED] -- It is necessary for me to learn from others' mistakes. I will not live long enough to make

Re: [PHP] addslash/stripslashes

2001-12-19 Thread Don Read
as hell to me :/ thanks for the help so far people, the sky is finally clearing up :-) Where possible, I'll use single quoting to avoid chasing down silly escape errors: mysql_query(insert into table values('$string')); Try it. Makes life easier. Regards, -- Don Read

Re: [PHP] Trap CR or Enter possible?

2002-03-22 Thread Don Read
for your submit button, then you can test for $submit_x and $submit_y. -- Don Read [EMAIL PROTECTED] -- It is necessary for me to learn from others' mistakes. I will not live long enough to make them all by myself. -- PHP General Mailing List (http

Re: [PHP] Perl NewsGroup?

2002-03-22 Thread Don Read
On 23-Mar-2002 David Duong wrote: I didn't put mailing list I meant Usenet lists. comp.lang.perl.misc This is not a newbie froup. Read the FAQ, and post your code, or prepare to be flamed to a crackly crunch. Regards, -- Don Read [EMAIL PROTECTED

RE: [PHP] Date Time

2002-09-22 Thread Don Read
); -- 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] Re: Cronjob

2002-09-25 Thread Don Read
://www.php.net/unsub.php __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Don Read

Re: [PHP] Re: Cronjob

2002-09-25 Thread Don Read
); ? Sorry my mistake, make that : print_r($GLOBALS); -- 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] Re: Cronjob

2002-09-25 Thread Don Read
On 25-Sep-2002 Daren Cotter wrote: This just prints out a bunch of info (seems to be unimportant)...what am I looking for in this? You're looking for your argument string blah -- Don Read [EMAIL PROTECTED] -- Beer is proof that God loves us and wants

RE: [PHP] dynamic website

2002-09-25 Thread Don Read
this problem. Yes it could. To get around it : benchmark optimize your indexes and queries. Check into using persistant connections, it is normally a good idea in general -but watch out that you don't exhaust kernel resources ... Regards, -- Don Read

RE: [PHP] GD Library help

2001-09-22 Thread Don Read
was taken to completely avoid the legal controversy regarding the LZW compression algorithm used in GIF. Unisys holds a patent which is relevant to LZW compression. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going

RE: [PHP] http authentication and php

2001-09-23 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] how to get the total disk space used in a directory

2001-09-23 Thread Don Read
On 23-Sep-2001 sagar N Chand wrote: hi all, is there any way to get the total disk space used under a directory including its subdirectories and all the contents. /sagar $duse=`du -sk /usr/foo`; echo $duse, 'br'; Regards, -- Don Read [EMAIL

RE: [PHP] Search Engines

2001-09-23 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

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Don Read
INPUT TYPE=TEXT NAME=foo VALUE=$row-foo; echo '/FORM'; Regards, -- Don Read [EMAIL PROTECTED] -- It is necessary for me to learn from others' mistakes. I will not live long enough to make them all by myself. -- PHP General Mailing List (http

RE: [PHP] Easy Question

2001-10-05 Thread Don Read
adminland.php whatever ... then include() the bits where the $vars indicate: if ($do_detail) include('detail.php'); And, of course, underneath is the common thingys: require(class.html.php); require(class.forms.php); require(libsql.php); Regards, -- Don Read

RE: [PHP] regarding password in mysql?

2001-07-28 Thread Don Read
where id='$usrid' and passwd=PASSWORD('$usrpass') ; If you get a record back, the password matched. 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] Using a query to selecting between two dates

2001-07-29 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] HTTP header question.

2001-07-29 Thread Don Read
'form method=POST ACTION=' .$PHP_SELF .''; input text name=login input text name=passwd /form 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] Find and Replace

2001-07-30 Thread Don Read
-- or my quick dirty: vi `grep -l -r foo *` and then cut-paste :g/foo/s//bar/g in each file 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] SetLocal() problem

2001-08-01 Thread Don Read
works). 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] SetLocal() problem

2001-08-02 Thread Don Read
/locale. For Windows, a search on Google turned up: http://www.microsoft.com/globaldev/FAQs/Locales.asp My 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

Re: [PHP] Upper or Lower Case

2001-08-07 Thread Don Read
didn't the call this stricmp ? echo 'matched'; if eregi('^neo$', $name) echo 'matched also'; 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] Detecting browser language

2001-08-08 Thread Don Read
on this? $HTTP_ACCEPT_LANGUAGE, $HTTP_ACCEPT_CHARSET 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] How to get the query string?

2001-08-13 Thread Don Read
not work: for ($a=1;$a=sizeof($HTTP_POST_VARS);$a++){ echo $a. .$HTTP_POST_VARS[$a].br; } Please help Tamas Bucsu while (list ($k, $v) = each($HTTP_POST_VARS)) { echo $k == $v BR\n; } Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest

RE: [PHP] `pwd` - what does this mean?

2001-08-15 Thread Don Read
couldn't find much on php.net man pwd - also, is there any other ones(whatever it is) like this? man -k | grep (1) Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal

Re: [PHP] Date function

2001-08-15 Thread Don Read
date and is a date type: SELECT CONCAT(MONTHNAME(date), ' ', DAYOFMONTH(date)) AS newdate Ghaakk ... SELECT DATE_FORMAT(date, '%M %d') as newdate from ... Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you

RE: [PHP] Count total

2001-08-19 Thread Don Read
So I would like to know the total score of each user. But I don't know how to do this. Who can help me out? REPLACE INTO Totalscore SELECT userid,name,sum(score) from Score GROUP BY userid; Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest

RE: [PHP] Help alleviate the U.S. Nursing Shortage and Profit in

2001-08-22 Thread Don Read
On 22-Aug-2001 Jess Ragaza wrote: snip It would seem like the nursing shortage here would be for years to come. No doubt. I'll check with Mom, but I don't think i've nursed in some 40 years. -- Don Read [EMAIL PROTECTED] -- It's always darkest

RE: [PHP] local time v.s. server time

2001-08-24 Thread Don Read
To make PHP date/time functions jive, during initialization: putenv('TZ=PST8PDT'); // Server on Pacific time No matter that i'm in Texas (CST), everything is now reported on Pac time. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before

RE: [PHP] local time v.s. server time

2001-08-24 Thread Don Read
goodies ? Where would I find the TZ codes to use for my area? Prolly MST7MDT or PST8PDT. 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] Error

2001-08-25 Thread Don Read
Failed. Error '.mysql_errno().': '.mysql_error()); $number = mysql_num_rows($result); run: repair table question 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] Re: [PHP-DB] restoring mysql db after mysqldump

2001-08-22 Thread Don Read
... can you drop or create tables ? If not then your sql daemon permissions are messed up. stop the daemon, chown -R mysql.mysql /path/to/mysql/data, restart the daemon. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you

RE: [PHP] Re: [PHP-DB] restoring mysql db after mysqldump

2001-08-22 Thread Don Read
(http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you

Re: [PHP] Re: escaping special charecters upon submit

2001-08-25 Thread Don Read
Any help would be very very very very appreciateddriving me nuts. The Ouji board: 'check line 47' (but then it always sez that). How about posting some code ? Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you

Re: [PHP] Headers already sent....

2001-08-30 Thread Don Read
. Surely it is simply reading. And more to the point, why does this work on the live server but not on my dev box? error_reporting(); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal

RE: [PHP] Locale Month Name

2001-08-30 Thread Don Read
is deprecated. Use the LC_* -constants instead. in Try what it says, use the constant: setlocale(LC_ALL, 'LT'); -- 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] Header() function and redirect

2001-08-30 Thread Don Read
', $sleepfor, $goto); // run the job $cmd='foo -bar baz '; system($cmd); ? -- 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

RE: [PHP] determining the pixel width of a string

2001-08-30 Thread Don Read
On 30-Aug-2001 John Meyer wrote: Is there anyway to determine the pixel width of a string? $font=2; $strpx=imagefontwidth($font) * strlen($str); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going

RE: [PHP] File read Parser error

2001-08-30 Thread Don Read
] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- 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] determining the pixel width of a string

2001-08-31 Thread Don Read
On 31-Aug-2001 _lallous wrote: It also depends on the font! it might be a fixed font or not a fixed font! True, but the five installed GD fonts are fixed cell fonts. Don Read [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On 30-Aug-2001 John Mey

RE: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread Don Read
a message saying : Fatal error: Call to undefined function: get_total() in /www/data//root/test.php on line 7 how do i get it to know that the function exists? if (function_exists('get_total')) echo 'got'; } else { echo 'not'; } Regards, -- Don Read

RE: [PHP] mySQL / PHP Join Question

2001-09-09 Thread Don Read
criterion, it won't matter. otherwise, alias the column name: SELECT t1.id as siteid, t2.id as wmid, t2.name as name FROM site as t1 LEFT JOIN webmaster as t2 USING (id) WHERE t2.name is NOT NULL ... Regards, -- Don Read [EMAIL PROTECTED] -- It's always

Re: [PHP] CheckBoxes and Arrays

2001-09-11 Thread Don Read
(); while (list($k,$v) = each($cbk)) { $p[]=$k; } $ids=implode(',', $p); $qry=DELETE FROM foo WHERE id IN ('$ids'); mysql_query($qry); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest

RE: [PHP] Order of focus for text entry inputs

2001-09-13 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] counting number of lines in file() that match a regexp

2001-09-16 Thread Don Read
| wc -l`; echo $cnt, 'br'; 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

RE: [PHP] substr() in MySQL SELECT?

2001-09-19 Thread Don Read
around all different parts. Try to figure out the damn difference between PHP substr() SQL SUBSTRING(). thanks much, your welcome, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's

RE: [PHP] MySQl IP Address Storage

2001-09-20 Thread Don Read
) { $t=array(0,0,0,0); $msk = 16777216.0; $n += 0.0; if ($n 1) return('nbsp;'); for ($i = 0; $i 4; $i++) { $k = (int) ($n / $msk); $n -= $msk * $k; $t[$i]= $k; $msk /=256.0; }; $a=join('.', $t); return($a); } Regards, -- Don

RE: [PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Don Read
; ... do_yer_thang rmdir $HOME/LCK.script 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] HTTP authentication : logout!!!

2001-05-08 Thread Don Read
'; exit; } } 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

RE: [PHP] Date Time Formatting ??

2001-05-08 Thread Don Read
. combine the date time: mystamp datetime .. select date_format(mystamp,'%m-%d%Y %r') as ts from blah; Any examples or links to good docs appreciated find /usr/local -name manual.txt -print | grep mysql http://www.mysql.com/manual.php Regards, -- Don Read

Re: [PHP] HTTP authentication : logout!!!

2001-05-08 Thread Don Read
= mysql_fetch_object($result); if ($row) { return(true); } return(false); } Basically it's a spin-lock file that is checked on login ... could just as easily be done as a shared semaphore, DB entry, whatever. Regards, -- Don Read [EMAIL

RE: [PHP] Wrapping text to store in the database

2001-05-08 Thread Don Read
in html tags? snip again Ideas? nl2br() 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] Default values in MySQL

2001-05-08 Thread Don Read
varchar(80) DEFAULT '' NOT NULL, addr1 varchar(80) DEFAULT '' NOT NULL, addr2 varchar(80), city varchar(80) DEFAULT '' NOT NULL, ... Not that it has anything to do with PHP. http://www.mysql.com/manual.php http://lists.mysql.com/ Regards, -- Don Read

RE: [PHP] PHP Mysql query data conversion newbie

2001-05-10 Thread Don Read
{ echo 'pfsst.'; } echo /td; } HTH 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] Newbie... Executing UNIX commands...

2001-05-10 Thread Don Read
On 10-May-01 macky wrote: im using PHP + APACHE on Linux Box i wonder what command in PHP can i use to execute Unix commands $foo=`ls` thats a back-tick Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you

RE: [PHP] PHP + GD + FreeBSD

2001-05-10 Thread Don Read
, if not cd /usr/ports/graphics/png make make install (may want to do gd as well) cd /usr/ports/graphics/gd make deinstall make make install then build php. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going

RE: [PHP] StripSlashes

2001-05-10 Thread Don Read
not tested, but try something like: while (list ($k, $v) =each ($HTTP_POST_VARS)) { $$k=stripslashes($v); } 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] read($sock, $buf, $n) reads nothing on port 23

2001-05-10 Thread Don Read
that, look for RFC854 at http://www.cis.ohio-state.edu/Services/rfc/rfc.html 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

RE: [PHP] gdImageCreateFromJpeg in -lgd... no

2001-05-12 Thread Don Read
On 11-May-01 Markus Held wrote: Can do what i want. I need gif and jpeg habe installed jpeg-6b , gd-1.8.4gif.tar.gz No, GIF support was removed in v1.6 or so http://www.boutell.com/gd/ snip Regards, -- Don Read [EMAIL PROTECTED] -- It's always

RE: [PHP] IMAP/POP3/OUTLOOK Question .. NEW! ... Complimantary

2001-05-15 Thread Don Read
- the client can play stupid and depend on the server via 'stat' 'last' commands. 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] group comparision

2001-05-17 Thread Don Read
of these is set to 1. i am coming up with a very long control structure: if (($add=1) ($remove=1) || ($add=1) ($view=1) || etc...)) if (($add + $remove + $view) 1) { die(I'm so confused ...); } Regards, -- Don Read [EMAIL PROTECTED] -- It's

RE: [PHP] Help..Date Format

2001-05-17 Thread Don Read
, $i, $s, $m, $d, $y); 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

RE: [PHP] debugging problems

2001-05-18 Thread Don Read
://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going

Re: [PHP] Network Connectivity help please

2001-05-20 Thread Don Read
is the better way; but for a short-cut, at the top of the loop, ping your broadcast addr '192.168.x.255' a few times and then collect the DUP's. These won't have to get pinged explicitly. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So

RE: [PHP] Whitespace

2001-05-23 Thread Don Read
); fwrite($fp, $str); 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

RE: [PHP] files

2001-05-23 Thread Don Read
$dirname | head -1'; $p=popen($cmd, 'r'); $fname=fgetss($p,1000); $mt=filemtime($fname); pclose($p); echo $fname, ' modified on ', strftime('%b %e, %G', $mt); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going

RE: [PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread Don Read
* from foo where name = 'php' fail ?? given that name = 'PHP' in the database where BINARY name = 'php' (BINARY casts were added in 3.23.?) you also might consider changing your column to varchar() binary. Regards, -- Don Read [EMAIL PROTECTED] -- It's

RE: [PHP] .htaccess logout sequence

2001-06-21 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] time

2001-06-21 Thread Don Read
'); ... -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: 20 May 2001 15:51 To: [EMAIL PROTECTED] Subject: [PHP] time quickly can some one tell me if time() return server or usersystem time? Regards, -- Don Read [EMAIL PROTECTED

RE: [PHP] Slick Time Zone Coversions

2001-06-21 Thread Don Read
); Basically i just want users to be able to take a non-local time and get the local time in their timezone with it. This will be for US times only also. Thanks a bunch! Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So

RE: [PHP] Time Language Settings

2001-06-21 Thread Don Read
(); $ds=date('Y-m-d-h-i', $tm); list ($y, $m, $d, $h, $n)=explode('-', $ds); $datestr=strftime($fmtstr, mktime($h, $n, 0, $m, $d, $y)) ; return($datestr); } initlocale('de_DE.DIS_8859-15'); print formattime); ? Regards, -- Don Read [EMAIL PROTECTED

RE: [PHP] How to change process permissions?

2001-06-23 Thread Don Read
dragons lurking about. If you absolutely _must_ have it; let the PHP/CGI scripts modify copies of the files. Then run a small shell script to move 'em into place after root has eyeball'd them. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest

RE: [PHP] Mail slow

2001-06-29 Thread Don Read
PROTECTED] 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] Mail slow

2001-06-30 Thread Don Read
mail.domain.com closing connection Connection closed by foreign host. 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] Week Number

2001-06-30 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] Capturing output of shell script.

2001-06-30 Thread Don Read
, passthru, ``, system, and escapeshellcommand. Nothing seems to work. any ideas? $cmd='stuff.sh'; $p=popen($cmd, 'r'); if ($p) { while ($str=fgetss($p,1000)) { do_foo($str); } pclose($p); } else { echo Pphsst. bad command: $cmd BR; } Regards, -- Don Read

RE: [PHP] Adding 1 to a whole number

2001-06-30 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] Getting Information from a CGI POST

2001-07-01 Thread Don Read
this be done? Yes. 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] Getting Information from a CGI POST

2001-07-02 Thread Don Read
ain't my thing. 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

RE: [PHP] loading data into mysql from txt file from php

2001-07-04 Thread Don Read
, $file_loc) would like to refresh the db. LOAD DATA INFILE 'filename' into da_table ... the MySQL manual has the details. 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] Getting Information from a CGI POST

2001-07-04 Thread Don Read
On 03-Jul-01 Brad Hubbard wrote: On Tue, 3 Jul 2001 02:51, Don Read wrote: $pstr='FltNum=2972page=fiselectDay=July+02'; $fp=openpost('dps2.usairways.com', '/cgi-bin/fi', $pstr); // i'm not so sure about that selectDay, javascript ain't my thing. This is implementation dependant (it's

RE: [PHP] MySQL problem

2001-07-04 Thread Don Read
need to list all the causes with the number of times each has occurred, even if it's zero times... they don't need to be listed in any particular order... select cause.ID, count(*) as cnt from ... WHERE ... group by cause.ID; Regards, -- Don Read [EMAIL

RE: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Don Read
/option option value='03'03/option option value='04'04/option option value='05'05/option look at your option value=xx. if ( (isset($month)) ($month +0 0) ) { ... Regards, -- Don Read [EMAIL PROTECTED] -- It's

RE: [PHP] Batch job in UNIX.

2001-07-05 Thread Don Read
On 05-Jul-01 Johan Vikerskog (ECS) wrote: If i want to add something into a table with just the mysql command. Is this possible. Like ./mysql -p -u root test insert into... mysql -e cmd mysql -B cmd mysql somescript.sql cat many*.sql | mysql -- also look at -- mysql --help -- Don

RE: [PHP] Batch job in UNIX.

2001-07-05 Thread Don Read
On 05-Jul-01 Johan Vikerskog (ECS) wrote: But i want dont want to type in the password. I want to have the password in the command file. No, you don't. Put your user name password in ~/.my.cnf (as explained in the fine manual). -- Don Read [EMAIL

RE: [PHP] Executing after certain time

2001-07-05 Thread Don Read
expression) 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] Writting to files.?

2001-07-05 Thread Don Read
it there, write it back out. B. open a temp, copy till the line of interest, write your change, copy remainder. mv/cp the temp to the original. C. read to line of interest, ftell(), suck remainder into memory. ftruncate(), fseek(), write your changes, write out the remainder. Regards, -- Don Read

RE: [PHP] mail() and command line headers

2001-07-05 Thread Don Read
On 05-Jul-01 Eric Wood wrote: I can easliy add addional email header using the php mail() function. Does 'mail' or 'sendmail' have this same ability to add email headers from the command line? man sendmail Pay attention to options '-ba' '-t' Regards, -- Don Read

  1   2   3   >