[PHP] Broken ip2long and long2ip?

2001-05-20 Thread Sean Cazzell

It appears that the integer type being used by these functions is not able
to store the entire 32 bits (4 bytes).  It can only handle up to 31 bits -
my guess is the type is signed when it should be unsigned.

In any case,I'm running PHP 4.0.5 on Linux 2.4.3 on an x86 machine.  I
would appreciate it if a someone can verify this before I submit it as a
bug.


Regards,

Sean Cazzell


-- 
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] Reports in web browser

2001-05-20 Thread John Monfort



   I believe there is a  window.print() JavaScript code, that lets you
   print a document. I've never used it, so I'm not sure.

   a href=# onClick=window.print();Print Document /a
   //or something like that...

  good luck !!


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
The world is waiting, are you ready?
-+___+-

On Sun, 20 May 2001, Richard wrote:

 You need to be more specific than that.

 You cannot demand the browser to start printing, only thing is to write the
 contents of the report to a webpage and then the visitor/user can print it
 out if she/he likes.

 It depends on how you have stored the reports.

 - Richard

 Mihailo Dzigurski [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hello,
 
  I have written some accounting application using PHP, and now I need to
  create some reports. Those reports need to be printed from web browser.
 
  What can I do?
 
  Thanks
  Mihailo.
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.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 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] problem with cookies

2001-05-20 Thread Peter Knif

Hi! I'm trying to write a simple script that would set a cookie. I keep
receiving the following message:

Warning: Cannot add header information - headers already sent by (output
started at e:\inetpub\wwwroot\PHP\game.php:85) in
e:\inetpub\wwwroot\PHP\game.php on line 87

Here's the code:

85  echo showing results\nBR;
86  echo Right answers = $right\nBR;
87  setcookie(cookie_value, $right, time()+3600);

Could someone tell me what might cause this problem? Thanks.


--
* Peter Knif *

[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] problem with cookies

2001-05-20 Thread Peter Knif

never mind, I solved the problem.

--
* Peter Knif *

[EMAIL PROTECTED]
Peter Knif [EMAIL PROTECTED] wrote in message
9e7ror$mp0$[EMAIL PROTECTED]">news:9e7ror$mp0$[EMAIL PROTECTED]...
 Hi! I'm trying to write a simple script that would set a cookie. I keep
 receiving the following message:

 Warning: Cannot add header information - headers already sent by (output
 started at e:\inetpub\wwwroot\PHP\game.php:85) in
 e:\inetpub\wwwroot\PHP\game.php on line 87

 Here's the code:

 85  echo showing results\nBR;
 86  echo Right answers = $right\nBR;
 87  setcookie(cookie_value, $right, time()+3600);

 Could someone tell me what might cause this problem? Thanks.


 --
 * Peter Knif *

 [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] Max execution time exceeded in Unknown on line 0

2001-05-20 Thread David De Graff

Hi,

I've had php (4.0.5) working fine with postgres and w-agora (forum
software),  but am now having trouble after trying installs of php-nuke and
phpWebSite. These use mysql, which has also been freshly installed.

After a reboot the ? phpinfo(); ? tag executes immediately, but after
trying to execute a php script from one of the new web apps all php scripts
perform very slowly and the results include the following error at the
bottom of the page:

Fatal error: Maximum execution time of 30 seconds exceeded in Unknown on
line 0

This happens even for a test page with nothing but the ? phpinfo(); ?
tag.

It does seem like php is connecting to mysql, since the results that are
eventually returned include database-depended content. For phpinfo() most
results are returned immediately but the page hangs after the php variables
heading, and results for this page are not returned until the 30 second time
limit is apparently reached. Then those results are displayed, followed by
the error described above.

Other pages, say the admin.php page for phpWebSite, don't return anything
until the time limit expires. Then what seems to be the entire page is
displayed, followed by the same error line.

Any help would be much appreciated. I've been beating my head against this
for quite a while.

Thanks,

Dave De Graff


-- 
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] Unix problem

2001-05-20 Thread Christian Reiniger

On Saturday 19 May 2001 14:22, Urb LeJeune wrote:
 I'm using the follow snippet while traversing a directory.

 while ($Directory=readdir($DirHandle)) {

   $IsFile = is_file($Directory);
   $IsDir = is_dir($Directory);
   echo  is file=$IsFile - is dir=$IsDir\n;

   Works fine on Windows box, on a Unix box (RedHat) both
 is_file() and is_dir() return null no matter what the contents of
 $Directory is.

readdir returns the file/directory name without path, is_file and is_dir 
expect a complete filenam with path. So unless you only examine your 
current directory, is_file  is_dir won't find the files.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

I saw God - and she was black.

--
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] The performance of sleep() and usleep()

2001-05-20 Thread Christian Reiniger

On Saturday 19 May 2001 17:26, BlackLord wrote:
 If i use these functions in my script, what will be the system resource
 usage? I know, thread will be open while the script is running but, i
 believe that they will not use extra system resource, won't they?

sleep () does exactly that - putting the process to sleep for the 
specified period. It doesn't use any processing power during that time 
and it might even use less memory (if it is swapped out).

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

I saw God - and she was black.

--
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] Include Paths

2001-05-20 Thread Christian Reiniger

On Saturday 19 May 2001 23:18, Dylan Finney wrote:

 I am fairly new to PHP and so far I love it.  One question I have is
 how to call include files outside of their directory without hard
 coding the real path to the file itself.  Is there map path or a

See the include_path ini directive in the config section of the manual

 similar function in PHP? Also when i use readfile() or fpassthru() when
 I echo the result what I assume is the file size is added to the end of
 the line.  i.e.( blah blah blah will produce a 14 at the end of the
 line ) I was curious as to if there is a flag i'm missing that is
 causing them to do that.  Thank you for the help!

You do a
print (readfile ('foo'));
right?

Well, readfile reads the file *and outputs it*, then returns the number 
of chars read. That is passed to print (). So just use
readfile ('foo');

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

I saw God - and she was black.

--
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] comparison operators

2001-05-20 Thread Heidi Belal

Hi All!
i'm creating this form for people to upload pictures,
so i want to be able to compare the type of the file,
so that if it's not a .gif or a .jpg i give them an
error message!
What i am using is:

If ($userfile_type == image/gif) 
   - here it uploads the file
otherwise it sends out an error message!

but the problem i'm having is that even when i try
uploading a .txt it accepts it and uploads it without
giving the error message.
Is there another way to compare strings? or is ==
operater correct? or what am i doing wrong?
thanks!



=
Heidi Belal
ICQ# 32127109

A bus stops at a bus station.
A train stops at a train station.  On my desk
I have a work station...

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.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] comparison operators

2001-05-20 Thread Heidi Belal

Hi All!
i'm creating this form for people to upload pictures,
so i want to be able to compare the type of the file,
so that if it's not a .gif or a .jpg i give them an
error message!
What i am using is:

If ($userfile_type == image/gif) 
   - here it uploads the file
otherwise it sends out an error message!

but the problem i'm having is that even when i try
uploading a .txt it accepts it and uploads it without
giving the error message.
Is there another way to compare strings? or is ==
operater correct? or what am i doing wrong?
thanks!



=
Heidi Belal
ICQ# 32127109

A bus stops at a bus station.
A train stops at a train station.  On my desk
I have a work station...

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.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] comparison operators

2001-05-20 Thread Heidi Belal

Hi All!
i'm creating this form for people to upload pictures,
so i want to be able to compare the type of the file,
so that if it's not a .gif or a .jpg i give them an
error message!
What i am using is:

If ($userfile_type == image/gif) 
   - here it uploads the file
otherwise it sends out an error message!

but the problem i'm having is that even when i try
uploading a .txt it accepts it and uploads it without
giving the error message.
Is there another way to compare strings? or is ==
operater correct? or what am i doing wrong?
thanks!



=
Heidi Belal
ICQ# 32127109

A bus stops at a bus station.
A train stops at a train station.  On my desk
I have a work station...

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.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] Uploading files

2001-05-20 Thread Diego Pérez Rández


Hi to all:

