[PHP] Re: PHP 4.1.0 released

2001-12-11 Thread Daniel Urstöger

Just update PHP to v.4.1.0 about 10 mins ago
Worked pretty go so far ! :)
Will tell about loads soon .. But as far as I see, the load really dropped
...
Yeah, and waiting till Zend is bringing out a working version of Optimizer
for
that PHP version ! :)

cya !
Daniel

PS: thx for your affords !

Zeev Suraski [EMAIL PROTECTED] schrieb im Newsbeitrag
5.1.0.14.2.20011210234236.0516bec0@localhost">news:5.1.0.14.2.20011210234236.0516bec0@localhost...
 After a lengthy QA process, PHP 4.1.0 is finally out.  Download at
 http://www.php.net/downloads.php !

 PHP 4.1.0 includes several other key improvements:
 - A new input interface for improved security (read below)
 - Highly improved performance in general
 - Revolutionary performance and stability improvements under Windows.  The
 multithreaded server modules under Windows (ISAPI, Apache, etc.) perform
as
 much as 30 times faster under load!  We want to thank Brett Brewer and his
 team in Microsoft for working with us to improve PHP for Windows.
 - Versioning support for extensions.  Right now it's barely being used,
but
 the infrastructure was put in place to support separate version numbers
for
 different extensions.  The negative side effect is that loading extensions
 that were built against old versions of PHP will now result in a crash,
 instead of in a nice clear message.  Make sure you only use extensions
 built with PHP 4.1.0.
 - Turn-key output compression support
 - *LOTS* of fixes and new functions

 As some of you may notice, this version is quite historical, as it's the
 first time in history we actually incremented the middle digit!  :) The
two
 key reasons for this unprecedented change were the new input interface,
and
 the broken binary compatibility of modules due to the versioning support.

 Following is a description of the new input mechanism.  For a full list of
 changes in PHP 4.1.0, scroll down to the end of this section.

 ---

 SECURITY:  NEW INPUT MECHANISM

 First and foremost, it's important to stress that regardless of anything
 you may read in the following lines, PHP 4.1.0 *supports* the old input
 mechanisms from older versions.  Old applications should go on working
fine
 without modification!

 Now that we have that behind us, let's move on :)

 For various reasons, PHP setups which rely on register_globals being on
 (i.e., on form, server and environment variables becoming a part of the
 global namespace, automatically) are very often exploitable to various
 degrees.  For example, the piece of code:

 ?php
 if (authenticate_user()) {
$authenticated = true;
 }
 ...
 ?

 May be exploitable, as remote users can simply pass on 'authenticated' as
a
 form variable, and then even if authenticate_user() returns false,
 $authenticated will actually be set to true.  While this looks like a
 simple example, in reality, quite a few PHP applications ended up being
 exploitable by things related to this misfeature.

 While it is quite possible to write secure code in PHP, we felt that the
 fact that PHP makes it too easy to write insecure code was bad, and we've
 decided to attempt a far-reaching change, and deprecate
 register_globals.  Obviously, because the vast majority of the PHP code in
 the world relies on the existence of this feature, we have no plans to
 actually remove it from PHP anytime in the foreseeable future, but we've
 decided to encourage people to shut it off whenever possible.

 To help users build PHP applications with register_globals being off,
we've
 added several new special variables that can be used instead of the old
 global variables.  There are 7 new special arrays:

 $_GET - contains form variables sent through GET
 $_POST - contains form variables sent through POST
 $_COOKIE - contains HTTP cookie variables
 $_SERVER - contains server variables (e.g., REMOTE_ADDR)
 $_ENV - contains the environment variables
 $_REQUEST - a merge of the GET variables, POST variables and Cookie
 variables.  In other words - all the information that is coming from the
 user, and that from a security point of view, cannot be trusted.
 $_SESSION - contains HTTP variables registered by the session module

 Now, other than the fact that these variables contain this special
 information, they're also special in another way - they're automatically
 global in any scope.  This means that you can access them anywhere,
without
 having to 'global' them first.  For example:

 function example1()
 {
 print $_GET[name];   // works, 'global $_GET;' is not necessary!
 }

 would work fine!  We hope that this fact would ease the pain in migrating
 old code to new code a bit, and we're confident it's going to make writing
 new code easier.  Another neat trick is that creating new entries in the
 $_SESSION array will automatically register them as session variables, as
 if you called session_register().  This trick is limited to the session
 module only - for example, setting new entries in $_ENV will *not* 

[PHP] Re: PHP 4.1.0 released

2001-12-11 Thread MindHunter

Where do we get the Windows Binaries?

Cheers
MH

Zeev Suraski [EMAIL PROTECTED] wrote in message
5.1.0.14.2.20011210234236.0516bec0@localhost">news:5.1.0.14.2.20011210234236.0516bec0@localhost...
 After a lengthy QA process, PHP 4.1.0 is finally out.  Download at
 http://www.php.net/downloads.php !

 PHP 4.1.0 includes several other key improvements:
 - A new input interface for improved security (read below)
 - Highly improved performance in general
 - Revolutionary performance and stability improvements under Windows.  The
 multithreaded server modules under Windows (ISAPI, Apache, etc.) perform
as
 much as 30 times faster under load!  We want to thank Brett Brewer and his
 team in Microsoft for working with us to improve PHP for Windows.
 - Versioning support for extensions.  Right now it's barely being used,
but
 the infrastructure was put in place to support separate version numbers
for
 different extensions.  The negative side effect is that loading extensions
 that were built against old versions of PHP will now result in a crash,
 instead of in a nice clear message.  Make sure you only use extensions
 built with PHP 4.1.0.
 - Turn-key output compression support
 - *LOTS* of fixes and new functions

 As some of you may notice, this version is quite historical, as it's the
 first time in history we actually incremented the middle digit!  :) The
two
 key reasons for this unprecedented change were the new input interface,
and
 the broken binary compatibility of modules due to the versioning support.

 Following is a description of the new input mechanism.  For a full list of
 changes in PHP 4.1.0, scroll down to the end of this section.

 ---

 SECURITY:  NEW INPUT MECHANISM

 First and foremost, it's important to stress that regardless of anything
 you may read in the following lines, PHP 4.1.0 *supports* the old input
 mechanisms from older versions.  Old applications should go on working
fine
 without modification!

 Now that we have that behind us, let's move on :)

 For various reasons, PHP setups which rely on register_globals being on
 (i.e., on form, server and environment variables becoming a part of the
 global namespace, automatically) are very often exploitable to various
 degrees.  For example, the piece of code:

 ?php
 if (authenticate_user()) {
$authenticated = true;
 }
 ...
 ?

 May be exploitable, as remote users can simply pass on 'authenticated' as
a
 form variable, and then even if authenticate_user() returns false,
 $authenticated will actually be set to true.  While this looks like a
 simple example, in reality, quite a few PHP applications ended up being
 exploitable by things related to this misfeature.

 While it is quite possible to write secure code in PHP, we felt that the
 fact that PHP makes it too easy to write insecure code was bad, and we've
 decided to attempt a far-reaching change, and deprecate
 register_globals.  Obviously, because the vast majority of the PHP code in
 the world relies on the existence of this feature, we have no plans to
 actually remove it from PHP anytime in the foreseeable future, but we've
 decided to encourage people to shut it off whenever possible.

 To help users build PHP applications with register_globals being off,
we've
 added several new special variables that can be used instead of the old
 global variables.  There are 7 new special arrays:

 $_GET - contains form variables sent through GET
 $_POST - contains form variables sent through POST
 $_COOKIE - contains HTTP cookie variables
 $_SERVER - contains server variables (e.g., REMOTE_ADDR)
 $_ENV - contains the environment variables
 $_REQUEST - a merge of the GET variables, POST variables and Cookie
 variables.  In other words - all the information that is coming from the
 user, and that from a security point of view, cannot be trusted.
 $_SESSION - contains HTTP variables registered by the session module

 Now, other than the fact that these variables contain this special
 information, they're also special in another way - they're automatically
 global in any scope.  This means that you can access them anywhere,
without
 having to 'global' them first.  For example:

 function example1()
 {
 print $_GET[name];   // works, 'global $_GET;' is not necessary!
 }

 would work fine!  We hope that this fact would ease the pain in migrating
 old code to new code a bit, and we're confident it's going to make writing
 new code easier.  Another neat trick is that creating new entries in the
 $_SESSION array will automatically register them as session variables, as
 if you called session_register().  This trick is limited to the session
 module only - for example, setting new entries in $_ENV will *not* perform
 an implicit putenv().

 PHP 4.1.0 still defaults to have register_globals set to on.  It's a
 transitional version, and we encourage application authors, especially
 public ones which are used by a wide audience, to change their
applications
 to 

Re: [PHP] Re: PHP 4.1.0 released

2001-12-11 Thread Zeev Suraski

They'll be posted within a couple of days.

Zeev

At 07:42 11/12/2001, MindHunter wrote:
Where do we get the Windows Binaries?

Cheers
MH

Zeev Suraski [EMAIL PROTECTED] wrote in message
5.1.0.14.2.20011210234236.0516bec0@localhost">news:5.1.0.14.2.20011210234236.0516bec0@localhost...
  After a lengthy QA process, PHP 4.1.0 is finally out.  Download at
  http://www.php.net/downloads.php !
 
  PHP 4.1.0 includes several other key improvements:
  - A new input interface for improved security (read below)
  - Highly improved performance in general
  - Revolutionary performance and stability improvements under Windows.  The
  multithreaded server modules under Windows (ISAPI, Apache, etc.) perform
as
  much as 30 times faster under load!  We want to thank Brett Brewer and his
  team in Microsoft for working with us to improve PHP for Windows.
  - Versioning support for extensions.  Right now it's barely being used,
but
  the infrastructure was put in place to support separate version numbers
for
  different extensions.  The negative side effect is that loading extensions
  that were built against old versions of PHP will now result in a crash,
  instead of in a nice clear message.  Make sure you only use extensions
  built with PHP 4.1.0.
  - Turn-key output compression support
  - *LOTS* of fixes and new functions
 
  As some of you may notice, this version is quite historical, as it's the
  first time in history we actually incremented the middle digit!  :) The
two
  key reasons for this unprecedented change were the new input interface,
and
  the broken binary compatibility of modules due to the versioning support.
 
  Following is a description of the new input mechanism.  For a full list of
  changes in PHP 4.1.0, scroll down to the end of this section.
 
  ---
 
  SECURITY:  NEW INPUT MECHANISM
 
  First and foremost, it's important to stress that regardless of anything
  you may read in the following lines, PHP 4.1.0 *supports* the old input
  mechanisms from older versions.  Old applications should go on working
fine
  without modification!
 
  Now that we have that behind us, let's move on :)
 
  For various reasons, PHP setups which rely on register_globals being on
  (i.e., on form, server and environment variables becoming a part of the
  global namespace, automatically) are very often exploitable to various
  degrees.  For example, the piece of code:
 
  ?php
  if (authenticate_user()) {
 $authenticated = true;
  }
  ...
  ?
 
  May be exploitable, as remote users can simply pass on 'authenticated' as
a
  form variable, and then even if authenticate_user() returns false,
  $authenticated will actually be set to true.  While this looks like a
  simple example, in reality, quite a few PHP applications ended up being
  exploitable by things related to this misfeature.
 
  While it is quite possible to write secure code in PHP, we felt that the
  fact that PHP makes it too easy to write insecure code was bad, and we've
  decided to attempt a far-reaching change, and deprecate
  register_globals.  Obviously, because the vast majority of the PHP code in
  the world relies on the existence of this feature, we have no plans to
  actually remove it from PHP anytime in the foreseeable future, but we've
  decided to encourage people to shut it off whenever possible.
 
  To help users build PHP applications with register_globals being off,
we've
  added several new special variables that can be used instead of the old
  global variables.  There are 7 new special arrays:
 
  $_GET - contains form variables sent through GET
  $_POST - contains form variables sent through POST
  $_COOKIE - contains HTTP cookie variables
  $_SERVER - contains server variables (e.g., REMOTE_ADDR)
  $_ENV - contains the environment variables
  $_REQUEST - a merge of the GET variables, POST variables and Cookie
  variables.  In other words - all the information that is coming from the
  user, and that from a security point of view, cannot be trusted.
  $_SESSION - contains HTTP variables registered by the session module
 
  Now, other than the fact that these variables contain this special
  information, they're also special in another way - they're automatically
  global in any scope.  This means that you can access them anywhere,
