[PHP-WIN] RE: How do you step through a database?

2001-08-13 Thread Jason Gan
If you're using PHPLIB, then using database abstraction the code would look like: while ($db->next_record()) { print $db->f("title"); } -Original Message- From: CJD [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 August 2001 7:56 AM To: [EMAIL PROTECTED] Subject: Re: How do you s

[PHP-WIN] RE: php and Dreamweaver (How To)

2001-07-09 Thread Jason Gan
Michael Actually what you're after is Dreamweaver 4 Ultradev... The one that actually doesn't wreck the code... If you want to code PHP, you should go for either these two editors: (1) HomeSite 4.5.2 --- The PHP Editor on steroids. (2) UltraEdit --- I'm currently using this at work because it's

RE: [PHP-WIN] Spell checking w. PHP in Windows

2001-07-09 Thread Jason Gan
There is a COM spell checker. It happens to cost a lot of money. -Original Message- From: Johan [mailto:[EMAIL PROTECTED]] Sent: Monday, 9 July 2001 5:42 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Spell checking w. PHP in Windows Workaround2: Isn't there any COM-spell checker? I be

RE: FW: [PHP-WIN] Spell checking w. PHP in Windows

2001-07-07 Thread Jason Gan
If it's not in the PHP-Win distribution, there is a reason, and it is usually because the source is not thread-safe. PHP doesn't work properly with non-thread-safe extensions under IIS/Windows... -Original Message- From: Flint Doungchak [mailto:[EMAIL PROTECTED]] Sent: Saturday, 7 July

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some sugg estions

2001-05-22 Thread Jason Gan
Hi John, It's probably a good idea to consider installing the Apache server on another port, just to interface with the database persistently. Funny that PHP doesn't have the equivalent of "ASP Application Object". -Original Message- From: Asendorf, John [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some suggestions

2001-05-22 Thread Jason Gan
Hi John Asendorf, Can you supply a short example of the PHP code, so that someone can suggest ways of optimising it? What do you mean "sessions via files"? Do you mean PHP's built-in support for sessions? Maybe it's just the server having a bad day. -Original Message- From: Asendorf, J

RE: [PHP-WIN] PHP 4.0.5 COM bugs

2001-05-12 Thread Jason Gan
es, COM is completely broken in 4.05 >> Alain >> >> On Wed, May 02, 2001 at 06:51:14PM +1000, Jason Gan wrote: >> > I ran a brief ADODB test and it gave me an Access Violation Error. >> > >> > PHP has encountered an Access Violation at 2474FF04 >> >

[PHP-WIN] PHP 4.0.5 COM bugs

2001-05-02 Thread Jason Gan
I ran a brief ADODB test and it gave me an Access Violation Error. PHP has encountered an Access Violation at 2474FF04 when parsing this line: $fields = $rs->Fields; where $rs is the recordset from the SQL database. I got the following error messages when using MSXML Parser 3.01 to load an X

[PHP-WIN] RE: ASPs cSTR function, WTF??!!!

2001-05-02 Thread Jason Gan
The correct case should be CStr, the same as CInt It is used for typecasting, but obviously Strings should not be used if you can avoid it, because they are SLOW. The PHP equivalent is to write: function selected (&$firstval, &$secondval) { return (strcmp($firstval, $secondval) == 0) ? "

[PHP-WIN] COM bugs in PHP 4.0.5 final release

2001-05-01 Thread Jason Gan
The 4.0.5 release seems to be buggy with the COM functions, so it might be better to wait for a few weeks for a bug-fix release. -Original Message- From: Jeff Brewster [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 2 May 2001 1:02 AM To: [EMAIL PROTECTED] Subject: php4win.de distribution

RE: [PHP-WIN] Exec() In Windows

2001-04-04 Thread Jason Gan
Dear Ladies and Gents, That error message "Unable to fork" is stupid, because fork is not supported under Windows, as it is a Unix command to fork two processes. Windows uses multi-threading instead. They should just rename the error message to "Identified PHP4 error". :0) -- Jason -Orig

[PHP-WIN] RE: How to handle NULL value from Value property of Field object (ADO, DAO)?

2001-03-24 Thread Jason Gan
I did not get an error when I accessed Fields(x)->value and Fields(x)->name where Cell in Fields(x) contains a null value. I have not tried it with a null field, but there is no such thing as a null field. Why would someone design a database where you would query "select [] from db"? :-) -Or

[PHP-WIN] RE: Using Java extension with IIS5 has problem

2001-03-18 Thread Jason Gan
Hi, Can you report the following bug to www.php.net I think there is a problem with php reading the ini setting for php_java On my system it always appends a . in front of the path, which screws up the loading of the php_java.dll The only way to solve it is not to put any pathing information wit

[PHP-WIN] RE: popen() and fputs() functions work?

2001-03-16 Thread Jason Gan
Hi Josh, If you're using ISAPI, popen() won't work because it's forking the command, and you can't fork when running in-process in IIS. fputs() does work, though, with fopen and fclose. -Original Message- From: Josh Seward [mailto:[EMAIL PROTECTED]] Sent: Friday, 16 March 2001 12:03 PM

RE: [PHP-WIN] forking processes

2001-02-05 Thread Jason Gan
Your pages are dynamic instead of static HTML, which imposes a bit of time to generate. Email sending in PHP doesn't actually take much time, as it doesn't actually "send email", but queues the message for the email server to do the actual sending. If you are experiencing slowness, your email scri