I don`t konw very well php. I do examples everyday and solve some
problems. But in other i need help.

Today i want to upload a file. I have the form that you can find in
the php manual.

form enctype=multipart/form-data action=_URL_ method=POST
  input type=hidden name=MAX_FILE_SIZE value=1000Send this
  file: input name=userfile type=file input type=submit
value=Send File
/form

My problem is that i don´t know how to programe the php program that
upload the file. I do a lot of examples, but not work.

Can someone give me help.


Thanks.


Best regards, Diego


-- 
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] Problem using unpack

2001-05-20 Thread Craig Vincent

I'm current trying to use PHP's unpack feature to decode a binary string and
am running into a problem.

Here is the unpack command I am using

$playerdata = unpack(czero/A$lengthone/itwo/fthree/A*four, $rest);

basically it is setup so that the hash created has 5 key/value pairs named
zero, one, two, three and four.  However my problem is with the second
key/value pair.  Since the information I need for the second field is
dynamic I need to be able to set a variable there to tell PHP exactly how
many characters are to be parsed for that field.  So say $length = 5 right
now the command would be translated by PHP as

$playerdata = unpack(czero/A5one/itwo/fthree/A*four, $rest);

At least that's what I need =)  The problem I'm experiencing right now is
that PHP translates the variable as $lengthone instead of just $length which
of course always results in 0 and then causes the data to be parsed
incorrectly.  I cannot use whitespace to separate $length and one as then
the unpack feature breaks down thinking that whitespace should be in the
string I'm unpacking which messes things up as well.

Any suggestions/tips for handling this problem would be much appreciated =)
I've been plagued with this problem for a few days now and I'm having no
luck =/

Sincerely,

Craig Vincent


-- 
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] comparison operators

2001-05-20 Thread Diego Pérez Rández

Hi:

For compare strings you can use strcmp.

$st1 = hi;
$st2 = bye;

if (strcmp($st1, $st2)) {
echo are different;
}
else {
echo are equal;
}

The strcmp return 0 when the strings are equal. If the strings are diferent,
return the pos of the char where begin the diference.

I think you can use this without problems.



I can see that you upload files. My problem it's that i can do it. Y use the
form like this.

form enctype=multipart/form-data action=subirfichero.php method=POST

  input type=hidden name=MAX_FILE_SIZE value=1000Send this
  file: input name=dd type=file input type=submit  value=Send
File
/form

My problem is that i don't know how to do the php program that i upload the
file.

Can you help me?.

Thanks.

Best Regards

Diego


Heidi Belal escribió:

 Hi All!
 i'm creating this form for people to upload pictures,
 so i want to be able to compare the type of the file,
 so that if it's not a .gif or a .jpg i give them an
 error message!
 What i am using is:

 If ($userfile_type == image/gif)
- here it uploads the file
 otherwise it sends out an error message!

 but the problem i'm having is that even when i try
 uploading a .txt it accepts it and uploads it without
 giving the error message.
 Is there another way to compare strings? or is ==
 operater correct? or what am i doing wrong?
 thanks!

 =
 Heidi Belal
 ICQ# 32127109

 A bus stops at a bus station.
 A train stops at a train station.  On my desk
 I have a work station...

 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.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]




Re: [PHP] Problem using unpack

2001-05-20 Thread Zak Greant

$playerdata = unpack('czero/A'.$length.'one/itwo/fthree/A*four', $rest);

Good Luck!

--Zak

- Original Message -
From: Craig Vincent [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, May 20, 2001 4:00 AM
Subject: [PHP] Problem using unpack


 I'm current trying to use PHP's unpack feature to decode a binary string
and
 am running into a problem.

 Here is the unpack command I am using

 $playerdata = unpack(czero/A$lengthone/itwo/fthree/A*four, $rest);

 basically it is setup so that the hash created has 5 key/value pairs named
 zero, one, two, three and four.  However my problem is with the second
 key/value pair.  Since the information I need for the second field is
 dynamic I need to be able to set a variable there to tell PHP exactly how
 many characters are to be parsed for that field.  So say $length = 5 right
 now the command would be translated by PHP as

 $playerdata = unpack(czero/A5one/itwo/fthree/A*four, $rest);

 At least that's what I need =)  The problem I'm experiencing right now is
 that PHP translates the variable as $lengthone instead of just $length
which
 of course always results in 0 and then causes the data to be parsed
 incorrectly.  I cannot use whitespace to separate $length and one as then
 the unpack feature breaks down thinking that whitespace should be in the
 string I'm unpacking which messes things up as well.

 Any suggestions/tips for handling this problem would be much appreciated
=)
 I've been plagued with this problem for a few days now and I'm having no
 luck =/

 Sincerely,

 Craig Vincent


 --
 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] Mailserver?!

2001-05-20 Thread FredrikAT

What I look for is a POP/IMAP server that writes incoming mails to a MySQL
db! (WIN32)

Fredrik Takle
Bergen, Norway


Plutarck [EMAIL PROTECTED] skrev i melding
9e73vh$95f$[EMAIL PROTECTED]">news:9e73vh$95f$[EMAIL PROTECTED]...
 Check out http://webgadgets.com/phpost/

 That's a good way to get started on handling emails with PHP.

 I'd need to know more about what you want to do to tell you if PHP is the
 way to do it.

 If you want to run a mail server which takes incoming emails and directly
 writes them to a database, PHP probably isn't the way to go. A Java
Servlet
 would probably be a more appropriate application for that.

 But I don't think that's what you're wanting to do.


 Plutarck

 FredrikAT [EMAIL PROTECTED] wrote in message
 9e6gud$eie$[EMAIL PROTECTED]">news:9e6gud$eie$[EMAIL PROTECTED]...
  Hi!
 
  I want to have a mailapp on my server (win32) wich writes all incoming
 mails
  to a MySQL db.
 
  Is this possible?
 
  -
  Fredrik A. Takle
  [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 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] Multiple emails

2001-05-20 Thread Tom Carter

Hi all,

I have a list of email addresses pulled from a database and I want to send
out an email to all of them  (they are the registered users of this
particular site). For the first issue of the newsletter I expect to have
about 4000 people, but that will probably go up significantly in future
issues.

I can do the sending email normally and extraction of addresses, but my
question was really a more general one.
Is there anything I should be doing different when sending to so many?
Is it better to send a load of addresses altogether (in bcc for example) for
each mail call? how many?
or is it better to use a mail call for each address? I did a few quick speed
test and mail seemed to be very fast. I guess this way would have the
advantage of being able to personallise for each person.
And is there a possibility that my mails would be blocked my some kind of
spam filtering system? Its not I might add!

Any advice and past experience would be very welcome.

BTW, my system is apache on linux, php 4.0.4pl1 running on a cobalt raq.

Thanks in advance

Tom Carter
Web Architect
roundcorners ltd.



-- 
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] Email form

2001-05-20 Thread FredrikAT

Check: http://www.php.net/mail



[EMAIL PROTECTED] skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I've been out of the loop for so long.

 I make a normal form, but the action is something..

 I don't want it to send from the uers email, but use the server.  Some
 people don't have an email client configured.  Can yah help?

 Thanks,
 Owen

 --
 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] Broken ip2long and long2ip?

2001-05-20 Thread Jorg Krause

 From: Sean Cazzell [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, May 20, 2001 8:41 AM
[...]
 It appears that the integer type being used by these functions is not able
 to store the entire 32 bits (4 bytes).  It can only handle up to 31 bits -
 my guess is the type is signed when it should be unsigned.

 In any case,I'm running PHP 4.0.5 on Linux 2.4.3 on an x86 machine.  I
 would appreciate it if a someone can verify this before I submit it as a
 bug.

[...]
You're right. Integers are allways signed and therefore 31 Bit. Use this:

$ip = '192.168.100.102';
$lo = ip2long($ip);
if ($lo  0) $lo += pow(2,32);

$lo does now contain the right value, PHP internally converts the data type
to double.
BTW, long2ip() accepts both values, a signed integer or a double value.

I think this isn't a bug, it is due to the pure type concept of PHP,
where no real long-values or bigint (like MySQL) are possible.
Put a better type concept on your wishlist for PHP 5.

Joerg
[EMAIL PROTECTED]
www.php.comzept.de


-- 
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] PHP claims that class was defined twice

2001-05-20 Thread Jens Kisters

Hey there i noticed sometinh quite odd when trying to include a class
definition:

There are several classes in the project in question.
Every class resides i a separate file that gets included.

When i call the following method

 function mRenderPrintNav($client) {
  show_var(,get_declared_classes());//debugcode

include($this-pApp-pPath./.$this-pApp-pCommonPath./layernav.cls.php);
//include the class definition
  $menu=new Menu;
  $this-mRenderNavWalk($client,$menu);
  $menu-printMenu();
 }

PHP complains

Fatal error: Cannot redeclare class menu in ..//_common/layernav.cls.php
on line 3

ok i started checking if i include the file twice, ich wrote some chars
before the first ?
in the class file, and i see the chars once, but not twicw.
There is no other class called menu in the same project.

So i checked the defined classes with PHP's get_declared_classes().

if i check the declared classes *before* the include it says that the
class Menu is defined.
if i uncomment the include (it is called after get_declared_classes())
the class is not defined at all.

weird.i dont get it.
maybe you do

thank you guys
Jens

--
Grüße aus dem schönen Kleve
Jens Kisters

rosomm et partner
Agentur für neue Medien GmbH
Dienstleistungszentrum am
Weißen Tor - Eingang B
Gocher Landstrasse 2
47551 Kleve / Bedburg-Hau

Telefon: 02821 - 97856-20
Telefax: 02821 - 97856-77
[EMAIL PROTECTED]
http://www.rosomm-partner.de



--
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 Digest 20 May 2001 12:41:02 -0000 Issue 697

2001-05-20 Thread php-general-digest-help


php-general Digest 20 May 2001 12:41:02 - Issue 697

Topics (messages 53570 through 53607):

echo question
53570 by: Louis Brooks
53573 by: Jason Lotito

Re: Global variables? (unset/set or what?)
53571 by: Richard

Re: Global varia **Sorry, I mean... **
53572 by: Richard

Re: Reports in web browser
53574 by: Richard
53578 by: Markus Fischer
53589 by: John Monfort

Re: Mailserver?!
53575 by: Plutarck
53603 by: FredrikAT

Re: get all defined constants?
53576 by: Chris Lee

Re: count() multidimensional array
53577 by: Hugh Bothwell

An excellant example of what PHP can do
53579 by: Plutarck

Accessing data from a localhost proxy
53580 by: Plutarck

Re: A universal Database Class
53581 by: Manuel Lemos

Re: Lookin For Programmer
53582 by: Plutarck

is mod_php4 faster than mod_perl?
53583 by: Christopher Leigh
53586 by: Steven Haryanto

Email form
53584 by: ddogbruce.home.com
53605 by: FredrikAT

Browscap.ini
53585 by: Weston Houghton
53587 by: Chris Adams

Broken ip2long and long2ip?
53588 by: Sean Cazzell
53606 by: Jorg Krause

problem with cookies
53590 by: Peter Knif
53591 by: Peter Knif

Max execution time exceeded in Unknown on line 0
53592 by: David De Graff

Re: Unix problem
53593 by: Christian Reiniger

Re: The performance of sleep() and usleep()
53594 by: Christian Reiniger

Re: Include Paths
53595 by: Christian Reiniger

comparison operators
53596 by: Heidi Belal
53597 by: Heidi Belal
53598 by: Heidi Belal
53601 by: Diego Pérez Rández

Uploading files
53599 by: Diego Pérez Rández

Problem using unpack
53600 by: Craig Vincent
53602 by: Zak Greant

Multiple emails
53604 by: Tom Carter

PHP claims that class was defined twice
53607 by: Jens Kisters

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



Hi All:

I need to print out several paragraphs of information stored in a MySql 
field to a web page. To do this I am using:

$db = mysql_connect(localhost, dbase, password);
mysql_select_db(dbase,$db);
$sql = SELECT update FROM members WHERE username = 'Don';
$query = mysql_query($sql);
$results = mysql_fetch_array($query);
$text = $results[update];

echo $text;

but it does not insert the returns between the paragraphs. I think I need 
to tell it to insert a p in place of the return. There is a way to do 
this as I have seen it on the PHP site when I was searching for something 
else. Of course now that I need it I can't find the example. Can someone 
please help me figure this out?

Thank you,

Louis Brooks





You are looking for the function nl2br()

Information here: http://www.newbienetwork.net/article.php?sid=70
And here: http://www.php.net/manual/en/function.nl2br.php

See echo statement below for example implementation.

Jason Lotito
www.NewbieNetwork.net

 -Original Message-
 From: Louis Brooks [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, May 19, 2001 8:01 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] echo question
 
 
 Hi All:
 
 I need to print out several paragraphs of information stored 
 in a MySql 
 field to a web page. To do this I am using:
 
 $db = mysql_connect(localhost, dbase, password); 
 mysql_select_db(dbase,$db); $sql = SELECT update FROM 
 members WHERE username = 'Don'; $query = mysql_query($sql); 
 $results = mysql_fetch_array($query); $text = $results[update];
 

echo nl2br($text);

 
 but it does not insert the returns between the paragraphs. I 
 think I need 
 to tell it to insert a p in place of the return. There is a 
 way to do 
 this as I have seen it on the PHP site when I was searching 
 for something 
 else. Of course now that I need it I can't find the example. 
 Can someone 
 please help me figure this out?
 
 Thank you,
 
 Louis Brooks
 
 
 -- 
 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]
 
 





So this will do then:

$GLOBALS[userPassword] = whatever;

And when I need to use it, I use
echo userPassword;

and such alike?

What if I would like to change it? Can I simply use
'userPassword=whatever';

?

Thanks,
Richard







Wrong examples written in my past post.

$GLOBALS[userPassword] = whatever;
global $userPassword;


and then write/read from it?

- Richard







You need to be more specific than that.

You cannot demand the browser to start printing, only thing is to write the
contents of the report to a webpage and then the 

Re: [PHP] Reversing htmlspecialchars()

2001-05-20 Thread ~~~i LeoNid ~~

On 19 May 2001 15:27:31 -0700 impersonator of [EMAIL PROTECTED]
(=?iso-8859-1?Q?Rudi_Benkovi=E8?=) planted I saw in php.general:

   function un_htmlentities($str) {
   $trans = get_html_translation_table (HTML_ENTITIES);
   $trans = array_flip ($trans);

or for earlier php versions, that do not support array_flip()

$trans=get_html_translation_table(HTML_ENTITIES);
reset($trans); 
while(list($key,$value)=each($trans)){
  $transs[$value]=$key;
}
$trans = $transs;

   $str = strtr ($str, $trans);
   
   return ($str);
   }

 -Original Message-
 From: Jeroen Geusebroek [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 19, 2001 11:46 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Reversing htmlspecialchars()
 
 
 Hi There,
 
 How can i reverse the htmlspecialchars() functions?
 I can't seem to find a function for that.
 
 Thanks,
 
 Jeroen Geusebroek
 
 -- 
 PHP General 

^^^
--
LeoN to  e-mail: cut  auto_no. if present. 
(.±.)  ` to think - is to speak quietly,  to speak - is to think aloud`
 \~/ 
My posted articles archive: http://leo.portland.co.uk/doc00.htm

-- 
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] Reports in web browser

2001-05-20 Thread Miles Thompson

Well, I think there's a Javascript function one can use to start printing, 
but users will hate it.

A bigger issue, I would think, would be formatting to preserve indents, 
column alignment ,etc. We have no control over the resolution of the user's 
system, size of the browser window, etc. Even extensive use of PRE tags 
is problematic.

This would seem to be a good place to use pdf functions so that the 
generating system has complete control over the document.

My two Canadian cents - Miles

At 02:11 AM 5/20/01 +0200, Richard wrote:
You need to be more specific than that.

You cannot demand the browser to start printing, only thing is to write the
contents of the report to a webpage and then the visitor/user can print it
out if she/he likes.

It depends on how you have stored the reports.

- Richard

Mihailo Dzigurski [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hello,
 
  I have written some accounting application using PHP, and now I need to
  create some reports. Those reports need to be printed from web browser.
 
  What can I do?
 
  Thanks
  Mihailo.
 
 


-- 
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] Unix problem

2001-05-20 Thread Urb LeJeune

Bingo,

 he said as he slapped his forehead with open palm.

 Thanks a 10**6

Urb

At 10:42 AM 5/20/01 +0200, Christian Reiniger wrote:
readdir returns the file/directory name without path, is_file and is_dir
expect a complete filenam with path. So unless you only examine your
current directory, is_file  is_dir won't find the files


-- 
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] ok, are servlets/jsp faster than php4?

2001-05-20 Thread Christopher Leigh

ok, are servlets/jsp faster than php4?



since zend cache isn't free... :(



-- 
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] PHP and XHTML

2001-05-20 Thread Manuel Lemos

Hello Navid,

On 18-May-01 19:44:55, you wrote:

I would like to start using the XHTML syntax for my future projects, but I
heard that PHP is not compatible with XHTML. For example, in XHTML the ID
attribute is used in place of the deprecated NAME tag. But PHP depends on
the NAME attribute in forms, etc. Is there any way around this? Has anyone
used XHTML and PHP together successfully, and if so how did you get around
the previously mentioned problem? Any help woould be much appreciated,
thanks in advance.

That's not a PHP problem.  PHP just processes form values sent by the
browser.  It is up to the browser to pick the field names when the form is
submitted.

Anyway, I think that browsers will always pick the field names from the
NAME attribute to keep backwards compatibility.


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] Book PHP4 Professional WROX Mail over SMTP

2001-05-20 Thread Manuel Lemos

Hello Andreas,

On 11-May-01 13:58:13, you wrote:

Hi there,

I bought this book tryed it for 2 days now to bring the Mail over SMTP
example to work.

It doesn' t work at all.

Does anybody have a class for sending E-Mails over SMTP? This really drives
me mad. It should not
be so complicated to send E-Mails over the net.

Look here:

http://phpclasses.UpperDesign.com/browse.html/package/14

http://phpclasses.UpperDesign.com/browse.html/package/9


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] Site search engine suggestion.

2001-05-20 Thread Manuel Lemos

Hello elias,

On 12-May-01 04:04:26, you wrote:

Hello guys,

I need that badly! I need a suggestion, advise, solution or whatever that
might help!

I need a Site Search script for a page that mostly have .PHP files some are
dynamic and some are not.
Basically i was using WebGlimpse but whenever I search using it, It shows
the source code of the PHP files!
So for example if i search echo , WebGlimpse displays the .PHP file source
code!

Any suggestion for a better site search program?

Try HTDig with this PHP interface class:

http://phpclasses.UpperDesign.com/browse.html/package/26


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] RegEx Question

2001-05-20 Thread George E. Papadakis

Hi,

I have an ereg question::.
$data = a big string ,
while (ereg (testing([^;]*);blah(.*),$data,$args)) {
$this = $args[1];
$data = $args[2];
}

What I wanna do ,obviously, is to get all the strings between 'testng' and
'blah' in an array.
This will do it, yet when it wont work when special chars such \n exist
between 'testing' and 'blah'.
Any ideas?



-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Manuel Lemos

Hello Zeev,

On 12-May-01 14:14:10, you wrote:

At 04:05 12/5/2001, Wez Furlong wrote:
I know that there might be some bad interactions with apache if you fork,
but if you allow PHP to spot that it forked and call _exit() instead of
returning into the SAPI, you should be OK?

Not really, the parent has to somehow call wait() on the child, otherwise 
you'd get zombie processes...
Generally, implementing that sort of stuff within the Apache framework is a 
bit of asking for trouble :I

Anyway, PHP really lacks of real multi-threading capabilities.  Things like
database connection pooling, (non-HTTP) server request handling, and GUI
event processing could be properly implemented in PHP with multi-threading
capabilities like the way it is done in Java, Perl, Python, etc. but can't
be done right in PHP because it lacks multi-threading support.

Any plans to add multi-threading capabilities to PHP?


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] Site search engine suggestion.

2001-05-20 Thread Alok K. Dhir

The best open source search engines I've seen/used are:

ASPSeek http://www.aspseek.org
Mnogoseach  http://mnogosearch.org/
ht://dighttp://www.htdig.org

I've found that I prefer ASPseek to both mnogo and htdig...

 -Original Message-
 From: 
 [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED].
net] On Behalf Of Manuel Lemos
 Sent: Sunday, May 20, 2001 12:53 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Site search engine suggestion.
 
 
 Hello elias,
 
 On 12-May-01 04:04:26, you wrote:
 
 Hello guys,
 
 I need that badly! I need a suggestion, advise, solution or whatever 
 that might help!
 
 I need a Site Search script for a page that mostly have .PHP 
 files some 
 are dynamic and some are not. Basically i was using WebGlimpse but 
 whenever I search using it, It shows the source code of the 
 PHP files!
 So for example if i search echo , WebGlimpse displays the 
 .PHP file source
 code!
 
 Any suggestion for a better site search program?
 
 Try HTDig with this PHP interface class:
 
http://phpclasses.UpperDesign.com/browse.html/package/26


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] include() in a file incuded()

2001-05-20 Thread Jaime Torres

Hi!

I've been blocked by this tiny problem...

I have a main.php file:

?
$frames = true;
$open = http://myserver.com/info.html;;
if ($frames)
{
include (frameset.php);
}
?

The frameset.php looks like (omitting almost all the HTML):
frameset rows=100,* border=0
frame src=onlineview.php3
frame src=footer.html
/frameset

In the onlineview.php file I need to use the $open URL defined before, but
it isn't defined here. What am I doing wrong? How can I get $open's value
from this file?

Thanks!

Jaime


-- 
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] RegEx Question

2001-05-20 Thread Christian Reiniger

On Sunday 20 May 2001 19:18, George E. Papadakis wrote:

 I have an ereg question::.
 $data = a big string ,
 while (ereg (testing([^;]*);blah(.*),$data,$args)) {
 $this = $args[1];
 $data = $args[2];
 }

 What I wanna do ,obviously, is to get all the strings between 'testng'
 and 'blah' in an array.
 This will do it, yet when it wont work when special chars such \n exist
 between 'testing' and 'blah'.

Use preg_match() with 's' or 'm' as modifier (one of these is correct...)

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not Eureka, but That's funny...

- Isaac Asimov

--
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] PHP and XHTML

2001-05-20 Thread Navid Yar

Hello Manuel,

So you suggest that I use the name attribute in XHTML and ignore the fact
that it has been depreciated and replaced by the ID attribute? Will that
solve my problem?

Navid Yar

-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 20, 2001 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP and XHTML


Hello Navid,

On 18-May-01 19:44:55, you wrote:

I would like to start using the XHTML syntax for my future projects, but I
heard that PHP is not compatible with XHTML. For example, in XHTML the ID
attribute is used in place of the deprecated NAME tag. But PHP depends on
the NAME attribute in forms, etc. Is there any way around this? Has anyone
used XHTML and PHP together successfully, and if so how did you get around
the previously mentioned problem? Any help woould be much appreciated,
thanks in advance.

That's not a PHP problem.  PHP just processes form values sent by the
browser.  It is up to the browser to pick the field names when the form is
submitted.

Anyway, I think that browsers will always pick the field names from the
NAME attribute to keep backwards compatibility.


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


--
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] Image Functions and PHP 4.0.6

2001-05-20 Thread Ryan Sommers

When will PHP4.0.6 be released? I'm writing an image library for my site and
could use things like ImageCopyMerge() and ImageCopyResampled().


--

--
Ryan leadZERO Sommers
Raving Gaming President
[EMAIL PROTECTED]
ICQ:  1019590
AIM/MSN:  leadZERO

-= http://www.ravingaming.com =-

/* All communications are confidential unless otherwise noted.
 * Please include the original messages in replies.
 */







-- 
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] porting problem

2001-05-20 Thread Matt Broughton

I'm new to PHP but have found it easier to use than perl...however I'm in
the midst of converting my whole site to php from perl and Ive run into a
bit of a problem.  Everything except one page is database driven, so I
havent had to parse much text or grab info from other sites.  I've got a
movies page written in perl that does both, its very quick and dirty and
shouldnt take long for someone a bit more experienced in php than I am to
port over.  Would anyone be interested in helping?  Please reply directly.

-Matt Broughton


-- 
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] include() in a file incuded()

2001-05-20 Thread George E. Papadakis


Replace frame src=onlineview.php3 with frame src=? echo $open;?
Variable $open is passed to the included file automatically.



 Hi!

 I've been blocked by this tiny problem...

 I have a main.php file:

 ?
 $frames = true;
 $open = http://myserver.com/info.html;;
 if ($frames)
 {
 include (frameset.php);
 }
 ?

 The frameset.php looks like (omitting almost all the HTML):
 frameset rows=100,* border=0
 frame src=onlineview.php3
 frame src=footer.html
 /frameset

 In the onlineview.php file I need to use the $open URL defined before, but
 it isn't defined here. What am I doing wrong? How can I get $open's value
 from this file?

 Thanks!

 Jaime


 --
 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] ok, are servlets/jsp faster than php4?

2001-05-20 Thread John Lim

Well if you had more RAM and a faster CPU, servlets/jsp would be faster :-)

This link might not answer your question completely, but it could help...

http://php.weblogs.com/jsp

Christopher Leigh [EMAIL PROTECTED] wrote in message
000701c0e134$4223b800$01eea8c0@contrec">news:000701c0e134$4223b800$01eea8c0@contrec...
 ok, are servlets/jsp faster than php4?



 since zend cache isn't free... :(





-- 
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] include() in a file incuded()

2001-05-20 Thread Jaime Torres

Thanks for your answer George.

But I still have a problem. What if I need to get another variables values
from the main.php file? Do I need to pass them with the URL? Something like:

frame src=? echo $open.?another_var=.$another_val; ?

The big question is including a file from an included file passes the values
of the variables defined in the parent?

Regads,
Jaime

-Mensaje original-
De: George E. Papadakis [mailto:[EMAIL PROTECTED]]
Enviado el: domingo 20 de mayo de 2001 13:22
Para: Jaime Torres; [PHP] General List
Asunto: Re: [PHP] include() in a file incuded()



Replace frame src=onlineview.php3 with frame src=? echo $open;?
Variable $open is passed to the included file automatically.



 Hi!

 I've been blocked by this tiny problem...

 I have a main.php file:

 ?
 $frames = true;
 $open = http://myserver.com/info.html;;
 if ($frames)
 {
 include (frameset.php);
 }
 ?

 The frameset.php looks like (omitting almost all the HTML):
 frameset rows=100,* border=0
 frame src=onlineview.php3
 frame src=footer.html
 /frameset

 In the onlineview.php file I need to use the $open URL defined before, but
 it isn't defined here. What am I doing wrong? How can I get $open's value
 from this file?

 Thanks!

 Jaime


 --
 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] PHP and XHTML

2001-05-20 Thread Manuel Lemos

Hello Navid,

On 20-May-01 14:36:33, you wrote:

So you suggest that I use the name attribute in XHTML and ignore the fact
that it has been depreciated and replaced by the ID attribute? Will that
solve my problem?

It depends.  If what is going to process the document is a regular browser,
the NAME attribute is what matters.  Future browsers will have to handle
current HTML compatibly. So there is no point in removing the NAME attribute.

BTW, you may want to look into this forms generation and validation class
that outputs XHTML compatible code although it is up to the developer to
specify the ID attribute or not.

http://phpclasses.UpperDesign.com/browse.html/package/1

Manuel Lemos


Navid Yar

-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 20, 2001 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP and XHTML


Hello Navid,

On 18-May-01 19:44:55, you wrote:

I would like to start using the XHTML syntax for my future projects, but I
heard that PHP is not compatible with XHTML. For example, in XHTML the ID
attribute is used in place of the deprecated NAME tag. But PHP depends on
the NAME attribute in forms, etc. Is there any way around this? Has anyone
used XHTML and PHP together successfully, and if so how did you get around
the previously mentioned problem? Any help woould be much appreciated,
thanks in advance.

That's not a PHP problem.  PHP just processes form values sent by the
browser.  It is up to the browser to pick the field names when the form is
submitted.

Anyway, I think that browsers will always pick the field names from the
NAME attribute to keep backwards compatibility.


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


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



Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] PHP and XHTML

2001-05-20 Thread Chris Sano

XHTML is just making your HTML documents XML ready. This means closing your
tags, etc..

And Rasmus is right when he says PHP is 100% compatible with XHTML.

-C

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 i won't pretend to be an XML guru, but isn't saying php won't work with
XHTML akin to saying
 php won't work with javascript1.3, dhtml, netscape 6 etc?
 php generates code...html, dhtml, whatever...i fail to see how php
couldn't generate
 what anyone would need for XHTML, or anything else along those lines

 -jack

 - Original Message -
 From: Rasmus Lerdorf [EMAIL PROTECTED]
 Date: Friday, May 18, 2001 6:59 pm
 Subject: Re: [PHP] PHP and XHTML

   I would like to start using the XHTML syntax for my future
  projects, but I
   heard that PHP is not compatible with XHTML. For example, in
  XHTML the ID
   attribute is used in place of the deprecated NAME tag. But PHP
  depends on
   the NAME attribute in forms, etc. Is there any way around this?
  Has anyone
   used XHTML and PHP together successfully, and if so how did you
  get around
   the previously mentioned problem? Any help woould be much
  appreciated, thanks in advance.
 
  Completely false.  PHP works fine with XHTML.
 
  -Rasmus
 
 
  --
  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: php-list-
  [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]




Re: [PHP] Network Connectivity help please

2001-05-20 Thread Chris Sano

You could always do a cron job and have a script run every 10-15 minutes,
load the existing and connecting IP's in a text file and use another script
to print out the latest successful pings.

-C

Brian [EMAIL PROTECTED] wrote in message
9e4msm$e5a$[EMAIL PROTECTED]">news:9e4msm$e5a$[EMAIL PROTECTED]...
 Good point, I considered, doing it that way, I was just hoping that there
 might be a 'prettier' way to do it from within PHP.  Right now I'm using
 fping from within a php loop that steps through the class C.  The machine
 I'm doing this on is dog slow though, so I'm hoping that when I move the
 final version over to our main webserver it will run the script at an
 acceptable speed.  If not though, I have a feeling that I will most likely
 implement your suggestion, unless someone knows of the 'pretty' solution
 that I seek :)

 Brian
 He did not know the strength of my Kung fu
 --Wong Fei Hung The Iron Monkey

 Mohamed LRHAZI [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Brian,
 
  Why don't leave the pinging to some other script, and have that other
  script run continuesouly and upfate a sql table with the ststus of each
  and time stamp of when it was last ping'ed...etc
 
  Mohamed~
 
  Brian wrote:
  
   I'm writing a script to help us manage one of our Class C networks.
The
   page loads all of the host IPs, who owns them, phys desc. of the box,
 and
   does a forward reverse lookup on all of the addresses.  I'd like to
add
 a
   column that shows which machines are currently reachable on the
network.
 A
   simple ping would probably be easiest, but parsing a standard ping for
 254
   hosts would cause the script to have about a 10 minute load time. are
 there
   any quick easy, and most importly, low system overhead, solutions to
 this
   problem?
  
   Brian Artiaco
   [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 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] HTTP socket connection

2001-05-20 Thread phpman

I've been working with curl as well. It allows a pretty easy method to
access https, however it is
limited as far as encrypting data and sending to an https server. So now i'm
experimenting with
snoopy to simulate a web client. I'm trying to link up with UPS online
tools, but the sob's only
know java. I've posted to this news group with questions pertaining to this
stuff, but nobody
seems to understand what I'm talking about. There has to something out
there, as I'm sure
somebody has to have done this before.

-dave


Tolga thorr Orhon [EMAIL PROTECTED] wrote in message
9e3no5$hld$[EMAIL PROTECTED]">news:9e3no5$hld$[EMAIL PROTECTED]...
 As far as I know you cant do that with standard socket connection as SSL
 needs more than that. One solution that I am currently using is using Curl
 extensions of PHP which is working just fine. But you may need to
recompile
 PHP with curl support. For more info:

 http://www.php.net/manual/en/ref.curl.php
 http://curl.haxx.se/

 Tolga 'thorr' Orhon

 Todd Cary [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  For my http socket connection, I am using
 
 POST $abs_url HTTP/1.0\r\n.
 Accept-Language: en-us\r\n.
 Host: $host:$port\r\n.
 Connection: close\r\n.
 Content-type: application/x-www-form-urlencoded\r\n.
 
  which works great.
 
  What do I need to change for a SSL connection?
 
  Todd
 
  --
  Todd Cary
  Ariste Software
  [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 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] unset()- newbie question

2001-05-20 Thread Tom

I can't seem to get unset() to work when I'm strying to delete an 
element from an array.

I have a select list that is populated by an array, and i need to 
be able to delete items from the list by deleting them from the 
array, but I don't know how.

I tried using unset($array['element']); but it doesn't work.
Does anyone know why?
Does anyone know of a way to use array_diff() to delete elements 
from an array?

Thanks,
Tom 




 
   

-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Rasmus Lerdorf

 Not really, the parent has to somehow call wait() on the child, otherwise
 you'd get zombie processes...
 Generally, implementing that sort of stuff within the Apache framework is a
 bit of asking for trouble :I

 Anyway, PHP really lacks of real multi-threading capabilities.  Things like
 database connection pooling, (non-HTTP) server request handling, and GUI
 event processing could be properly implemented in PHP with multi-threading
 capabilities like the way it is done in Java, Perl, Python, etc. but can't
 be done right in PHP because it lacks multi-threading support.

 Any plans to add multi-threading capabilities to PHP?

Nope, but you can use the ticks feature to do some of this.

-Rasmus


-- 
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] Uploading files

2001-05-20 Thread James, Yz

Hello Diego,

You need to use copy()


If the form input is like this: file: input name=userfile type=file
input type=submit

Then PHP will assign a few variables automatically to the file, which
include:

$file_name - actual name of the file (pic.jpg)
$file_size - size in bytes of the file
$file_type - MIME type of the file.

This:
input type=hidden name=MAX_FILE_SIZE value=1000Send this
Will only let you upload a file of less than 1kb if you program around that
(1024 bytes in a Kb). Setting to 102400 would give you a max upload size of
100 Kb.

So, simply:

?

if ($file_size  $MAX_FILE_SIZE) {
@copy($file, /path/to/dir/ . $file_name)
or die (Something's up.);
} else {
echo Sorry.  Your file was bigger than the allowed size of   .
round(($MAX_FILE_SIZE / 1024), 2) .Kb.  Please go back and try again.;
}

?

You can of course test whether the file being uploaded is a type you want,
like image/jpeg from the $file_type.

Hope this helps.

James.


Diego Pérez Rández [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Hi to all:

 I don`t konw very well php. I do examples everyday and solve some
 problems. But in other i need help.

 Today i want to upload a file. I have the form that you can find in
 the php manual.

 form enctype=multipart/form-data action=_URL_ method=POST
   input type=hidden name=MAX_FILE_SIZE value=1000Send this
   file: input name=userfile type=file input type=submit
 value=Send File
 /form

 My problem is that i don´t know how to programe the php program that
 upload the file. I do a lot of examples, but not work.

 Can someone give me help.


 Thanks.


 Best regards, Diego


 --
 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] mail server (again!)