without
  having to 'global' them first.  For example:
 
  function example1()
  {
  print $_GET[name];   // works, 'global $_GET;' is not necessary!
  }
 
  would work fine!  We hope that this fact would ease the pain in migrating
  old code to new code a bit, and we're confident it's going to make writing
  new code easier.  Another neat trick is that creating new entries in the
  $_SESSION array will automatically register them as session variables, as
  if you called session_register().  This trick is limited to the session
  module only - for example, setting new entries in $_ENV will *not* perform
  an implicit putenv().
 
  PHP 4.1.0 still defaults to have 

[PHP] Generating PDF...

2001-12-11 Thread Johan Holst Nielsen

Hi,

I just have some few question. I hope you can help me, with some links 
or some information :o)

I've to create some pdf files, but the problem is that it have to be 
printed later. So it have to be in i quality about 304 dpi.

I dont know a lot about PDF. Can anyone help me please? Send me some 
links about how PDF works etc..

I prefer to work in PHP... but if Perl/C/C++ etc. is a better language 
to this, please post the link anyway.

Hope someone can help me :o)

Looking forward to hear from ya! :o)

Regards,

Johan


-- 
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] Sending out mass mail without having timeout problems ..

2001-12-11 Thread bain

Hi all 

I've been working on a system for our company that uses MySQL to grab
user data and then send personalized mail to them once a month. 

currently I step thought the mysql result mailling one mail per return.

as you can imagine .. my script timeout value is sitting on 24hours to
allow all the mail in our big database to go throught.

Is there a way I can fork or thread the mail send process so I can send
more then one mail at a time .. or maybe even buffer the MySQL result
and send the mail in the background but still return the browser .. 

any sugestions .. please

-- 
Henti Smith
Systems Administrator
The House Of Synergy
http://www.thos.co.za
[EMAIL PROTECTED]
+27 11 259-9821
--

Let us not look back in anger or forward in fear, but around us in
awareness.
-- James Thurber


-- 
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] Generating PDF...

2001-12-11 Thread Adrian Teasdale

Johan

Here are a couple of links that should get you started:

http://www.zend.com/zend/spotlight/creatingpdfmay1.php

http://phpbuilder.com/columns/perugini20001026.php3

These should keep you busy for a while!

Ade

--- i n o v i c a h o s t i n g . c o m --

Powerful hosting from www.inovicahosting.com





 -Original Message-
 From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
 Sent: 11 December 2001 08:09
 To: [EMAIL PROTECTED]
 Subject: [PHP] Generating PDF...
 
 
 Hi,
 
 I just have some few question. I hope you can help me, with some links 
 or some information :o)
 
 I've to create some pdf files, but the problem is that it have to be 
 printed later. So it have to be in i quality about 304 dpi.
 
 I dont know a lot about PDF. Can anyone help me please? Send me some 
 links about how PDF works etc..
 
 I prefer to work in PHP... but if Perl/C/C++ etc. is a better language 
 to this, please post the link anyway.
 
 Hope someone can help me :o)
 
 Looking forward to hear from ya! :o)
 
 Regards,
 
 Johan
 
 
 -- 
 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] Generating PDF...

2001-12-11 Thread Rasmus Lerdorf

dpi doesn't really apply to a PDF file unless your PDF file has embedded 
images in which case the dpi of these images would affect your output.  
And PHP is fine for generating PDF with.  See http://php.net/pdf

-Rasmus

On Tue, 11 Dec 2001, Johan Holst Nielsen wrote:

 Hi,
 
 I just have some few question. I hope you can help me, with some links 
 or some information :o)
 
 I've to create some pdf files, but the problem is that it have to be 
 printed later. So it have to be in i quality about 304 dpi.
 
 I dont know a lot about PDF. Can anyone help me please? Send me some 
 links about how PDF works etc..
 
 I prefer to work in PHP... but if Perl/C/C++ etc. is a better language 
 to this, please post the link anyway.
 
 Hope someone can help me :o)
 
 Looking forward to hear from ya! :o)
 
 Regards,
 
 Johan
 
 
 


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

2001-12-11 Thread Jordan

is there anyway to drag session variables to another server or are they
server specific?  If you can't drag a session can you do an include for a
page on a different server giving it's URL?  Just curious.

-Jordan



-- 
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] Generating PDF...

2001-12-11 Thread Dave Brotherstone

PHP is a good language for creating PDFs.  There are two libraries you can
use, PDFlib and ClibPDF.  I have used PDFlib before and I can recommend it.
Look in the PHP manual at PDFlib functions.  Incidentally, if it's for a
commercial project, then PDFlib or ClibPDF will probably need licensing.

PDF is a great format, it's page independant, so you can load and view page
1 of the file, before you have downloaded page 2.  It contains image
handles, so you can insert an image on page 1 (say a logo), and then use a
link to it on the second page (so you the file size only goes up a few bytes
each time you add another copy of the picture).  You can also print it
directly.

Mail me off list if you need to create a large number of PDFs quickly.

Dave.

 -Original Message-
 From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
 Sent: 11 December 2001 08:09
 To: [EMAIL PROTECTED]
 Subject: [PHP] Generating PDF...


 Hi,

 I just have some few question. I hope you can help me, with some links
 or some information :o)

 I've to create some pdf files, but the problem is that it have to be
 printed later. So it have to be in i quality about 304 dpi.

 I dont know a lot about PDF. Can anyone help me please? Send me some
 links about how PDF works etc..

 I prefer to work in PHP... but if Perl/C/C++ etc. is a better language
 to this, please post the link anyway.

 Hope someone can help me :o)

 Looking forward to hear from ya! :o)

 Regards,

 Johan


 --
 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] Re: [PEAR-DEV] Template class

2001-12-11 Thread Peter Bowyer

I think I've seen something like this before... hang on, isn't it called PHP???

Could you explain what advantages you see in doing it this way, as I can't 
see any :-(

Peter.

At 11:00 PM 12/10/01 +0100, Wolfram Kriesing wrote:
(just in case any of the people on PEAR-DEV will read this at all,
since everyone must be tired of the template class debates :-)  )

i just wanted to say what i had to write, because i didnt see any of
the existing template classes/engines provide me with that

the main features are:
# compiling template class which (almost) only replaces '{' by ?php
and '}' by ?, with pre and post filters
# uses indention to create the '{' and '}' for php-code inside the
template, so clean code is a requirement and no closing tags like:
{/if} are needed
# leaves all the power of php to you, not only the functionality the
template engine implements
# nothing to learn, just use '{' and '}' instead of the php-tags in
your template and indent your code properly
# the seperation of source and representation is all up to the
programmer (either this is good or bad)
# provides some default filter


a possible template
-
{if(sizeof($disadvantages))}
 {foreach($disadvantages as $aDisadvantage)}
 li{$aDisadvantage}/li
{else}
 no disadvantages registered yet :-)
-

the compiled code is nothing more than this
-
?php if(sizeof($disadvantages)) { ?
 ?php foreach($disadvantages as $aDisadvantage) { ?
 li?=$aDisadvantage?/li
?php }  }  else { ?
 no disadvantages registered yet :-)
?php }  ?
-
so you can see - easy to use, nothing to learn and should be fast :-)

feel free to have a look at
 http://wolfram.kriesing.de/programming/



PS: BTW what was the decision on a multiple classes in PEAR
which do the same thing?

--
Wolfram

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

--oOo--
Narrow Gauge on the web - photos, directory and forums!
http://www.narrow-gauge.co.uk
--oOo--
Peter's web page - Scottish narrow gauge in 009
http://members.aol.com/reywob/
--oOo--


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

2001-12-11 Thread Mehmet Kamil ERISEN

Hi,
I think you can include pages from other sites, servers.
SESSIONS (I think) are server specific, cuz the info is
kept on the server.  
If you tell me what u gonna be doing, I can give you ideas.
thx.
erisen
--- Jordan [EMAIL PROTECTED] wrote:
 is there anyway to drag session variables to another
 server or are they
 server specific?  If you can't drag a session can you do
 an include for a
 page on a different server giving it's URL?  Just
 curious.
 
 -Jordan
 
 
 
 -- 
 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]
 


=
Mehmet Erisen
http://www.erisen.com

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at 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]




Re: [PHP] Generating PDF...

2001-12-11 Thread Johan Holst Nielsen

ok, i need to include some images in the PDF. But I just make them in 
the right dpi then.

What about fonts? No problem if the font is Postscript or?

-Johan

Rasmus Lerdorf wrote:

dpi doesn't really apply to a PDF file unless your PDF file has embedded 
images in which case the dpi of these images would affect your output.  
And PHP is fine for generating PDF with.  See http://php.net/pdf

-Rasmus

On Tue, 11 Dec 2001, Johan Holst Nielsen wrote:

Hi,

I just have some few question. I hope you can help me, with some links 
or some information :o)

I've to create some pdf files, but the problem is that it have to be 
printed later. So it have to be in i quality about 304 dpi.

I dont know a lot about PDF. Can anyone help me please? Send me some 
links about how PDF works etc..

I prefer to work in PHP... but if Perl/C/C++ etc. is a better language 
to this, please post the link anyway.

Hope someone can help me :o)

Looking forward to hear from ya! :o)

Regards,

Johan









[PHP] RE: @file problems w/ remote files

2001-12-11 Thread Tim Ward

How about wrapping the @file(...); in an if(file_exists(...)) {...}

Doesn't seem to give an error at all , even without the @. I've tested this
on non-existant domain names and with my firewall internet connection
blocked.

Tim
http://www.chessish.com/ http://www.chessish.com/ 

--
From:  Joseph Fung [SMTP:[EMAIL PROTECTED]]
Sent:  11 December 2001 00:17
To:  PHP General Mailing List
Subject:  @file problems w/ remote files

Hi,

This is regarding the same problem that Jeff posted earlier (yes,
the exast
same problem - I'm working with him).  He seems to have given some
of you
the wrong impression about the problem - he is not ignoring your
posts, it's
just that the posts aren't helping the problem ;)

The problem is that the @ isn't suppressing the warnings properly.
Our code
is currently trying to pull the results of a script off a server -
and if it
can't, it uses the most current copy stored locally.  The problem,
is that
while we are expecting the @ to suppress the warnings (and thereby
letting
us continue on to use file() on the local copy), it is instead
allowing file
to spit out a warning which kills the script.

We are currently getting a errornum of 2, and it's spitting out
fopen(filename) - Success which is exceedingly annoying.

What would be perfect, is if someone knows of an alternate way to
download a
file from a server - if that failed, set a flag and continue
processing
rather than simply erroring out.

Thanks for any help - sorry for the miscommunication earlier.

Joseph


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

2001-12-11 Thread Tim Ward

Chinchillas are fluffy, and I don't think anyone is using them for their
logo.

--
From:  Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]]
Sent:  10 December 2001 16:58
To:  PHP
Subject:  [PHP] Logo proposal

Hello world of php-programmers!

It seemes to me PHP is very powerful tool and very popular among
web-programmers, too. As for me I use php for solving web tasks for
2 years
and I'm very satisfied with it.

