Re: [PHP] Designing N-tier applications in PHP (long)

2002-09-22 Thread Garth Dahlstrom
If you need to bridge Perl and PHP, as suggested previously you could implement a web-service (SOAP or XML-RPC). Alternatively, you could write something Java bean and use PHP's Java support. Either of those will be costly from a performance point of view CORBA will be the same (from what I

[PHP] Re: java in php4 on debian testing distribution?

2002-09-20 Thread Garth Dahlstrom
Monique, By default Debian does not come come with a recent JVM, due to the non-free-ness of Sun's license. So first thing is to see if you have any Java installed at all... When you type `java` at a shell it should give you an error about missing parameters... if you get the following:

[PHP] Re: Passing variables between servers

2002-08-21 Thread Garth Dahlstrom
Why not share a session DB across both servers? Since your users disable cookies you'll have a url that looks like this anyway: http://www.myPHPserver.com/index.php?sid=12345 if you wanted to maintain session state so, when redirecting to the ASP server do: header('location:

[PHP] Re: php-general Digest 2 Jul 2002 15:34:34 -0000 Issue 1440

2002-07-02 Thread Garth Dahlstrom
VirtualHost 123.123.123.123 ServerName www.example.com DocumentRoot /home/example/htdocs php_value decryptionkey 123456789 /VirtualHost encode your secret data using the decryptionkey before hand, and then decode it on the fly using the environment variable present in only in your vhost. I'm

Re: [PHP] MSIE GZIP problem

2002-05-20 Thread Garth Dahlstrom
Has anyone heard of the problem with MSIE 6? If this is a known problem; I'll have to perform some browser check to make sure I can gzip to that MSIE version 6 build (whatever) -- kind of a hassle. I just did a search on Technet, and could find no mention of it. I've experinced similar

Re: [PHP] MSIE GZIP problem

2002-05-20 Thread Garth Dahlstrom
Has anyone heard of the problem with MSIE 6? If this is a known problem; I'll have to perform some browser check to make sure I can gzip to that MSIE version 6 build (whatever) -- kind of a hassle. I just did a search on Technet, and could find no mention of it. I've experinced similar

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-15 Thread Garth Dahlstrom
maintain state accross requests. This is done in 3 different ways. 1. Cookies 2. URL Mangling 3. HTTP Authentication #4 Passing a SID/Session info in hidden fields, but it means you must push every page move through a submit (which can be done with Javascript, image buttons, etc),

Re: [PHP] Nitpicking - PHP 4.2.0 for windows says version is 4.1. 2

2002-05-10 Thread Garth Dahlstrom
That was it... tried it and now the versions match, many thanks! On Fri, 10 May 2002 11:48:26 +0100 Ford, Mike [LSS] wrote: -Original Message- From: Garth Dahlstrom [] Sent: 09 May 2002 19:48 Anyone notice this... when you do a ? phpinfo(); ? you

[PHP] Nitpicking - PHP 4.2.0 for windows says version is 4.1.2

2002-05-09 Thread Garth Dahlstrom
Anyone notice this... when you do a ? phpinfo(); ? you get PHP Version 4.1.2, while my apache window says Apache/1.3.20 (Win32) PHP/4.2.0 running... -G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nitpicking - PHP 4.2.0 for windows says version is 4.1.2

2002-05-09 Thread Garth Dahlstrom
4.1.2, Build Mar 10 2002... On Thu, 09 May 2002 21:09:12 +0100 Chris Hewitt wrote: Garth, You might have two versions (cgi and module)? Chris Garth Dahlstrom wrote: Anyone notice this... when you do a ? phpinfo(); ? you get PHP Version 4.1.2, while my apache window says Apache

[PHP] PHP 4.2 - Win32 - command line PHP buffering output?

2002-04-29 Thread Garth Dahlstrom
Hi all, I'm trying to make the script below run, it is supposed to print a message and then wait for user input and then print another message and wait again. Instead, what it is doing is waiting for all the user input to be entered before printing anything, and once entered printing all

Re: [PHP] anyone using CVS for PHP dev?

2002-04-03 Thread Garth Dahlstrom
php - Re: [PHP] anyone using CVS for PHP dev? - Wed, 3 Apr 2002 19:07:33 +0100 What CVS software do you recommend? Dan If you're a Windows user: - TortoiseCVS ( http://www.tortoisecvs.org/ ) is a nice windows client that integrates with the file manager. - CVS for NT (

[PHP] who can translate my ASP codes to PHP code? its very simple asp code...

2002-03-11 Thread Garth Dahlstrom
A perfect script to LEARN how to use PHP yourself... here is some documentation to get you started: http://www.php.net/quickref.php - PHP's function list index http://www.zend.com/codex.php - PHP code gallery http://www.phpbuilder.com/ - lots of articles on building things in PHP Northern.CA

[PHP] Re: php-general Digest 27 Feb 2002 06:51:42 -0000 Issue 1196

