RE: [PHP] Calling PHP script from C/C++?

2001-05-22 Thread Sean R. Bright

Yes it can.  If you are compiling yourself you can use configure without
specifying any webservers (i.e. Apache, Netscape, etc) and a binary called
php will be generated after you build.

 -Original Message-
 From: Chatchawan Boonraksa
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 22, 2001 9:42 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Calling PHP script from C/C++?


 Hi all,

 Can PHP be used as a general scripting language other than in web?
 Has anyone did this before?

 I would like to embedded some kind of scripting in
 application developed using C
 or C++.
 I don't want to learn a new language. I already know PHP and
 like the syntax and
 style :)

 Any hint or pointer to this would be really appreciated.

 Regards, Chat



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] if $index=1 how can I create a variable named $column_1 by appending $index behind $columnname

2001-05-09 Thread Sean R. Bright


$toast = array(wheat, rye, pumpernickel);
$numbreads = count($toast);
for ($index = 0; $index  $numbreads; $index++) {
$temp = column$index;
$$temp = $toasts[$index]
}

You will now have variables called column1, column2, and column3.

Sean

 -Original Message-
 From: Jay Lepore [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 09, 2001 9:09 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] if $index=1 how can I create a variable named $column_1
 by appending $index behind $columnname
 
 
 I would like to loop through an array and create variable 
 names such as
 column1, column2, column3 etc. where the number at the end 
 comes from the
 value of index.
 
 For instance:
 
 1) $toast=array(wheat, rye, pumpernickel);
 2) $numbreads=count($toast);
 3) for($index=0;$index$numbreads;$index++){
 4) $column$index=$toasts[$index];
 5) }
 
 At the end I would in theory have three fields called 
 column1, column2,
 column3.
 
 How can I append $index to another to make a new variable 
 name as shown in
 line 4 ?
 
 Thanks in advance
 
 Jay
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] if $index=1 how can I create a variable named $column_1 by appending $index behind $columnname

2001-05-09 Thread Sean R. Bright

Woops, you can even do this:

$toast = array(wheat, rye, pumpernickel);
$numbreads = count($toast);
for ($index = 0; $index  $numbreads; $index++) {
${column . $index} = $toasts[$index];
}

(A little less code and one less variable required.)

Sean

 -Original Message-
 From: Sean R. Bright [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 09, 2001 9:49 PM
 To: 'Jay Lepore'; [EMAIL PROTECTED]
 Subject: RE: [PHP] if $index=1 how can I create a variable named
 $column_1 by appending $index behind $columnname
 
 
 
 $toast = array(wheat, rye, pumpernickel);
 $numbreads = count($toast);
 for ($index = 0; $index  $numbreads; $index++) {
   $temp = column$index;
   $$temp = $toasts[$index]
 }
 
 You will now have variables called column1, column2, and column3.
 
 Sean
 
  -Original Message-
  From: Jay Lepore [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, May 09, 2001 9:09 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] if $index=1 how can I create a variable 
 named $column_1
  by appending $index behind $columnname
  
  
  I would like to loop through an array and create variable 
  names such as
  column1, column2, column3 etc. where the number at the end 
  comes from the
  value of index.
  
  For instance:
  
  1) $toast=array(wheat, rye, pumpernickel);
  2) $numbreads=count($toast);
  3) for($index=0;$index$numbreads;$index++){
  4) $column$index=$toasts[$index];
  5) }
  
  At the end I would in theory have three fields called 
  column1, column2,
  column3.
  
  How can I append $index to another to make a new variable 
  name as shown in
  line 4 ?
  
  Thanks in advance
  
  Jay
  
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: 
  [EMAIL PROTECTED]
  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-CVS] RE: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-18 Thread Sean R. Bright


To continue a tangent... I don't like the idea of having the PEAR
fetching/installation mechanism written in PHP (already some base code in
PEAR to do this).  It seems to me that it forces the user to download/build
PHP and then download and rebuild PHP with any extensions that don't come in
the base distribution.  Instead it should be a binary that can be compiled
before PHP is built, can download and configure any extensions requested and
then build the resulting PHP binary.  We can also build in a dependency
mechanism where for example, someone chooses to install a PEAR module (be it
PHP or C) and the required extensions would be downloaded as well.