It seemes to me current PHP logo (can be found by
http://www.php.net/gifs/logo.gif) doesn't suite to PHP. It's common
logo
without any idea except using title in it.

I propose to create and develop new PHP logo corresponding to its
power.

My propose is WoodPecker (e.g. like Woody).

Other propositions?

Respectfully, Zliy Pes http://www.zliypes.com.ua






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

2001-12-11 Thread Stefan Rusterholz

right from http://www.php.net/downloads.php which zeev mentions at the very
top of his mail:

PHP 4.0.6 installer [755Kb] - 23 June 2001 (link:
http://www.php.net/do_download.php?download_file=php406-installer.exe)
(CGI only, MySQL support built-in, packaged as Windows installer to install
and configure PHP, and automatically configure IIS, PWS and Xitami, with
manual configuration for other servers. N.B. no external extensions
included)

Please take your self time and comfort yourself to go to the php.net site
and take a look yourself to point that bit out yourself - thank you.
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
--
- Original Message -
From: MindHunter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 6:42 AM
Subject: [PHP] Re: PHP 4.1.0 released


 Where do we get the Windows Binaries?

 Cheers
 MH

 Zeev Suraski [EMAIL PROTECTED] wrote in message
 5.1.0.14.2.20011210234236.0516bec0@localhost">news:5.1.0.14.2.20011210234236.0516bec0@localhost...
  After a lengthy QA process, PHP 4.1.0 is finally out.  Download at
  http://www.php.net/downloads.php !
 
  PHP 4.1.0 includes several other key improvements:
  - A new input interface for improved security (read below)
  - Highly improved performance in general
  - Revolutionary performance and stability improvements under Windows.
The
  multithreaded server modules under Windows (ISAPI, Apache, etc.) perform
 as
  much as 30 times faster under load!  We want to thank Brett Brewer and
his
  team in Microsoft for working with us to improve PHP for Windows.
  - Versioning support for extensions.  Right now it's barely being used,
 but
  the infrastructure was put in place to support separate version numbers
 for
  different extensions.  The negative side effect is that loading
extensions
  that were built against old versions of PHP will now result in a crash,
  instead of in a nice clear message.  Make sure you only use extensions
  built with PHP 4.1.0.
  - Turn-key output compression support
  - *LOTS* of fixes and new functions
 
  As some of you may notice, this version is quite historical, as it's the
  first time in history we actually incremented the middle digit!  :) The
 two
  key reasons for this unprecedented change were the new input interface,
 and
  the broken binary compatibility of modules due to the versioning
support.
 
  Following is a description of the new input mechanism.  For a full list
of
  changes in PHP 4.1.0, scroll down to the end of this section.
 
  ---
 
  SECURITY:  NEW INPUT MECHANISM
 
  First and foremost, it's important to stress that regardless of anything
  you may read in the following lines, PHP 4.1.0 *supports* the old input
  mechanisms from older versions.  Old applications should go on working
 fine
  without modification!
 
  Now that we have that behind us, let's move on :)
 
  For various reasons, PHP setups which rely on register_globals being on
  (i.e., on form, server and environment variables becoming a part of the
  global namespace, automatically) are very often exploitable to various
  degrees.  For example, the piece of code:
 
  ?php
  if (authenticate_user()) {
 $authenticated = true;
  }
  ...
  ?
 
  May be exploitable, as remote users can simply pass on 'authenticated'
as
 a
  form variable, and then even if authenticate_user() returns false,
  $authenticated will actually be set to true.  While this looks like a
  simple example, in reality, quite a few PHP applications ended up being
  exploitable by things related to this misfeature.
 
  While it is quite possible to write secure code in PHP, we felt that the
  fact that PHP makes it too easy to write insecure code was bad, and
we've
  decided to attempt a far-reaching change, and deprecate
  register_globals.  Obviously, because the vast majority of the PHP code
in
  the world relies on the existence of this feature, we have no plans to
  actually remove it from PHP anytime in the foreseeable future, but we've
  decided to encourage people to shut it off whenever possible.
 
  To help users build PHP applications with register_globals being off,
 we've
  added several new special variables that can be used instead of the old
  global variables.  There are 7 new special arrays:
 
  $_GET - contains form variables sent through GET
  $_POST - contains form variables sent through POST
  $_COOKIE - contains HTTP cookie variables
  $_SERVER - contains server variables (e.g., REMOTE_ADDR)
  $_ENV - contains the environment variables
  $_REQUEST - a merge of the GET variables, POST variables and Cookie
  variables.  In other words - all the information that is coming from the
  user, and that from a security point of view, cannot be 

RE: [PHP] Re: PHP 4.1.0 released

2001-12-11 Thread Richard Black


Um, excuse me for pointing out the obvious, but isn't that the 4.0.6 
Windows binaries? And wasn't the question about the 4.1.0 Windows 
binaries???

Which aren't on php.net yet..

Richy

-Original Message-
From:   Stefan Rusterholz [SMTP:[EMAIL PROTECTED]]
Sent:   11 December 2001 10:14
To: MindHunter
Cc: PHP
Subject:Re: [PHP] Re: PHP 4.1.0 released

right from http://www.php.net/downloads.php which zeev mentions at the very
top of his mail:

PHP 4.0.6 installer [755Kb] - 23 June 2001 (link:
http://www.php.net/do_download.php?download_file=php406-installer.exe)
(CGI only, MySQL support built-in, packaged as Windows installer to install
and configure PHP, and automatically configure IIS, PWS and Xitami, with
manual configuration for other servers. N.B. no external extensions
included)

Please take your self time and comfort yourself to go to the php.net site
and take a look yourself to point that bit out yourself - thank you.
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zurichbergstrasse 17
8032 Zurich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
--
- Original Message -
From: MindHunter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 6:42 AM
Subject: [PHP] Re: PHP 4.1.0 released


 Where do we get the Windows Binaries?

 Cheers
 MH

 Zeev Suraski [EMAIL PROTECTED] wrote in message
 5.1.0.14.2.20011210234236.0516bec0@localhost">news:5.1.0.14.2.20011210234236.0516bec0@localhost...
  After a lengthy QA process, PHP 4.1.0 is finally out.  Download at
  http://www.php.net/downloads.php !
 
  PHP 4.1.0 includes several other key improvements:
  - A new input interface for improved security (read below)
  - Highly improved performance in general
  - Revolutionary performance and stability improvements under Windows.
The
  multithreaded server modules under Windows (ISAPI, Apache, etc.) 
perform
 as
  much as 30 times faster under load!  We want to thank Brett Brewer and
his
  team in Microsoft for working with us to improve PHP for Windows.
  - Versioning support for extensions.  Right now it's barely being used,
 but
  the infrastructure was put in place to support separate version numbers
 for
  different extensions.  The negative side effect is that loading
extensions
  that were built against old versions of PHP will now result in a crash,
  instead of in a nice clear message.  Make sure you only use extensions
  built with PHP 4.1.0.
  - Turn-key output compression support
  - *LOTS* of fixes and new functions
 
  As some of you may notice, this version is quite historical, as it's 
the
  first time in history we actually incremented the middle digit!  :) The
 two
  key reasons for this unprecedented change were the new input interface,
 and
  the broken binary compatibility of modules due to the versioning
support.
 
  Following is a description of the new input mechanism.  For a full list
of
  changes in PHP 4.1.0, scroll down to the end of this section.
 
  ---
 
  SECURITY:  NEW INPUT MECHANISM
 
  First and foremost, it's important to stress that regardless of 
anything
  you may read in the following lines, PHP 4.1.0 *supports* the old input
  mechanisms from older versions.  Old applications should go on working
 fine
  without modification!
 
  Now that we have that behind us, let's move on :)
 
  For various reasons, PHP setups which rely on register_globals being on
  (i.e., on form, server and environment variables becoming a part of the
  global namespace, automatically) are very often exploitable to various
  degrees.  For example, the piece of code:
 
  ?php
  if (authenticate_user()) {
 $authenticated = true;
  }
  ...
  ?
 
  May be exploitable, as remote users can simply pass on 'authenticated'
as
 a
  form variable, and then even if authenticate_user() returns false,
  $authenticated will actually be set to true.  While this looks like a
  simple example, in reality, quite a few PHP applications ended up being
  exploitable by things related to this misfeature.
 
  While it is quite possible to write secure code in PHP, we felt that 
the
  fact that PHP makes it too easy to write insecure code was bad, and
we've
  decided to attempt a far-reaching change, and deprecate
  register_globals.  Obviously, because the vast majority of the PHP code
in
  the world relies on the existence of this feature, we have no plans to
  actually remove it from PHP anytime in the foreseeable future, but 
we've
  decided to encourage people to shut it off whenever possible.
 
  To help users build PHP applications with register_globals being off,
 we've
  added several new special variables that can be used instead of the old
  global variables.  There are 7 new special arrays:
 
  $_GET - contains form variables sent through GET
  $_POST - contains 

Re: [PHP] Re: PHP 4.1.0 released

2001-12-11 Thread Phil Driscoll

On Tuesday 11 December 2001 10:22 am, Richard Black wrote:
 Um, excuse me for pointing out the obvious, but isn't that the 4.0.6
 Windows binaries? And wasn't the question about the 4.1.0 Windows
 binaries???

The 4.1.0 Windows binaries, and the installer version thereof are currently 
under preparation and will be posted on the site ASAP. We'll make an 
announcement on the lists once they are there.

Cheers
-- 
Phil Driscoll

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

2001-12-11 Thread Stefan Rusterholz

whoops, you are absolutly right

I'm sorry - big apologizes
:~/ *taking myself on my nose*

And I (*stupid*)  had almost downloaded 4.06 twice (since I've 4.06 already
installed) not remarking that this are the old 4.06 binaries...
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
--
- Original Message -
From: Richard Black [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 11:22 AM
Subject: RE: [PHP] Re: PHP 4.1.0 released



 Um, excuse me for pointing out the obvious, but isn't that the 4.0.6
 Windows binaries? And wasn't the question about the 4.1.0 Windows
 binaries???

 Which aren't on php.net yet..

 Richy

 -Original Message-
 From: Stefan Rusterholz [SMTP:[EMAIL PROTECTED]]
 Sent: 11 December 2001 10:14
 To: MindHunter
 Cc: PHP
 Subject: Re: [PHP] Re: PHP 4.1.0 released

 right from http://www.php.net/downloads.php which zeev mentions at the
very
 top of his mail:

 PHP 4.0.6 installer [755Kb] - 23 June 2001 (link:
 http://www.php.net/do_download.php?download_file=php406-installer.exe)
 (CGI only, MySQL support built-in, packaged as Windows installer to
install
 and configure PHP, and automatically configure IIS, PWS and Xitami, with
 manual configuration for other servers. N.B. no external extensions
 included)

 Please take your self time and comfort yourself to go to the php.net site
 and take a look yourself to point that bit out yourself - thank you.
 Stefan Rusterholz, [EMAIL PROTECTED]
 --
 interaktion gmbh
 Stefan Rusterholz
 Zurichbergstrasse 17
 8032 Zurich
 --
 T. +41 1 253 19 55
 F. +41 1 253 19 56
 W3 www.interaktion.ch
 --
 - Original Message -
 From: MindHunter [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, December 11, 2001 6:42 AM
 Subject: [PHP] Re: PHP 4.1.0 released


  Where do we get the Windows Binaries?
 
  Cheers
  MH
 
  Zeev Suraski [EMAIL PROTECTED] wrote in message
  5.1.0.14.2.20011210234236.0516bec0@localhost">news:5.1.0.14.2.20011210234236.0516bec0@localhost...
   After a lengthy QA process, PHP 4.1.0 is finally out.  Download at
   http://www.php.net/downloads.php !
  
   PHP 4.1.0 includes several other key improvements:
   - A new input interface for improved security (read below)
   - Highly improved performance in general
   - Revolutionary performance and stability improvements under Windows.
 The
   multithreaded server modules under Windows (ISAPI, Apache, etc.)
 perform
  as
   much as 30 times faster under load!  We want to thank Brett Brewer and
 his
   team in Microsoft for working with us to improve PHP for Windows.
   - Versioning support for extensions.  Right now it's barely being
used,
  but
   the infrastructure was put in place to support separate version
numbers
  for
   different extensions.  The negative side effect is that loading
 extensions
   that were built against old versions of PHP will now result in a
crash,
   instead of in a nice clear message.  Make sure you only use extensions
   built with PHP 4.1.0.
   - Turn-key output compression support
   - *LOTS* of fixes and new functions
  
   As some of you may notice, this version is quite historical, as it's
 the
   first time in history we actually incremented the middle digit!  :)
The
  two
   key reasons for this unprecedented change were the new input
interface,
  and
   the broken binary compatibility of modules due to the versioning
 support.
  
   Following is a description of the new input mechanism.  For a full
list
 of
   changes in PHP 4.1.0, scroll down to the end of this section.
  
   ---
  
   SECURITY:  NEW INPUT MECHANISM
  
   First and foremost, it's important to stress that regardless of
 anything
   you may read in the following lines, PHP 4.1.0 *supports* the old
input
   mechanisms from older versions.  Old applications should go on working
  fine
   without modification!
  
   Now that we have that behind us, let's move on :)
  
   For various reasons, PHP setups which rely on register_globals being
on
   (i.e., on form, server and environment variables becoming a part of
the
   global namespace, automatically) are very often exploitable to various
   degrees.  For example, the piece of code:
  
   ?php
   if (authenticate_user()) {
  $authenticated = true;
   }
   ...
   ?
  
   May be exploitable, as remote users can simply pass on 'authenticated'
 as
  a
   form variable, and then even if authenticate_user() returns false,
   $authenticated will actually be set to true.  While this looks like a
   simple example, in reality, quite a few PHP applications ended up
being
   exploitable by things related to this misfeature.
  
   

[PHP] Re: session

2001-12-11 Thread Emek TUZUN

I had the same problem...

You can transfer it by the URL and again register the session variables
there...

Or you can use CURL functions for this... Please check the manual...

Emek TUZUN



Jordan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 is there anyway to drag session variables to another server or are they
 server specific?  If you can't drag a session can you do an include for a
 page on a different server giving it's URL?  Just curious.

 -Jordan





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

2001-12-11 Thread Emek TUZUN

How can I check a string variable is based on alphabetical and numerical
characters?

For ex, I want to make a whois script for domainnames.

You may only use alphabetical, numerical characters and dashes (-)

Thanks

Emek



-- 
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] Variable Swap?

2001-12-11 Thread Bharath Bhushan Lohray

Is there a way of swapping the values of two variables without involving a
third variable.

something similar to the SWAP(A$,B$) of BASIC

I have a big variable(array) and I want to keep my script's memory
requirements as low as possible.

-Bharath Bhushan Lohray



-- 
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] gd for linux....cjk

2001-12-11 Thread Constantine J. Koulis

hello all.

Where can i find the GD library for redhat Linux 7.0 i am using php 4.0.2.

and how do i install it

Sincerely


Tks  Best Regards
Koulis Constantine.
Bucharest Romania
Phone :+40-93979131
Phone GR :+30-974293018


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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] Which dyndns?