2001-05-20 Thread FredrikAT

What I look for is a POP/IMAP server that writes incoming mails to a MySQL
db! (WIN32)

Fredrik Takle
Bergen, Norway


Plutarck [EMAIL PROTECTED] skrev i melding
9e73vh$95f$[EMAIL PROTECTED]">news:9e73vh$95f$[EMAIL PROTECTED]...
 Check out http://webgadgets.com/phpost/

 That's a good way to get started on handling emails with PHP.

 I'd need to know more about what you want to do to tell you if PHP is the
 way to do it.

 If you want to run a mail server which takes incoming emails and directly
 writes them to a database, PHP probably isn't the way to go. A Java
Servlet
 would probably be a more appropriate application for that.

 But I don't think that's what you're wanting to do.


 Plutarck

 FredrikAT [EMAIL PROTECTED] wrote in message
 9e6gud$eie$[EMAIL PROTECTED]">news:9e6gud$eie$[EMAIL PROTECTED]...
  Hi!
 
  I want to have a mailapp on my server (win32) wich writes all incoming
 mails
  to a MySQL db.
 
  Is this possible?
 
  -
  Fredrik A. Takle
  [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 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]


-
Fredrik A. Takle
[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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Richard Heyes

 Nope, but you can use the ticks feature to do some of this.

Is there any documentation for this? I searched the manual and php.net but
came
up with nothing :(

Cheers.
--
Richard Heyes


-- 
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] Network Connectivity help please

2001-05-20 Thread Don Read


On 18-May-01 Brian wrote:
 Good point, I considered, doing it that way, I was just hoping that there
 might be a 'prettier' way to do it from within PHP.  Right now I'm using
 fping from within a php loop that steps through the class C.  The machine
 I'm doing this on is dog slow though, so I'm hoping that when I move the
 final version over to our main webserver it will run the script at an
 acceptable speed.  If not though, I have a feeling that I will most likely
 implement your suggestion, unless someone knows of the 'pretty' solution
 that I seek :)
 