Just my $0.02

 -Original Message-
 From: Ron Chmara [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 8:53 PM
 To: Zeev Suraski
 Cc: Frank M. Kromann; Sterling Hughes; Stig Sather Bakken; php-dev
 mailinglist; Stig Sather Bakken
 Subject: Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO-4.1.txt


 On Wednesday, April 18, 2001, at 05:33  PM, Zeev Suraski wrote:
  Guys,
  Over the years, there's always been a tendency to think
 about things
  which are 10 steps ahead.  It never worked, and I don't
 think it would
  work here either.

 Well, a program spec (or idea) is certainly not the reality
 of the final
 codebase.

 But if we don't think a few steps ahead, (or at least know where it's
 going), it's kind of hard to determine the steps to take here
 and now,
 or know where it's really going. I posted a list, and we
 discovered that
 PEAR already has dependancies on some /ext's, and (by
 implication) that
 if this continues in PEAR, eventually many of the minor ext's
 may need
 to be built to run PEAR in which case we may want to
 leave the /ext
 directory out of PEAR entirely.

 If something is going to be a possibility, it should probably be
 considered before we build ourselves into a corner, and
 implementing it
 becomes impossible.

   Whether or not we separate modules *at all* will greatly
 depend on how
  good an implementation we end up having.

 Agreed 100%.
 But that implementation, as it happens requires some feedback and
 discussion, doesn't it?

   How many of them we end up separating will also depend on
 that.  Let's
  just wait with those discussions until they're somehow
 connected with
  reality.

 Counterpoint to this, of course, is that if we _would_ be doing this
 with a PEAR scheme, we'd need to design that into PEAR, preferrably
 without having to re-write PEAR from scratch to accomodate
 this idea. :-)


 -Ronabop

 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi config.m4

2001-04-08 Thread Sean R. Bright

After "cvs update -dAP":