2001-12-11 Thread Gaylen Fraley

I'm having to switch from static IP to dynamic :).  I've finally gotten the
Earthlink DSL (dynamic IP) up and running.  Now I
need to get the service to keep my domain name in sync with my dynamic ip.
On the short list are:

TZO
EasyDNS
DNS2Go
DynDNS

Is there a better choice?

I will need ports 21,22,23, and 80 for sure.  Possibly others.  1 linux box
and 1 windoze box.  What would be the best choice and what kind of fee would
I be needing?  Your experiences please!

Please reply directly to me as I can't get newsgroups at work.  Thanks!


--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite




-- 
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] Generating PDF...

2001-12-11 Thread Henrik Hansen

[EMAIL PROTECTED] (Adrian Teasdale) wrote:

  Johan

  Here are a couple of links that should get you started:

  http://www.zend.com/zend/spotlight/creatingpdfmay1.php

  http://phpbuilder.com/columns/perugini20001026.php3

  These should keep you busy for a while!

also check out pc4p (sf,net(projects/pc4p) which is a good api for
making pdf's, uses php's pdflib functions.

-- 
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] Turn-key output compression support in 4.1.0

2001-12-11 Thread Keith Waters

Hi All - I see this feature mentioned in the release notes - It could be a
nice alternative to mod_gzip if it is what I think it is, but there doesnt
seem to be any documentation on it.  Does anybody out there have an idea?

Regards,
Keith




-- 
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] Variable Swap?

2001-12-11 Thread Stefan Rusterholz

Try this (I only tested it shortly if it works with scalars, but it should
also with arrays):
#swap $a, $b
 list($a, $b) = array($b, $a);

Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
--
- Original Message -
From: Bharath Bhushan Lohray [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, December 09, 2001 1:24 PM
Subject: [PHP] Variable Swap?


 Is there a way of swapping the values of two variables without involving a
 third variable.

 something similar to the SWAP(A$,B$) of BASIC

 I have a big variable(array) and I want to keep my script's memory
 requirements as low as possible.

 -Bharath Bhushan Lohray



 --
 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: @file problems w/ remote files

2001-12-11 Thread Joseph Fung

Thanks Tim,

I had aready tried that and it didn't work either - go figure.

I did, however, manage to work around the problem by setting
error_reporting(0) before the operation, then returning error_reporting to
it's previous value, and continuing on my mery way.

Thanks for all the suggestions,

Joseph

-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: December 11, 2001 4:55 AM
To: PHP General Mailing List; Joseph Fung
Subject: [PHP] RE: @file problems w/ remote files


How about wrapping the @file(...); in an if(file_exists(...)) {...}

Doesn't seem to give an error at all , even without the @. I've tested this
on non-existant domain names and with my firewall internet connection
blocked.

Tim
http://www.chessish.com/ http://www.chessish.com/

Thanks for any help - sorry for the miscommunication earlier.

Joseph


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

2001-12-11 Thread sanjay

Hi

Can someone tell me from where can I get the binary file of php so that I
can run php files from the command line of Unix.

Thanks in advance.

Regards
Sanjay



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

2001-12-11 Thread Meir Kriheli

On Tuesday 11 December 2001 10:37, Jordan wrote:
 is there anyway to drag session variables to another server or are they
 server specific?  If you can't drag a session can you do an include for a
 page on a different server giving it's URL?  Just curious.

 -Jordan

That depends, 

You can store session data in a DB instead of files.

All servers sharing session vars should use this DB for session storage. This 
works if the servers are on the same site.

If the server is in some other place that is problem. Allowing access to your 
DB via the 'net is asking for trouble.
-- 
Meir Kriheli

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

2001-12-11 Thread Henrik Hansen

[EMAIL PROTECTED] (Sanjay) wrote:

  Hi

  Can someone tell me from where can I get the binary file of php so that I
  can run php files from the command line of Unix.

if linux check your distribution for binaries if you use another
flavor of unix you need to recompile php with cgi support AFAIK.

-- 
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] Modem using PHP cURL?

2001-12-11 Thread Scott Fletcher

Hi!

Does the cURL software allow the PHP to work with hte modem and stuffs
like that??

Scott



-- 
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: @file problems w/ remote files

2001-12-11 Thread Darren Gamble

Good day,

I had not even noticed the @ character... and you are right, your original
setup should have supressed the message.

Most likely this is a bug; it would be worthwhile to post it on PHP's bug
list to prevent future pain and suffering for people doing the same thing.
=)

Question, though... if the host is resolvable, but the file does not exist,
does the function print an error (with the @ character)?


Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-Original Message-
From: Joseph Fung [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 6:24 AM
To: PHP General Mailing List
Subject: RE: [PHP] RE: @file problems w/ remote files


Thanks Tim,

I had aready tried that and it didn't work either - go figure.

I did, however, manage to work around the problem by setting
error_reporting(0) before the operation, then returning error_reporting to
it's previous value, and continuing on my mery way.

Thanks for all the suggestions,

Joseph

-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: December 11, 2001 4:55 AM
To: PHP General Mailing List; Joseph Fung
Subject: [PHP] RE: @file problems w/ remote files


How about wrapping the @file(...); in an if(file_exists(...)) {...}

Doesn't seem to give an error at all , even without the @. I've tested this
on non-existant domain names and with my firewall internet connection
blocked.

Tim
http://www.chessish.com/ http://www.chessish.com/

Thanks for any help - sorry for the miscommunication earlier.

Joseph


--
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] PHP/Apache/Interbase/Linux

2001-12-11 Thread Todd Cary

I just updated my Linux 7.1 to Linux 7.2 and apparently the version of
Apache that I was running was replaced.  When I execute phpinfo(),
Interbase is not listed.  In the /tmp/php.ini, Interbase is uncommented.

Now this is where I am lost - again!  As I recall, I had to create a
special version of Apache that incorporated Interbase and some kind soul
on this group gave me the steps on how to do this and how to implement
it.

Is there a way to check old messages or is there another person who
could step me through it?  I'll file the message in a binder - I
promise!

Many thanks

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] How to compile PHP-4.1.0 or 4.0.6 with Oracle-9i ?

2001-12-11 Thread Somsak RAKTHAI

Dear sir,
  Now I install Oracle-9i running on RedHat-7.2.

  In php-4.0.6 and php-4.1.0 have option for Oracle-7 or 8 below.

  --with-oci8[=DIR]   Include Oracle-oci8 support. Default DIR is
  ORACLE_HOME.
  --with-oracle[=DIR] Include Oracle-oci7 support.  Default DIR is
  ORACLE_HOME.

  Don't have option for Oracle-9i.
  When I used command below.
  ./configure --with-apache=../apache_1.3.22 \
--with-mysql=/usr/local/mysql \
--with-imap=../imap-2001a \
--with-ldap=/usr/local/openldap \
--with-oci8=/u01/app/oracle/product/9.0.1 \
--enable-sigchild

   It has error messages below.

   checking for Oracle-OCI8 support... yes
   checking Oracle Install-Dir... /u01/app/oracle/product/9.0.1
   checking Oracle version... configure: error: Oracle-OCI8 needed
libraries not found

   I want to compile PHP with Oracle-9i.
   Please let me know more detail how to solve this problem ?
   thank you very much.
   regards,
   Somsak.


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

2001-12-11 Thread Brian V Bonini

Why is this:

?php
$modified = stat(header.php);
echo Last Modified: .date(F j, Y, g:i a,$modified[9]);
?

returning this:

Last Modified: December 31, 1969, 7:00 pm

from this:

-rw-r--r--  1 gfxdesi  vuser  1196 Dec 11 09:22 header.php

Anyone?

-- 
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 get week number from date

2001-12-11 Thread Nick Ward

Hello,

First of all I am very new to PHP so if I am asking something very obvious
then I apologise.  I am writing a time-sheet application for a division of
our company and we book all time by week number.  Is it possible to get PHP
to work out the week number (1-53) from the current date.

Any help and advice would be greatly appreciated.

Regards

Nick Ward


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

2001-12-11 Thread Max

Hi,

If I use die or exit() it break execution of php script but also
browswer stop parsing html code. How to avoid this?

Regards.Max.

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

2001-12-11 Thread Attila Strauss

Hi

simply recompile ur php _without_ the config options
--with-apxs
or
--with-apache ...

thats it

best regards
attila strauss



   Hi
 
   Can someone tell me from where can I get the binary file of php so that
I
   can run php files from the command line of Unix.

 if linux check your distribution for binaries if you use another
 flavor of unix you need to recompile php with cgi support AFAIK.

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

2001-12-11 Thread Jon Haworth

 Hi,
 
 If I use die or exit() it break execution of php script but also
 browswer stop parsing html code. How to avoid this?
 

Use proper error handling instead of die()?

Let's face it, die() is for when your script needs to, well, die

Cheers
Jon


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

2001-12-11 Thread Jon Haworth

Well, 1st Jan 1970 is the start of the Unix epoch (i.e. what you'd get for
doing a date() on a timestamp of 0). Seeing as 31st Dec 1969 is fairly close
to this, it's worth checking that header.php exists and that your stat()
call isn't returning null or a negative.

if (file_exists (header.php)) { 
  $modified = stat (header.php);
  echo Last modified: .date(F j, Y, g:i a,$modified[9]);
} else {
  echo Can't find header.php!;
}

You could also try with stat(/complete/path/to/header.php);

HTH
Jon


-Original Message-
From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
Sent: 11 December 2001 14:35
To: PHP Lists
Subject: [PHP] Date


Why is this:

?php
$modified = stat(header.php);
echo Last Modified: .date(F j, Y, g:i a,$modified[9]);
?

returning this:

Last Modified: December 31, 1969, 7:00 pm

from this:

-rw-r--r--  1 gfxdesi  vuser  1196 Dec 11 09:22 header.php

Anyone?

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

2001-12-11 Thread Anthony

I need some help with sessions.  I read the sections in the manual and 
searched for tutorials, but I still can't get a straight forward example 
of how sessions work.  I need to pass variables to a page that will load 
in a new browser window.  I used session_register, but when I look in 
the $HTTP_SESSION_VARS, it doesn't exist.  I tried using start_session 
and still no luck.  Once I get the session vars registered, how do I 
access them.  I am able to pass the session id as a var, I'm going it 
like page.php?sid=$sid_var.  Is there a better way, do I need to do 
this at all?  I'm confused as hell and can't find a working example 
anywhere. Help!

- Anthony


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

2001-12-11 Thread PACKER, Steffan

You need to have
 
session_start();

at the top of each page that needs to use the session vars, also check that
session.use_trans_sid is set to 1 in your ini file
hope this helps!

-Original Message-
From: Anthony [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 3:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] sessions


I need some help with sessions.  I read the sections in the manual and 
searched for tutorials, but I still can't get a straight forward example 
of how sessions work.  I need to pass variables to a page that will load 
in a new browser window.  I used session_register, but when I look in 
the $HTTP_SESSION_VARS, it doesn't exist.  I tried using start_session 
and still no luck.  Once I get the session vars registered, how do I 
access them.  I am able to pass the session id as a var, I'm going it 
like page.php?sid=$sid_var.  Is there a better way, do I need to do 
this at all?  I'm confused as hell and can't find a working example 
anywhere. Help!

- Anthony


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


_
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp



DISCLAIMER

Any opinions expressed in this email are those of the individual
and not necessarily the company.  This email and any files 
transmitted with it, including replies and forwarded copies (which
may contain alterations) subsequently transmitted from the 
Company, are confidential and solely for the use of the intended
recipient.  It may contain material protected by attorney-client
privilege.  If you are not the intended recipient or the person
responsible for delivering to the intended recipient, be advised
that you have received this email in error and that any use is
strictly prohibited.

