Re: [PHP] Still need help with regex function

2004-08-02 Thread Jason Wong
On Sunday 01 August 2004 08:07, C.F. Scheidecker Antunes wrote:

 In order to get the filenames from the output below I have tried the
 following:

 preg_match_all('/inflating:(.*?)/', $stdout, $matches);
 print_r($matches);
 return $matches[1];

 But I only get empty arrays with it.

Try:

  preg_match_all('|^\sinflating: (.*)$|m', $stdout, $matches);

[snip]

 Also, I need to be able to indentify errors with the unzip utility that
 does not support some types of zip file, the output is like this:

 unzip test1.zip
 Archive:  test1.zip
   skipping: test1.txt  `shrink' method not supported

 There's a skipping instead of a inflating or Inflating in pkware.

You can modify the above regex to do this.

 The third situation is an error on the zip file itself :

If you simply want to detect whether an error has occurred then using exec() 
you can get the exit code of the program being executed and usually would 
indicate any errors. Otherwise you can use the string search functions to 
look for common/expected error messages in $stdout.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
There comes a time to stop being angry.
-- A Small Circle of Friends
*/

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



Re: [PHP] Variables not passed to next page

2004-08-02 Thread Jason Wong
On Sunday 01 August 2004 02:28, Andre Dubuc wrote:

 Yes the first page has the appropriate form tags:

 {edit-news.php]
 form action=edit-news-x.php method=post . . . /form

Good.

 The second and third pages [edit-news-x.php/ edit-submit.php] are pure php
 (a pass-through page) -- I wasn't aware they needed these tags as well. Hmm
 . . . that might explain why they weren't passed -- I must be getting old
 : . . .

I'm not sure what you mean by pass-through page. But whenever you're using any 
form elements then they should always be wrapped with properly constructed 
form tags. Some browsers are more lax than others but you should always try 
to make your pages browser independent particularly when it comes to 
something as basic and mundane as forms.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Do not clog intellect's sluices with bits of knowledge of questionable uses.
*/

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



Re: [PHP] Re: regex help needed -- Solved! Thanks!

2004-08-02 Thread Fabrice Lezoray
Kathleen Ballard a écrit :
Thanks!  Works like a charm!
I am the very lowest of newbies when it comes to regex
and working through your solutions has been very
educational.  I have one question about something I
couldn't figure out: 

#h[1-9](.*)/h[1-9]#Uie
`h([1-6]).*?/h\1)`sie
What is the purpose of the back-ticks and the '#'? 
PCRE patterns has to be enclosed, you can use all the non alpha numerics 
characters to do that. Personnaly, I prefer back ticks because I don't 
have to escape it often inside my patterns.
For my example, you can also remove the ``s pattern modifier, It makes 
the dot ( . ) accept any New line characters, and I had not see  that 
you removed them before.

What are 'Uie' and  'sie'?
there are patterns modifiers, you can find a complete list and 
descriptions here :
http://www.php.net/manual/en/pcre.pattern.modifiers.php


Thanks again!
Kathleen
-Original Message-
From: Fabrice Lezoray [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 01, 2004 2:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: regex help needed 

hi
M. Sokolewicz a écrit :
You could try something like:
$return = preg_replace('#h[1-9](.*)/h[1-9]#Uie',
'str_replace(br 

/, , $1)');
- Tul
Kathleen Ballard wrote:

Sorry,
Here is the code I am using to match the h* tags:
h([1-9]){1}.*/h([1-9]){1}
I think this mask is better :
`h([1-6]).*?/h\1)`sie

I have removed all the NL and CR chars from the
string
I am matching to make things easier.  Also, I have
run
tidy on the code so the tags are all uniform.
The above string seems to match the tag well now,
but
I still need to remove the br tags from the tag
contents (.*).
To remove the br / tags, you need to call
preg_replace_callback() :
?php
$str = 'h1hi br / ../h1 bla bla h5  br /
../h5 ...br /';
function cbk_br($match) {
	return 'h' . $match[1] . '' . str_replace('br /',
'', $match[2]) . 
'/h' . $match[1] . '';
}
$return =
preg_replace_callback('`h([1-6])(.*?)/h\1`si',
'cbk_br', 
$str);
echo $return;
?

The strings I will be matching are html formatted
text.  Sample h* tags with content are below:
h4Ex-Secretary Mickey Mouse br /Loses Mass.
Primary/h4
h4Ex-Secretary Mickey Mouse br /Loses Mass.
Primary br / Wins New Jersey/h4
h4Ex-Secretary Reich Loses Mass. Primary/h4
Again, any help is appreciated.
Kathleen


Sorry for my bad english ..
--
Fabrice Lezoray
http://classes.scriptsphp.fr
-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] xored TruStudio PHP Editor

2004-08-02 Thread aka MacGuru
Hi,
Quite surprised to see any news about xored trustudio. I used it some 
time ago, but switched to phpeclipse. xored was developed by a Russian 
company located in Siberia, city of Novosibirsk. Are they still alive? 
I have tried their latest M1, it did not work for me.

Does anyone know how to get the hover functionality working in 
xored's
webstudio/trustudio for PHP.

TIA,
Daryl
*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac/
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Should I wait for PHP 5.1?

2004-08-02 Thread Aidan Lister
http://php.net/migration5

5.0.1 is coming out shortly, wait for that.


Gerard Samuel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Sunday 01 August 2004 12:19 pm, Randall Perry wrote:
  Any major gotchas going from 4 to 5? Any problems with PostgreSQL
  connectivity? Will I have to scour and rewrite current scripts?
 

 My opininon would be to wait on maybe 5.0.1, especially if its on a
production
 box.  Im not having an absolute blast with it on my dev boxes...

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



[PHP] script error

2004-08-02 Thread me2resh






i am using this script as a form to enter articles into databas, 
the variable post_content comes from wysiwyg script
but when i execute the script everything goes fine except it doesn't insert any rown in the databse
can anyone tell me what is wrong with my code ?






?php ob_start();

$post_title = addslashes($post_title);

$post_author = addslashes($post_author);

$post_content = addslashes($post_content);

$post_date = addslashes($post_date);

$db = mysql_connect("localhost", "root");mysql_select_db("balady", $db);$query = "insert into 'posts' ( `post_id` , `post_title` , `post_date` , `post_author` , `post_content` , `m_cat_id` , `s_cat_id` , `post_pic`) values (\'\', \'$post_title, \'$post_title, \'$post_author, \'$post_content, \'\', \'\', \'subject.gif\' )";mysql_query($query);

?

htmlheadtitleAdd Article/title/headbody



form name="post_article" method="post" action="" table border="0" width="56%" id="table1"trtd width="193"bspan lang="ar-eg"font size="3" face="Simplified Arabic"#1593;#1606;#1608;#1575;#1606; #1575;#1604;#1605;#1608;#1590;#1608;#1593;/font/span/b/tdtd width="341"input type="text" name="post_title" size="40" dir="rtl"/tdtdnbsp;/td/trtrtd width="193"bspan lang="ar-eg"font size="3" face="Simplified Arabic"#1575;#1587;#1605; #1575;#1604;#1603;#1575;#1578;#1576;/font/span/b/tdtd width="341"input type="text" name="post_author" size="40" dir="rtl"/tdtdnbsp;/td/trtrtd width="193"bfont size="3" face="Simplified Arabic"span lang="ar-eg"#1578;#1575;#1585;#1610;#1582; #1575;#1604;#1605;#1608;#1590;#1608;#1593;/span/font/b/tdtd width="341"input type="text" name="post_date" size="40" dir="rtl"/tdtdnbsp;/td/trtrtd/tdtd?php

// include the config file and editor class:

include_once ('editor_files/config.php');include_once ('editor_files/editor_class.php');

// create a new instance of the wysiwygPro class:

$editor = new wysiwygPro();$editor-set_name('post_content');

// print the editor to the browser:

$editor-print_editor(700, 400);

?/td/trtrtd width="193"nbsp;/tdtd width="341"input type="submit" value="Submit" name="submit"input type="reset" value="Reset" name="reset"/tdtdnbsp;/td/tr

/TABLE/form/body/html

?php ob_end_flush(); ?







 IncrediMail - Email has finally evolved - Click Here

Re: [PHP] script error

2004-08-02 Thread John Holmes
$query = insert into 'posts' ( `post_id` , `post_title` , `post_date` , 
`post_author` , `post_content` , `m_cat_id` , `s_cat_id` , `post_pic`) 
values (\'\', \'$post_title, \'$post_title, \'$post_author, 
\'$post_content, \'\', \'\', \'subject.gif\' );
mysql_query($query);
Change that last line to
mysql_query($query) or die(mysql_error());
and run the script again. If you can't figure it out, post back with the 
error message and what troubleshooting you've done.
--

John Holmes
php|architect - The magazine for PHP professionals - http://www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Graphing Webstats using MRTG/PHP/MYSQL?

2004-08-02 Thread Fernando Gutierrez
see cacti:

http://www.raxnet.net/products/cacti/

On Thu, 29 Jul 2004 14:03:08 +0800, Louie Miranda [EMAIL PROTECTED] wrote:
 has anyone know any tools related to this?
 
 Graphing Webstats using MRTG/PHP/MYSQL?
 
 --
 Louie Miranda
 http://www.axishift.com
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
-- Fernando Gutierrez Perez --
gmeileando un poco :)

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



Re: [PHP] script error

2004-08-02 Thread me2resh






thanks for your help

i did that
and here is the error message returned

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''posts' ( `post_id` , `post_title` , `post_date` , `post_author

