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
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
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;
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
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
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,
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
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
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
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
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],
: 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
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
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
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
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
*
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
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
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
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
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:
;
// 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
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
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
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
25 matches
Mail list logo