If you have received this email in error please notify the Network
Manager by telephone on +44 (0) 870 243 2431.

Please then delete this email and destroy any copies of it.
This email has been swept for viruses before leaving our system.

Admiral Insurance Services Limited, Cardiff CF10 3AZ



_
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp



Re: [PHP] How to get week number from date

2001-12-11 Thread Shane Wright


Actually, this is in PHP 4.1.0 which has just been released...

..here's the line from the changelog:

Added 'W' flag to date() function to return week number of year using ISO 
8601 standard. (Colin)

--
Shane

On Tuesday 11 Dec 2001 3:37 pm, Nick Ward wrote:
 Hello,

 First of all I am very new to PHP so if I am asking something very obvious
 then I apologise.  I am writing a time-sheet application for a division of
 our company and we book all time by week number.  Is it possible to get PHP
 to work out the week number (1-53) from the current date.

 Any help and advice would be greatly appreciated.

 Regards

 Nick Ward

-- 
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/Apache/Interbase/Linux

2001-12-11 Thread Douglas McKenzie

Theres a mail archive on the php site that you can search through if I 
remember correctly

Todd Cary wrote:

I just updated my Linux 7.1 to Linux 7.2 and apparently the version of
Apache that I was running was replaced.  When I execute phpinfo(),
Interbase is not listed.  In the /tmp/php.ini, Interbase is uncommented.

Now this is where I am lost - again!  As I recall, I had to create a
special version of Apache that incorporated Interbase and some kind soul
on this group gave me the steps on how to do this and how to implement
it.

Is there a way to check old messages or is there another person who
could step me through it?  I'll file the message in a binder - I
promise!

Many thanks

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]




Re: [PHP] sessions

2001-12-11 Thread Anthony

thanks for the starter.  I have session.use_trans_sid = 1 in my php.ini, 
I also have session_start() at the beginning of both pages.  Now 
$HTTP_SESSION_VARS is there, but its a blank array. 
print_r($HTTP_SESSION_VARS); yields-  Array ( )
the code I have at one page is
$z=some data;
session_start();
session_register('$z');
I also tried without the quotes, still a blank array.  What am I doing 
wrong?  How do I make sure I'm starting the correct session in the new 
page?  I can get the session ID, but what do I do with it?



Steffan Packer wrote:

 You need to have
  
 session_start();
 
 at the top of each page that needs to use the session vars, also check that
 session.use_trans_sid is set to 1 in your ini file
 hope this helps!
 
 -Original Message-
 From: Anthony [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 11, 2001 3:54 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] sessions
 
 
 I need some help with sessions.  I read the sections in the manual and 
 searched for tutorials, but I still can't get a straight forward example 
 of how sessions work.  I need to pass variables to a page that will load 
 in a new browser window.  I used session_register, but when I look in 
 the $HTTP_SESSION_VARS, it doesn't exist.  I tried using start_session 
 and still no luck.  Once I get the session vars registered, how do I 
 access them.  I am able to pass the session id as a var, I'm going it 
 like page.php?sid=$sid_var.  Is there a better way, do I need to do 
 this at all?  I'm confused as hell and can't find a working example 
 anywhere. Help!
 
 - Anthony
 
 
 


-- 
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] Branching to a page

2001-12-11 Thread Todd Cary

I open a socket if I am in the middle of a php script to branch to a
page so that I can send the header information.  However, I understand
that this is not how most php programmers do it.  Could someone share
with me the way it is done with php?

In more detail, this is how I structure a page:

1) The Form calls itself - the same page.

2) At the top of the page, I do my validation and I may check to see if
a Cancel button was pressed.

3) Depending on the circumstances, I branch to another page.

  /* Example: was the Cancel button pressed?
 If so, branch to redirect page */
  if (!empty($cancel)) {
$http = new http;
$fp = $http-http_fget($server, $path .
redirect.php,);
if($fp) {
  print 'BASE HREF=' . $url .
  'redirect.phpp';
  fpassthru($fp);
  exit;
}
  }

Many thanks.

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] Re: Die

2001-12-11 Thread Jeremy Reed

Use IF statements to group code, and only use exit() statements when you
want to stop execution/parsing.


Max [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 If I use die or exit() it break execution of php script but also
 browswer stop parsing html code. How to avoid this?

 Regards.Max.



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

2001-12-11 Thread Rodney Davis

If I already have php compiled and running on my server, how can I add
the pdfLib.  Do I have to compile again?

Thanks,

rodney



Re: [PHP] what is Trans-sid in PHP

2001-12-11 Thread John King

Ahh, Thanks. Ok I don't see it so it must not be enabled. PHP is installed
through my WebHost so to get this enabled I call them and ask if it's
possible?

Or is there a way for me to enable it without access to the server?






on 12/11/01 1:19 AM, Jon Niola at [EMAIL PROTECTED] wrote:

 When you doa  phpinfo()  look at the top block. you will probably see
 something like ./configure --enable-track-vars --enable-trans-sid etc. If
 it is not here your PHP module was not compiled with trans-sid enabled.
 
 --Jon
 
 At 09:13 PM 12/10/2001 -0500, John King wrote:
 Running a script that requires:
 
 Trans-sid enabled in php
 
 How would I find if this is enabled or disabled? Did a phpinfo() on the
 server but could not find this? Was it a misprint?
 
 Thanks,
 
 John
 
 --
 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] deleting file contents

2001-12-11 Thread DigitalKoala

Hi Everyone,

I'm running a script that automatically reads lines from
/var/mail/myaccount, parses the lines then insert specific items into a
database this is in a loop

What i want to do is then delete the contents of the file, but not the file
itself...can you tell me the best way to do this?

many thanks
anna





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

2001-12-11 Thread Anthony

Thank you very much, I got it to work.  What I didn't understand was 
that when registering the session var I was not registering the var's 
value, only the pointer.  This makes all kinds of sence now.  Thanks!

- Anthony

Steffan Packer wrote:

 You need to have
  
 session_start();
 
 at the top of each page that needs to use the session vars, also check that
 session.use_trans_sid is set to 1 in your ini file
 hope this helps!
 
 -Original Message-
 From: Anthony [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 11, 2001 3:54 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] sessions
 
 
 I need some help with sessions.  I read the sections in the manual and 
 searched for tutorials, but I still can't get a straight forward example 
 of how sessions work.  I need to pass variables to a page that will load 
 in a new browser window.  I used session_register, but when I look in 
 the $HTTP_SESSION_VARS, it doesn't exist.  I tried using start_session 
 and still no luck.  Once I get the session vars registered, how do I 
 access them.  I am able to pass the session id as a var, I'm going it 
 like page.php?sid=$sid_var.  Is there a better way, do I need to do 
 this at all?  I'm confused as hell and can't find a working example 
 anywhere. Help!
 
 - Anthony
 
 
 


-- 
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] deleting file contents

2001-12-11 Thread Kurt Lieber

On Tuesday 11 December 2001 09:00 am, DigitalKoala wrote:
 What i want to do is then delete the contents of the file, but not the file
 itself...can you tell me the best way to do this?

Well, you can read the contents of the original file into a PHP variable 
using fopen().  Then, use something like ereg_replace to find what you're 
looking for and delete it (replace it with nothing) and the fwrite the file 
back out.  You'll also want to make sure you use flock() to lock the file 
prior to opening it.  Otherwise, you'll run into problems if your MTA tries 
to deliver another message at the same time.

Make sure you understand about unix file locking before you try this on a 
production mailbox -- you have to use the same method of file locking as your 
MTA uses.  Otherwise, Bad Things can happen. :)

Honestly, I'd say you'd be better off using something like procmail or even 
perl for this.  Procmail is designed to muck around with mail spool files and 
Perl is better suited for unix file handling and manipulation, IMO.

That said, I'm sure it can be done in PHP, so best of luck if you decide to 
go ahead with it.

hth

--kurt


-- 
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] deleting file contents

2001-12-11 Thread Krzysztof Kocjan

recreate it, for example:
%
exec( 'type  your_file_name' );
%

Krzysztof

DigitalKoala wrote:

 Hi Everyone,
 
 I'm running a script that automatically reads lines from
 /var/mail/myaccount, parses the lines then insert specific items into a
 database this is in a loop
 
 What i want to do is then delete the contents of the file, but not the file
 itself...can you tell me the best way to do this?
 
 many thanks
 anna
 
 
 
 
 
 



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




AW: [PHP] How to get week number from date

2001-12-11 Thread Ulrich Hacke


 Actually, this is in PHP 4.1.0 which has just been released...
 
 ..here's the line from the changelog:
 
 Added 'W' flag to date() function to return week number of year 
 using ISO 
 8601 standard. (Colin)

If you have an older version you can use this line:

$week_number = strftime(%V, $timestamp);

Yours, Uli

-- 
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] Accessing PHP archieve

2001-12-11 Thread Todd Cary

Is there an archieve for this list server?

If so, I do I access it?

Many thanks..

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] array_walk in obejct

2001-12-11 Thread marcbey

hi,

whats about using the array_walk function within an object?
php says that there is no callback function.

do you have an idea?

thx,
marcbey

-- 
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] Accessing PHP archieve

2001-12-11 Thread Miles Thompson

Check the support area of php.net, there's a newsgroup, which is never 
purged, and a link to the archive.
Miles

At 09:56 AM 12/11/2001 -0800, Todd Cary wrote:
Is there an archieve for this list server?

If so, I do I access it?

Many thanks..

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] mailparse_* functions

2001-12-11 Thread Morten Winther

Hello there,

When will documentation on the mailparse_* functions be available?

I found these on the Zend website:

mailparse_determine_best_xfer_encoding
mailparse_msg_create
mailparse_msg_extract_part
mailparse_msg_extract_part_file
mailparse_msg_free
mailparse_msg_get_part
mailparse_msg_get_part_data
mailparse_msg_get_structure
mailparse_msg_parse
mailparse_msg_parse_file
mailparse_rfc822_parse_addresses
mailparse_stream_encode
mailparse_uudecode_all


Best regards

/ morten



-- 
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] File Name and Path

2001-12-11 Thread pong-TC

Hello Listers

I have a question on how to get the full path of source file.  I have a
form like this:

form enctype=multipart/form-data action=myupload.php method=post
input type=hidden name=MAX_FILE_SIZE value=1
Send this file:br input name=userfile type=filebr
input type=submit value=Send File
/form

I pass the request to myupload.php.  If my source file's path is
c:/result.txt, how can I know it in myupload.php?  I know that I can get
the file name result.txt, but I don't know how to get the full path.  

Anyone, please help.

Pong


-- 
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 4.1.0 actually out this time -- questions about zend products

2001-12-11 Thread Mike Eheler

Does anyone here subscribe to the Zend developer's suite? We have the 
optimizer and debugger installed with a 4.0.5 installation and are 
looking into upgrading to 4.1.0 but being a production machine, we don't 
want to do anything that would jeopardize the stability of the machine. 
Has anyone here had experience using PHP 4.1 with the optimizer and 
debugger?

Mike


-- 
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: deleting file contents

2001-12-11 Thread Mike Eheler

$fp = fopen('/var/mail/myaccount','w');
fwrite($fp,'');
fclose($fp);

that could work. I was going to suggest doing:
unlink('/var/mail/myaccount');
touch('/var/mail/myaccount');

But I assume that since you're against deleting it, then there must be 
some sort of permissions in place that you don't want changed.

Mike

--
Sex is like air. It's not important unless you're not getting any.
   -- Unknown

Digitalkoala wrote:

 Hi Everyone,
 
 I'm running a script that automatically reads lines from
 /var/mail/myaccount, parses the lines then insert specific items into a
 database this is in a loop
 
 What i want to do is then delete the contents of the file, but not the file
 itself...can you tell me the best way to do this?
 
 many thanks
 anna
 
 
 
 
 


-- 
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: File Name and Path

2001-12-11 Thread Mike Eheler

Do a variable dump and see if any variables have that value:

pre?php print_r(get_defined_vars()) ?/pre

Mike

Pong-Tc wrote:

 Hello Listers
 
 I have a question on how to get the full path of source file.  I have a
 form like this:
 
 form enctype=multipart/form-data action=myupload.php method=post
 input type=hidden name=MAX_FILE_SIZE value=1
 Send this file:br input name=userfile type=filebr
 input type=submit value=Send File
 /form
 
 I pass the request to myupload.php.  If my source file's path is
 c:/result.txt, how can I know it in myupload.php?  I know that I can get
 the file name result.txt, but I don't know how to get the full path.  
 
 Anyone, please help.
 
 Pong
 
 