The background script is the better way; but for a short-cut, at the 
top of the loop, ping your broadcast addr '192.168.x.255' a few times
and then collect the DUP's.
These won't have to get pinged explicitly.

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Manuel Lemos

Hello Rasmus,

On 20-May-01 17:42:22, you wrote:

 Not really, the parent has to somehow call wait() on the child, otherwise
 you'd get zombie processes...
 Generally, implementing that sort of stuff within the Apache framework is
 a bit of asking for trouble :I

 Anyway, PHP really lacks of real multi-threading capabilities.  Things like
 database connection pooling, (non-HTTP) server request handling, and GUI
 event processing could be properly implemented in PHP with multi-threading
 capabilities like the way it is done in Java, Perl, Python, etc. but can't
 be done right in PHP because it lacks multi-threading support.

 Any plans to add multi-threading capabilities to PHP?

Nope, but you can use the ticks feature to do some of this.

Not very good.  With ticks you never can run two PHP commands at the same
time, like for instance executing two or more SQL queries at the same time.
That is a shame for PHP because for instance in Java that is a breeze.

Anyway, I was asking Zeev, will PHP ever have multi-threading capabilities?


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Rasmus Lerdorf

 On 20-May-01 17:42:22, you wrote:

  Not really, the parent has to somehow call wait() on the child, otherwise
  you'd get zombie processes...
  Generally, implementing that sort of stuff within the Apache framework is
  a bit of asking for trouble :I
 
  Anyway, PHP really lacks of real multi-threading capabilities.  Things like
  database connection pooling, (non-HTTP) server request handling, and GUI
  event processing could be properly implemented in PHP with multi-threading
  capabilities like the way it is done in Java, Perl, Python, etc. but can't
  be done right in PHP because it lacks multi-threading support.
 
  Any plans to add multi-threading capabilities to PHP?

 Nope, but you can use the ticks feature to do some of this.

 Not very good.  With ticks you never can run two PHP commands at the same
 time, like for instance executing two or more SQL queries at the same time.
 That is a shame for PHP because for instance in Java that is a breeze.

 Anyway, I was asking Zeev, will PHP ever have multi-threading capabilities?