how can i fix it ?

---Original Message---


From: John Holmes
Date: 08/02/04 13:45:22
To: me2resh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] script error

 $query = "insert into 'posts' ( `post_id` , `post_title` , `post_date` ,
 `post_author` , `post_content` , `m_cat_id` , `s_cat_id` , `post_pic`)
 values (\'\', \'$post_title, \'$post_title, \'$post_author,
 \'$post_content, \'\', \'\', \'subject.gif\' )";
 mysql_query($query);

Change that last line to

mysql_query($query) or die(mysql_error());

and run the script again. If you can't figure it out, post back with the
error message and what troubleshooting you've done.
--

John Holmes

php|architect - The magazine for PHP professionals - http://www.phparch.com

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








 IncrediMail - Email has finally evolved - Click Here

[PHP] langauage error

2004-08-02 Thread me2resh






i am usinga form toenter articles into mysql databse in Arabic language 
when i enter the data from Phpmyadmin it converts the letters to the unicode they match
like #1610;#1576;#1604;#1610;
but when i enter it from my form it returns strange letters which is not usefull
like OE??C?EO??CO?E?

how cani make my scripts encode the arabic letters to the unicode of them before it stores it in the database

here is my script





?php ob_start();

$post_title = addslashes($post_title);

$post_author = addslashes($post_author);$post_author = "span lang=\"ar-eg\".$post_author.\"/span";

$post_content = addslashes($post_content);

$post_date = addslashes($post_date);

$db = mysql_connect("localhost", "root");mysql_select_db("balady", $db);$query = "insert into posts (post_id ,post_title ,post_date ,post_author ,post_content ,m_cat_id ,s_cat_id ,post_pic) values ('', '$post_title', '$post_title', '$post_author', '$post_content', '', '', 'subject.gif' )";mysql_query($query) or die(mysql_error());

?

htmlheadtitleAdd Article/title/headbody



form name="post_article" method="post" action="" table border="0" width="56%" id="table1"trtd width="193"bspan lang="ar-eg"font size="3" face="Simplified Arabic"#1593;#1606;#1608;#1575;#1606; #1575;#1604;#1605;#1608;#1590;#1608;#1593;/font/span/b/tdtd width="341"input type="text" name="post_title" size="40" dir="rtl"/tdtdnbsp;/td/trtrtd width="193"bspan lang="ar-eg"font size="3" face="Simplified Arabic"#1575;#1587;#1605; #1575;#1604;#1603;#1575;#1578;#1576;/font/span/b/tdtd width="341"input type="text" name="post_author" size="40" dir="rtl"/tdtdnbsp;/td/trtrtd width="193"bfont size="3" face="Simplified Arabic"span lang="ar-eg"#1578;#1575;#1585;#1610;#1582; #1575;#1604;#1605;#1608;#1590;#1608;#1593;/span/font/b/tdtd width="341"input type="text" name="post_date" size="40" dir="rtl"/tdtdnbsp;/td/trtrtd/tdtd?php

// include the config file and editor class:

include_once ('editor_files/config.php');include_once ('editor_files/editor_class.php');

// create a new instance of the wysiwygPro class:

$editor = new wysiwygPro();$editor-set_name('post_content');

// print the editor to the browser:

$editor-print_editor(700, 400);

?/td/trtrtd width="193"nbsp;/tdtd width="341"input type="submit" value="Submit" name="submit"input type="reset" value="Reset" name="reset"/tdtdnbsp;/td/tr

/TABLE/form/body/html

?php ob_end_flush(); ?
---Original Message---


From: John Holmes
Date: 08/02/04 13:45:22
To: me2resh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] script error

 $query = "insert into 'posts' ( `post_id` , `post_title` , `post_date` ,
 `post_author` , `post_content` , `m_cat_id` , `s_cat_id` , `post_pic`)
 values (\'\', \'$post_title, \'$post_title, \'$post_author,
 \'$post_content, \'\', \'\', \'subject.gif\' )";
 mysql_query($query);

Change that last line to

mysql_query($query) or die(mysql_error());

and run the script again. If you can't figure it out, post back with the
error message and what troubleshooting you've done.
--

John Holmes

php|architect - The magazine for PHP professionals - http://www.phparch.com

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








 IncrediMail - Email has finally evolved - Click Here

Re: [PHP] script error

2004-08-02 Thread Andre Dubuc
Maybe unquote 'posts' -- I would write:

 $query = INSERT INTO posts ( `post_id` , `post_title` , `post_date` , ..



On Monday 02 August 2004 06:49 am, me2resh wrote:
 thanks for your help

 i did that
 and here is the error message returned

 You have an error in your SQL syntax. Check the manual that corresponds to
 your MySQL server version for the right syntax to use near ''posts' (
 `post_id` , `post_title` , `post_date` , `post_author

 how can i fix it ?


 ---Original Message---

 From: John Holmes
 Date: 08/02/04 13:45:22
 To: me2resh
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] script error

  $query = insert into 'posts' ( `post_id` , `post_title` , `post_date` ,
  `post_author` , `post_content` , `m_cat_id` , `s_cat_id` , `post_pic`)
  values (\'\', \'$post_title, \'$post_title, \'$post_author,
  \'$post_content, \'\', \'\', \'subject.gif\' );
  mysql_query($query);

 Change that last line to

 mysql_query($query) or die(mysql_error());

 and run the script again. If you can't figure it out, post back with the
 error message and what troubleshooting you've done.
 --

 John Holmes

 php|architect - The magazine for PHP professionals - http://www.phparch.com

 --
 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



[PHP] php coding software

2004-08-02 Thread Brad Ciszewski
Does anyone know any good software for PHP/mysql coding? I currently use
DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
support. I just want an easy program to script in, and upload on to my
webserver. Please help! :o


Re: [PHP] php coding software

2004-08-02 Thread Matt M.
On Mon, 2 Aug 2004 09:26:18 -0500, Brad Ciszewski [EMAIL PROTECTED] wrote:
 Does anyone know any good software for PHP/mysql coding? I currently use
 DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
 support. I just want an easy program to script in, and upload on to my
 webserver. Please help! :o
 


I have never tried it but there is dreamweaver extensions:

http://www.interaktonline.com/products/PHAkt/

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



[PHP] php textbook

2004-08-02 Thread Anthony Ritter
Reading Creating Interactive Websites with PHP and Web Services (Sybex) by
Eric Rosebrock.

I've found it a good textbook and wanted to get some feedback from the group
about two things I noticed in most of the code throughout the book which has
helped me.

1. The author separtares .html form from .php script by using many include()
functions for the .html files.  I have found that that helps from getting
parse errors from the many escaped strings throughout the .html within a
.php file if the coder can separate the .html markup from the backend script
as much as possible.

Kind of like CSS which can separate form from content.

2. The author makes use of many switch() constructs throughout the book as
opposed to if / else.

He brings in variables from query strings when the user submits the .html
form to match the switch() contructs which then decides what action will
follow.

Anyway, I found the textbook a nice change in the way he presented his
scripts and thought others would like to share any feedback if they have
read or are reading the book.

TIA
TR

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



Re: [PHP] php coding software

2004-08-02 Thread John Nichel
Brad Ciszewski wrote:
Does anyone know any good software for PHP/mysql coding? I currently use
DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
support. I just want an easy program to script in, and upload on to my
webserver. Please help! :o
quote from Newbie Guide
For example: One of the repeatedly discussed  question in the list is 
Best PHP editor. Everyone has his/her favourite editor. You can get 
all the opinions by going through the list archives. If you want a 
chosen list try this link : http://www.thelinuxconsultancy.co.uk/phpeditors/
/quote

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php coding software

2004-08-02 Thread Paul Kain
php expert editor

VERY nice

look it up at http://www.ankord.com/

$35 though but worth it.



On Mon, 2 Aug 2004 09:26:18 -0500, Brad Ciszewski [EMAIL PROTECTED] wrote:
 Does anyone know any good software for PHP/mysql coding? I currently use
 DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
 support. I just want an easy program to script in, and upload on to my
 webserver. Please help! :o


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



[PHP] Re: langauage error

2004-08-02 Thread M. Sokolewicz
try using htmlentities()
- Tul
Me2resh wrote:
i am using a form to enter articles into mysql databse  in Arabic language
when i enter the data from Phpmyadmin it converts the letters to the 
unicode they match
like #1610;#1576;#1604;#1610;
but when i enter it from my form it returns strange letters which is not 
usefull
like OE??C?EO??CO?E?
 
how can i make my scripts encode the arabic letters to the unicode of 
them before it stores it in the database
 
here is my script
 
 
 
 
 
?php ob_start();
 
$post_title = addslashes($post_title);
 
$post_author = addslashes($post_author);
$post_author = span lang=\ar-eg\.$post_author.\/span;
 
$post_content = addslashes($post_content);
 
$post_date = addslashes($post_date);
 
$db = mysql_connect(localhost, root);
mysql_select_db(balady, $db);
$query = insert into posts (post_id ,post_title ,post_date ,post_author 
,post_content ,m_cat_id ,s_cat_id ,post_pic) values ('', '$post_title', 
'$post_title', '$post_author', '$post_content', '', '', 'subject.gif' );
mysql_query($query) or die(mysql_error());
 

?
 
html
head
titleAdd Article/title
/head
body
 
 
 
form name=post_article method=post action=?php print ($PHP_SELF); 
? onSubmit=submit_form()
 table border=0 width=56% id=table1
  tr
   td width=193bspan lang=ar-eg
   font size=3 face=Simplified 
Arabic#1593;#1606;#1608;#1575;#1606; 
#1575;#1604;#1605;#1608;#1590;#1608;#1593;/font/span/b/td
   td width=341input type=text name=post_title size=40 
dir=rtl/td
   tdnbsp;/td
  /tr
  tr
   td width=193bspan lang=ar-eg
   font size=3 face=Simplified Arabic#1575;#1587;#1605; 
#1575;#1604;#1603;#1575;#1578;#1576;/font/span/b/td
   td width=341input type=text name=post_author size=40 
dir=rtl/td
   tdnbsp;/td
  /tr
  tr
   td width=193bfont size=3 face=Simplified Arabic
   span lang=ar-eg#1578;#1575;#1585;#1610;#1582; 
#1575;#1604;#1605;#1608;#1590;#1608;#1593;/span/font/b/td
   td width=341input type=text name=post_date size=40 
dir=rtl/td
   tdnbsp;/td
  /tr
tr
td
/td
td
?php
 
// include the config file and editor class:
 
include_once ('editor_files/config.php');
include_once ('editor_files/editor_class.php');
 
// create a new instance of the wysiwygPro class:
 
$editor = new wysiwygPro();
$editor-set_name('post_content');
 
// print the editor to the browser:
 
$editor-print_editor(700, 400);
 
?
/td
/tr
  tr
   td width=193nbsp;/td
   td width=341input type=submit value=Submit 
name=submitinput type=reset value=Reset name=reset/td
   tdnbsp;/td
  /tr
 
/TABLE
/form
/body
/html
 
?php ob_end_flush(); ?
/---Original Message---/
 
/*From:*/ John Holmes mailto:[EMAIL PROTECTED]
/*Date:*/ 08/02/04 13:45:22
/*To:*/ me2resh mailto:[EMAIL PROTECTED]
/*Cc:*/ [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
/*Subject:*/ Re: [PHP] script error
 
  $query = insert into 'posts' ( `post_id` , `post_title` , `post_date` ,
  `post_author` , `post_content` , `m_cat_id` , `s_cat_id` , `post_pic`)
  values (\'\', \'$post_title, \'$post_title, \'$post_author,
  \'$post_content, \'\', \'\', \'subject.gif\' );
  mysql_query($query);
 
Change that last line to
 
mysql_query($query) or die(mysql_error());
 
and run the script again. If you can't figure it out, post back with the
error message and what troubleshooting you've done.
--
 
John Holmes
 
php|architect - The magazine for PHP professionals - http://www.phparch.com
 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 
		


http://www.incredimail.com/redir.asp?ad_id=309lang=9  /IncrediMail/ - 
*Email has finally evolved* - *_Click Here_* 
http://www.incredimail.com/redir.asp?ad_id=309lang=9
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php coding software

2004-08-02 Thread Jordi Canals
Brad Ciszewski wrote:
Does anyone know any good software for PHP/mysql coding? I currently use
DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
support. I just want an easy program to script in, and upload on to my
webserver. Please help! :o
Sorry, but you're wrong. Dreamweaver DOES have MySQL support and can 
connect to MySQL databases to help coding your scripts.

BTW, I use Zend Studio, and If I'm not wrong, they have a personal 
edition for free.

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


[PHP] pconnect...

2004-08-02 Thread bruce
hi...

since pconnect is not supported in php5, i'm wondering if the issue is that
mysql no longer supports the underlying functions to implement pconnect, or
if the decision to leave it out was based upon other factors.

also, is there anybody i can talk to who has looked at the actual code
within the earlier php4 regarding the pconnect issue?

thanks

-bruce

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



Re: [PHP] pconnect...

2004-08-02 Thread John W. Holmes
From: bruce [EMAIL PROTECTED]

 since pconnect is not supported in php5, i'm wondering if the issue is
that
 mysql no longer supports the underlying functions to implement pconnect,
or
 if the decision to leave it out was based upon other factors.

 also, is there anybody i can talk to who has looked at the actual code
 within the earlier php4 regarding the pconnect issue?

Are you still on this issue? pconnect() doesn't do what you think it does.
If you want to write you're middle-man database connection manager then
you can use the regular connection method.

---John Holmes...

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



Re: [PHP] pconnect...

2004-08-02 Thread Curt Zirzow
* Thus wrote bruce:
 hi...
 
 since pconnect is not supported in php5, i'm wondering if the issue is that
 mysql no longer supports the underlying functions to implement pconnect, or
 if the decision to leave it out was based upon other factors.

php5 has pconnect.  You're getting mysql/mysqli confused:

  mysql_pconnect();  // valid
  mysqli_pconnect(); // NOT valid

pconnect was removed from the mysqlImproved extension because
it usually causes more problems than it solves. mysqli is only for
mysql database versions = 4.1.2, anything less you will still use
mysql.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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



[PHP] php inventory control software

2004-08-02 Thread Alex Shi
Hello,

Any one can suggest me a php template (or modules) of a 
web-based inventory control software including a web-store. 

Thanks in advance!

Alex

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



[PHP] Re: php inventory control software

2004-08-02 Thread Steve Douville
Take a look at www.oscommerce.com

 Any one can suggest me a php template (or modules) of a
 web-based inventory control software including a web-store.

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



RE: [PHP] pconnect...

2004-08-02 Thread bruce
i meant mysqli/php5 regarding pconnect. although, i've since seen
information that leads me to believe htat pconnect would necessarily in and
of itself be my solution.

i'm starting to believe that a real solution for this would have to be
implemented within mysql itself...

-bruce


-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 11:08 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] pconnect...


* Thus wrote bruce:
 hi...

 since pconnect is not supported in php5, i'm wondering if the issue is
that
 mysql no longer supports the underlying functions to implement pconnect,
or
 if the decision to leave it out was based upon other factors.

php5 has pconnect.  You're getting mysql/mysqli confused:

  mysql_pconnect();  // valid
  mysqli_pconnect(); // NOT valid

pconnect was removed from the mysqlImproved extension because
it usually causes more problems than it solves. mysqli is only for
mysql database versions = 4.1.2, anything less you will still use
mysql.


Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

--
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] Re: php inventory control software

2004-08-02 Thread John Nichel
Steve Douville wrote:
Take a look at www.oscommerce.com
Does oscommerce still require register_globals to be on?
http://php.resourceindex.com/Complete_Scripts/Shopping_Carts/
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] pconnect...

2004-08-02 Thread Ford, Mike [LSS]
-Original Message-
From: bruce
To: 'Curt Zirzow'; [EMAIL PROTECTED]
Subject: RE: [PHP] pconnect...

i meant mysqli/php5 regarding pconnect. although, i've since seen
information that leads me to believe htat pconnect would necessarily in
and
of itself be my solution.
--

No, it wouldn't.  Persistent connections were only ever a way to try and get faster 
connections to the database when the same logon credentials were used repeatedly.  
They DO NOT, DID NOT, AND NEVER HAVE provided the ability to manage transactions over 
multiple pages.  Give up on this tack and go write your middle-man application or 
whatever else you reckon you need to fulfill your requirement.

Cheers!

Mike.

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



[PHP] Spellchecking using MS Office spellchecker

2004-08-02 Thread George E. Papadakis
Hi all,
Do you know if there is a way, class or anything else that could be used 
in order to use Microsoft's spell checker with php to spell check text?

Aspell and Pspell are good alternatives, yet  not as good as expected.
Thanks in advance,
GP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Upgrade PHP?

2004-08-02 Thread Will Collins
Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
from source, and although the compile went well, I'm having problems getting
modules installed into PHP.  For example, when using phpinfo(), I am told
that GD is installed, but trying to use GD functions won't work.  What now,
guys?

Will

-Original Message-
From: Support [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 01, 2004 10:11 PM
To: Will Collins; [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

I've dealt with a similar problem with Mandrake. Some distros have their own
idea of where things should go. I prefer to install major applications like
apache, perl, mysql, php myself and never install from rpm or accept default
distro packages when installing an os from scratch.

IMHO: Although handy for some things, I still can't figure out why people
put up with rpms. :-)

What I finally did is use rpm to uninstall php, apache, and mysql. I also
followed dependencies and deleted them as well.

This approach is not really a great idea if you're not used to building from
source, but I have my own idea of where I like things to go so this works
for me. Usually /usr/local is a good choice for installing.

Since mysql and apache both come with their own start up scripts using
chckconfig to add them to the system is about as easy as it gets.

Jim Grill
Web-1 Hosting
http://www.web-1hosting.net

- Original Message - 
From: Will Collins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 8:03 PM
Subject: [PHP] Upgrade PHP?


 I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9.  I've
 tried simply making the 4.3.8 from source, but RedHat didn't use the
default
 PHP folder structure is seems, since there has been no change in my PHP
 version.  I also tried the ./configure string returned by 'phpinfo()'
 (assuming that the correct path info was included) with no luck.  Does
 anyone have any tips on an easier way to upgrade?



 Thanks,

 Will



-- 
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] Spellchecking using MS Office spellchecker

2004-08-02 Thread Jay Blanchard
[snip]
Do you know if there is a way, class or anything else that could be used

in order to use Microsoft's spell checker with php to spell check text?

Aspell and Pspell are good alternatives, yet  not as good as expected.
[/snip]

Why? What did you expect?

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



RE: [PHP] pconnect...

2004-08-02 Thread bruce
i meant mysqli/php5 regarding pconnect. although, i've since seen
information that leads me to believe that pconnect would not necessarily
in and of itself be my solution.

i'm starting to believe that a real solution for this would have to be
implemented within mysql itself...

-bruce


-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 11:08 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] pconnect...


* Thus wrote bruce:
 hi...

 since pconnect is not supported in php5, i'm wondering if the issue is
that
 mysql no longer supports the underlying functions to implement pconnect,
or
 if the decision to leave it out was based upon other factors.

php5 has pconnect.  You're getting mysql/mysqli confused:

  mysql_pconnect();  // valid
  mysqli_pconnect(); // NOT valid

pconnect was removed from the mysqlImproved extension because
it usually causes more problems than it solves. mysqli is only for
mysql database versions = 4.1.2, anything less you will still use
mysql.


Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

--
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] Re: php inventory control software

2004-08-02 Thread John W. Holmes
From: John Nichel [EMAIL PROTECTED]
 Steve Douville wrote:
  Take a look at www.oscommerce.com

 Does oscommerce still require register_globals to be on?

 http://php.resourceindex.com/Complete_Scripts/Shopping_Carts/

Even if it does, you can't instantly equate that as being a Bad Thing. I'm
sure you know this, but for other's sake, you can program securely even if
you have register_globals ON... you just have to know what you're doing and
use good programming practices.

The register_globals setting doesn't matter... it's whether you choose to
accept the programmers code as being secure enough for your needs or not.

;)

---John Holmes...

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



Re: [PHP] Re: php inventory control software

2004-08-02 Thread John Nichel
John W. Holmes wrote:
From: John Nichel [EMAIL PROTECTED]
Steve Douville wrote:
Take a look at www.oscommerce.com
Does oscommerce still require register_globals to be on?
http://php.resourceindex.com/Complete_Scripts/Shopping_Carts/

Even if it does, you can't instantly equate that as being a Bad Thing. I'm
sure you know this, but for other's sake, you can program securely even if
you have register_globals ON... you just have to know what you're doing and
use good programming practices.
The register_globals setting doesn't matter... it's whether you choose to
accept the programmers code as being secure enough for your needs or not.
;)
---John Holmes...
True, but my issue with it when we were evaluating it was that I didn't 
know (still don't) how secure their code was/is...and with my boss, 
wasn't given the time to give it a good looking over (does anyone have a 
boss who will allow the proper time, for anything? :( ).  Not to mention 
that we have a few other php developers here who are learning as they 
go, and it wouldn't have been a good idea for us to turn on globals if 
they (or I) make a mistake.

We ended up going with X-Cart...still not to happy about that one though.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] COUNT(*) Output Question

2004-08-02 Thread Tom Ray [Lists]
Hey-
I'm query my mySQL database to see how many of each Sku has been 
ordered. I am doing my query as:

$count=mysql_query(SELECT sku, COUNT(*) FROM orders GROUP BY sku);
But my question is how do I use PHP to output the COUNT(*) results? When 
I run the command when I'm logged into mySQL I get the following:

mysql select sku, count(*) from orders group by sku\g
+--+--+
| sku  | count(*) |
+--+--+
| 10001|1 |
| 10001a   |1 |
| 10003|2 |
| 10005|1 |
| 10011|1 |
+--+--+
I just can't figure out a way to output that Count(*) column into 
something HTML friendly...any help or thoughts on this would be appreciated!

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


[PHP] multiple checkboxes

2004-08-02 Thread Josh Close
Very simple question.

When making multiple checkboxes, you put the name the same for a few
to group them together

form action=process.php method=post
input type=checkbox name=checkBoxGroup value=first /
input type=checkbox name=checkBoxGruop value=second /
/form

So they are grouped but then submitting them I only get the last
value check.

? print_r($_POST); ?

How would I get all the boxes check when grouping them by using the
same name for all checkboxes in the name field?

-Josh

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



RE: [PHP] COUNT(*) Output Question

2004-08-02 Thread Brad Ciszewski
Wouldn't count(sku) work? 

-Original Message-
From: Tom Ray [Lists] [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 3:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] COUNT(*) Output Question

Hey-

I'm query my mySQL database to see how many of each Sku has been 
ordered. I am doing my query as:

$count=mysql_query(SELECT sku, COUNT(*) FROM orders GROUP BY sku);

But my question is how do I use PHP to output the COUNT(*) results? When

I run the command when I'm logged into mySQL I get the following:

mysql select sku, count(*) from orders group by sku\g
+--+--+
| sku  | count(*) |
+--+--+
| 10001|1 |
| 10001a   |1 |
| 10003|2 |
| 10005|1 |
| 10011|1 |
+--+--+

I just can't figure out a way to output that Count(*) column into 
something HTML friendly...any help or thoughts on this would be
appreciated!

TIA

-- 
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] COUNT(*) Output Question

2004-08-02 Thread Curt Zirzow
* Thus wrote Tom Ray [Lists]:
 Hey-
 
 I'm query my mySQL database to see how many of each Sku has been 
 ordered. I am doing my query as:
 
 $count=mysql_query(SELECT sku, COUNT(*) FROM orders GROUP BY sku);

alias the count(*) column:

   SELECT sku, COUNT(*) as qty FROM orders GROUP BY sku



Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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



Re: [PHP] COUNT(*) Output Question

2004-08-02 Thread John W. Holmes
From: Tom Ray [Lists] [EMAIL PROTECTED]

 $count=mysql_query(SELECT sku, COUNT(*) FROM orders GROUP BY sku);

 But my question is how do I use PHP to output the COUNT(*) results? When
 I run the command when I'm logged into mySQL I get the following:

I assume you're fetching associative arrays from the result and $r['sku']
works, but you're not sure how to get the COUNT(*) value? Well,
$r['COUNT(*)'] would work, but you could also use an alias:

SELECT sku, COUNT(*) AS mycount FROM orders GROUP BY sku

and then use $r['mycount'] to retrieve the value (after using
mysql_fetch_assoc/array, of course).

---John Holmes...

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



Re: [PHP] multiple checkboxes

2004-08-02 Thread John W. Holmes
From: Josh Close [EMAIL PROTECTED]

 Very simple question.
 
 When making multiple checkboxes, you put the name the same for a few
 to group them together
 
 form action=process.php method=post
 input type=checkbox name=checkBoxGroup value=first /
 input type=checkbox name=checkBoxGruop value=second /
 /form
 
 So they are grouped but then submitting them I only get the last
 value check.
 
 ? print_r($_POST); ?
 
 How would I get all the boxes check when grouping them by using the
 same name for all checkboxes in the name field?

Make them an array:

input type=checkbox name=checkBoxGroup[] value=first /
input type=checkbox name=checkBoxGruop[] value=second /

Note the [] on the name.

---John Holmes...

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



Re: [PHP] multiple checkboxes

2004-08-02 Thread Curt Zirzow
* Thus wrote Josh Close:
 Very simple question.
 
 When making multiple checkboxes, you put the name the same for a few
 to group them together
 
 form action=process.php method=post
 input type=checkbox name=checkBoxGroup value=first /
 input type=checkbox name=checkBoxGruop value=second /
 /form
 
 ...
 How would I get all the boxes check when grouping them by using the
 same name for all checkboxes in the name field?


input type=checkbox name=checkBoxGroup[] value=first /
input type=checkbox name=checkBoxGruop[] value=second /

print_r($_POST['checkBoxGroup']);

If none are checked $_POST['checkBoxGroup'] will be empty()

Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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



Re: [PHP] multiple checkboxes

2004-08-02 Thread John Nichel
Josh Close wrote:
Very simple question.
When making multiple checkboxes, you put the name the same for a few
to group them together
form action=process.php method=post
input type=checkbox name=checkBoxGroup value=first /
input type=checkbox name=checkBoxGruop value=second /
/form
Use a naming convention as such, and they will be sent as an array
input type=checkbox name=checkBoxGroup[] value=first /
input type=checkbox name=checkBoxGruop[] value=second /
(square brackets after the element name)
So they are grouped but then submitting them I only get the last
value check.
? print_r($_POST); ?
How would I get all the boxes check when grouping them by using the
same name for all checkboxes in the name field?
-Josh

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] multiple checkboxes

2004-08-02 Thread Matt M.
 How would I get all the boxes check when grouping them by using the
 same name for all checkboxes in the name field?

there are a number of ways, try:

form action=process.php method=post
input type=checkbox name=checkBoxGroup[] value=first /
input type=checkbox name=checkBoxGruop[] value=second /
/form

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



Re: [PHP] COUNT(*) Output Question

2004-08-02 Thread Tom Ray [Lists]
Thanks JohnI didn't think of thatI've been working on this 
catalog admin interface for to long..my brain is mush.

John W. Holmes wrote:
From: Tom Ray [Lists] [EMAIL PROTECTED]
 

$count=mysql_query(SELECT sku, COUNT(*) FROM orders GROUP BY sku);
But my question is how do I use PHP to output the COUNT(*) results? When
I run the command when I'm logged into mySQL I get the following:
   

I assume you're fetching associative arrays from the result and $r['sku']
works, but you're not sure how to get the COUNT(*) value? Well,
$r['COUNT(*)'] would work, but you could also use an alias:
SELECT sku, COUNT(*) AS mycount FROM orders GROUP BY sku
and then use $r['mycount'] to retrieve the value (after using
mysql_fetch_assoc/array, of course).
---John Holmes...
 

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


Re: [PHP] multiple checkboxes

2004-08-02 Thread José de Paula
On Mon, 2 Aug 2004 15:21:31 -0500, Josh Close [EMAIL PROTECTED] wrote:
 Very simple question.
 
 When making multiple checkboxes, you put the name the same for a few
 to group them together
 
 form action=process.php method=post
 input type=checkbox name=checkBoxGroup value=first /
 input type=checkbox name=checkBoxGruop value=second /
 /form
 
 So they are grouped but then submitting them I only get the last
 value check.
 
 ? print_r($_POST); ?
 
 How would I get all the boxes check when grouping them by using the
 same name for all checkboxes in the name field?

I've used
form action=process.php method=post
   input type=checkbox name=checkBoxGroup[] value=first /
   input type=checkbox name=checkBoxGruop[] value=second /
/form
in a similar situation.
You can then manipulate the $_POST['checkBoxGroup'] array just like
any other PHP array.

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



Re: [PHP] multiple checkboxes

2004-08-02 Thread John Nichel
Like I had a shot in hell of getting the answer in first with John and 
Curt trolling the list. ;)

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Upgrade PHP?

2004-08-02 Thread bruce
provide us with a copy of the attributes you used when you compiled...

ie ./configure --attributeA --ldapetc...


-Original Message-
From: Will Collins [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Upgrade PHP?


Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
from source, and although the compile went well, I'm having problems getting
modules installed into PHP.  For example, when using phpinfo(), I am told
that GD is installed, but trying to use GD functions won't work.  What now,
guys?

Will

-Original Message-
From: Support [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 10:11 PM
To: Will Collins; [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

I've dealt with a similar problem with Mandrake. Some distros have their own
idea of where things should go. I prefer to install major applications like
apache, perl, mysql, php myself and never install from rpm or accept default
distro packages when installing an os from scratch.

IMHO: Although handy for some things, I still can't figure out why people
put up with rpms. :-)

What I finally did is use rpm to uninstall php, apache, and mysql. I also
followed dependencies and deleted them as well.

This approach is not really a great idea if you're not used to building from
source, but I have my own idea of where I like things to go so this works
for me. Usually /usr/local is a good choice for installing.

Since mysql and apache both come with their own start up scripts using
chckconfig to add them to the system is about as easy as it gets.

Jim Grill
Web-1 Hosting
http://www.web-1hosting.net

- Original Message -
From: Will Collins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 8:03 PM
Subject: [PHP] Upgrade PHP?


 I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9.  I've
 tried simply making the 4.3.8 from source, but RedHat didn't use the
default
 PHP folder structure is seems, since there has been no change in my PHP
 version.  I also tried the ./configure string returned by 'phpinfo()'
 (assuming that the correct path info was included) with no luck.  Does
 anyone have any tips on an easier way to upgrade?



 Thanks,

 Will



--
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

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



[PHP] biff_decode function

2004-08-02 Thread Richard Lynch
[de-lurk]
For some time now, the amount of unwanted email has been increasing 
in my Inbox.

The server has 'Assassin, and I've been using some Eudora 
hand-crafted filters to trash 'Assassin-marked emails, as well as 
re-directing various mailing lists to sub-folders.

Alas, that recently reached the point where I couldn't use my desktop 
machine to work, as it was spending far too many cpu cycles filtering 
email...

So now I have a PHP script on the server, whacking away at the junk, 
and putting things in the correct sub-folders, and my desktop box is 
useful again.

In addition to 'Assassin-marked junk, which catches about 85% of the 
junk, I've crafted some custom filters to get most of the rest of the 
junk, and can almost get back to work...

The single remaining feature I'd like to add to my custom PHP 
filtering is one that would catch emails whose subject lines have 
been encoded in a B1FF-like manner to disguise their junkiness.

EG:  Val'um in the subject line should be detectable as junk.
I've searched the web a bit, but am finding far too many references 
to the X-based email client named biff  (Argh!)

Thus, I need your help finding/writing a biff_decode function.
Perhaps a function which, given a short (subject length) input of 
text, and a dictionary of bad words, would return some kind of 
value indicating a percent match of how close the text was to any 
of the bad words.

Or perhaps somebody on this list has a better idea how to tackle the problem.
Please cc me, as I am still struggling with catching up on mail/news, 
and would most likely not see the solution otherwise.

THANKS!!!
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Spellchecking using MS Office spellchecker

2004-08-02 Thread M. Sokolewicz
well, you could use the win32std extension (found in PECL), connect to 
the right dll and then you could feed it and get stuff back from it. 
Exact data on the way to handle the connection would be available via 
MSDN (msdn.microsoft.com).

when using 4.2.0 = PHP = PHP 4.2.3 you could also try the w32api 
functions. They are documented, as opposed to the win32std functions 
(which you need to delve into the C-code to find out WHICH functions you 
have and how to use them).

Hope that helps at least a bit,
- Tul
George E. Papadakis wrote:
Hi all,
Do you know if there is a way, class or anything else that could be used 
in order to use Microsoft's spell checker with php to spell check text?

Aspell and Pspell are good alternatives, yet  not as good as expected.
Thanks in advance,
GP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Upgrade PHP?

2004-08-02 Thread Will Collins
To test it, I used:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd
--with-zlib-dir=/usr/include

-Original Message-
From: bruce [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 3:39 PM
To: 'Will Collins'; [EMAIL PROTECTED]
Subject: RE: [PHP] Upgrade PHP?

provide us with a copy of the attributes you used when you compiled...

ie ./configure --attributeA --ldapetc...

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



Re: [PHP] pconnect...

2004-08-02 Thread Tom Rogers
Hi,

Tuesday, August 3, 2004, 2:24:49 AM, you wrote:
b hi...

b since pconnect is not supported in php5, i'm wondering if the issue is that
b mysql no longer supports the underlying functions to implement pconnect, or
b if the decision to leave it out was based upon other factors.

b also, is there anybody i can talk to who has looked at the actual code
b within the earlier php4 regarding the pconnect issue?

b thanks

b -bruce


One problem I had with pconnect is related to apache children and not being
guaranteed to get the same child on subsequent hits and therefore
getting a different connection anyway (some one elses most likely) and
I also had trouble with setting the current db. This was a long time
ago so things may well have changed, but I did give up trying to use
pconnect.

-- 
regards,
Tom

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



Re: [PHP] Upgrade PHP?

2004-08-02 Thread Jason Wong
On Tuesday 03 August 2004 03:21, Will Collins wrote:
 Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
 from source, and although the compile went well, I'm having problems
 getting modules installed into PHP.  For example, when using phpinfo(), I
 am told that GD is installed, but trying to use GD functions won't work. 
 What now, guys?

What does won't work mean exactly?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
All newspaper editorial writers ever do is come down from the hills after
the battle is over and shoot the wounded.
*/

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



[PHP] Re: php coding software

2004-08-02 Thread Chris Martin
Jordi Canals wrote:
Brad Ciszewski wrote:
Does anyone know any good software for PHP/mysql coding? I currently use
DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
support. I just want an easy program to script in, and upload on to my
webserver. Please help! :o

Sorry, but you're wrong. Dreamweaver DOES have MySQL support and can 
connect to MySQL databases to help coding your scripts.

Yes. PHP and MySQL is supported in DWMX, no extensions required.
FTPEdit and HTMLKit are both free editors for Windows
Quanta and Bluefish are excellent on GNU/Linux
--
Chris Martin
Web Developer
Open Source  Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Upgrade PHP?

2004-08-02 Thread Will Collins
Won't work:

Fatal error: Call to undefined function: imagecreatefromjpeg()

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 4:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

On Tuesday 03 August 2004 03:21, Will Collins wrote:
 Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
 from source, and although the compile went well, I'm having problems
 getting modules installed into PHP.  For example, when using phpinfo(), I
 am told that GD is installed, but trying to use GD functions won't work. 
 What now, guys?

What does won't work mean exactly?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
All newspaper editorial writers ever do is come down from the hills after
the battle is over and shoot the wounded.
*/

-- 
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] Re: php inventory control software

2004-08-02 Thread Ralph G
See www.eshox.com

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 1:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: php inventory control software

John W. Holmes wrote:
 From: John Nichel [EMAIL PROTECTED]
 
Steve Douville wrote:

Take a look at www.oscommerce.com

Does oscommerce still require register_globals to be on?

http://php.resourceindex.com/Complete_Scripts/Shopping_Carts/
 
 
 Even if it does, you can't instantly equate that as being a Bad Thing. I'm
 sure you know this, but for other's sake, you can program securely even if
 you have register_globals ON... you just have to know what you're doing
and
 use good programming practices.
 
 The register_globals setting doesn't matter... it's whether you choose to
 accept the programmers code as being secure enough for your needs or not.
 
 ;)
 
 ---John Holmes...
 

True, but my issue with it when we were evaluating it was that I didn't 
know (still don't) how secure their code was/is...and with my boss, 
wasn't given the time to give it a good looking over (does anyone have a 
boss who will allow the proper time, for anything? :( ).  Not to mention 
that we have a few other php developers here who are learning as they 
go, and it wouldn't have been a good idea for us to turn on globals if 
they (or I) make a mistake.

We ended up going with X-Cart...still not to happy about that one though.

-- 
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

-- 
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



[PHP] Re: php coding software

2004-08-02 Thread Harlequin
Brad

I use HTML-Kit for HTML, ASP, Java, CSS, PHP and MySQL.

Free too :)

-- 
-
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-
Brad Ciszewski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Does anyone know any good software for PHP/mysql coding? I currently use
 DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
 support. I just want an easy program to script in, and upload on to my
 webserver. Please help! :o


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



Re: [PHP] multiple checkboxes

2004-08-02 Thread PHP Gen

--- John Nichel [EMAIL PROTECTED] wrote:

 Like I had a shot in hell of getting the answer in
 first with John and 
 Curt trolling the list. ;)


Yep, those two guys are the highrollers here...also
known as the big guns so when they are aroundI
keep my little pistol voice out of it :-)

Not complaining though, both have helped me countless
times.

-M

=
--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



RE: [PHP] Re: php coding software

2004-08-02 Thread Vail, Warren
For what it's worth, I use HTML-Kit as well.  Feature I like best is the
ability to seamlessly edit content of remote sites and local (folder based)
sites.

Warren Vail


-Original Message-
From: Harlequin [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 5:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: php coding software


Brad

I use HTML-Kit for HTML, ASP, Java, CSS, PHP and MySQL.

Free too :)

-- 
-
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-
Brad Ciszewski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Does anyone know any good software for PHP/mysql coding? I currently 
 use DreamWeaver MX, however it doesn't have much PHP support, and no 
 MySQL support. I just want an easy program to script in, and upload on 
 to my webserver. Please help! :o


-- 
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



[PHP] Re: php coding software

2004-08-02 Thread Oliver John V. Tibi
in addition to brad's post, does anyone know of coding software that
supports team development environments and/or a versioning server for
windows?

TIA!

-- 

Running 'ojtibi' on '127.0.0.1' (BATCH_OPTIMISTIC mode).
Live free() or die().

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



Re: [PHP] Upgrade PHP?

2004-08-02 Thread Jason Wong
On Tuesday 03 August 2004 07:42, Will Collins wrote:
 Won't work:

 Fatal error: Call to undefined function: imagecreatefromjpeg()

 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd
 --with-zlib-dir=/usr/include

Read

  manual  Image Functions

to see how to get jpeg (and other) support.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
NOTICE:

-- THE ELEVATORS WILL BE OUT OF ORDER TODAY --

(The nearest working elevator is in the building across the street.)
*/

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



Re: [PHP] biff_decode function

2004-08-02 Thread Jason Wong
On Tuesday 03 August 2004 04:20, Richard Lynch wrote:

 Perhaps a function which, given a short (subject length) input of
 text, and a dictionary of bad words, would return some kind of
 value indicating a percent match of how close the text was to any
 of the bad words.

PHP has a number of builtin String Functions which does string similarity 
comparisons. I'm not sure how useful they would be for your purpose so you 
would have to play around with them to find out.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Numeric stability is probably not all that important when you're guessing.
*/

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



[PHP] I need ob_write($string, $start, $length)

2004-08-02 Thread jtl_phpdotnet
The guys in the internals list sent me to this forum.

I am trying to write some serious parsing software in PHP.  I need to use plain, 
vanilla PHP and no add-on modules, because I need to be able to distribute to people 
who don't have sufficient privileges.

In the process of parsing I create a new document composed of concatenated pieces of 
the original document.  I am efficiently catting the new document using output buffer, 
but when I have to copy non-contiguous pieces form the original document, I am forced 
to create substrings, as in:

echo substr($originalDoc, $startOfSnippet, $snippetLength)

My documents are potentially large with possibly thousands of such substrings.  I know 
from writing Java parsers for high-throughput servers that object creation, and in 
particular string creation, is the greatest source of degraded performance.

I'd like to copy the contents of a substring directly to the output buffer without 
creating an intermediate object, as in:

ob_write($string, $start, $length)

I can find no such function and could envision no other way to do this at present.

When can I expect broad support for such a function in the base PHP release?  Or do 
you know of a workaround?

BTW, because I had to ditch my last email address due to spam, I'm subscribed to this 
list through spamex.com.  But because the list makes the emails it distributes appear 
to original from the people who posted, I have no way to reply through spamex back to 
this forum, at least no way to keep the reply in the same thread.  Suggestions, are 
welcome.  Otherwise I'll be starting a new thread.

Thanks for your help!
~joe lapp

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



[PHP] Handles for multiple output buffers?

2004-08-02 Thread jtl_phpdotnet
Again, the internals list sent me to this forum for help.

In trying to create a series of parsers in PHP, using only PHP core and no 
non-standard add-ons, I find myself emulating multiple character streams in a class 
that wraps the output buffer.  Every time I open a new stream, I first save the 
current contents of the output buffer and then reset the stream.  When the stream is 
closed, I then restore the output buffer to what it was before.

I'd like more conventional 3GL behavior, where I am permitted multiple buffered 
streams via handles or stream objects.  I see no way to do this with PHP as it stands. 
 I also don't see anyway to emulate this without worsening the problem by creating a 
profusion of strings.

I'm mostly able to work around the performance inefficiences of this wrapper-class 
approach by making the application smart about when to use a new stream.  But I'd 
rather have native support.

When can I expect to see this kind of conventional stream behavior in PHP?  Are there 
any workaround I can use in the meantime?

Thanks for your help!

~joe

P.S.  Again, because this listserv sends emails to me as if they originated from the 
person who made the post, and because I'm now guarding my email address through 
spamex.com, I find that I am unable to respond directly to this thread.  My responses 
will likely appear in new a thread.

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



RE: [PHP] Upgrade PHP? [SOLVED]

2004-08-02 Thread Will Collins
Yeah, actually, you were right.  I must have misunderstood the instructions
- probably because of the press for time, reading too quickly.  I wasn't
using --with-jpeg-dir, etc.  Sorry for the mess, and thanks for all the
help.  At least some good came out of this -- I now have a working Slackware
installation (after the headaches, I decided to install Slackware 10 on my
unused server and compile everything from source to see if I could get it to
work).  Thanks for your time everybody.

Will

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 10:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

On Tuesday 03 August 2004 07:42, Will Collins wrote:
 Won't work:

 Fatal error: Call to undefined function: imagecreatefromjpeg()

 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
--with-gd
 --with-zlib-dir=/usr/include

Read

  manual  Image Functions

to see how to get jpeg (and other) support.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
NOTICE:

-- THE ELEVATORS WILL BE OUT OF ORDER TODAY --

(The nearest working elevator is in the building across the street.)
*/

-- 
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] Handles for multiple output buffers?

2004-08-02 Thread Justin Patrin
On Tue, 03 Aug 2004 00:11:09 -0400, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Again, the internals list sent me to this forum for help.
 
 In trying to create a series of parsers in PHP, using only PHP core and no 
 non-standard add-ons, I find myself emulating multiple character streams in a class 
 that wraps the output buffer.  Every time I open a new stream, I first save the 
 current contents of the output buffer and then reset the stream.  When the stream is 
 closed, I then restore the output buffer to what it was before.
 
 I'd like more conventional 3GL behavior, where I am permitted multiple buffered 
 streams via handles or stream objects.  I see no way to do this with PHP as it 
 stands.  I also don't see anyway to emulate this without worsening the problem by 
 creating a profusion of strings.
 
 I'm mostly able to work around the performance inefficiences of this wrapper-class 
 approach by making the application smart about when to use a new stream.  But I'd 
 rather have native support.
 
 When can I expect to see this kind of conventional stream behavior in PHP?  Are 
 there any workaround I can use in the meantime?
 

Why are you looking for such low level functionality in what is
essentially a scripting language? If you're this worried about speed,
you should probably be writing this in C. Or make an extension to PHP.
I know that you say no non-standard extensions, but if you can't
have an extension, you're not likely to have any major speed
increases.

 Thanks for your help!
 
 ~joe
 
 P.S.  Again, because this listserv sends emails to me as if they originated from the 
 person who made the post, and because I'm now guarding my email address through 
 spamex.com, I find that I am unable to respond directly to this thread.  My 
 responses will likely appear in new a thread.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 !DSPAM:410f0edb54011976710829!
 
 


-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

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



Re: [PHP] Handles for multiple output buffers?

2004-08-02 Thread Robert Cummings
On Tue, 2004-08-03 at 00:44, Justin Patrin wrote:
 On Tue, 03 Aug 2004 00:11:09 -0400, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Again, the internals list sent me to this forum for help.
  
  In trying to create a series of parsers in PHP, using only PHP core and no 
  non-standard add-ons, I find myself emulating multiple character streams in a 
  class that wraps the output buffer.  Every time I open a new stream, I first save 
  the current contents of the output buffer and then reset the stream.  When the 
  stream is closed, I then restore the output buffer to what it was before.
  
  I'd like more conventional 3GL behavior, where I am permitted multiple buffered 
  streams via handles or stream objects.  I see no way to do this with PHP as it 
  stands.  I also don't see anyway to emulate this without worsening the problem by 
  creating a profusion of strings.
  
  I'm mostly able to work around the performance inefficiences of this wrapper-class 
  approach by making the application smart about when to use a new stream.  But I'd 
  rather have native support.
  
  When can I expect to see this kind of conventional stream behavior in PHP?  Are 
  there any workaround I can use in the meantime?
  
 
 Why are you looking for such low level functionality in what is
 essentially a scripting language? If you're this worried about speed,
 you should probably be writing this in C. Or make an extension to PHP.
 I know that you say no non-standard extensions, but if you can't
 have an extension, you're not likely to have any major speed
 increases.

Portability I would wager. And portability with as much efficiency as
possible. I guess the current streams implementation requires him to
perform a lot of low level emulation to get past perceived deficiencies
in the stream handling architecture. Not every Joe has the luxury of
installing extensions and so often a PHP script can provide the widest
possible audience.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] I need ob_write($string, $start, $length)

2004-08-02 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]:
 The guys in the internals list sent me to this forum.
 
 I am trying to write some serious parsing software in PHP.  I
 need to use plain, vanilla PHP and no add-on modules, because I
 need to be able to distribute to people who don't have sufficient
 privileges.
 
 In the process of parsing I create a new document composed of
 concatenated pieces of the original document.  I am efficiently
 catting the new document using output buffer, but when I have to
 copy non-contiguous pieces form the original document, I am
 forced to create substrings, as in:
 
 echo substr($originalDoc, $startOfSnippet, $snippetLength)
 
 My documents are potentially large with possibly thousands of
 such substrings.  I know from writing Java parsers for
 high-throughput servers that object creation, and in particular
 string creation, is the greatest source of degraded performance.
 
 I'd like to copy the contents of a substring directly to the
 output buffer without creating an intermediate object, as in:
 
 ob_write($string, $start, $length)
 
 I can find no such function and could envision no other way to do
 this at present.
 


I'm not entirely clear at what your trying to do but perhaps you
want something like this:

function print_substr_direct($string, $start, $len) {
  static $fp = null;

  if ($fp === null ) {
// Open a connection directly to the output
$fp = fopen('php://stdout', 'r');
  }
  if ($fp) {
fputs($fp, substr($string, $start, $len));
  }
}


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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