-- 
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] Emailing attachments upload to a form

2001-12-11 Thread Ben Clumeck

When I use the script to upload an attachment to my form it does not email
the attachment.  I am using the mail() function to email the results of the
form to me. Is there any other code I need to put in my mail() function to
make this work, if so where would I put it?

I am currently using the following code:
?
mail ([EMAIL PROTECTED], Form Results, Name: $name\nMessage:
$message\nAttachment: $attachment, From: $fromemail);
?

Thanks,

Ben

-- 
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] Version 4.1.0's New Input Mechanism

2001-12-11 Thread Rasmus Lerdorf

 The arrays $_GET, $_POST, $_COOKIE, $_SERVER contain exactly the same data 
 as the arrays $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, 
 $HTTP_SERVER_VARS. Try this to see for yourself:

Yes, the new names are just to give people a shorter auto-global mechanism 
to access this same data.

 May I ask why? What is the problem with the 'traditional' $HTTP_*_VARS 
 arrays? Are these arrays going to be depreciated in the next version too?

Nope, they will be kept.

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

2001-12-11 Thread Andrew Chase

Maybe an animal beginning with P would be a good Mnemonic device (and good
for alliteration; think The PHP Panda or The PHP Platypus.)  Hmm, I
guess Panda and Platypus aren't particularly powerful animals, though. :/

Other animals beginning with P:

Pelican
Panther (cheesy)
Polliwog
Protozoa

Of course, the Penguin is already spoken for. :)

Personally, I don't have a problem with the current PHP logo... From a
marketing standpoint, I don't know; has MySQL become a more attractive
prospect to the pointy haired bosses of the world since they streamlined
their logo and added a Dolphin?  It would be interesting to know.

If PHP was going to adopt a mascot, I kinda like the idea of the Platypus.
If you want to force a metaphor, think of PHP as an interesting language
that fits between traditional scripting languages and the HTTP server - sort
of like the Platypus is an interesting critter that fits somewhere between
mammal and.. whatever else. :)

-Andy


 -Original Message-
 From: Tim Ward [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 11, 2001 2:02 AM
 To: PHP; Valentin V. Petruchek
 Subject: RE: [PHP] Logo proposal


 Chinchillas are fluffy, and I don't think anyone is using them for their
 logo.

   --
   From:  Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]]
   Sent:  10 December 2001 16:58
   To:  PHP
   Subject:  [PHP] Logo proposal

   Hello world of php-programmers!

   It seemes to me PHP is very powerful tool and very popular among
   web-programmers, too. As for me I use php for solving web tasks for
 2 years
   and I'm very satisfied with it.

   It seemes to me current PHP logo (can be found by
   http://www.php.net/gifs/logo.gif) doesn't suite to PHP. It's common
 logo
   without any idea except using title in it.

   I propose to create and develop new PHP logo corresponding to its
 power.

   My propose is WoodPecker (e.g. like Woody).

   Other propositions?

   Respectfully, Zliy Pes http://www.zliypes.com.ua








-- 
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: Emailing attachments upload to a form

2001-12-11 Thread Mike Eheler

Yeah.. code to divide the message into multiple parts, base64_encode the 
file, and attach it that way.

I suggest looking for some kind of Email class that can do that for you. 
Try http://phpclasses.upperdesign.net/

Mike

Ben Clumeck wrote:

 When I use the script to upload an attachment to my form it does not email
 the attachment.  I am using the mail() function to email the results of the
 form to me. Is there any other code I need to put in my mail() function to
 make this work, if so where would I put it?
 
 I am currently using the following code:
 ?
 mail ([EMAIL PROTECTED], Form Results, Name: $name\nMessage:
 $message\nAttachment: $attachment, From: $fromemail);
 ?
 
 Thanks,
 
 Ben
 


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

2001-12-11 Thread Dan McCullough

But for the use of visualization you might want to pick something friendly and fast, 
so they think
of PHP in that way, instead of strange and slow.
--- Andrew Chase [EMAIL PROTECTED] wrote:
 Maybe an animal beginning with P would be a good Mnemonic device (and good
 for alliteration; think The PHP Panda or The PHP Platypus.)  Hmm, I
 guess Panda and Platypus aren't particularly powerful animals, though. :/
 
 Other animals beginning with P:
 
 Pelican
 Panther (cheesy)
 Polliwog
 Protozoa
 
 Of course, the Penguin is already spoken for. :)
 
 Personally, I don't have a problem with the current PHP logo... From a
 marketing standpoint, I don't know; has MySQL become a more attractive
 prospect to the pointy haired bosses of the world since they streamlined
 their logo and added a Dolphin?  It would be interesting to know.
 
 If PHP was going to adopt a mascot, I kinda like the idea of the Platypus.
 If you want to force a metaphor, think of PHP as an interesting language
 that fits between traditional scripting languages and the HTTP server - sort
 of like the Platypus is an interesting critter that fits somewhere between
 mammal and.. whatever else. :)
 
 -Andy
 
 
  -Original Message-
  From: Tim Ward [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 11, 2001 2:02 AM
  To: PHP; Valentin V. Petruchek
  Subject: RE: [PHP] Logo proposal
 
 
  Chinchillas are fluffy, and I don't think anyone is using them for their
  logo.
 
  --
  From:  Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]]
  Sent:  10 December 2001 16:58
  To:  PHP
  Subject:  [PHP] Logo proposal
 
  Hello world of php-programmers!
 
  It seemes to me PHP is very powerful tool and very popular among
  web-programmers, too. As for me I use php for solving web tasks for
  2 years
  and I'm very satisfied with it.
 
  It seemes to me current PHP logo (can be found by
  http://www.php.net/gifs/logo.gif) doesn't suite to PHP. It's common
  logo
  without any idea except using title in it.
 
  I propose to create and develop new PHP logo corresponding to its
  power.
 
  My propose is WoodPecker (e.g. like Woody).
 
  Other propositions?
 
  Respectfully, Zliy Pes http://www.zliypes.com.ua
 
 
 
 
 
 
 
 
 -- 
 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]
 


=
dan mccullough

Theres no such thing as a problem unless the servers are on fire!


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at 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] Re: PHP 4.1.0 actually out this time -- questions about zend products

2001-12-11 Thread J Smith


We have the developer suite at my work, and as far as I know, the 
Optimizer, Debug Server, Encoder, etc. don't work with 4.1.0 at all. When 
you try using the Optimizer, for instance, it spits out a line in your 
Apache log (or whatever log) saying that this version of the Optimizer is 
for Zend Engine blah blah, go to Zend.com to upgrade, or something to that 
effect.

Hopefully when you buy the suite you get access to updated versions of the 
software that are compatible with 4.1.0, otherwise, it's going to suck for 
us, since we use some of the new features in 4.1.0 in the app we're 
writing. It would seem like a waste of money in our case, as we're dropping 
4.0.6, and that's all the Developer Suite we have covers at the moment. We 
used to use 4.0.6 on an older version of this thing we're developing, but 
there were enough nicities in 4.1.0 that I decided to start using the dev 
versions and RCs for 4.0.7/4.1.0, just so we'd be up-to-date when 4.1.0 
actually came out.

J



Mike Eheler wrote:

 Does anyone here subscribe to the Zend developer's suite? We have the
 optimizer and debugger installed with a 4.0.5 installation and are
 looking into upgrading to 4.1.0 but being a production machine, we don't
 want to do anything that would jeopardize the stability of the machine.
 Has anyone here had experience using PHP 4.1 with the optimizer and
 debugger?
 
 Mike


-- 
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] Do gd/ming/other libraries work with php 4.1?

2001-12-11 Thread Joelmon2001

Might sound silly, I don't know anything about this 4.1 version

Anything I need to know about, can I still install libraries and then untar 
php and use:
./configure--with this and that and this and that?

Any new features? Or is all this new info in the .gz file?

Just wondering, thanks for your time

Joel



[PHP] Class methods and inheritance...

2001-12-11 Thread Steve Cayford

Hi. Is there a way to find the class name of a method when called in the 
class::method() format? If called on an object (eg. object-method()) I 
could just ask for get_class($this), but when called as class::method(), 
$this should not be defined. Anyway around this?

Thanks.

-Steve


-- 
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 4.1.0 actually out this time -- questions about zend products

2001-12-11 Thread J Smith

Seconds after I write this, I see on zend.com that the Optimizer has a new 
version for 4.1.0. Don't see anything about the Debug Server. I'm going to 
give the Optimizer a whirl and see if stuff encoded with our old Encoder 
word with 4.1.0...

J



J Smith wrote:

 
 We have the developer suite at my work, and as far as I know, the
 Optimizer, Debug Server, Encoder, etc. don't work with 4.1.0 at all. When
 you try using the Optimizer, for instance, it spits out a line in your
 Apache log (or whatever log) saying that this version of the Optimizer is
 for Zend Engine blah blah, go to Zend.com to upgrade, or something to
 that effect.
 
 Hopefully when you buy the suite you get access to updated versions of the
 software that are compatible with 4.1.0, otherwise, it's going to suck for
 us, since we use some of the new features in 4.1.0 in the app we're
 writing. It would seem like a waste of money in our case, as we're
 dropping 4.0.6, and that's all the Developer Suite we have covers at the
 moment. We used to use 4.0.6 on an older version of this thing we're
 developing, but there were enough nicities in 4.1.0 that I decided to
 start using the dev versions and RCs for 4.0.7/4.1.0, just so we'd be
 up-to-date when 4.1.0 actually came out.
 
 J
 
 


-- 
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 compile PHP-4.1.0 or 4.0.6 with Oracle-9i ?

2001-12-11 Thread Thies C. Arntzen

On Tue, Dec 11, 2001 at 10:38:26PM +0700, Somsak RAKTHAI wrote:
 Dear sir,
   Now I install Oracle-9i running on RedHat-7.2.
 
   In php-4.0.6 and php-4.1.0 have option for Oracle-7 or 8 below.
 
   --with-oci8[=DIR]   Include Oracle-oci8 support. Default DIR is
   ORACLE_HOME.
   --with-oracle[=DIR] Include Oracle-oci7 support.  Default DIR is
   ORACLE_HOME.
 
   Don't have option for Oracle-9i.
   When I used command below.
   ./configure --with-apache=../apache_1.3.22 \
 --with-mysql=/usr/local/mysql \
 --with-imap=../imap-2001a \
 --with-ldap=/usr/local/openldap \
 --with-oci8=/u01/app/oracle/product/9.0.1 \
 --enable-sigchild
 
It has error messages below.
 
checking for Oracle-OCI8 support... yes
checking Oracle Install-Dir... /u01/app/oracle/product/9.0.1
checking Oracle version... configure: error: Oracle-OCI8 needed
 libraries not found
 
I want to compile PHP with Oracle-9i.
Please let me know more detail how to solve this problem ?

pelase send me teh output of

ls /u01/app/oracle/product/9.0.1/lib/libclntsh*

re,

tc

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

2001-12-11 Thread David Minor

Well, there goes my idea of a piranha! How about a puffin?? :)

Dan McCullough wrote:
But for the use of visualization you might want to pick something friendly and fast, 
so they think
of PHP in that way, instead of strange and slow.
--- Andrew Chase [EMAIL PROTECTED] wrote:
 Maybe an animal beginning with P would be a good Mnemonic device (and good
 for alliteration; think The PHP Panda or The PHP Platypus.)  Hmm, I
 guess Panda and Platypus aren't particularly powerful animals, though. :/
 
 Other animals beginning with P:
 
 Pelican
 Panther (cheesy)
 Polliwog
 Protozoa
 
 Of course, the Penguin is already spoken for. :)
 
 Personally, I don't have a problem with the current PHP logo... From a
 marketing standpoint, I don't know; has MySQL become a more attractive
 prospect to the pointy haired bosses of the world since they streamlined
 their logo and added a Dolphin?  It would be interesting to know.
 
 If PHP was going to adopt a mascot, I kinda like the idea of the Platypus.
 If you want to force a metaphor, think of PHP as an interesting language
 that fits between traditional scripting languages and the HTTP server - sort
 of like the Platypus is an interesting critter that fits somewhere between
 mammal and.. whatever else. :)
 
 -Andy
 
 
  -Original Message-
  From: Tim Ward [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 11, 2001 2:02 AM
  To: PHP; Valentin V. Petruchek
  Subject: RE: [PHP] Logo proposal
 
 
  Chinchillas are fluffy, and I don't think anyone is using them for their
  logo.
 
 --
 From:  Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]]
 Sent:  10 December 2001 16:58
 To:  PHP
 Subject:  [PHP] Logo proposal
 
 Hello world of php-programmers!
 
 It seemes to me PHP is very powerful tool and very popular among
 web-programmers, too. As for me I use php for solving web tasks for
  2 years
 and I'm very satisfied with it.
 
 It seemes to me current PHP logo (can be found by
 http://www.php.net/gifs/logo.gif) doesn't suite to PHP. It's common
  logo
 without any idea except using title in it.
 
 I propose to create and develop new PHP logo corresponding to its
  power.
 
 My propose is WoodPecker (e.g. like Woody).
 
 Other propositions?
 
 Respectfully, Zliy Pes http://www.zliypes.com.ua
 
 
 
 
 
 
 
 
 -- 
 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]
 


