Re: [PHP] Binary data confusion

2003-01-11 Thread Clay Loveless
with this solution, I would be interested to hear them! Thanks, Clay From: Clay Loveless [EMAIL PROTECTED] Date: Fri, 10 Jan 2003 22:09:03 -0800 To: PHP-General [EMAIL PROTECTED] Subject: [PHP] Binary data confusion Hi, I've got a problem to solve regarding binary data strings, which is an area I

[PHP] Binary data confusion

2003-01-10 Thread Clay Loveless
Hi, I've got a problem to solve regarding binary data strings, which is an area I don't have a lot of experience in. If anyone can help, I would be grateful. Here's the problem in a nutshell: I am getting a binary string from a third-party server that I need to encode into a PNG image. The

[PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
Here's a brain-bender ... At least it is for me at the moment. : ) When I use an XML parser inside a class, the xml_*_handler functions aren't recognizing $this- variables. I can kind of see why ... But would like it to work anyway. : ) Here's an example: class Blah { var $xmlparser;

Re: [PHP] Re: $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
at: http://www.php.net/manual/en/function.xml-set-object.php xml_set_object($this-parser, $this); Clay Loveless [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here's a brain-bender ... At least it is for me at the moment. : ) When I use an XM

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
2002 13:14:34 -0400 To: PHP List [EMAIL PROTECTED] Subject: Re: [PHP] $this in an XML data handler ... in a class Clay: On Wed, Jul 03, 2002 at 02:20:56AM -0700, Clay Loveless wrote: xml_set_element_handler( $this-xmlparser, array

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
In a follow up on this, here's something else that's kind of bizzare ... Within this class example, if I add a variable declaration of: var $testval = 'this is a test'; And then add to _xml_character_data(): echo TEST: $this-testval\n; ... I find that within the class structure,

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
Jul 2002 16:38:38 -0400 To: PHP List [EMAIL PROTECTED] Subject: Re: [PHP] $this in an XML data handler ... in a class Clay: On Wed, Jul 03, 2002 at 11:05:34AM -0700, Clay Loveless wrote: Note: Instead of a function name, an array containing an object reference and a method name can also

Re: [PHP] Dealing with XML charsets

2002-07-02 Thread Clay Loveless
I haven't tried this myself yet, but will soon be facing a similar need. http://www.php.net/iconv That's probably the way I'll start off on tackling this problem ... Grab your XML document, check to see if it's in windows-1252, and if it is, run it through the iconv functions, then parse the

Re: [PHP] what kind of weird problem is this?

2002-06-19 Thread Clay Loveless
Sounds like you're using Mac OS X, if you got PHP from entropy.ch ... Make sure you do NOT use TextEdit to edit/create your PHP scripts. Grab a copy of BBEdit Lite instead from www.barebones.com. You'll be glad you did! -Clay From: Joshua Alexander [EMAIL PROTECTED] Date: Wed, 19 Jun 2002

Re: [PHP] Setting my.cnf [client] values in PHP

2002-06-19 Thread Clay Loveless
found there be passed along to PHP's internal mysql client? Thanks, Clay From: Clay Loveless [EMAIL PROTECTED] Date: Tue, 18 Jun 2002 22:48:37 -0700 To: PHP-General [EMAIL PROTECTED] Subject: [PHP] Setting my.cnf [client] values in PHP I'm fiddling around with the SSL connection capabilities

Re: [PHP] catch the client OS user logon from php script

2002-06-19 Thread Clay Loveless
Edy, If you're referring to the OS a visitor to your site is using (not the OS your PHP is running on, which you probably know), you'd want: $_SERVER[HTTP_UA_OS] -Clay From: Brian McGarvie [EMAIL PROTECTED] Date: Wed, 19 Jun 2002 09:54:39 +0100 To: èdy kurniawan [EMAIL PROTECTED],

Re: [PHP] catch the client OS user logon from php script

2002-06-19 Thread Clay Loveless
: Brian McGarvie [EMAIL PROTECTED] Date: Wed, 19 Jun 2002 10:29:25 +0100 To: Clay Loveless [EMAIL PROTECTED], PHP-General [EMAIL PROTECTED] Subject: RE: [PHP] catch the client OS user logon from php script does... $_SERVER[HTTP_UA_OS] exist? I can't see that ne where and when I try to use

Re: [PHP] Crontabs

2002-06-18 Thread Clay Loveless
He's referring to the script parser executable, ala: #!/bin/sh #!/usr/bin/perl In this case, you'd need the PHP cgi version installed, and do your script like this: #!/usr/bin/php -q ?php // your script ? Set the script to executable, then set up a crontab

Re: [PHP] dynamic water marks?

2002-06-18 Thread Clay Loveless
Or, if the watermarks *must* be dynamically generated and visible, use something like ImageMagik to lay something transparent over the image on the fly. Wouldn't be exactly speedy, but would do the job. (I've seen this done on a few sites before -- visible graphic watermark is customized for the

[PHP] Setting my.cnf [client] values in PHP

2002-06-18 Thread Clay Loveless
I'm fiddling around with the SSL connection capabilities of MySQL 4.0.1-alpha ... In order for an SSL connection to succeed, the client and server must have some ssl parameters set either in MySQL's my.cnf file, or on the command-line to start the client or server. I've got the server configured

Re: [PHP] PHP with No Web Server?

2002-06-13 Thread Clay Loveless
Here's a cool little PHP app ... Requires PHP to be compiled as a standalone CGI with --enable-pcntl as a config option. http://nanoweb.si.kz/ Nanoweb is a modular http server written in PHP 4.2. Nanoweb's main features are : *Decent performance *HTTP/1.1 compliant *CGI support *

Re: [PHP] Adding zeros in front

2002-06-10 Thread Clay Loveless
Try this: echo str_pad($row[main_group],4,0,STR_PAD_LEFT)./.$row[sub_group]; -Clay From: César L. Aracena [EMAIL PROTECTED] Date: Tue, 11 Jun 2002 00:11:30 -0300 To: PHP General List [EMAIL PROTECTED] Subject: [PHP] Adding zeros in front Hi all, Does anyone remembers how to add zeros

FW: [PHP] MacOSX / php.ini newbie question

2002-06-04 Thread Clay Loveless
directory on your server. That's it! -Clay -- Forwarded Message From: Clay Loveless [EMAIL PROTECTED] Date: Mon, 03 Jun 2002 19:11:10 -0700 To: PHP-General [EMAIL PROTECTED] Subject: Re: [PHP] MacOSX / php.ini newbie question Verdon, I'm a fellow PHP'er on Mac OS X (Server) 10.1.4. : ) You

Re: [PHP] Download Script - Newbie Alert

2002-06-03 Thread Clay Loveless
Something else along these lines -- I really, really wish that more sites that use this method would test across multiple browsers and platforms. I agree with everything John is saying regarding testing access/permissions -- I've used this technique many times myself. However, if a user with

Re: [PHP] MacOSX / php.ini newbie question

2002-06-03 Thread Clay Loveless
Verdon, I'm a fellow PHP'er on Mac OS X (Server) 10.1.4. : ) You need to download the full distribution from php.net/downloads ... In there you will find a php.ini-dist file and php.ini-recommended file. Pick one that you like, edit as needed with BBEdit Lite (NOT TextEdit!), rename to php.ini