No, you asked the mailing list.  Zeev's email address is [EMAIL PROTECTED]
And no, PHP is unlikely to have multi-threading anytime soon.

-Rasmus


-- 
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] attachements in mail()

2001-05-20 Thread Henrik Hansen

Mark Wouters [EMAIL PROTECTED] wrote:

  Hi,
  
  I've another question.. is it possible to send attachements with mail()

it sure is, look at phpclasses.upperdesign.com for classes for the
purpose (unde mail classes) 

-- 
Henrik Hansen


-- 
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] Image Functions and PHP 4.0.6

2001-05-20 Thread Henrik Hansen

Ryan Sommers [EMAIL PROTECTED] wrote:

  When will PHP4.0.6 be released? I'm writing an image library for my site and
  could use things like ImageCopyMerge() and ImageCopyResampled().

I think the developers are hoping to release it within a week (if
everything goes smooth :)

-- 
Henrik Hansen


-- 
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] COM objects

2001-05-20 Thread John Skipsey

Can anyone tell me how this asp code would be rewritten in PHP, I'm having
trouble getting it to work. Don't worry about the variable names and stuff,
it's just the actual connection to the application that's causing me the
grief.

Thanks for any suggestions,

Skipsey.


begin 666 createservername.asp
M/5 ($QA;F=U86=E/594V-R:7!T(4^#0H-CPA+2T@(VEN8VQU94@9FEL
M93TB97)R;W(N87-P(B M+3X-@T*/4-D]N($5RF]R(%)EW5M92!.97AT
M#0I%G(N0VQE87(@#0H-DEF(%)E75EW0N1F]R;2@BV5R=F5R7VYA;64B
M*2 \/B B(B!4:5N#0H)4V5T($-L:65N=%-EG9I8V4@/2!#F5A=5/8FIE
M8W0H(E1E'1M;%-EG9EBY#;EE;G1397)V:6-ER(I#0H)268@17)R+FYU
M;6)EB ](# @5AE;@T*0E3970@4V5R=F5R4V5R=FEC92 ]($-L:65N=%-E
MG9I8V4N0V]N;F5C=%-EG9EBA#W1R*%)E75EW0N1F]R;2@BV5R=F5R
M7VYA;64B*2DI#0H)4EF($5RBYN=6UB97(@/2 P(%1H96X-@D)5-E=!F
MV\@/2!#F5A=5/8FIE8W0H(E-CFEP=EN9RY:6QE4WES=5M3V)J96-T
M(BD-@D)5-E=!TR ](9S;RY#F5A=5497AT1FEL92A397-S:6]N*)A
M'!0871H(BD@)B BV5R=F5R;F%M92YT'0B+!4G5E+!86QS92D-@D)
M4EF($5RBYN=6UB97(@/2 P(%1H96X-@D)0ETRY7FET94QI;F4@0U-T
MBA297%U97-T+D9OFTH(G-EG9EE]N86UE(BDI#0H)0D)=',N0VQOV4-
M@D)0E297-P;VYS92Y2961IF5C= B;]G:6XN87-P(@T*0D)16QS90T*
M0D)5=R:71E17)R;W(@17)R+ B8W)E871E('1H92 \0CYS97)V97)N86UE
M+G1X=#PO0CX@9FEL92(-@D)45N9!)9@T*0D)4V5T('1S(#T@3F]T:EN
M9PT*0D)4V5T(9S;R ]($YO=AI;F-@D)16QS90T*0D)5W)I=5%G)O
MB!%G(L()C;VYN96-T('1O('1H92!S97)V97(@/$(^(B F(%)E75EW0N
M1F]R;2@BV5R=F5R7VYA;64B*2 F((\+T(^(@T*0E%;F0@268-@E%;'-E
M#0H)5=R:71E17)R;W(@17)R+ B8W)E871E('1H92!#;EE;G0@4V5R=FEC
M92(-@E%;F0@268-D5LV4-@E297-P;VYS92Y2961IF5C= B95F875L
2=YH=TB#0I%;F0@268-B4^
`
end


-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Manuel Lemos

Hello Rasmus,

On 20-May-01 19:08:16, you wrote:

 On 20-May-01 17:42:22, you wrote:

  Not really, the parent has to somehow call wait() on the child,
  otherwise you'd get zombie processes... Generally, implementing that
  sort of stuff within the Apache framework is a bit of asking for
  trouble :I
 
  Anyway, PHP really lacks of real multi-threading capabilities.  Things
  like database connection pooling, (non-HTTP) server request handling,
  and GUI event processing could be properly implemented in PHP with
  multi-threading capabilities like the way it is done in Java, Perl,
  Python, etc. but can't be done right in PHP because it lacks
  multi-threading support.
 
  Any plans to add multi-threading capabilities to PHP?

 Nope, but you can use the ticks feature to do some of this.

 Not very good.  With ticks you never can run two PHP commands at the same
 time, like for instance executing two or more SQL queries at the same time.
 That is a shame for PHP because for instance in Java that is a breeze.

 Anyway, I was asking Zeev, will PHP ever have multi-threading capabilities?

No, you asked the mailing list.  Zeev's email address is [EMAIL PROTECTED]

I believe the answer is of the interest of the mailing list.  After all the
thread was not started by me.


And no, PHP is unlikely to have multi-threading anytime soon.

How can you be so sure?

Weren't you the one that was saying that you opposed to the existence of a
PHP compiler?  Despite your opposition, Zeev and Andi brought it up to the
joy of many PHP users.

Since Zeev and Andi seem to be currently the most capable developers to bring
multi-threading capability to PHP because they developed PHP current engine
- Zend, my question still goes for them.  After all they always seemed more
reasonable and opened to my suggestions than you.


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Rasmus Lerdorf

 Weren't you the one that was saying that you opposed to the existence of a
 PHP compiler?  Despite your opposition, Zeev and Andi brought it up to the
 joy of many PHP users.

Well, it is not part of PHP.  It isn't even free.

 Since Zeev and Andi seem to be currently the most capable developers to bring
 multi-threading capability to PHP because they developed PHP current engine
 - Zend, my question still goes for them.  After all they always seemed more
 reasonable and opened to my suggestions than you.

You are assuming they even read this mailing list.

-Rasmus


-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Zak Greant

Manuel wrote:
[...]
 Since Zeev and Andi seem to be currently the most capable developers to
bring
 multi-threading capability to PHP because they developed PHP current
engine
 - Zend, my question still goes for them.  After all they always seemed
more
 reasonable and opened to my suggestions than you.


Manuel, irritating Rasmus is not likely to make Andi, Zeev or any of the
other developers more interested in helping you.

If you want to ask about a possible feature, mail the PHP-DEV list or
try mailing the PHP group.

--zak


-- 
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] get all defined constants?

2001-05-20 Thread Alex Black

 phpinfo() allways has a list of variables. but of course every variable is
 allways in $GLOBALS too.

including constants?

I just print_r'd globals to refresh my memory, and found what I was
expecting: none of my constants.

?

_alex


-- 
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] Email..

2001-05-20 Thread [EMAIL PROTECTED]

Can someone give me a template of an email form?

I don't want it to use an email client, though.

I don't get the mail function, and I've been out of the loop too long. 
:(

-Owen

-- 
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] Email..

2001-05-20 Thread Peter Houchin - SunRentals Australia

$address .= $email  ;//insert a comma after $ email to include another address, email 
address taken from session varables

// Subject

$subject =  ;

//Body of email

$body =  ;


//Where the email is from

//$from = sender;


$headers .= From:  \n;
$headers .= X-Sender: \n; 
$headers .= X-Mailer: PHP\n; // mailer
$headers .= Return-Path: \n;  // Return path for errors
$headers .= X-Priority: 1\n; // Urgent message!
/* If you want to send html mail, uncomment the following line */
//$headers .= Content-Type: text/html; charset=iso-8859-1\n; // Mime type
$headers .=  \n; // CC to


//send the email

$mail = mail($address, $subject, $body, $headers \nContent-Type: text/plain; 
charset=iso-8859-1\nContent-Transfer-Encoding: 64bit  );

Peter Houchin
Short Term Rental Manager
[EMAIL PROTECTED]
Telephone : (03) 9329 1455
Facsimile : (03) 9329 6755
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
  
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Email..


Can someone give me a template of an email form?

I don't want it to use an email client, though.

I don't get the mail function, and I've been out of the loop too long. 
:(

-Owen

-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Manuel Lemos

Hello Rasmus,

On 20-May-01 20:22:48, you wrote:

 Weren't you the one that was saying that you opposed to the existence of a
 PHP compiler?  Despite your opposition, Zeev and Andi brought it up to the
 joy of many PHP users.

Well, it is not part of PHP.  It isn't even free.

As long it works and is available it is much better than not existing,
which was what you wanted.


 Since Zeev and Andi seem to be currently the most capable developers to
 bring multi-threading capability to PHP because they developed PHP current
 engine
 - Zend, my question still goes for them.  After all they always seemed more
 reasonable and opened to my suggestions than you.

You are assuming they even read this mailing list.

Yes, I can see that I posted a response to the wrong news group by mistake! :-)


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] function to complete strings with white spaces on the left

2001-05-20 Thread Carlos Fernando Scheidecker Antunes

Hello All,

I need to output a string that must always be 17 characters even if the inside value 
is not.

Supose a have the HELLO word that is a 5 character string and I need to output HELLO  
   which is 17 characters.

How can I accomplish this in PHP4 ?

Has anyone ever did it?

Thanks,

Carlos Fernando.



php-general Digest 21 May 2001 01:01:49 -0000 Issue 698

2001-05-20 Thread php-general-digest-help


php-general Digest 21 May 2001 01:01:49 - Issue 698

Topics (messages 53608 through 53648):

Re: Reversing htmlspecialchars()
53608 by: ~~~i LeoNid ~~

Re: Reports in web browser
53609 by: Miles Thompson

Re: Unix problem
53610 by: Urb LeJeune

ok, are servlets/jsp faster than php4?
53611 by: Christopher Leigh
53624 by: John Lim

Re: PHP and XHTML
53612 by: Manuel Lemos
53620 by: Navid Yar
53626 by: Manuel Lemos
53627 by: Chris Sano

Re: Book PHP4 Professional WROX  Mail over SMTP
53613 by: Manuel Lemos

Re: Site search engine suggestion.
53614 by: Manuel Lemos
53617 by: Alok K. Dhir

RegEx Question
53615 by: George E. Papadakis
53619 by: Christian Reiniger

Re: [PHP-DEV] Fork() in php?
53616 by: Manuel Lemos
53631 by: Rasmus Lerdorf
53634 by: Richard Heyes
53636 by: Manuel Lemos
53637 by: Rasmus Lerdorf
53641 by: Manuel Lemos
53642 by: Rasmus Lerdorf
53643 by: Zak Greant
53647 by: Manuel Lemos

include() in a file incuded()
53618 by: Jaime Torres
53623 by: George E. Papadakis
53625 by: Jaime Torres

Image Functions and PHP 4.0.6
53621 by: Ryan Sommers
53639 by: Henrik Hansen

porting problem
53622 by: Matt Broughton

Re: Network Connectivity help please
53628 by: Chris Sano
53635 by: Don Read

Re: HTTP socket connection
53629 by: phpman

unset()- newbie question
53630 by: Tom

Re: Uploading files
53632 by: James, Yz

mail server (again!)
53633 by: FredrikAT

Re: attachements in mail()
53638 by: Henrik Hansen

COM objects
53640 by: John Skipsey

Re: get all defined constants?
53644 by: Alex Black

Email..
53645 by: ddogbruce.home.com
53646 by: Peter Houchin - SunRentals Australia

function to complete strings with white spaces on the left
53648 by: Carlos Fernando Scheidecker Antunes

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



On 19 May 2001 15:27:31 -0700 impersonator of [EMAIL PROTECTED]
(=?iso-8859-1?Q?Rudi_Benkovi=E8?=) planted I saw in php.general:

   function un_htmlentities($str) {
   $trans = get_html_translation_table (HTML_ENTITIES);
   $trans = array_flip ($trans);

or for earlier php versions, that do not support array_flip()

$trans=get_html_translation_table(HTML_ENTITIES);
reset($trans); 
while(list($key,$value)=each($trans)){
  $transs[$value]=$key;
}
$trans = $transs;

   $str = strtr ($str, $trans);
   
   return ($str);
   }

 -Original Message-
 From: Jeroen Geusebroek [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 19, 2001 11:46 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Reversing htmlspecialchars()
 
 
 Hi There,
 
 How can i reverse the htmlspecialchars() functions?
 I can't seem to find a function for that.
 
 Thanks,
 
 Jeroen Geusebroek
 
 -- 
 PHP General 

^^^
--
LeoN to  e-mail: cut  auto_no. if present. 
(.±.)  ` to think - is to speak quietly,  to speak - is to think aloud`
 \~/ 
My posted articles archive: http://leo.portland.co.uk/doc00.htm




Well, I think there's a Javascript function one can use to start printing, 
but users will hate it.

A bigger issue, I would think, would be formatting to preserve indents, 
column alignment ,etc. We have no control over the resolution of the user's 
system, size of the browser window, etc. Even extensive use of PRE tags 
is problematic.

This would seem to be a good place to use pdf functions so that the 
generating system has complete control over the document.

My two Canadian cents - Miles

At 02:11 AM 5/20/01 +0200, Richard wrote:
You need to be more specific than that.

You cannot demand the browser to start printing, only thing is to write the
contents of the report to a webpage and then the visitor/user can print it
out if she/he likes.

It depends on how you have stored the reports.

- Richard

Mihailo Dzigurski [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hello,
 
  I have written some accounting application using PHP, and now I need to
  create some reports. Those reports need to be printed from web browser.
 
  What can I do?
 
  Thanks
  Mihailo.
 
 





Bingo,

 he said as he slapped his forehead with open palm.

 Thanks a 10**6

Urb

At 10:42 AM 5/20/01 +0200, Christian Reiniger wrote:
readdir returns the file/directory name without path, is_file and is_dir
expect a complete filenam with path. So unless you only examine your
current directory, is_file  is_dir won't find the files





ok, are servlets/jsp faster than 

[PHP] PLEASE -- Compiling an extension for PHP module (pgsql.so -- missing libpq.so.2)

2001-05-20 Thread Jason

Hi,

I'm trying to compile an extension for Postgre support which I will either
load in the php.ini or use the dl() function.

Both methods fail right now. The dl() function gives me verbose though.

I compiled the module like this:

./configure --with-apache=/usr/local/Apache/apache_13 --with-pgsql=shared
make

I entered the php_4.0.5/modules directory. I see two files pgsql.so and
pgsql.la.

I copy both to /usr/local/lib (where my libs sit as specified in php.ini).

I restart the server and I get an error saying a shared library (libpq.so.2)
cannot be found.

I went to /usr/local/pgsql/lib and copy libpq.so.2 to /usr/local/lib.

Now I get the following error:

Warning: Unable to load dynamic library '/usr/local/lib/pgsql.so' -
/usr/local/lib/pgsql.so: Undefined symbol zend_ini_boolean_displayer_cb in
/public_html/inc/mainfile.php on line 3

Whats the deal with this? I am compiling right? Should php have produced a
different libpq.so.2 file elsewhere?

THANKS!!!


-- 
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] function to complete strings with white spaces on the left

2001-05-20 Thread Mark Maggelet

On Sun, 20 May 2001 22:03:05 -0300, Carlos Fernando Scheidecker
Antunes ([EMAIL PROTECTED]) wrote:
Hello All,

I need to output a string that must always be 17 characters even if
the inside value is not.

Supose a have the HELLO word that is a 5 character string and I need
to output HELLO which is 17 characters.
How can I accomplish this in PHP4 ?

Has anyone ever did it?

echo str_pad(HELLO,17);



--
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] ?=SID? is not translated...

2001-05-20 Thread Christian Marschalek

My system does not tranlate ?=SID? into the PHP Session id... Don't
have a clue why, though...

Any clues?

Tia! Chris


-- 
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] undo htmlspecial

2001-05-20 Thread Nicholas

-BEGIN PGP SIGNED MESSAGE-
Hash: MD5

someone was looking for an undo htmlspecial chars well i found a
snipet on sourcefourge i forgot who sent the mail so here you go who
ever you are..
function unconvert_htmlspecialchars($string)
{
if( strlen($string)  4 )
{
return $string;
}
else
{
$string=str_replace('nbsp;', ' ', $string);
$string=str_replace('quot;', '', $string);
$string=str_replace('gt;', '', $string);
$string=str_replace('lt;', '', $string);
$string=str_replace('amp;', '', $string);

return $string;
}
}





- --
Best regards,
 Nicholas  mailto:[EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: 2.6

iQCVAwUAOwh4trovzXm8USdPAQFHCwQAq4xR+xFzDesNaEbyh9yXi6pZvLUFD/ef
Rb5OfkXr6qj84JSzAdQpDFKVDxabQ0rLY0SdMJqgkwc6Er+TdfyZ49tP3UhUK1it
fBC3HtIJspugG9ld0yF7vgNkWoDwtfiPPcN63y6Nb3xWmL1HVSNVf3cHnbFrNtAg
UNmJ6Gz/oTQ=
=XOxm
-END PGP SIGNATURE-


-- 
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] should be simple

2001-05-20 Thread Richard Kurth

I am trying to pull html code out of a database to put in page
something like this which I have stored in a database under cheader
html
head
title/title
/head
body
div align='center'
img src=../autowebpages/autosetup.gif'
width='406'height='158'border='0' alt=''/div

It seams all I have to do is put ?echo $cheader? at the top of the
page and it should work just like putting variables into a page.

But is does nothing. I would look in the manual or the archives but I
don't no wear or what to look for. It seams this should be simple what
am I missing hear











Best regards,
 Richard  
mailto:[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] should be simple

2001-05-20 Thread Jason Murray

 It seams all I have to do is put ?echo $cheader? at the top of the
 page and it should work just like putting variables into a page.
 
 But is does nothing. I would look in the manual or the archives but I
 don't no wear or what to look for. It seams this should be simple what
 am I missing hear

It sounds to me like you're trying to store PHP code in the database and
have it execute it before sending it to the browser, is this correct?

If it is:

  You can't do this just like that. Your PHP code is text in the database,
  and when PHP pulls it out and echo's the whole thing it'll just send it
  to the browser. You might need to use eval(). More info:

http://www.php.net/manual/en/function.eval.php

If it's not:

  I got the wrong idea, so please explain some more. :)

Jason

-- 
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] should be simple

2001-05-20 Thread Richard Kurth

Hello Richard,

Never Mind It was a stupid mistake I am querying all the data in a
function and forgot to add the variable to the global list work just
fine DU!!

Monday, May 21, 2001, 7:08:16 AM, you wrote:

Richard Kurth I am trying to pull html code out of a database to put in page
Richard Kurth something like this which I have stored in a database under cheader
Richard Kurth html
Richard Kurth head
Richard Kurth title/title
Richard Kurth /head
Richard Kurth body
Richard Kurth div align='center'
Richard Kurth img src=../autowebpages/autosetup.gif'
Richard Kurth width='406'height='158'border='0' alt=''/div

Richard Kurth It seams all I have to do is put ?echo $cheader? at the top of the
Richard Kurth page and it should work just like putting variables into a page.

Richard Kurth But is does nothing. I would look in the manual or the archives but I
Richard Kurth don't no wear or what to look for. It seams this should be simple what
Richard Kurth am I missing hear











Richard Kurth Best regards,
Richard Kurth  Richard  
Richard Kurth mailto:[EMAIL PROTECTED]





-- 
Best regards,
 Richard  
mailto:[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] should be simple

2001-05-20 Thread Gerard Onorato

Richard,

Forgive me for stating the obvious. How are you filling the variable
$cheader? If you are simply putting an echo command without pulling the info
from the database first you will obviously be getting nothing.

Gerard

-Original Message-
From: Richard Kurth [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP] should be simple


I am trying to pull html code out of a database to put in page
something like this which I have stored in a database under cheader
html
head
title/title
/head
body
div align='center'
img src=../autowebpages/autosetup.gif'
width='406'height='158'border='0' alt=''/div

It seams all I have to do is put ?echo $cheader? at the top of the
page and it should work just like putting variables into a page.

But is does nothing. I would look in the manual or the archives but I
don't no wear or what to look for. It seams this should be simple what
am I missing hear











Best regards,
 Richard
mailto:[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] e*reminder and cron

2001-05-20 Thread Henry

i'd like to run something like http://sourceforge.net/projects/e-reminders/
on my site. it uses cron to trigger the mail to be sent.

i'm not familiar with unix and cron. apparently i need to use shell access
on my site to get this working.

anybody got any tips to get cron working in the simplest way.

cheers
Henry
http://www.bigjolt.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] query question

2001-05-20 Thread Jacky

Hi all
What do I do if i want to move all values stored in one field to another field in the 
same table, from field A to field B? Has anyone ever done that? 
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you set for yourself



[PHP] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Carlos Fernando Scheidecker Antunes

Hello all,

I'm trying to loop the $HTTP_POST_VARS variable like an array like this :

$index = count($HTTP_POST_VARS);

for($i=0; i  $index; i++) {
$itens = $HTTP_POST_VARS[$i];
}

But it is not working.

Can anoyone tell me how to do it?

Thanks,

Carlos Fernando.



[PHP] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Carlos Fernando Scheidecker Antunes

Oops. I've got a typo : $itens[] 
Here's the correct code :

Hello all,

I'm trying to loop the $HTTP_POST_VARS variable like an array like this :

$index = count($HTTP_POST_VARS);

for($i=0; i  $index; i++) {
$itens[] = $HTTP_POST_VARS[$i];
}

But it is not working.

Can anoyone tell me how to do it?

Thanks,

Carlos Fernando.



-- 
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] php3 vs php4 and ini_get

2001-05-20 Thread Dennis Gearon

I love ini_get() for instance, for finding include_path.

Is there anyway to find include_path in php3, since ini_get() is for
= php4?

-- 
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] query question

2001-05-20 Thread Maxim Maletsky

several times:

UPDATE table SET B=A;



Sincerely, 

 Maxim Maletsky
 Founder, Chief Developer
 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Jacky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 12:37 AM
To: [EMAIL PROTECTED]
Subject: [PHP] query question


Hi all
What do I do if i want to move all values stored in one field to another
field in the same table, from field A to field B? Has anyone ever done that?

Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you set for
yourself

-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Greg Wright



*** REPLY SEPARATOR  ***

On 20/05/2001 at 5:34 PM Zak Greant [EMAIL PROTECTED] [gregausit/phplist]
wrote:

Manuel wrote:
[...]
 Since Zeev and Andi seem to be currently the most capable developers to
bring
 multi-threading capability to PHP because they developed PHP current
engine
 - Zend, my question still goes for them.  After all they always seemed
more
 reasonable and opened to my suggestions than you.


Manuel, irritating Rasmus is not likely to make Andi, Zeev or any of
the
other developers more interested in helping you.


IIRC Rasmus was one of the main people involved in bringing PHP to life, it
also resembles BASH because of involvement there, if this is wrong maybe
Rasmus can tell me off list or anyone may be able to point me to some info
that I can read.

Anyway as a general rule, there is no point in antagonising any coder that
produces code that's Open Source and under the GPL lic, now if you had a
200k contract to produce code that was specified, it would be entirely
appropriate. I read what was said as its not a focus point, but was not
ruled out.


-- 
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] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Maxim Maletsky

no, you are trying to get an $HTTP_POST_VAR[integer]... it is not there. The
keys are your variable names, therefore this is correct:

foreach($HTTP_POST_VARS as $key=$val) {
$itens[] = $val;
}

will fit everything form ..POST_VARS into $itens array. BUT you'll loose all
the key names, knowing nothing of where these values came from.

try rather do this:

foreach($HTTP_POST_VARS as $key=$val) {
$itens[$key] = $val;
}
 
this will result you true:

if($HTTP_POST_VARS['var_name'] == $itens['var_name']) {}


Sincerely, 

 Maxim Maletsky
 Founder, Chief Developer
 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-Original Message-
From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 12:43 PM
To: PHP-GENERAL
Subject: [PHP] How to loop the HTTP_POST_VARS array?
Importance: High


Oops. I've got a typo : $itens[] 
Here's the correct code :

Hello all,

I'm trying to loop the $HTTP_POST_VARS variable like an array like this :

$index = count($HTTP_POST_VARS);

for($i=0; i  $index; i++) {
$itens[] = $HTTP_POST_VARS[$i];
}

But it is not working.

Can anoyone tell me how to do it?

Thanks,

Carlos Fernando.



-- 
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] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Rasmus Lerdorf

foreach($HTTP_POST_VARS as $key = $val) {
   echo $key: $valbr\n;
}

On Mon, 21 May 2001, Carlos Fernando Scheidecker Antunes wrote:

 Hello all,

 I'm trying to loop the $HTTP_POST_VARS variable like an array like this :

 $index = count($HTTP_POST_VARS);

 for($i=0; i  $index; i++) {
 $itens = $HTTP_POST_VARS[$i];
 }

 But it is not working.

 Can anoyone tell me how to do it?

 Thanks,

 Carlos Fernando.



-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Frank Joerdens

On Sun, May 20, 2001 at 01:43:36PM -0700, Rasmus Lerdorf wrote:
  Not really, the parent has to somehow call wait() on the child, otherwise
  you'd get zombie processes...
  Generally, implementing that sort of stuff within the Apache framework is a
  bit of asking for trouble :I
 
  Anyway, PHP really lacks of real multi-threading capabilities.  Things like
  database connection pooling, (non-HTTP) server request handling, and GUI
  event processing could be properly implemented in PHP with multi-threading
  capabilities like the way it is done in Java, Perl, Python, etc. but can't
  be done right in PHP because it lacks multi-threading support.
 
  Any plans to add multi-threading capabilities to PHP?
 
 Nope, but you can use the ticks feature to do some of this.

What is the ticks feature and where can I read about it? The only
reference I could find was in the PHP-DEV archives back in September
about something you call by doing register_tick_function() . . . but
nothing substantial in the way of documentation. 

Thanks,
Frank

-- 
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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Frank Joerdens

On Mon, May 21, 2001 at 01:55:10PM +1000, Greg Wright wrote:
[ . . . ]
 IIRC Rasmus was one of the main people involved in bringing PHP to life, it

Well, if anyone can be said to have invented it, it's Rasmus. At some
point around 96 (?) he was approached by Zeev and some others who
suggested to recode what was then PHP/FI from scratch. The outcome was
PHP 3.0 . . . shouldn't someone write a history of PHP?

A little anecdote I keep telling is that back in '97, when I asked my
very first question on this list, it was answered within less than half
an hour by the mighty Rasmus himself! Having worked with M$ stuff mostly
up until then if felt, wow, this is like, I post to Microsoft and get an
answer from Bill within the half-hour! I was undecided then as to which
scriptiong environment to go for. This won me over.

Cheers,
Frank

-- 
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] porting from perl

2001-05-20 Thread Matt Broughton

I'm having some difficulty porting this code from perl to php...can anyone
give me a hand?

-Matt Broughton


#!/usr/bin/perl
# Quick and dirty Yahoo movie showtimes grabber

use LWP::Simple;
my $content =
get(http://movies.yahoo.com/showtimes/showtimes.html?z=florence%2C+scr=sim
);

my $text = '';
if ($content) {
$content =~ s{.*!-- movies module --(.*)!-- /movies
module --.*}{$1}gism;

my @lines = split(/\n/, $content);

my $act = '';
foreach (@lines) {

next if m{^/{0,1}(table|tr|td)};
next unless ($act || /!-- theater --/);
if (/!-- theater --/) {
print \n;
$act = 'theater';
next;
}
elsif (/!-- .*? movie --/) {
$act = 'movie';
next;
}
elsif (/!-- show info --/) {
$act = 'info';
next;
}
elsif (/more theaters/i) {
$act = 'done';
last;
}

# Strip font tags
s{/{0,1}font.*?}{}gi;
# Strip HR's
s{hr}{}gi;
# Strip non-breaking spaces
s{(nbsp;)+}{nbsp;}gi;
s{p}{BR}gi;

if ($act eq 'theater') {

# Remove links to Yahoo theater stuff
s{a.*?(.*?)/a}{$1}gi;

# Remove Map It link in favor of a linebreak
s{map it}{BR}i;

# Small-italicize anything that's not the 
theater's name
s{^(.*)$}{SMALLI$1/I/SMALL} unless m{B}i;
}
elsif ($act eq 'movie') {
s{a href=(.*?)}{a
href=http://movies.yahoo.com$1;}gi;
}

$text .= $_ \n;
}
}
else {
$text .= 'PMovie information is unavailable at this time.';
}

print $text;




-- 
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] Trimming 2 Characters from the end of a string?

2001-05-20 Thread Jason

Hi,


What would be the syntax to trim 2 characters off of a given string?
Thanks!

-- 
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] Trimming 2 Characters from the end of a string?

2001-05-20 Thread Rasmus Lerdorf

 What would be the syntax to trim 2 characters off of a given string?

$new = substr($old,0,-2);


-- 
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] porting from perl

2001-05-20 Thread Brian Clark

Hi Matt,

@ 12:31:35 AM on 5/21/2001, Matt Broughton wrote:

 I'm having some difficulty porting this code from perl to php...can
 anyone give me a hand?

Briefly..

--(snip)--
 #!/usr/bin/perl
 # Quick and dirty Yahoo movie showtimes grabber

 use LWP::Simple;
 my $content =
 get(http://movies.yahoo.com/showtimes/showtimes.html?z=florence%2C+scr=sim
 );

Use fopen() function.

http://www.php.net/manual/en/function.fopen.php


 my $text = '';
 if ($content) {
 $content =~ s{.*!-- movies module --(.*)!-- /movies
 module --.*}{$1}gism;

http://www.php.net/manual/en/ref.pcre.php


 my @lines = split(/\n/, $content);

Use explode() function.

http://www.php.net/manual/en/function.explode.php


 my $act = '';
 foreach (@lines) {

http://www.php.net/manual/en/control-structures.foreach.php

Slightly different foreach syntax.


 next if m{^/{0,1}(table|tr|td)};
 next unless ($act || /!-- theater --/);
 if (/!-- theater --/) {

Could use switch() here. Also see perl compatible regular expressions
manual link above. Same thing for the string replaces below.

 print \n;
 $act = 'theater';
 next;
 }
 elsif (/!-- .*? movie --/) {
 $act = 'movie';
 next;
 }
 elsif (/!-- show info --/) {
 $act = 'info';
 next;
 }
 elsif (/more theaters/i) {
 $act = 'done';
 last;
 }

 # Strip font tags
 s{/{0,1}font.*?}{}gi;
 # Strip HR's
 s{hr}{}gi;
 # Strip non-breaking spaces
 s{(nbsp;)+}{nbsp;}gi;
 s{p}{BR}gi;

Use strip_tags() function.

http://www.php.net/manual/en/function.strip-tags.php

Also:

http://www.php.net/manual/en/function.htmlspecialchars.php
http://www.php.net/manual/en/function.htmlentities.php


 if ($act eq 'theater') {

 # Remove links to Yahoo theater stuff
 s{a.*?(.*?)/a}{$1}gi;

 # Remove Map It link in favor of a linebreak
 s{map it}{BR}i;

 # Small-italicize anything that's not the 
theater's name
 s{^(.*)$}{SMALLI$1/I/SMALL} unless m{B}i;
 }
 elsif ($act eq 'movie') {
 s{a href=(.*?)}{a
 href=http://movies.yahoo.com$1;}gi;
 }

 $text .= $_ \n;
 }
 }
 else {
 $text .= 'PMovie information is unavailable at this time.';
 }

 print $text;


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.


-- 
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] Cannot view source via IE browser

2001-05-20 Thread John M

Hello.

I am having a problem when trying to view source via my IE browser.
When I try I get the following error:

Cannot open the
php_submit.php C:\WINDOWS\Temporary Internet
Files\Content.IE5\8DMZ02HJ\www.yahoo(1) file.
Make sure a disk is in the drive you specified.

**  Above I just tried viewing source on Yahoo's home page as an example.

Now, interestingly, the php_submit.php file was one of the first PHP files
I created when I first started
playing around with PHP on my PC.  For every time I try to view source,
this file is mentioned as above.
The second file (ie. 'www.yahoo(1)' ) is different for every page I try to
view source on.

I have checked with Microsoft's technet and found no help and tried all that
was suggested.  I am now
thinking that maybe my PHP installation may have caused this.

I do not recall this error happening JUST AFTER I installed.  I think I
could for awhile and then all of
a sudden I could not.

I am posting this question in a few other PHP newsgroups as I am unsure
where this would fall under:
php.dev
php.doc
php.general
php.windows

Thanks to anyone who can assist.

  John M.




-- 
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] Cannot view source via IE browser

2001-05-20 Thread Maxim Maletsky

this is your browser's problem. PHP has nothing to do with it.

Sincerely, 

 Maxim Maletsky
 Founder, Chief Developer
 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-Original Message-
From: John M [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 2:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Cannot view source via IE browser


Hello.

I am having a problem when trying to view source via my IE browser.
When I try I get the following error:

Cannot open the
php_submit.php C:\WINDOWS\Temporary Internet
Files\Content.IE5\8DMZ02HJ\www.yahoo(1) file.
Make sure a disk is in the drive you specified.

**  Above I just tried viewing source on Yahoo's home page as an example.

Now, interestingly, the php_submit.php file was one of the first PHP files
I created when I first started
playing around with PHP on my PC.  For every time I try to view source,
this file is mentioned as above.
The second file (ie. 'www.yahoo(1)' ) is different for every page I try to
view source on.

I have checked with Microsoft's technet and found no help and tried all that
was suggested.  I am now
thinking that maybe my PHP installation may have caused this.

I do not recall this error happening JUST AFTER I installed.  I think I
could for awhile and then all of
a sudden I could not.

I am posting this question in a few other PHP newsgroups as I am unsure
where this would fall under:
php.dev
php.doc
php.general
php.windows

Thanks to anyone who can assist.

  John M.




-- 
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] ok, are servlets/jsp faster than php4?

2001-05-20 Thread Steven Haryanto

yes, i have discovered recently that php is not as fast as it
is hyped to be. don't get me wrong. php is fast, but it depends
on how you arrange your scripts. if you include a lot of library
code (PEAR, etc etc), the overhead would increase and increase.
i thought php has always cached compiled scripts (since it is
fast enough for me so far), but the fact is it does not. without
cacher like apc or zend cache, mod_php is no better than cgi,
except it avoids per-request forking and configuration parsing.

why oh why doesn't php/plain zend cache scripts in the first
place? :-/

Regards,
Steve

On 20/05/2001 20:53, Christopher Leigh wrote:
ok, are servlets/jsp faster than php4?
since zend cache isn't free... :(


-- 
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] comparison operators

2001-05-20 Thread Heidi Belal

Hi All,
I have a form where i let people choose a file to
upload, but i want to limit them to image files only. 
So i want to only allow the .gif and .jpg to be
uploaded.  What i tried doing was this:
if ($filename_type == image/gif)
   -- upload file
otherwise give an error message!

but for some reason this doesn't work.  It uploads any
kind of file without complaint!  So what am i doing
wrong?  Is there another operator to compare strings
for instance? Or what is the problem?
Thanks!  

=
Heidi Belal
ICQ# 32127109

A bus stops at a bus station.
A train stops at a train station.  On my desk
I have a work station...

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.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] How to test content encoding?

2001-05-20 Thread Plutarck

I'm trying to test the gz_handler, among other things, but I have no idea if
the output is actually gzip encoded.

I'm using PHP 4.0.5 as an Apache module, and here's an example of a test
script:

?php ob_start(ob_gzhandler); ?

pThis should be compressed.

[bunch of text here just to ensure it's big enough to be encoded. the file
size is about 5700kb]

?php ob_end_flush(); ?


I'm using IE 5.5 to view the page, and PHP shows the
HTTP_SERVER_VARS[HTTP_ACCEPT_ENCODING]  variable as gzip, deflate, so
the browser is saying it supports gzip content.

Now the question is, how do I actually know if the browser is getting gzip
content?


Plutarck



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