2002-02-27 Thread Garth Dahlstrom
Chris, I've done some stuff on my site in PHP... certainly not big name, and maybe or maybe not cool depending on what you're into. http://www.northern.ca/ (my yahoo like directory of links) http://www.northern.ca/projects/phpwidgets/ (an semi-abandoned personalization engine... still

[PHP] Re: Is there a way to put a scroll in a table ???

2002-02-26 Thread Garth Dahlstrom
You could make use of style=overflow: auto (or scroll) for a div tag, if you are catering to IE5+ / NS6+ browsers. I was playing with this trying to build a grid control, my web server's down but here is some old code... within cells doesn't work as I'd like, but scrolling the whole table is

[PHP] net send/WinPopup code - RFC

2002-02-16 Thread Garth Dahlstrom
I'm working on some PHP code to make it possible for a PHP script to do net send messages. Here's what I have so far, I've been successful sending to localhost with it on a Windows machine. If folks could try this out and make suggestions on how to improve it, I'd be very appreciative...

Re: [PHP] Using winpopup to notify users

2002-02-15 Thread Garth Dahlstrom
Tomek Golembiewski wrote: Dnia czwartek 14 luty 2002 13:55, Garth Dahlstrom napisa³: I'm wondering if anyone has a class to do a the equivalent of a net send through PHP? If U got samba instaled on Your serwer U can always do exec(smbclient -M $message); Thanks, -Garth

[PHP] Using winpopup to notify users

2002-02-14 Thread Garth Dahlstrom
I'm wondering if anyone has a class to do a the equivalent of a net send through PHP? Thanks, -Garth Northern.CA ===-- http://www.northern.ca Canada's Search Engine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How should I cache database data for php?

2002-01-21 Thread Garth Dahlstrom
my two cents... I used to work at a newspaper we used a very elaborate caching system, it used to function at the at the page subcomponent level (i.e. header, footer, left nav, articles were all stored separately) AND page level. The page subcomponents were cached together as pages. This

[PHP] PHP Security Alert for Apache/Win32

2002-01-06 Thread Garth Dahlstrom
Folks running Apache/Win32 should read this: http://www.securiteam.com/windowsntfocus/5ZP030U60U.html If you run in CGI mode you likely have a line similar to the following in your httpd.conf: ScriptAlias /php/ C:\php\ Also, if you run SAPI mode (apache plugin mode) and used to run CGI, make

[PHP] Re: PHP Security Alert for Apache/Win32

2002-01-06 Thread Garth Dahlstrom
AFAIK, you need the ScriptAlias line in your httpd.conf if you are running PHP as a CGI... Safer to run it as an SAPI module if you can and remove that ScriptAlias line. -GED LaserJetter - Re: PHP Security Alert for Apache/Win32 - Sun, 6 Jan 2002 20:16:39 - Can you

[PHP] Re: php-general Digest 3 Jan 2002 12:22:53 -0000 Issue 1089

2002-01-04 Thread Garth Dahlstrom
If you don't like getting 50 messages a day, I suggest using this list's digest mode, then you get 1 big message with your daily dose of 50 messages tucked away neatly inside. :) Matt Moreton - Re: [PHP] Holy Moly... - Thu, 3 Jan 2002 03:03:02 - If you dont mind

[PHP] Re: Issues with fopen long file names?

2001-12-21 Thread Garth Dahlstrom
I have no problems using fopen to open up a long file name under Win2k Pro... $fp = fopen(C:\WINNT\Temp\adodb_9002b91d2d52c10124c949e2b415a980.cache, r); I notice in the example you give your file has a trailing space, not sure if that would throw things at all. Have you tried using *$array

[PHP] Re: Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Garth Dahlstrom
My 2 cents... I think exit should be fixed as you describe... And I think die should behave as it does in perl which is to print out whatever it is passed. -Garth --- Jani Taskinen - Question: Should exit() print out the integer exit-status? - Wed, 19 Dec 2001 01:38:39 +0200 (EET)

[PHP] PHP 4.1.0 SAPI on Apache Win32?

2001-12-17 Thread Garth Dahlstrom
I'm wondering if anyone else is trying to run the SAPI version of PHP on Apache for Win32 and hitting problems with the include_path? I'm running Win2K, if I set the include_path parameter to any non-blank value I get an error as follows: Warning: Failed opening

[PHP] PHP 4.1.0 - Win2K - Apache SAPI and Include_Path Problem...

2001-12-13 Thread Garth Dahlstrom
It seems that when I switched from running my PHP 4.1.0 from running as a CGI to running as an SAPI on Win2K, I get the error below on every page: Warning: Failed opening '/htdocs/test/dir.php' for inclusion (include_path='.') in Unknown on line 0 ^^^--- After this message PHP stops w/ no

[PHP] Re: Help converting ASP-PHP

