RE: [PHP-WIN] email() problem

2001-12-20 Thread Daniel Parsons
When using IIS it is a good idea to use '\r\n' instead of '\n' when using the mail() function. I've also had problems with the 'From:' header in the past. This syntax seems to work though: $mailheaders = 'From: "A display name" <[EMAIL PROTECTED]>\r\n' IIS seems to have real problem with that if

RE: [PHP-WIN] Re: coffe message

2001-12-17 Thread Daniel Parsons
The IEEE Recommended Practice for System Identification in Nuclear Power Plants and Related Facilities ?!?!? That is some coffee you're drinking there. (with both of your heads??) > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 18 Decembe

RE: [PHP-WIN] Existing File...

2001-12-11 Thread Daniel Parsons
You need to escape the back slashes like this: $filename="C:\\My Documents\\Linda\\mydata1.txt"; > -Original Message- > From: Anthony Ritter [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 12 December 2001 12:22 p.m. > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Existing File... > > > I've

RE: [PHP-WIN] passing info from page o page - w/o using form

2001-11-29 Thread Daniel Parsons
You'll need to use either cookies or sessions. I would choose sessions because the user can turn off or modify cookies but sessions will need to have (at least) the session ID on the URL if you aren't using forms. To pass an array using sessions you simply need to register the array as a session

RE: [PHP-WIN] Recommendations for websites and books

2001-11-28 Thread Daniel Parsons
Todd Williamsen wrote: > Any recommendations for websites with tutorials, scripts etc or books? I cut my teeth on _PHP_and_MySQL_Web_Development by Welling and Thomson. It was an excellent book to learn with and has a bunch of good 'HowTo' chapters with examples. I have been recommended _Profes

RE: [PHP-WIN] Adding *another* person to an e-mail *to:* address

2001-11-19 Thread Daniel Parsons
> > $recipient .= "Mary <[EMAIL PROTECTED]>" . ", " ; //note the comma It is also worth pointing out that you need to include the space as well. $to = "[EMAIL PROTECTED],[EMAIL PROTECTED]" won't work, whereas $to = "[EMAIL PROTECTED], [EMAIL PROTECTED]" will work. Daniel. -- PHP Windows Mail

RE: [PHP-WIN] Adding a cc to a PHP mail script...

2001-11-18 Thread Daniel Parsons
If you want to add additional email addresses to the 'To' list, use a comma seperated list: e.g. $to = "[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]"; if you want to cc the email then add it to your headers: e.g. $mailheaders .= "Cc: [EMAIL PROTECTED]\r\n"; HTH, D. > -Original Me

[PHP-WIN] Changing the default user

2001-11-12 Thread Daniel Parsons
ernet user read permissions on the directory (or else anyone can just come along and read everything) and the script won't run properly without them. Thanks, D. --- Daniel Parsons IML Network Ltd. L1 93-95 Cambridge Tce PO Box 4076, Christchurch New Zealand +64 3 366 9936 +64 21 432 402 (Mobile)

RE: [PHP-WIN] date problem

2001-10-30 Thread Daniel Parsons
The 10th day of the 31st month of 2001 is the same as the 10th day of the 7th month of 2003 so I would guess that you have $pdate[3] and $pdate[2] the wrong way round when you call mktime(). http://www.php.net/manual/en/function.mktime.php says that it should be like this: int mktime (int hour, i

RE: [PHP-WIN] No DLL's after installation?

2001-10-29 Thread Daniel Parsons
Hi Joe, I recently had a similar problem. All the dlls that I neded were available in the full windows zip package from php.net's downloads section. I used Dependency Walker ( http://www.dependencywalker.com/ - Thanks again Philippe) to determine which dlls I needed to have as often the dll refer

[PHP-WIN] Unable to load extensions

2001-10-25 Thread Daniel Parsons
Hi, I'm using PHP 4.0.4 with IIS 4 on WinNT. When I try to load an extension I get an error telling me that it cannot be found. The extensions directory line of my PHP ini file is: extension_dir = C:\WINNT\system32\ I've tried forward slashes, back slashes, absolute paths and relative paths bu

RE: [PHP-WIN] Recommendations for books for beginners for PHP & mySQL?

2001-10-25 Thread Daniel Parsons
I used their book to learn the basics and found it really good. They have a chapter on the basics of relational database design and using MySQL, as well as chapters devoted to specific examples (building a shopping cart or a web-based mail client &c.). I'd certainly recommend it. That book, php.n

[PHP-WIN] HTML form

2001-10-03 Thread Daniel Parsons
Hi, I am running PHP on WinNT 4 and using IE5.5 I have written a page that includes an HTML form which submits back to the script to allow the user to load hte same page with different parameters. Can anyone tell me why the submit button doesn't appear to do anything?? Do I need to force the pa

[PHP-WIN] Problems setting up a DSN

2001-09-25 Thread Daniel Parsons
Hi, I'm running PHP 4.0 on WinNT 4 with IIS and attempting to use an Access 2000 database. When I use this is a script: $logdb = odbc_connect("uptime", "user", "password"); it gives the following error : Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and