=
dan mccullough

Theres no such thing as a problem unless the servers are on fire!


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at 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] Logo proposal

2001-12-11 Thread Hugh Danaher

How about a porpoise.  They're fast, intelligent, and as Lewis Carol said,
you shouldn't go anywhere without a porpoise.
- Original Message -
From: Dan McCullough [EMAIL PROTECTED]
To: PHP General List [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 11:38 AM
Subject: RE: [PHP] Logo proposal


 But for the use of visualization you might want to pick something friendly
and fast, so they think
 of PHP in that way, instead of strange and slow.
 --- Andrew Chase [EMAIL PROTECTED] wrote:
  Maybe an animal beginning with P would be a good Mnemonic device (and
good
  for alliteration; think The PHP Panda or The PHP Platypus.)  Hmm, I
  guess Panda and Platypus aren't particularly powerful animals, though.
:/
 
  Other animals beginning with P:
 
  Pelican
  Panther (cheesy)
  Polliwog
  Protozoa
 
  Of course, the Penguin is already spoken for. :)
 
  Personally, I don't have a problem with the current PHP logo... From a
  marketing standpoint, I don't know; has MySQL become a more attractive
  prospect to the pointy haired bosses of the world since they streamlined
  their logo and added a Dolphin?  It would be interesting to know.
 
  If PHP was going to adopt a mascot, I kinda like the idea of the
Platypus.
  If you want to force a metaphor, think of PHP as an interesting language
  that fits between traditional scripting languages and the HTTP server -
sort
  of like the Platypus is an interesting critter that fits somewhere
between
  mammal and.. whatever else. :)
 
  -Andy
 
 
   -Original Message-
   From: Tim Ward [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, December 11, 2001 2:02 AM
   To: PHP; Valentin V. Petruchek
   Subject: RE: [PHP] Logo proposal
  
  
   Chinchillas are fluffy, and I don't think anyone is using them for
their
   logo.
  
   --
   From:  Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]]
   Sent:  10 December 2001 16:58
   To:  PHP
   Subject:  [PHP] Logo proposal
  
   Hello world of php-programmers!
  
   It seemes to me PHP is very powerful tool and very popular among
   web-programmers, too. As for me I use php for solving web tasks for
   2 years
   and I'm very satisfied with it.
  
   It seemes to me current PHP logo (can be found by
   http://www.php.net/gifs/logo.gif) doesn't suite to PHP. It's common
   logo
   without any idea except using title in it.
  
   I propose to create and develop new PHP logo corresponding to its
   power.
  
   My propose is WoodPecker (e.g. like Woody).
  
   Other propositions?
  
   Respectfully, Zliy Pes http://www.zliypes.com.ua
  
  
  
  
  
  
 
 
  --
  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]
 


 =
 dan mccullough
 
 Theres no such thing as a problem unless the servers are on fire!


 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at 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] Logo proposal

2001-12-11 Thread Joshua Hoover

How about a Beaver?  They're small, fast, and efficient.

Joshua Hoover

 How about a porpoise.  They're fast, intelligent, and as Lewis Carol said,
 you shouldn't go anywhere without a porpoise.


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

2001-12-11 Thread Jaxon

how about a python?
oh wait...


 -Original Message-
 From: Hugh Danaher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 11, 2001 3:34 PM
 To: Dan McCullough
 Cc: Php-General
 Subject: Re: [PHP] Logo proposal


 How about a porpoise.  They're fast, intelligent, and as Lewis Carol said,
 you shouldn't go anywhere without a porpoise.
 - Original Message -
 From: Dan McCullough [EMAIL PROTECTED]
 To: PHP General List [EMAIL PROTECTED]
 Sent: Tuesday, December 11, 2001 11:38 AM
 Subject: RE: [PHP] Logo proposal


  But for the use of visualization you might want to pick
 something friendly
 and fast, so they think
  of PHP in that way, instead of strange and slow.
  --- Andrew Chase [EMAIL PROTECTED] wrote:
   Maybe an animal beginning with P would be a good Mnemonic
 device (and
 good
   for alliteration; think The PHP Panda or The PHP
 Platypus.)  Hmm, I
   guess Panda and Platypus aren't particularly powerful
 animals, though.
 :/
  
   Other animals beginning with P:
  
   Pelican
   Panther (cheesy)
   Polliwog
   Protozoa
  
   Of course, the Penguin is already spoken for. :)
  
   Personally, I don't have a problem with the current PHP logo... From a
   marketing standpoint, I don't know; has MySQL become a more attractive
   prospect to the pointy haired bosses of the world since they
 streamlined
   their logo and added a Dolphin?  It would be interesting to know.
  
   If PHP was going to adopt a mascot, I kinda like the idea of the
 Platypus.
   If you want to force a metaphor, think of PHP as an
 interesting language
   that fits between traditional scripting languages and the
 HTTP server -
 sort
   of like the Platypus is an interesting critter that fits somewhere
 between
   mammal and.. whatever else. :)
  
   -Andy
  
  
-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 2:02 AM
To: PHP; Valentin V. Petruchek
Subject: RE: [PHP] Logo proposal
   
   
Chinchillas are fluffy, and I don't think anyone is using them for
 their
logo.
   
--
From:  Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]]
Sent:  10 December 2001 16:58
To:  PHP
Subject:  [PHP] Logo proposal
   
Hello world of php-programmers!
   
It seemes to me PHP is very powerful tool and very popular among
web-programmers, too. As for me I use php for solving web tasks for
2 years
and I'm very satisfied with it.
   
It seemes to me current PHP logo (can be found by
http://www.php.net/gifs/logo.gif) doesn't suite to PHP. It's common
logo
without any idea except using title in it.
   
I propose to create and develop new PHP logo corresponding to its
power.
   
My propose is WoodPecker (e.g. like Woody).
   
Other propositions?
   
Respectfully, Zliy Pes http://www.zliypes.com.ua
   
   
   
   
   
   
  
  
   --
   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]
  
 
 
  =
  dan mccullough
  
  Theres no such thing as a problem unless the servers are on fire!
 
 
  __
  Do You Yahoo!?
  Check out Yahoo! Shopping and Yahoo! Auctions for all of
  your unique holiday gifts! Buy at http://shopping.yahoo.com
  or bid at 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]






-- 
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] Get Hours/Mins/Secs between two timestamps?

2001-12-11 Thread Kevin Stone

Sorry if this sounds like an extremely amature question.  :)

Is there a function in PHP that will output the difference between two timestamps 
(hours/mins/secs), similar in the way that getdate() extracts the date of a timestamp? 
 Thank you.

-Kevin Stone



[PHP] replacing Carriage Return

2001-12-11 Thread phantom

I solicit information from a text field and save the data in mysql to be 
pulled out later and displayed as text on a webpage.

However, Carrage Returns in the text field do not appear in the webpage 
text.

With ereg_replace() I can replace the Carriage Returns with  \n, so 
what is this the character I need to find in the text field to replace? 
 chr(13) ???

ereg_replace(chr(13), \n, $TextFieldData) 

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]




[PHP] error with php 4.1

2001-12-11 Thread Jan Grafström

Hi!
My webhost has just updated to PHP 4.1 and now this loggin script does not
work.
 I get page can´t be found...
---
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $st_LOGIN) 
($PHP_AUTH_PW == $st_PASSWORD )) )
{
  header(WWW-Authenticate: Basic entrer=\Admin Basta\);
  header(HTTP/1.0 401 Unauthorized);
  echo Access in-autorizado...;
  exit;
}
It worked well under PHP 4.04.
Anbody knows why?

Thanks in advance for any help.
Regards,
Jan


--
Jan Grafström
Lillemans Hus AB
Sweden
46 (0)611-60920
46 (0)70-6409073


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

2001-12-11 Thread phantom

What would be an easy what to format a date value into month day year??
I want to specially display a date stored in mysql in date format
-MM-DD

The manual says: string date (string format, int [timestamp])

I tried $FormattedDate = date(F y, Y,${StoredDate})

1999-04-15 spit out December 31, 1969 when I had hoped for April 15,
1999.

Apparently -MM-DD is not a valid timestamp... i tried mysql formats
of timestamp(8) and timestamp(14) and that didn't work either




-- 
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] replacing Carriage Return

2001-12-11 Thread Kevin Stone

Could be \r?  I'm not sure about this becuase I haven't tried it.  I know
that \r is used as the return character in other OSs.

-Kevin Stone

- Original Message -
From: phantom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 1:31 PM
Subject: [PHP] replacing Carriage Return


 I solicit information from a text field and save the data in mysql to be
 pulled out later and displayed as text on a webpage.

 However, Carrage Returns in the text field do not appear in the webpage
 text.

 With ereg_replace() I can replace the Carriage Returns with  \n, so
 what is this the character I need to find in the text field to replace?
  chr(13) ???

 ereg_replace(chr(13), \n, $TextFieldData) 

 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]



-- 
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] replacing Carriage Return

2001-12-11 Thread Paul Warner

\r\n is crlf

- Original Message -
From: Kevin Stone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 3:53 PM
Subject: Re: [PHP] replacing Carriage Return


 Could be \r?  I'm not sure about this becuase I haven't tried it.  I
know
 that \r is used as the return character in other OSs.

 -Kevin Stone

 - Original Message -
 From: phantom [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, December 11, 2001 1:31 PM
 Subject: [PHP] replacing Carriage Return


  I solicit information from a text field and save the data in mysql to be
  pulled out later and displayed as text on a webpage.
 
  However, Carrage Returns in the text field do not appear in the webpage
  text.
 
  With ereg_replace() I can replace the Carriage Returns with  \n, so
  what is this the character I need to find in the text field to replace?
   chr(13) ???
 
  ereg_replace(chr(13), \n, $TextFieldData) 
 
  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]
 


 --
 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] Zend Optimizer Gui?

2001-12-11 Thread Thomas Deliduka

I am looking at the documentation for the zend optimizer and I see nothing
about this (perhaps not looking hard enough?)

The installation had me set a password for the Optimizer gui Interface. What
is this? How can I get to it?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




Re: [PHP] Date formatting

2001-12-11 Thread Kevin Stone

Try using the DATE_FORMAT() function within your SQL query string...

$query = SELELCT DATE_FORMAT (your_date_column, '%M %d %Y') FROM
your_table;

where:
%M is the month in full text
%d is the numerical day of the month with leading zeros
%Y is the four digit year

Extract the results as ussual... mysql_fetch_row() or mysql_fetch_array() or
whatever you would use.  Let me know if this works becuase I've not tried it
before.  Seems like it should work though.  Good luck.  :-)

-Kevin Stone

- Original Message -
From: phantom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 10, 2001 8:35 PM
Subject: [PHP] Date formatting


 What would be an easy what to format a date value into month day year??
 I want to specially display a date stored in mysql in date format
 -MM-DD

 The manual says: string date (string format, int [timestamp])

 I tried $FormattedDate = date(F y, Y,${StoredDate})

 1999-04-15 spit out December 31, 1969 when I had hoped for April 15,
 1999.

 Apparently -MM-DD is not a valid timestamp... i tried mysql formats
 of timestamp(8) and timestamp(14) and that didn't work either




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

2001-12-11 Thread Steve Cayford


On Monday, December 10, 2001, at 09:35  PM, phantom wrote:

 What would be an easy what to format a date value into month day year??
 I want to specially display a date stored in mysql in date format
 -MM-DD

 The manual says: string date (string format, int [timestamp])

 I tried $FormattedDate = date(F y, Y,${StoredDate})


try $FormattedDate = date(F y, Y,strtotime($StoredDate));

strtotime will convert your -MM-DD string into a unix timestamp.

 1999-04-15 spit out December 31, 1969 when I had hoped for April 15,
 1999.

 Apparently -MM-DD is not a valid timestamp... i tried mysql formats
 of timestamp(8) and timestamp(14) and that didn't work either




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

