Re: [PHP] German Date - GMDATE Function

2003-10-23 Thread Don Read
'; // Alternate: 'de_DE.ISO_8859-1' setlocale(LC_TIME, $locale); 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] Email Body

2003-10-23 Thread Don Read
string? 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] Attention: List Administrator

2003-09-19 Thread Don Mc Nair
I got 21 emails with attachments today from Microsoft. Don Payne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Raquel Rice wrote: On Fri, 19 Sep 2003 15:39:12 + Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Chris Sherwood ([EMAIL PROTECTED]): To Whom it may

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

[PHP] Arrays and Alphabetical order

2003-07-22 Thread Don Mc Nair
, a blank line and so on. I could write 26 different queries, one for each letter of the alphabet, but surely there is a tidier way. Any help is appreciated. Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus

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] 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] 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] 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] 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] 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] 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] 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

[PHP] Emptying the browser cache

2003-06-16 Thread Don
Hi, Is the a PHP command that will empty the browser's current cache? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Classes and Objects

2003-06-10 Thread Don
Are Classes and Objects supported in PHP 3.0.14? I am getting an error: Call to unsupported or undefined function phpmailer() on a server running PHP 3.0.14 but it works in PHP 4.3.2 Thanks, Don _ This email and any files transmitted with it are strictly confidential and may

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] 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] 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: 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] Problem with PHP and MySQl after install

2003-04-03 Thread Don
Forgive my ignorance but I don't follow. I am not getting any compiling error messages or warnings. 2) Installed PHP 4.3.1 One of my config options was --with-mysql=shared,/usr I may be completely off base, but where did you intend the mysql installation to go? Did it end up there? (I'm

Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Don
want to start over from scratch? I've alrweady upgraded the MySQL package to version 4.0.12. Thanks, Don 2) Installed PHP 4.3.1 One of my config options was --with-mysql=shared,/usr I may be completely off base, but where did you intend the mysql installation to go? Did it end up

Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Don
The expected MySQL section is not even listed in the phpinfo() page. This would explain my undefined function errors when attempting MySQL functions. What I can't figure out is why MySQL is not being recognized by PHP. At 16:58 03.04.2003, Don spoke out and said: [snip

Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Don
' and found the following. However, any change I made to the mysql config. directory gives me the error: error: Cannot find header file under directory Please tell me what the directory should be in my mysql config option. Thanks, Don /usr/bin/mysql /usr/lib/mysql /usr/libexec/webmin/caldera/mysql

Re: [PHP] Another Problem installing PHP 4.3.1 - won't compile due to error.

2003-04-02 Thread Don
Yup, you were correct. the 7.10.3 rpm was installed but I forgot to install the 7.10.3 development rpm. I did so and all compiles fine now. Thanks, Don My guess you have a mess in your curl library installation. For example you use header from version 7.9.5 and specify that you have version

[PHP] Problem with PHP and MySQl after install

