[PHP] WDDX

2004-05-17 Thread Dave Avent
Hi All,

Does anyone know if there is a WDDX Class for PHP. I have googled and
checked phpclasses.org. I am unable to recompile my webserver so I cannot
include wddx support that way, so if anyone can help me with any suggestions
I would be very gratefull

Cheers

Dave

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: WDDX

2004-05-17 Thread Dave Avent
Craig,

If you read my message you will see that I have allready checked
phpclasses.org

Thanks

Dave

-Original Message-
From: Craig [mailto:[EMAIL PROTECTED]
Sent: 17 May 2004 4:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: WDDX


take a look on http://www.phpclasses.org

Good luck,
Craig

Dave Avent [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi All,

 Does anyone know if there is a WDDX Class for PHP. I have googled and
 checked phpclasses.org. I am unable to recompile my webserver so I cannot
 include wddx support that way, so if anyone can help me with any
suggestions
 I would be very gratefull

 Cheers

 Dave

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] WDDX

2004-05-17 Thread Dave Avent
Thats brilliant,

but unfortunatly i get the following error: Shared object libc.so.6 not
found

Any ideas?

Cheers

Dave

-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: 17 May 2004 4:54 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] WDDX


* Thus wrote Dave Avent ([EMAIL PROTECTED]):
 Hi All,

 Does anyone know if there is a WDDX Class for PHP. I have googled and
 checked phpclasses.org. I am unable to recompile my webserver so I cannot
 include wddx support that way, so if anyone can help me with any
suggestions
 I would be very gratefull

If you can compile programs and load php modules on your webserver,
its possible to add wddx support without recompiling  php.

cd php-4.x.x/ext/wddx
phpize
./configure
make
make install


That will make a dynamic loadable module for php to load, and you
can load the module via dl() or the php.ini's extension directive.


Curt
--
I used to think I was indecisive, but now I'm not so sure.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Print a variable's name

2004-05-05 Thread Dave Avent
$test = Hello World!;

function showvar($var) {

foreach($GLOBALS as $key = $value) {
if($value == $var) {
$varname = $key;
}   
}
echo Variable Name: .$varname.br\n;
echo Variable Value: .$var.br\n;
}


showvar($test);


This is the only thing that works for me.I know it is messy

-Original Message-
From: Michael Sims [mailto:[EMAIL PROTECTED]
Sent: 05 May 2004 4:23 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Print a variable's name


Ahbaid Gaffoor wrote:
 Thanks Ryan,
 
 but what I want is to be able to pass any variable to a procedure and
 have the variable name and value printed by the procedure.
 
 Can this be done?
 
 I'm trying to extend my library of debugging functions/procedures by
 having a procedure which can be used to inspect a variable whenever
 I call it.

This is a bit kludgy, but should work:

function showvar($varname) {

  if (!isset($GLOBALS[$varname])) { return; }

  echo Now showing: $varname\n;
  echo Value: .$GLOBALS[$varname].\n;

}

$s1 = Hello World;
showvar('s1');

HTH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Compare Case Insensitive?

2004-04-08 Thread Dave Avent
if (strtolower($code) == 'abc123') {

or

if (strtoupper($code) == 'ABC123') {

-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]
Sent: 08 April 2004 4:21 PM
To: PHP
Subject: [PHP] Compare Case Insensitive?


How can I compare a variable submitted by a form as case
insensitive? A promotional code will be entered into a form
and it's important that they can enter the code either way.
So if I have

if ($code == 'ABC123') {

I want that to match 'aBC123' 'abc123' or whatever. Thanks.
Jeff

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Can I get varaibles from an include file without exectuting it?

2004-04-07 Thread Dave Avent
pipe the infomation from the script that is run by crond directly into the
second script at run-time

Dave

-Original Message-
From: Al [mailto:[EMAIL PROTECTED]
Sent: 07 April 2004 4:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can I get varaibles from an include file without
exectuting it?


I have a script that is run with a cronjob and would like to fetch some
variables from it, using another file, without the script executing.

I could resort to putting the variables in a third file, or reading the
script as a text file and reconstructing the variables. But, I was
hoping there is a better way.

Any suggestions?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Image output (Newb question)

2004-04-02 Thread Dave Avent
Header (Content-type: image/png);

$im = imagecreatefrompng(images/map.png);
imagepng($im);

ImageDestroy ($im);

-Original Message-
From: Fidencio Monroy [mailto:[EMAIL PROTECTED]
Sent: 02 April 2004 10:55 AM
To: (PHP General List)
Subject: [PHP] Image output (Newb question)


Hi, I need to display some PNG pictures in a script; from help I got

$im = imagecreatefrompng(images/map.png);
imagepng($im);

It outputs the binary data as a string, kind of trash; what do I need to set
to tell the browser how to interpret it?

 Thanks.


Fidencio Monroy.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Flash MX

2004-04-01 Thread Dave Avent
I do allot of php to flash communication in my work and I have found that
wddx is by far the easiest and best way to transfer large and small amounts
of both simple and complex data

Dave

-Original Message-
From: Nadim Attari [mailto:[EMAIL PROTECTED]
Sent: 01 April 2004 12:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Flash MX


Hello PHPeople,

I have to send data to flash. Should i use the urlencode() or the
rawurlencode() function to encode the data?

Thx,

Nadim Attari

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php