Making all in sapi
gmake[1]: Entering directory `/home/kroot/php4/sapi'
Making all in cgi
gmake[2]: Entering directory `/home/kroot/php4/sapi/cgi'
gmake[2]: *** No rule to make target `all'.  Stop.
gmake[2]: Leaving directory `/home/kroot/php4/sapi/cgi'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/kroot/php4/sapi'
gmake: *** [all-recursive] Error 1

 -Original Message-
 From: Stig Bakken [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 6:30 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main
 build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi 
 config.m4 
 
 
 ssb   Sun Apr  8 15:30:18 2001 EDT
 
   Modified files:  
 /php4 Makefile.in configure.in 
 /php4/mainbuild-defs.h.in 
 /php4/pearPEAR.php.in 
 /php4/sapiMakefile.in 
 /php4/sapi/cgiconfig.m4 
   Log:
   * CGI version is always installed!
   * replaced --disable-pear with --with-pear=DIR (or --without-pear),
 is backwards compatible
   * use --datadir, --libdir and --sysconfdir configure 
 options to determine
 where PEAR files, shared extensions and php.ini goes
   * simplified the extension version directory name
   
   

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi config.m4

2001-04-08 Thread Sean R. Bright

Sorry:

./configure --with-apxs=/usr/local/etc/httpd/bin/apxs --with-mysql

 -Original Message-
 From: Sean R. Bright [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 8:21 PM
 To: 'Stig Bakken'; [EMAIL PROTECTED]
 Subject: RE: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main
 build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi 
 config.m4 
 
 
 After "cvs update -dAP":
 
 Making all in sapi
 gmake[1]: Entering directory `/home/kroot/php4/sapi'
 Making all in cgi
 gmake[2]: Entering directory `/home/kroot/php4/sapi/cgi'
 gmake[2]: *** No rule to make target `all'.  Stop.
 gmake[2]: Leaving directory `/home/kroot/php4/sapi/cgi'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/home/kroot/php4/sapi'
 gmake: *** [all-recursive] Error 1
 
  -Original Message-
  From: Stig Bakken [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, April 08, 2001 6:30 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main
  build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi 
  config.m4 
  
  
  ssb Sun Apr  8 15:30:18 2001 EDT
  
Modified files:  
  /php4   Makefile.in configure.in 
  /php4/main  build-defs.h.in 
  /php4/pear  PEAR.php.in 
  /php4/sapi  Makefile.in 
  /php4/sapi/cgi  config.m4 
Log:
* CGI version is always installed!
* replaced --disable-pear with --with-pear=DIR (or 
 --without-pear),
  is backwards compatible
* use --datadir, --libdir and --sysconfdir configure 
  options to determine
  where PEAR files, shared extensions and php.ini goes
* simplified the extension version directory name


 
 -- 
 PHP CVS Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h

2001-04-06 Thread Sean R. Bright

Speaking of which.  How do I enable this mysterious folding mode in emacs?
I can't seem to find any documentation on it.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 06, 2001 8:19 PM
 To: Jani Taskinen; [EMAIL PROTECTED]
 Subject: Re: [PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h


 On Fri, Apr 06, 2001 at 11:17:32PM -, Jani Taskinen wrote:
  sniper  Fri Apr  6 16:17:32 2001 EDT
 
Modified files:
  /php4/ext/fdf   fdf.c php_fdf.h
Log:
Fixed some bugs.

 Why are you changing in the describtions of protos "Sets" to
 "Set", "Adds"
 to "Add" and so on? I think the former was the right english
 description.
 Please look into CODING_STANDARDS at php.net and
 phpdoc/funcsummary.txt.

 Most descriptions starts with "Sets" or "Adds" which is IMHO
 the right way
 to go and the example in CODING_STANDARDS could be changed.

 Notice also, some people are adding a punctuation mark, which
 looks bad. I
 hope Rasmus will give some advice, how we should do this in
 the future.

 I have just reread that small chapter "Documentation and
 Folding Hooks" in
 CODING_STANDARDS. Compare the two examples and you know what
 I am speaking
 off (add a "s" to Return in the first example and remove the
 punctuation
 mark in the second example).

 -Egon

 --
 LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
 All known books about PHP and related books: http://php.net/books.php
 Concert Band of the University of Hohenheim:
 http://www.concert-band.de/
 First and second bestselling book in German: http://www.php-buch.de/

 --
 PHP CVS Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h

2001-04-06 Thread Sean R. Bright

I know where the CODING_STANDARDS file is, but it only mentions Emacs'
folding mechanism, it does not talk about how to use it.  I was hoping that
someone could give me some insight into how to enable this function under
Emacs, as I cannot find any other documentation on it.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 06, 2001 9:22 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h


 On Fri, Apr 06, 2001 at 08:55:40PM -0400, Sean R. Bright wrote:
  Speaking of which.  How do I enable this mysterious folding
 mode in emacs?
  I can't seem to find any documentation on it.

 PHP 4/CODING_STANDARDS. You can also check
 http://cvs.php.net/ -- php4
 -- CODING_STANDARDS.

 -Egon

 --
 LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
 All known books about PHP and related books: http://php.net/books.php
 Concert Band of the University of Hohenheim:
 http://www.concert-band.de/
 First and second bestselling book in German: http://www.php-buch.de/



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] populate select box with contents of a file?

2001-03-07 Thread Sean R. Bright


Take a look at dir() and readdir().  Those along with echo() should help you
out.

Sean

 -Original Message-
 From: Jerry Lake [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 07, 2001 7:40 PM
 To: Henrik Hansen; php general
 Subject: [PHP] populate select box with contents of a file?


 I would like to be able to populate
 the options of a select box with the
 contents of my images directory online
 so I can select the image I want to
 go with the form I am filling out.
 what functions do I need to look into
 to figure this one out?

 Jerry Lake- [EMAIL PROTECTED]
 Web Designer
 Europa Communications - http://www.europa.com
 Pacifier Online   - http://www.pacifier.com



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Poll: Oppinion on get_meta_tags

2001-03-06 Thread Sean R. Bright

Ladies/Gents:

I recently fixed a long standing bug in get_meta_tags and have been asked by
users to fix some other issues as well.  I am curious to know how many of
you are actually using this function and in what way.  Currently,
get_meta_tags returns an associative array, like this:

$resultval["keywords"]  = "these,are,my,keywords"
$resultvar["something"] = "something else"

My changes would result in change to the return value so that instead of
returning a single dimensional array, you would get a multidimensional array
as follows:

$returnval[0]["http-equiv"] == "refresh"
$returnval[0]["content"]== "10;http://www.php.net/"

$returnval[1]["name"]   == "keywords"
$returnval[1]["content"]== "hello"
$returnval[1]["lang"]   == "en"

$returnval[2]["name"]   == "keywords"
$returnval[2]["content"]== "hola"
$returnval[3]["lang"]   == "es"

Where each index (0, 1, 2) refer to the 1st, 2nd and 3rd META tags on the
page.

All and all, my new implementation will support all of the attributes for
META tags, including HTTP-EQUIV, NAME, CONTENT, LANG, and DIR.

If I could get a general feel for how many PHP users out there are using
this function, it would save me some time in the long run.

Thanks,
===
Sean Bright
[EMAIL PROTECTED] / [EMAIL PROTECTED] / http://www.seanbright.com/
===



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.

2001-02-12 Thread Sean R. Bright

This is distributed as GNU and the GNU license is splattered throughout, is
that a problem as we have seen with readline?

Sean

 -Original Message-
 From: emile [mailto:emile]On Behalf Of Emiliano
 Sent: Monday, February 12, 2001 1:42 PM
 To: Sterling Hughes
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog
 INSTALL Makefile.in access.c article.c attachment.c
 calendar.c config.m4
 element.c event.c eventmember.c file.c fudge genentry.pl
 group.c host.c
 image.c mail.c member.c mgd_access.h mgd_article.


 Sterling Hughes wrote:

  Hopefully without risking another lengthy thread...
 
  What does this extension allow me (the common web developer to do)?

 http://www.midgard-project.org/topic/165.html

 Emile

 --
 PHP CVS Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-CVS] cvs: php4 /ext/standard file.c file.h

2001-02-11 Thread Sean R. Bright

Well, I was trying to fix one bug, not introduce others.  If you read the
documentation for get_meta_tags you will see that it returns an associative
array that is keyed by the value of the NAME attribute while the value is
the data within the CONTENT attribute.

If other members of the developers list would like to suggest a solution for
this problem, I would be more than happy to implement it.  Right now I don't
know how to add what you are asking for without breaking existing PHP code.

Sean

 -Original Message-
 From: Colin Viebrock [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 11, 2001 10:52 PM
 To: Sterling Hughes
 Cc: Sean Bright; [EMAIL PROTECTED]
 Subject: Re: [PHP-CVS] cvs: php4 /ext/standard file.c file.h


 [Sun, 11 Feb 2001] Sterling Hughes said:

 
   elixer Sat Feb 10 18:38:40 2001 EDT
  
 Modified files:
   /php4/ext/standard file.c file.h
 Log:
 Fix for bug #4556
 # This is pretty much a total rewrite of get_meta_tags
 using a simple
 # handwritten tokenizer.  It might be overkill, but it works.
 
  I'd say this is news worthy...
 
  Can you add an entry into the NEWS file.


 I agree.  However, on first glance, it only seems to grab the
 meta-tags
 that have the NAME/CONTENT attributes, not the HTTP-EQUIV/CONTENT
 attributes.  This was a major drawback of the original code (IMHO).

 I wrote my own get_metatags function in PHP.  Find the code below.  If
 someone likes this and wants to convert it into C ...

 ?php
 function get_metatags($url) {

 if (substr($url,0,7)=='http://') {
 $url = substr($url,7);
 }

 if( !($fp = fopen('http://'.$url, 'r')) ) {
 return false;
 } else {

 $file = '';
 while (!feof($fp)  !stristr($file,'/head') ) {
 $file.= fgets($fp, 80);
 }
 fclose($fp);

 $file = str_replace("\r", '', $file);
 $file = str_replace("\n", '', $file);

 $result = array();
 preg_match_all('/meta(.+?)/i', $file, $temp);

 if (is_array($temp[1])) {

 foreach($temp[1] as $key=$match) {

 $t = $n = $c = '';
 if (preg_match('/name=("|\')(.*?)\\1/i',
 $match, $b)) {
 $t = 'NAME';
 $n = $b[2];
 } else if
 (preg_match('/http-equiv=("|\')(.*?)\\1/i', $match, $b)) {
 $t = 'HTTP-EQUIV';
 $n = $b[2];
 }

 if (preg_match('/content=("|\')(.*?)\\1/i',
 $match, $b)) {
 $c = $b[2];
 }

 if ($t  $n  $c) {
 $result[] = array(
 'type'  = $t,
 'meta_name' = $n,
 'meta_content'  = $c
 );
 }
 }
 }
 return $result;
 }
 }
 ?


 - Colin


 --
 PHP CVS Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]




-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]