2003-04-02 Thread Don
. This extension may be part of the PHP server (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or mysql.dll. phpMyAdmin tried to load the extension but failed. What was I missing fom my install that is causing my problem? Thanks, Don --- Outgoing mail

[PHP] question: installing PHP with mysql isn't working?

2003-04-02 Thread Don
Hi, Trying to install PHP with the ability to interact with MySQL. In my configuration, I've included the option: --with-mysql=shared,/usr There are no compile errors. Any idea why PHP is not recognizing any MySQL functions? Thanks, Don --- Outgoing mail is certified Virus Free. Checked

Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to odd error.

2003-04-01 Thread Don
I altered the configuration to say -- --with-curl=/usr/bin as that is the location of the curl executable but I am still getting the compile error. Any other suggestion? - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Don [EMAIL PROTECTED] Cc: php list [EMAIL PROTECTED

Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to odderror.

2003-04-01 Thread Don
;; So, all I did was change the 7.9.5 to 7.10.3 and no more compile error. Silly huh? - Original Message - From: Adam Voigt [EMAIL PROTECTED] To: Don [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 11:19 AM Subject: Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to odderror

[PHP] Another Problem installing PHP 4.3.1 - won't compile due to odderror.

2003-04-01 Thread Don
Ok, now that I've solved my 'curl' problem, I've run in to another problem. Now I am getting teh following error: configure: error: snmp.h not found. Check your SNMP installation. I've installed the ucd-snmp rpms so what am I missing? Thanks, Don - Original Message - From: Marek

Re: [PHP] Another Problem installing PHP 4.3.1 - won't compile due to error.

2003-04-01 Thread Don
/local/php-4.3.1/ext/curl/curl.c:1077: `CURLINFO_REDIRECT_TIME' undeclared (first use in this function) make: *** [ext/curl/curl.lo] Error 1 Assuming you also installed ucd-snmp-devel-*.rpm, likely you need to specify --with-snmp=/usr or --with-snmp=/usr//include/ucd-snmp Don wrote: Ok, now

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

RE: [PHP] daylight savings time ?

2003-04-01 Thread Don Read
use it) then add putenv('TZ=GMT0BST'); at the start oof each 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

[PHP] Problem installing PHP 4.3.1 - won't compile due to odd error.

2003-03-31 Thread Don
for? Thanks in advance, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[PHP] How can I detetct if session cookies are enabled?

2003-02-28 Thread Don
if session cookies are enabled in the user's browser? Thanks, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[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] 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

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

[PHP] File Permissions

2003-01-24 Thread Don Mc Nair
Sorry if this is not really PHP related but I can't get it to work. I am using fopen and I get the following: Warning: fopen(testfile2.php, w) - Permission denied in /usr/local/psa/home/vhosts/complementarymedicines.net/httpdocs/reg/regformte st.php on line 411 I have tried setting this

[PHP] Re: value not displayed

2003-01-24 Thread Don Mc Nair
Use ?php echo $_GET['abc']; ? Rahul [EMAIL PROTECTED] wrote in message 00b301c2c38e$c9d83f80$[EMAIL PROTECTED]">news:00b301c2c38e$c9d83f80$[EMAIL PROTECTED]... Hello All, When i pass a value through browser to a php page as below http://www.xyz.com/test.php?abc=test But when i try to

[PHP] file creation (again)

2003-01-24 Thread Don Mc Nair
Thanks for all the help so far folks. I have finally got PHP to create a page on the web server now but the owner is set to apache. As it uses an include() function it will not allow me to display the page giving Warning: SAFE MODE Restriction in effect. uid not allowed to etc. I dont seem

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

[PHP] Re: Auto Incrementing in PHP

2003-01-19 Thread Don Mc Nair
); } Simple when someone tells you what to do :o) Thanks and regards. Don Mc Nair [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Is there a way for a php page to automatically increment a number and store it every time the page is loaded.

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

[PHP] Auto Incrementing in PHP

2003-01-18 Thread Don Mc Nair
Hi Is there a way for a php page to automatically increment a number and store it every time the page is loaded. I want to generate an invoice number that goes up 1 everytime the HTML form is sent to it. Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

[PHP] Acessing $DOCUMENT_ROOT

2003-01-17 Thread Don
Hi, How do I access $DOCUMENT_ROOT when register_gobals is set off? I think there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't find it in the documentation. Thanks, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http

[PHP] Question about using session and logging out

2003-01-17 Thread Don
force a reload the first time a page is called? Thanks, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003

[PHP] Dumping Tables from MySQL

2003-01-14 Thread Don Mc Nair
Hi folks I am having trouble writing a script to dump the data from tables in MYSQL. Can anyone provide help on how to use the mysqldump command within PHP (4.2). Many thanks Don www.complementarymedicines.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http

[PHP] Why is my URL encoding itself?

2003-01-14 Thread Don
I try in I.E., it works fine. When I try in Netscape 7, I get a page not found error. Looking at Netscape's address bar, it says: http://www.lclnav.com/staging_area/login/..%5Cphpscript%5Cgeneral%5Cformmail.php Why is it encoding my URL??? Thanks, Don --- Outgoing mail is certified Virus

Re: [PHP] Why is my URL encoding itself?

2003-01-14 Thread Don
- Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: Don [EMAIL PROTECTED]; php list [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 4:24 PM Subject: Re: [PHP] Why is my URL encoding itself? --- Don [EMAIL PROTECTED] wrote: In my PHP page, the FORM line reads as: echo

[PHP] question about 'register_globals' setting

2003-01-13 Thread Don
been reloaded. Is this a normal effect of setting register_globals OFF? Is there a way to continue caching? Thanks, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Don
Don wrote: I'm using I.E. 6. Its not a browser thing, but a PHP thing. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page

[PHP] question on Header(location

2003-01-13 Thread Don
, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Need help detecting attached files

2003-01-06 Thread Don
('REQUEST_METHOD') . '_VARS'; global $$request; if ($$request[$val]['size']) { However, it is always failing the test and therefore not working. Any ideas? Thanks, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.435 / Virus

[PHP] Are there macros in PHP?

2002-12-23 Thread Don
Hi, I need to search a MySQL table based on a condition that can change at runtime. Example == $condition = CustCode = $HTTP_SESSION_VARS['logoncustcode']; other code $queryID = mysql_query(SELECT * FROM CustTariff WHERE . $condition . ORDER BY CustCode); Will the above work? Thanks, Don

[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

[PHP] LIKE condition in query

2002-11-05 Thread Don Hicks
? Sincerely, Don Hicks Portland, OR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LIKE condition in query

2002-11-05 Thread Don Hicks
BINGO! That was exactly what I needed! Thanks! Don. === Jay Blanchard [EMAIL PROTECTED] wrote in message news:003801c284fc$4fd8d2b0$8102a8c0;000347D72515... [snip] $Query= SELECT FieldName1, FieldName2 FROM TableName WHERE FieldName1 LIKE '$CriterionRecord' ; [/SNIP

Re: [PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread Don
- Original Message - From: Jay Blanchard To: 'DonPro' ; 'php list' Sent: Thursday, October 31, 2002 3:43 PM Subject: RE: [PHP] Saving form input fields to MySQL br clicking on a button [snip] I created a button called Memorize but how do I have the page save the values to my MySQL

[PHP] system() function

2002-10-29 Thread Don Hicks
putting the following into my php: system(C:\Program Files\Microsoft Office\Office\MSACCESS.EXE C:\Inetpub\wwwroot\DATABASENAME.mdb /x MACRONAME) The server shows that MS Access is running a process, but it never finishes (seems to hang up). Does anyone have advice for me? Don Hicks -- PHP

<    1   2   3   4   5   6   >