2001-10-23 Thread Garth Dahlstrom
datCurrent, intCurrentMonthDays and intWorkDays are local This didn't totaly help. This line I can't figure out: intCurrentMonthDays= Day[DateAdd[d,-1, DateAdd[m,1, datCurrent]]]; Basically it gets the number of days in the current month, How to do in PHP? Mr.Baseball, have a look at

[PHP] Error: Unable to open *\index.php in Unknown on line 0

2001-10-03 Thread Garth Dahlstrom
On a *nix based system this type of error is caused by the file permissions being wrong (like -rw- that is only the owner can read the file, usually its set to -rw-r--r-- so group and world can read the file too) I don't know about IIS but you might investigate wheither or not your

[PHP] Re: A powerful editor!

2001-10-03 Thread Garth Dahlstrom
I've been using HTML-Kit for about 3 year, it does highlighting for a boat load of languages, supports scriptable plug-ins, remote file editing, preview mode (using embbedded IE), and context senstive help feature that will go pull up the php.net manual page for php functions (and the Netscape

Re: [PHP] PHP and the Console

2001-08-20 Thread Garth Dahlstrom
Here is a an extract from some code... Note that if you want to read more then one thing from the user, you better not close STDIN, cause you can only open it once. Here's the code it may not work without some fixing... dunno: -? php function Readln($INPUT){ // $fp =

Re: [PHP] The secrecy of PHP code

2001-08-13 Thread Garth Dahlstrom
Of course the absolute safest way besides encryting your PHP is to just store your state secrets in files outside the web server's document tree. i.e. if your web server's document root is /var/www ?php require(/var/super-secret/super-functions.php); if ($theanswer == 42) { echo

Re: [PHP] spell checker

2001-08-06 Thread Garth Dahlstrom
Justin French: Hi, I know this is a biggie, but has anyone attempted to write a spell check (preferably english) in PHP? I'd LOVE something that can spell-check user-submitted text somehow, becuase I'm writing a fully dynamic news-based site, and the only downfall to the site could

[PHP] XSpell 0.1 Released

2001-07-30 Thread Garth Dahlstrom
Some may be interested... This was released today. XSpell is a spell checker for HTML forms. It is composed of a XML-RPC based browser client written in Javascript and an XML-RPC service implemented in PHP 4+. Download at: http://sourceforge.net/projects/xspell/ Demo at:

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

2001-07-20 Thread Garth Dahlstrom
. - Original Message - From: Garth Dahlstrom [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 5:43 AM Subject: split on whitespace, preserving whitespace... Hi all, I'm trying to build a spell checker for a web form. What has got me

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

2001-07-20 Thread Garth Dahlstrom
On Fri, 20 Jul 2001 09:32:00 -0400 Jack Dempsey wrote: $text = This contanswhite space .; $matches = preg_split(/(\s+)/,$text,-1, PREG_SPLIT_DELIM_CAPTURE); echo implode('',$matches); Nope that doesn't do it. here's the test: echo pre[$text]br[. implode('',$matches).]/pre; here's

Re: [PHP] Re: split on whitespace, preserving whitespace... (a rephrase of the question)

2001-07-20 Thread Garth Dahlstrom
Rusterholz, [EMAIL PROTECTED] - Original Message - From: Garth Dahlstrom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 1:44 PM Subject: [PHP] Re: split on whitespace, preserving whitespace... try $wordarr = explode( , $string); mmm

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

2001-07-20 Thread Garth Dahlstrom
running php = 4.0.5? jack -Original Message- From: Garth Dahlstrom [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 10:06 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Re: split on whitespace, preserving whitespace... On Fri, 20 Jul 2001

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

2001-07-20 Thread Garth Dahlstrom
that strips punctuation from the beginning and end of words and has regex checking for numbers, dates and times. $text = This is a lotta text. How do you like that?; preg_match_all(/(\\S+)|(\\s+)/ms, $text, $array); echo pre; print_r($array[1]); Garth Dahlstrom [EMAIL PROTECTED

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

2001-07-19 Thread Garth Dahlstrom
Hi all, I'm trying to build a spell checker for a web form. What has got me stumped is being able to do a split so that whitespace and words are stored as seperate elements of the same array. ideally, I'd use some form of preg_split to put: This contanswhite space . into an array like:

Re: [PHP] REPOST: converting multiple URL values for the same variable into an array

2001-07-17 Thread Garth Dahlstrom
Kurt, You might have some luck with adding [], I seem to remember that making arrays for form posts, so it might do gets too... http://myhost/playlist.pls?song[]=100song[]=101song[]=102 and if you always end up with an array using [], you might change the condition to count($song) 1 or

[PHP] Help: PHP 4.0.6 -- PSPELL can't load ASPELL module...

2001-07-15 Thread Garth Dahlstrom
Hi all, I've been searching all over for a solution to get pspell going... I managed to get 4.06 to build with pspell support enabled, first I got an error about no dictionaries... so I installed aspell - since I read there is a dependancy of some kind between them, now I have a new problem.