2001-12-11 Thread Thomas Deliduka

On 12/11/2001 4:22 PM this was written:

 Yeah, and waiting till Zend is bringing out a working version of Optimizer
 for
 that PHP version ! :)

It's out Version 1.2.0

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.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] Re: replacing Carriage Return

2001-12-11 Thread J Smith


You could use \r\n (or combinations thereof) as others have mentioned, 
but just to save you some frustration, make sure you don't put quotation 
marks around the chr(13) if that regex, otherwise you'll be looking for the 
literal string chr(13) and not what you'd expect, i.e. what the function 
chr() returns when given 13 as an argument.

J


Phantom wrote:

 I solicit information from a text field and save the data in mysql to be
 pulled out later and displayed as text on a webpage.
 
 However, Carrage Returns in the text field do not appear in the webpage
 text.
 
 With ereg_replace() I can replace the Carriage Returns with  \n, so
 what is this the character I need to find in the text field to replace?
  chr(13) ???
 
 ereg_replace(chr(13), \n, $TextFieldData) 
 
 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] Logo proposal

2001-12-11 Thread Miles Thompson


Why are we wasting time and bandwidth? The small oval is fine.

If you want to waste time - why an animal? Use a flower, say a peony, to 
symbolize the blossoming richness and continued growth of PHP.  Here's a 
bouquet, lifted from www.flowerbud.com ... no I shouldn't do that, here's a 
link instead:http://www.flowerbud.com/images/flowers/peony-mix.jpg

Cheers - Miles

PS Doesn't MySQL.com have dolphin ... whale ... porpoise -- whatever that 
leaping aquatic creature is?

At 03:34 PM 12/11/2001 -0500, Joshua Hoover wrote:
How about a Beaver?  They're small, fast, and efficient.

Joshua Hoover

  How about a porpoise.  They're fast, intelligent, and as Lewis Carol said,
  you shouldn't go anywhere without a porpoise.


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

2001-12-11 Thread Miles Thompson

Here, play with this. dtAuctionStart is a MySQL date field, so substitute 
your own connection and var.
Have fun - Miles Thompson

Some messing about with dates br
=br

?
echo $dtAuctionStart, br;
echo date (Y-m-d, $dtAuctionStart ), br;
//$strDate =  $dtAuctionStart ;
echo dtAuctionStart  : $dtAuctionStart;

$year = substr ($dtAuctionStart, 0, 4);
$month =substr( $dtAuctionStart, 4, 2 );
$day =  substr ($dtAuctionStart, 6, 2 );
Echo dtAuctionStart in m-d -y : $month-$day-$year br;

$workdate = getdate( $dtAuctionStart );
echo  Workdate Year:, $workdate[year],br;
?

Ereg Stuff br
==br
?
if (ereg (([0-9]{4})([0-9]{1,2})([0-9]{1,2}), $dtAuctionStart, $regs))
{
 echo Auction Start:  $regs[1]-$regs[2]-$regs[3] brbr;
}
else
{
 echo Bad date format. br;
}

//echo gmdate (Y-m-d, time()), br;
echo date (M-d-Y, mktime (0,0,0, $month, $day, $year));
// echo date (M-d-Y, mktime (0,0,0,12,32,1997));


echo brLocal date: br  ;
echo date (M d Y H:i:s, time()), br;
echo date (M d Y H:i:s, time()), br;
echo Greenwich date: br;
echo gmdate (M d Y H:i:s, time()), br;
echo gmdate (YmdHis, time()), br;

?

At 09:35 PM 12/10/2001 -0600, phantom wrote:
What would be an easy what to format a date value into month day year??
I want to specially display a date stored in mysql in date format
-MM-DD

The manual says: string date (string format, int [timestamp])

I tried $FormattedDate = date(F y, Y,${StoredDate})

1999-04-15 spit out December 31, 1969 when I had hoped for April 15,
1999.

Apparently -MM-DD is not a valid timestamp... i tried mysql formats
of timestamp(8) and timestamp(14) and that didn't work either




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

2001-12-11 Thread Martin Kampherbeek

Hi,

I have a problem with a remote image. I hope someone can help me.

People can post their link of their webpage at my site.
I check if the file excists, fopen().
After that I scan the page for links.
And the links for images.
Then I would like to see the sizes of all those images.

The problem is that there are servers that don't allow to brow straight to the images, 
it can only from the page self.
So I look for something in php that surfs the the page en from that page to the links.

I hope someone can help me.

Cheers,
Martin.





[PHP] Re: PHP 4.1.0 actually out this time -- questions about zend products

2001-12-11 Thread Mike Eheler

Excellent.

Keep me up to date on your findings. Our license only allows for the 
software to be used on one machine so I can't build a test machine. :/

Mike

J Smith wrote:

 Seconds after I write this, I see on zend.com that the Optimizer has a new 
 version for 4.1.0. Don't see anything about the Debug Server. I'm going to 
 give the Optimizer a whirl and see if stuff encoded with our old Encoder 
 word with 4.1.0...
 
 J
 
 
 
 J Smith wrote:
 
 
We have the developer suite at my work, and as far as I know, the
Optimizer, Debug Server, Encoder, etc. don't work with 4.1.0 at all. When
you try using the Optimizer, for instance, it spits out a line in your
Apache log (or whatever log) saying that this version of the Optimizer is
for Zend Engine blah blah, go to Zend.com to upgrade, or something to
that effect.

Hopefully when you buy the suite you get access to updated versions of the
software that are compatible with 4.1.0, otherwise, it's going to suck for
us, since we use some of the new features in 4.1.0 in the app we're
writing. It would seem like a waste of money in our case, as we're
dropping 4.0.6, and that's all the Developer Suite we have covers at the
moment. We used to use 4.0.6 on an older version of this thing we're
developing, but there were enough nicities in 4.1.0 that I decided to
start using the dev versions and RCs for 4.0.7/4.1.0, just so we'd be
up-to-date when 4.1.0 actually came out.

J



 


-- 
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: replacing Carriage Return

2001-12-11 Thread Mike Eheler

Could this be solved in any way by using nl2br()?

Mike

Phantom wrote:

 I solicit information from a text field and save the data in mysql to be 
 pulled out later and displayed as text on a webpage.
 
 However, Carrage Returns in the text field do not appear in the webpage 
 text.
 
 With ereg_replace() I can replace the Carriage Returns with  \n, so 
 what is this the character I need to find in the text field to replace? 
 chr(13) ???
 
 ereg_replace(chr(13), \n, $TextFieldData) 
 
 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]




[PHP] [ADMIN] spam protection for lists.php.net lists

2001-12-11 Thread Jim Winstead

as some of you may have noticed over the last few days, a new method of
spam protection has been implemented on lists.php.net.

if you post to one of the lists.php.net lists (via mail or the news
server at news.php.net) from a mail address that is not subscribed to
the mailing list, you will receive an email with information on how to
confirm that you are a real person trying to send mail to the list, and
not just some drive-by spammer. once you have responded to the
confirmation, your original message to the list will be let through to
the list, and your email address will be stored as one that is allowed
to post so that future postings from you to any of the lists.php.net
lists will be passed through without requiring confirmation.

note that this means it is no longer possible to post to the list using
an invalid smtp sender (or using an invalid email address in the 'From'
header of a post via the news server).

if you encounter problems posting to the list, feel free to drop a note
to the list administrators at [EMAIL PROTECTED]

jim

-- 
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] Help creating an image repository/library.

2001-12-11 Thread Kevin Stone

I have written a simple image uploading system to go along with a simple
database.  This will be a part of a publiclay accessable search engine for a
jewelry companie's web site.  Almost every entry has a corresponding image.
But that was the easy part...  The problem now is that I need to display the
images next to the corresponding info on the same page.

I do not know much about UNIX permissions but I am strongly advised to keep
the permission settings on the public-html directory set to 0755 at the very
least.  Since the PHP script inhereits user permissions (and not the Owner's
permission)  this means that I can not upload the files to the Public-html
directory where I could easily grab them with a URL.  The only place I have
access is outside the public html directory.  Of couse I can open any number
of images I like and read them to the browser screen... but they can not
mingle with HTML becuase I have to set the header(Content-type:
image/jpeg) in order to display the image in the first place.  ARRGGH!

It is forcing me to use frames or a floating window to display the images..
which is absoutely totaly unacceptable.  Aside from being a hack solution
there is no way I can align the images with the corresponding database info.
And inline frames are not supported by all browsers.

*sigh*

I am being blocked on all ends and I need a solution fast.  Any help will be
**GREATLY** appreciated.

-Kevin Stone


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

2001-12-11 Thread AAustin

Hi
This may sound strange. but ...
Is there a  limit to the number of sessions one can/should have using the
same identity details at one time. ie if beta testing a website with the
same password details etc. or is it irrelevant.

Thanks


Andrew



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

2001-12-11 Thread Brian V Bonini

Why is this:

?php
$modified = stat(header.php);
echo Last Modified: .date(F j, Y, g:i a,$modified[9]);
?

returning this:

Last Modified: December 31, 1969, 7:00 pm

from this:

-rw-r--r--  1 gfxdesi  vuser  1196 Dec 11 09:22 header.php

Anyone?

-- 
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] Help creating an image repository/library.

2001-12-11 Thread jimtronic


Presumably, each item in the catalog has a unique id of some sort in 
the database. When you upload the images, you can rename the image 
file to image_(unique_id).jpg. Then when you load a page, you can 
reference the item next to the image.

This is only one way to do it, of course. You could also store the 
image names in another database and link the tables when calling the 
data for the jewelry.

jim


I have written a simple image uploading system to go along with a simple
database.  This will be a part of a publiclay accessable search engine for a
jewelry companie's web site.  Almost every entry has a corresponding image.
But that was the easy part...  The problem now is that I need to display the
images next to the corresponding info on the same page.

I do not know much about UNIX permissions but I am strongly advised to keep
the permission settings on the public-html directory set to 0755 at the very
least.  Since the PHP script inhereits user permissions (and not the Owner's
permission)  this means that I can not upload the files to the Public-html
directory where I could easily grab them with a URL.  The only place I have
access is outside the public html directory.  Of couse I can open any number
of images I like and read them to the browser screen... but they can not
mingle with HTML becuase I have to set the header(Content-type:
image/jpeg) in order to display the image in the first place.  ARRGGH!

It is forcing me to use frames or a floating window to display the images..
which is absoutely totaly unacceptable.  Aside from being a hack solution
there is no way I can align the images with the corresponding database info.
And inline frames are not supported by all browsers.

*sigh*

I am being blocked on all ends and I need a solution fast.  Any help will be
**GREATLY** appreciated.

-Kevin Stone


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


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] Logo proposal

2001-12-11 Thread Christopher William Wesley

I think an animal mascot is a beat idea.

Needlenose pliers.  Enough said!  ;)

~Chris   /\
 \ / September 11, 2001
  X  We Are All New Yorkers
 / \ rm -rf /bin/laden


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

2001-12-11 Thread Kevin Stone


- Original Message -
From: Brian V Bonini [EMAIL PROTECTED]
To: PHP Lists [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 3:43 PM
Subject: [PHP] Date

Try instead..

echo Last Modified:  . date(j F Y H:i, filetime($your_file_path));

I don't know exactly what the stat() funciton returns, but the above method
works for me.

Does anyone have any input for my questions?

-Kevin Stone

 Why is this:

 ?php
 $modified = stat(header.php);
 echo Last Modified: .date(F j, Y, g:i a,$modified[9]);
 ?

 returning this:

 Last Modified: December 31, 1969, 7:00 pm

 from this:

 -rw-r--r--  1 gfxdesi  vuser  1196 Dec 11 09:22 header.php

 Anyone?

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

2001-12-11 Thread Steve Osborne

Can someone tell me if there is a bit of code I need to put on pages so I
can retrieve a cookie.
The cookie was set with the following code:

//(D) Set Cookie
   $encoded_login = encode_string($login);
   if ( $remember == yes ){
// set login to expire in 1000 days
$time = (time() + ( 24 * 3600 * 365 ));
SetCookie ( poccd_session, $encoded_login, $time);
   }else{
SetCookie ( poccd_session, $encoded_login );
   }

I am trying to retrieve it with the following code (for testing purposes
only, right now):

if($poccd_session)
{
 header(location: index.php);
}else{
 print(The cookie plan didn't work.);
}

Any suggestions would be appreciated.

Steve Osborne
Database Programmer
Chinook Multimedia Inc.
[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]




  1   2   >