Re: [PHP] Re: email attachments and PHP

2002-06-03 Thread Clay Loveless
Another really good one: http://phpmailer.sourceforge.net/ -Clay From: Jason Morehouse [EMAIL PROTECTED] Organization: Netconcepts LTD Date: Tue, 04 Jun 2002 17:15:58 +1200 To: [EMAIL PROTECTED] Subject: [PHP] Re: email attachments and PHP Check out:

Re: [PHP] pcntl functions for task manager - comments?

2002-06-02 Thread Clay Loveless
; // wait two seconds before checking queue again sleep(2); unset($jobs_waiting); } function sig_handler($signo) { // blah blah } -Clay From: Clay Loveless [EMAIL PROTECTED] Date: Sat, 01 Jun 2002 12:38:18 -0700 To: PHP-General [EMAIL PROTECTED] Subject: [PHP] pcntl functions

[PHP] pcntl functions for task manager - comments?

2002-06-01 Thread Clay Loveless
I'm experimenting with PHP's pcntl_* functions using the PHP cgi ... I've never written a daemon before, and there doesn't seem to be a lot of information out there about how to do this with the pcntl functions. So, I've read what I can find on the subject as it deals with UNIX programming. The

Re: [PHP] simple email validation ereg

2002-06-01 Thread Clay Loveless
Maybe I'm biased, but if you grab validateEmailFormat.php from www.killersoft.com, you'd be able to do something as simple as this: ?php include(/path/to/validateEmailFormat.php); $email = [EMAIL PROTECTED]; $isValid = validateEmailFormat($email); if($isValid) { // do whatever you need to

[PHP] ANNOUNCE: validateEmail 2.0 validateEmailFormat 1.0

2002-03-13 Thread Clay Loveless
are freely available at: http://www.killersoft.com/contrib/index.html Comments, suggestions and questions encouraged. Enjoy! Regards, -Clay __ Clay Loveless KillerSoft - http://www.killersoft.com/ -- PHP General Mailing List (http://www.php.net