php-general Digest 11 Jan 2001 11:48:27 -0000 Issue 448

Topics (messages 33845 through 33964):

Re: problem with includes
        33845 by: James Mclean

Re: WELCOME to [EMAIL PROTECTED]
        33846 by: Paul Trapnell

Re: How can I get a random number
        33847 by: Jerry Lake

SECURITY: Question about PHP Wrappers - What to do without them?
        33848 by: brunatex

Matching specific HTML tags with a regex
        33849 by: Jason Murray

Funny running PHP4 on Apache, Windows 95
        33850 by: Patrick Dunford
        33851 by: Brian Clark

PHP makes sexy!
        33852 by: Dieter Kneffel
        33935 by: Bryne Jørg Vidar

FORM problem
        33853 by: Romulo Roberto Pereira
        33867 by: Joe Stump

Re: [PHP-DEV] Compile Problem:  Place for Help
        33854 by: Jani Taskinen

2d array?
        33855 by: Kurth Bemis
        33857 by: Joe Stump
        33860 by: Toby Butzon

Re: mixing HTML and PHP code
        33856 by: Alex Black

Re: pause
        33858 by: Alex Black

Re: Force variables to add
        33859 by: Jeff Warrington

Autonomous Mass Mail List System (Broadcast Email)
        33861 by: Jason Beebe
        33865 by: Joe Stump

Re: Code diagnostics & profiling
        33862 by: Alex Black

Re: mysql and php possibly causing problem
        33863 by: Michael Brunson

Re: Shopping Carts
        33864 by: Alex Black

Re: include path confusion
        33866 by: Jeff Warrington

Re: libSWF
        33868 by: Jeff Warrington

Session Mgmt in MySQL - cleanup
        33869 by: Hardy Merrill

Re: AFTERBURNER - PHP CACHE
        33870 by: Alex Black

Re: Good and working documentation generator
        33871 by: Alex Black
        33957 by: Alain Fontaine

Re: [PHP-DB] Autonomous Mass Mail List System (Broadcast Email)
        33872 by: Cal Evans
        33879 by: Jason Beebe
        33883 by: Toby Butzon

Re: SSH file transfers
        33873 by: Alex Black
        33897 by: Kyle Jerviss
        33899 by: bard
        33903 by: Kyle Jerviss

Websites warned over first hypertext virus, is it true?
        33874 by: juang.group.infoasia.net
        33925 by: Richard Lynch

Re: DB portability
        33875 by: Alex Black

Re: two submit buttons possible?
        33876 by: Alex Black

Re: dynamic code
        33877 by: Alex Black

Re: SSH file transfer
        33878 by: Opec Kemp

How to add a user of LDAP?
        33880 by: Huang Wenhai
        33881 by: Huang Wenhai
        33917 by: Maciek Uhlig

Re: looking for a PHP editor
        33882 by: Miles Thompson
        33884 by: Brian Clark
        33885 by: Brian Clark
        33938 by: Meir Kriheli - MKsoft
        33947 by: Alexander Wagner

For RegExp Experts.
        33886 by: Diego Fulgueira

Apache error after setting path for mysql=
        33887 by: Shane Reid
        33889 by: Brian Clark

case ?
        33888 by: Jon Rosenberg
        33890 by: Dean Hall
        33891 by: Brian Clark
        33894 by: Steve Edberg
        33898 by: Joe Stump
        33904 by: Maxim Maletsky
        33905 by: Maxim Maletsky
        33907 by: Steve Edberg

Re-engineering print()
        33892 by: Kristofer Widholm
        33893 by: Kristofer Widholm
        33895 by: Jason Murray
        33896 by: Josh G
        33908 by: Kristofer Widholm
        33909 by: Toby Butzon
        33910 by: Josh G
        33911 by: Josh G
        33912 by: Matt McClanahan
        33913 by: Josh G
        33914 by: Maxim Maletsky
        33915 by: Rasmus Lerdorf

Exponents
        33900 by: Ian LeBlanc
        33901 by: Brian Clark
        33902 by: Josh G

sorry, btw
        33906 by: bard

Change Array Data
        33916 by: Kersten Lohmeyer

Re: Re-engineering print() - PHP 4 required
        33918 by: Kristofer Widholm

Re: Im having Trouble with File uploading,
        33919 by: Richard Lynch

Re: Session cookie expiration
        33920 by: Richard Lynch

Re: strip_tags ?
        33921 by: Richard Lynch

Re: Cannot send session cache limiter - headers already sent   Cannot send session 
cookie - headers already sent by
        33922 by: Richard Lynch
        33940 by: Teodor Cimpoesu

Re: Each site with its php.ini?
        33923 by: Richard Lynch

Re: ibase (firebird) localhost login ?
        33924 by: Richard Lynch
        33943 by: Meir Kriheli - MKsoft

Re: Accessing  Common Log Format (CLF) info.
        33926 by: Richard Lynch

Re: Sessions / Var Tracking
        33927 by: Richard Lynch

Re: behaviour of system()
        33928 by: Richard Lynch

Re: Running an .exe on localhost
        33929 by: Richard Lynch

Re: How to develope and add a new user function or lib or extention to php
        33930 by: Richard Lynch

Re: unique id
        33931 by: Richard Lynch

Re: FATAL: emalloc() error
        33932 by: Richard Lynch

Re: Discussion board recommendation
        33933 by: Richard Lynch

Re: Serving files form DB
        33934 by: Richard Lynch

Re: PHP newbie question
        33936 by: Bryne Jørg Vidar

Re: Browser cache and form with $PHP_SELF
        33937 by: Egan

Running java under php4 (PHP4 ext/java)
        33939 by: Eduard Witteveen
        33948 by: Philip Olson

Cookies
        33941 by: David Smith

Connect with user and pwd from PHP to MySql !!!
        33942 by: Yoeri De Bruyn
        33944 by: Hsieh, Wen-Yang
        33945 by: Philip Olson
        33964 by: Yoeri De Bruyn

Re:RE: [PHP] [Newbie] Image Module needed ?
        33946 by: \"Cyb\"

cool OOP-phenomena!
        33949 by: Moritz Petersen

php binary?
        33950 by: Jesus Climent

Re: Calling a Windows Com object or an Extended Fetch?
        33951 by: Pavel Kalian

image through php
        33952 by: mailing_list.gmx.at

Saturday Work in London
        33953 by: Abe Asghar

file uploading error - can't upload "none"
        33954 by: David Smith

Re: BIG include file !!!
        33955 by: Carsten Gehling

Re: PHP simulator
        33956 by: Christian Reiniger

File Uploading Security - Urgent please
        33958 by: Statbat
        33960 by: Matt Williams
        33961 by: Moritz Petersen

Can't connect to imap server, please help.
        33959 by: Dezider Góra

HTTP autentification
        33962 by: petr.juza.worldonline.cz
        33963 by: Pavel Kalian

Administrivia:

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

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

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


----------------------------------------------------------------------



 
> include file has extension .php in the file is some php stuff, reading out of
a
> mysql database and printing to page.
> 
> page it is bieng included in also has mysql functions in it, along with php
> functionas also.
> 
> 
> 
> On Wed, 10 Jan 2001, Brian Clark wrote:
> > Date: Wed, 10 Jan 2001 18:28:16 -0500
> > To: "PHP is not a drug ." <[EMAIL PROTECTED]>
> > From: Brian Clark <[EMAIL PROTECTED]>
> > Reply-To: Brian Clark <[EMAIL PROTECTED]>
> > Subject: Re: [PHP] problem with includes
> > 
> > 
> > (BC == "Brian Clark") [EMAIL PROTECTED] writes:
> > 
> > BC> So us what is in comment.php
> >     ^^
> >     Show
> >     
> > -Brian
> > --
> > There are two ways to write error-free programs,
> > and only the third one works.
> > 
> > 
> > 
> > -- 
> > 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]





subscribe




I'll go ahead and get that investment
money rolling, as soon as I see my
return from mindpixel...haha!

I hear that MIR can be had for about
the cost of a decent case of vodka though

Jerry Lake

-----Original Message-----
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 3:36 PM
To: Jerry Lake
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] How can I get a random number



Good idea!

I hear MIR is for sale.  This could make a good PHP random function, one
that always works!  Let's pool our resources and get on it.  Great thing
is, no need for these mysterious seeds.

philip


On Wed, 10 Jan 2001, Jerry Lake wrote:

> We may as we set it up in space
> to minimalize gravity and friction
> -can't be adding any predictable forces ;)
>
> Jerry Lake
>
> -----Original Message-----
> From: Philip Olson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 10, 2001 3:19 PM
> To: Cal Evans
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] How can I get a random number
>
>
>
> Through recognition technologies this will work nicely, am looking forward
> to it.  The key is using oversized ping pong balls as to allow oversized
> letters, about a 8" radius ping pong ball will work.  Be sure to use black
> ink.  Also, keep in mind that ink increases weight so use balancing
> ink, similar to what one uses for tires (although tires use lead, not
> ink).  The balancing ink should be transparent as to create a square
> plot, this way the ink will be evenly distributed on each ping pong ball
> as to create a truly random result.  Granted it's a subtle difference but
> we DO want a random result.
>
> The trick is getting the camera to read the ping pong ball, read the
> manual on that.  Some have inserted transmitters within the balls but that
> creates needless costs so it's not suggested.
>
> philip
>
> On Wed, 10 Jan 2001, Cal Evans wrote:
>
> > Put a web cam on it and we've got a winner!  :)
> >
> > Cal
> >
> > -----Original Message-----
> > From: Monte Ohrt [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 10, 2001 4:21 PM
> > To: [EMAIL PROTECTED]; Brandon Orther
> > Subject: Re: [PHP] How can I get a random number
> >
> >
> > You can blow some ping pong balls around in an enclosure and pick one,
> > that's pretty random :)
> >
> > For the next best thing to "random", you can use the rand() function in
> > PHP.
> >
> > Brandon Orther wrote:
> > >
> > > How can I get a random number
> > >
> > > Thank you,
> > >
> > > --------------------------------------------
> > > Brandon Orther
> > > WebIntellects Design/Development Manager
> > > [EMAIL PROTECTED]
> > > 800-994-6364
> > > www.webintellects.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 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]
>






I have an account on JTLNET ...

I have decided to install Phorum (from Phorum.org), but this requires
the
scripts to be run inside a PHP CGI wrapper ......

JTLNET although supporting php very nicely indeed, do not provided
CGI Wrappers for scripts... hence if i were to run the scripts, i would
be
doing so as 'nobody' and this won't do!

My question is, what are the possible solutions to getting around this
problem?

Would moving all the scripts into the CGI-BIN that they provide and
sym-linking
to them fix the security hole?

Thanks in advance..

Jon





Hi folks,

Seen this discussed on here a bit in the past, so I hope someone
remembers and can help me sort of quickly before I go nuts, declare
victory and move on to another problem :)

My regular expression abilities are ... limited. This is what I'm 
trying to accomplish:

An input buffer to a function will consist of a chunk of HTML code.
This code includes the use of stylesheets, generally in the form 
of "<SPAN CLASS='something'>text here</SPAN>".

I'd like to find a regular expression that'll match each of these 
occurrences within the text, thus allowing me to pull out "something"
and "text here". (Why do I want to do this? To convert the style
sheet into <FONT FACE> tags... its neccessary, if ugly. :\).

Any help would be appreciated, thanx!

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!




I have this funny thing when running PHP 4 on Apache on Win95. If the script
has the extension .php it's fine, but if the extension is .php3 it returns
400 Bad Server Request

Any ideas?

httpd.conf:

<IfModule mod_dir.c>
    DirectoryIndex index.html
        DirectoryIndex index.shtml
        DirectoryIndex index.htm
        DirectoryIndex index.php
        DirectoryIndex index.php3
</IfModule>

    AddType application/x-tar .tgz
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps



=======================================================================
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   In his heart a man plans his course, but the LORD determines his
steps.
    -- Proverbs 16:9
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010110
=======================================================================
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/






Hello Patrick, 

(PD == "Patrick Dunford") [EMAIL PROTECTED] writes:

PD> I have this funny thing when running PHP 4 on Apache on Win95. If
PD> the script

<snip>

PD>     AddType application/x-tar .tgz
PD>     AddType application/x-httpd-php3 .php3
PD>     AddType application/x-httpd-php3-source .phps
PD>     AddType application/x-httpd-php .php
PD>     AddType application/x-httpd-php-source .phps

Instead of all of those lines, try:

        AddType application/x-tar .tgz
        AddType application/x-httpd-php .php .php3
        AddType application/x-httpd-php-source .phps

-Brian
--
Why do we ask rhetorical questions?






Well, now that I finally got your attention, you perhaps
might be able to help me! 

Just wondering why nobody ansered yet: Is my
question to hard to understand or is the issue
to complicated....???

--------------- original message ---------------

Please help! Perhaps you have an idea what to do:

I want to get information directly from sendmail,
like the body of the message and, very important,
the receipients address.

So if someone sends an email to [EMAIL PROTECTED]
I want to see who it was sent to.

Currently I am using a script that is triggered
by an alias in /etc/aliases. Problem here is, I
only get the header but no more information. This
script isn't intended for one single user but for
a whole domain, purpose is for messaging. So I
really don't want to create a login for every possible
name as I don't know the names before. You have
to think of this like a short messaging service
where you send a message to [EMAIL PROTECTED]
with 0123456789 beeing the phone number of the
subscriber.
The above mentioned script gets the emails' contents
from stdin but fails if e.g. the mail is sent as
a blind copy (BCC) or if multiple receipients are
listed in the header!

Do you have an idea for me? I was thinking about
the mailertable, to do something similar as you
do when you set up an UUCP account for a whole
domain, but I don't know where I can interface.

So, any ideas are highly appreciated!

Thanks,

dk




If you set it up so that every incoming mail to your domain ends up in one
account, use the imap-functions ( compile them into php if not already done
) to open a stream and fetch the data. The "TO" header should be in there
somewhere and contain the original data. 

Could be run from cron at a regular basis.

-Jørg V. Bryne

-----Original Message-----
From: Dieter Kneffel [mailto:[EMAIL PROTECTED]]
Sent: 11. januar 2001 02:15
To: php-general
Subject: [PHP] PHP makes sexy!


Well, now that I finally got your attention, you perhaps
might be able to help me! 

Just wondering why nobody ansered yet: Is my
question to hard to understand or is the issue
to complicated....???

--------------- original message ---------------

Please help! Perhaps you have an idea what to do:

I want to get information directly from sendmail,
like the body of the message and, very important,
the receipients address.

So if someone sends an email to [EMAIL PROTECTED]
I want to see who it was sent to.

Currently I am using a script that is triggered
by an alias in /etc/aliases. Problem here is, I
only get the header but no more information. This
script isn't intended for one single user but for
a whole domain, purpose is for messaging. So I
really don't want to create a login for every possible
name as I don't know the names before. You have
to think of this like a short messaging service
where you send a message to [EMAIL PROTECTED]
with 0123456789 beeing the phone number of the
subscriber.
The above mentioned script gets the emails' contents
from stdin but fails if e.g. the mail is sent as
a blind copy (BCC) or if multiple receipients are
listed in the header!

Do you have an idea for me? I was thinking about
the mailertable, to do something similar as you
do when you set up an UUCP account for a whole
domain, but I don't know where I can interface.

So, any ideas are highly appreciated!

Thanks,

dk

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




Hello!

I am having a problem when people copy and paste text inside a TEXTAREA in a form that 
contains double quotes ' " ' . 

The first file is a simple form. The second one is a php script that treats the data 
from the user and stores in a MySQL table. Onyone has any ideas? I need to use 
javascript to treat the variables before I execute submit?

Thank you,

Rom




Have you tried looking at addslashes() ??? Or am I not understanding the problem
here. Just remember to deliminate the "'s and ''s before entering them into the
db.


--Joe

On Wed, Jan 10, 2001 at 08:19:24PM -0500, Romulo Roberto Pereira wrote:
> Hello!
> 
> I am having a problem when people copy and paste text inside a TEXTAREA in a form 
>that contains double quotes ' " ' . 
> 
> The first file is a simple form. The second one is a php script that treats the data 
>from the user and stores in a MySQL table. Onyone has any ideas? I need to use 
>javascript to treat the variables before I execute submit?
> 
> Thank you,
> 
> Rom

-- 

Joe Stump, PHP Hacker
[EMAIL PROTECTED]
http://www.miester.org/





On Wed, 10 Jan 2001, Mark Olbert wrote:

>Can anyone recommend a place/forum for help in getting PHP to compile under
>linux?
>
>I am running into a problem that I haven't gotten any feedback on from
>php-dev, php-general or php-install.
>
>The specific problem is:
>
>/usr/bin/ld: .libs/libphp4.so: undefined versioned symbol name
>__fp_query@@GLIBC_2.0
>/usr/bin/ld: failed to set dynamic section sizes: Bad value
>
>Looks like the linker can't find __fp_query().


Either your header files  don't match the installed GLIBC version or
libresolv.so.1 was compiled against a GLIBC version other than the
installed one.

--Jani






i'm confused by the method the go about this.

i want to have a location: home / company / about on a page like 
server.com/company/aboutus.php

i'm thinking that i can use an array containing the page name and then 
search the array and return the page title.  now - how do i do this with an 
array?  I know that i've seen it done like aboutus.php:About Company or 
something.  Its hard to explain - can anyone help me?

~kurth
Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer

People disagree with me.  I just ignore them.
         -- Linus Torvalds, regarding the use of C++ for the Linux kernel

[EMAIL PROTECTED] | http://www.usaexpress.net/kurth
PGP key available - http://www.usaexpress.net/kurth/pgp

Fight Weak Encryption!  Donate your wasted CPU cycles to Distributed.net 
(http://www.distributed.net)





I'll give it a whirl ...

$array_of_page_titles = array(
        'aboutus.php' => 'All about our company',
        'index.php' => 'Welcome to www.server.com!',
        'foo.php' => 'I\'m a worthless script!'
                        );

Then ...

<TITLE><? echo $array_of_page_titles[$file]; ?></TITLE>

$file should be the name of the file - there is a PHP variable for this but
I'm drawing a blank right now.

--Joe

On Wed, Jan 10, 2001 at 08:40:21PM -0500, Kurth Bemis wrote:
> i'm confused by the method the go about this.
> 
> i want to have a location: home / company / about on a page like 
> server.com/company/aboutus.php
> 
> i'm thinking that i can use an array containing the page name and then 
> search the array and return the page title.  now - how do i do this with an 
> array?  I know that i've seen it done like aboutus.php:About Company or 
> something.  Its hard to explain - can anyone help me?
> 
> ~kurth
> Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer
> 
> People disagree with me.  I just ignore them.
>          -- Linus Torvalds, regarding the use of C++ for the Linux kernel
> 
> [EMAIL PROTECTED] | http://www.usaexpress.net/kurth
> PGP key available - http://www.usaexpress.net/kurth/pgp
> 
> Fight Weak Encryption!  Donate your wasted CPU cycles to Distributed.net 
> (http://www.distributed.net)
> 
> 
> -- 
> 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]

-- 

Joe Stump, PHP Hacker
[EMAIL PROTECTED]
http://www.miester.org/





> $file should be the name of the file - there is a PHP
variable for this but
> I'm drawing a blank right now.

How about __FILE__ ? ;)

Note: it's a constant, so make sure you don't try to use a $
before it

--Toby

----- Original Message -----
From: "Joe Stump" <[EMAIL PROTECTED]>
To: "Kurth Bemis" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 8:46 PM
Subject: Re: [PHP] 2d array?


> I'll give it a whirl ...
>
> $array_of_page_titles = array(
> 'aboutus.php' => 'All about our company',
> 'index.php' => 'Welcome to www.server.com!',
> 'foo.php' => 'I\'m a worthless script!'
> );
>
> Then ...
>
> <TITLE><? echo $array_of_page_titles[$file]; ?></TITLE>
>
> $file should be the name of the file - there is a PHP
variable for this but
> I'm drawing a blank right now.
>
> --Joe
>
> On Wed, Jan 10, 2001 at 08:40:21PM -0500, Kurth Bemis
wrote:
> > i'm confused by the method the go about this.
> >
> > i want to have a location: home / company / about on a
page like
> > server.com/company/aboutus.php
> >
> > i'm thinking that i can use an array containing the page
name and then
> > search the array and return the page title.  now - how
do i do this with an
> > array?  I know that i've seen it done like
aboutus.php:About Company or
> > something.  Its hard to explain - can anyone help me?
> >
> > ~kurth
> > Kurth Bemis - Network/Systems Administrator,
USAExpress.net/Ozone Computer
> >
> > People disagree with me.  I just ignore them.
> >          -- Linus Torvalds, regarding the use of C++ for
the Linux kernel
> >
> > [EMAIL PROTECTED] | http://www.usaexpress.net/kurth
> > PGP key available - http://www.usaexpress.net/kurth/pgp
> >
> > Fight Weak Encryption!  Donate your wasted CPU cycles to
Distributed.net
> > (http://www.distributed.net)
> >
> >
> > --
> > 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]
>
> --
>
> Joe Stump, PHP Hacker
> [EMAIL PROTECTED]
> http://www.miester.org/
>
>
> --
> 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]
>
>





uh,

while I agree that including your html is definitely the way to go, you
_must_ mix php with html to a certain extent, assuming you're actually doing
anything interesting like talking to a database.

if you're _only_ including files (i.e. using php as a replacement for SSI) I
guess that would work.

but, so long as the php code is _extremely_ light, and the logic is stored
elsewhere, sounds good to me :)

definitely avoid print() and echo like the _plague_ for html output.

-alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("MR")
> Newsgroups: php.general
> Date: 10 Jan 2001 15:46:51 -0800
> Subject: RE: [PHP] mixing HTML and PHP code
> 
> Brian Clark ...
>> 
>> Hello Alexander,
>> 
>> (AW == "Alexander Wagner") [EMAIL PROTECTED] writes:
>> 
>>>> Mmmmppppfff... ultraedit's wordlist file still lacks the color of
>>>> allaire's homesite - it does detect which parts of the .php file
>>>> are HTML and what parts of the file are PHP code, and colours
>>>> syntax very well...
>> 
>> AW> Who needs that? Nesting PHP in HTML is bad style, IMHO.
>> 
>> Bad style?!
>> 
>> You _actually_ print() or echo() everything you want to send to the
>> browser?
>> 
>> If it doesn't need to be interpolated by PHP, why print() it?
> 
> Well, sometimes (IMHO), the better way to keep things readable is to include()
> things, such as include "page_header.php"  , include
> "lateral_links.php" , include "page_footer.php" , and so on...
> 
> Damn, my pages look so professional including everything... the final
> client-side html page is huge but the main PHP is so simple
> and structured...
> 
> And, what i was going to say, if you wanna mix HTML and PHP code, perhaps the
> way you want is to include(), print() and echo() all
> the HTML and let everything in PHP code...
> 
> Of course, i'm meaning of including() HTML files (without any PHP code).
> 
> 
> 
> 
> -- 
> 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]
> 





hey robert,

have a look at binarycloud, with form builder, we take form input, check it,
and return errors with the same form, input there and everything.

if you want, you can have it do fancy stuff like carry over elements on
multi page forms (a person forgets fo fill out one elemtn on a page, instead
of sending them back to that page - we just say "oops, you forgot to put in
your name" and give them the form element. etc)

soon, form building will allow you to define all of your elements for a form
in xml, and attach "rules" (bits of php code that can filter input, or check
that one element equals some other value, etc) to form elements.

it's working really well for us, and soon it will be working ridiculously
well :)!

check out: http://www.binarycloud.com

_alex

--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Shane McBride")
> Newsgroups: php.general
> Date: 10 Jan 2001 14:22:44 -0800
> Subject: Re: [PHP] pause
> 
> If you find something other than client side validation, let me know please.
> I had to resort to VBScript and I hate it!
> 
> ----- Original Message -----
> From: "jeremy brand" <[EMAIL PROTECTED]>
> To: "DanO" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 10, 2001 4:42 PM
> Subject: RE: [PHP] pause
> 
> 
>> Funny, I would say forget javascript; I don't trust client side
>> validation.
>> 
>> :)  Just my two cents.
>> 
>> Jeremy
>> 
>> Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 ::
> [EMAIL PROTECTED]
>> http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
>> Get your own Free, Private email at http://www.smackdown.com/
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> "<body>"   -- Quoted from Yahoo! homepage, http://www.yahoo.com
>> 
>> 
>>> don't forget javascript!
>>> 
>>> you could validate the form before posting to php.
>>> 
>>> DanO
>>> 
>>> 
>>> -----Original Message-----
>>> From: jeremy brand [mailto:[EMAIL PROTECTED]]
>>> Sent: Wednesday, January 10, 2001 1:18 PM
>>> To: Robert Ludvik
>>> Cc: [EMAIL PROTECTED]
>>> Subject: Re: [PHP] pause
>>> 
>>> 
>>> You could use custom HTML meta content refresh tags.  This is not a
>>> PHP think, but an HTML thing.
>>> 
>>> Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 ::
> [EMAIL PROTECTED]
>>> http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
>>> Get your own Free, Private email at http://www.smackdown.com/
>>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> "<body>"   -- Quoted from Yahoo! homepage, http://www.yahoo.com
>>> 
>>> On Wed, 10 Jan 2001, Robert Ludvik wrote:
>>> 
>>>> Date: Wed, 10 Jan 2001 21:18:38 +0100
>>>> From: Robert Ludvik <[EMAIL PROTECTED]>
>>>> To: [EMAIL PROTECTED]
>>>> Subject: [PHP] pause
>>>> 
>>>> hi
>>>> i know i've noticed somewhere something about how to implement a Pause
> in
>>> PHP -
>>>> I mean, if ie.a user inputs a wrong number, the script says "Oh no,
> it's
>>>> wrong", waits a few seconds and redirects her back to input form. i
> know i
>>> could
>>>> say to him "hit a Back button...", just wondering if something lika
> Pause
>>>> exists. i've searched php.net and zend.com but found nothing useful.
>>>> thanks
>>>> Bobe
>>>> 
>>>> --
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>>>> 
>>>> 
>>> 
>>> 
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>> 
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>> 
> 
> 
> -- 
> 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]
> 





In article <[EMAIL PROTECTED]>,
"Brandon Orther" <[EMAIL PROTECTED]> wrote:

You will want to apply a cast to the variables to force the addition
to be dealing with numbers.

So, if $var1 = "2" and $var2 = "3",

then 

$var3 = (int) $var1 + (int) $var2;
print($var3); 
 will show 5

see:  http://www.php.net/manual/language.types.type-juggling.php

Jeff


> I have 2 variables, and I want them to add with each other.  But all I
> get is the first variable and then the second variable.  Here is and
> example:
> 
> ------------------------
> $var1 = "2";
> $var2 = "3";
> 
> $var3 = $var1 + $var2;
> 
> echo "$var3";
> 
> OUTPUT = 23
> ------------------------
> 
> Does anyone know how I can forces them to add?
> 
> Thank you,
> 
> --------------------------------------------
> Brandon Orther WebIntellects Design/Development Manager
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
> 
> 
>




Hey Everyone,

I'm working a project for one of the company's websites. they have a subscription 
mailing list that the user signs up their email address to receies periodical 
emailings.

The email addresses are stored in a flat txt file. 1 email per line. I could also 
convert it to a coma delimited txt file if it would be easier.

So, they've had problem with people who no longer want to receive emails, and one's 
that bounce for whatever reason, generally a bad email address.

What I am trying to find out if who has some information to set up a system where we 
will send out our emails to the subscribers with our mailing list manager. when i 
customer respondes with a certain command in the body or subject (like unsubscribe) or 
if the mail bounces, I'd like it to search out the email address and delete it.

Now, I know there's lists like majordomo that do something similar. But I'm looking 
for something a little more straightforward.

I also know this may be more along the lines of shell scripting, but I thought some of 
you ingenious people may have already done something similar or have some ideas on 
where to start. thanks.




Sure - I did this with qmail. In your .qmail file or any file that passes the
incoming mail to /dev/stdin you need to pipe it to a php script. It will look
like this:

<?

  $fp = fopen('/dev/stdin','r');
  while(!feof($fp))
  {
    $line = trim(fgets($fp,4096));
    if(ereg("^From:",$line))
    {
      // example of parsing out the From: header
    }
  }

?>

I had email addresses setup like ezmlm - 
ie [EMAIL PROTECTED] or on the other hand
[EMAIL PROTECTED] - then just parse out the
To: address and replace the = with a @ (dashes as well with something else) and
remove the email.

--Joe



On Wed, Jan 10, 2001 at 06:49:16PM -0700, Jason Beebe wrote:
> Hey Everyone,
> 
> I'm working a project for one of the company's websites. they have a subscription 
>mailing list that the user signs up their email address to receies periodical 
>emailings.
> 
> The email addresses are stored in a flat txt file. 1 email per line. I could also 
>convert it to a coma delimited txt file if it would be easier.
> 
> So, they've had problem with people who no longer want to receive emails, and one's 
>that bounce for whatever reason, generally a bad email address.
> 
> What I am trying to find out if who has some information to set up a system where we 
>will send out our emails to the subscribers with our mailing list manager. when i 
>customer respondes with a certain command in the body or subject (like unsubscribe) 
>or if the mail bounces, I'd like it to search out the email address and delete it.
> 
> Now, I know there's lists like majordomo that do something similar. But I'm looking 
>for something a little more straightforward.
> 
> I also know this may be more along the lines of shell scripting, but I thought some 
>of you ingenious people may have already done something similar or have some ideas on 
>where to start. thanks.

-- 

Joe Stump, PHP Hacker
[EMAIL PROTECTED]
http://www.miester.org/





hi Guillermo,

as part of the binarycloud error handling infrastructure, we capture all
errors on a page (that and sql queries + apache environment) and provide a
module that you can (optionally) have print all of that stuff in your pages
in an easy-to-read table. it has helped us quite a bit, because we show all
php and binarycloud system errors related to a page.

have a look at http://www.binarycloud.com

_alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] (Guille -bisho-)
> Newsgroups: php.general
> Date: 10 Jan 2001 09:35:05 -0800
> Subject: [PHP] Code diagnostics & profiling
> 
> Anymody knows any way of making diagnostics of PHP code to make
> optimizations???
> 
> In mod_perl exists a bunch of utilitys & modules to make this things like
> Devel::DProf
> 
> I usually put PHP in the maximun Warning level and write them to a log file,
> or using the debugger and see the output in other machine.
> 
> Also in PHP4 its imposible to use the debugger, so the things are harder...
> 
> -- 
> \|||||||/    Guillermo Pérez Pérez
> < o   o >      - [EMAIL PROTECTED]
> \  L  /       - [EMAIL PROTECTED]
> -oOOo-------oOOo-
> Onírica: Análisis, diseño e implantación de soluciones informáticas
> http://www.onirica.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]
> 





On 9 Jan 2001 21:04:26 -0800, [EMAIL PROTECTED] (James Mclean) wrote:
>list,
>ok her is the problem. i have a page taht works fine in one dir, but in a sub
>dir, it doesnt even show up. here is my dir structure.
>public_html/|
>            |website/|
>            |        |index.php
>            |        |admin/|
>            |        |      |admin.php
>            |        |      |
>
>now what happens, is if the file admin.php is in the admin dir, all i get in
>the browser is the tags <html><head></head></html>, but if i put the file
>admin.php into the website dir, it works fine. please help!!
>
>using php4.0b3, mysql 3.22.32 apache latest debian 2.2
>please help!!

Can we see the code that is giving you the problems?

--
Michael Brunson                          504.473.6643
[EMAIL PROTECTED]                 ICQ: 83163789
     <? Special Projects Programming Manager ?>
      ---   Intercosmos Media Group, Inc.  ---
      www.intercosmos.com    www.directnic.com




hi Brandon,

we use php's session handing functions to set cookies, they are obviously
hashed, etc before the values are sent.

as part of the authentication system, we check to see that the user's client
matches the last access with that session id, if not, we request a sign in.

if you're not talking about authenticated pages, (which you probably aren't
for a basic shopping cart app), we handle all of that stuff transparently.

_alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] (Brandon Orther)
> Newsgroups: php.general
> Date: 10 Jan 2001 08:12:07 -0800
> Subject: [PHP] Shopping Carts
> 
> Hello,
> 
> I am making a shopping cart.  I am wondering on how I should separate each
> user.  I though the I.P. would be good but there can be a couple people on
> one I.P. so if someone is sharing an I.P. it will mess things up.. Anyone
> got a better way to do it?
> 
> Thank you,
> 
> --------------------------------------------
> Brandon Orther
> WebIntellects Design/Development Manager
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.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]
> 





In article <[EMAIL PROTECTED]>, "Randy"
<[EMAIL PROTECTED]> wrote:

I would be willing to bet that within the php.ini file, an entry such
as you listed would look for includes in:

if foo = location of php.ini  e.g. /usr/local/lib/php.ini,

then ../include relative to foo is /usr/local/include/

so then include files would look inside /usr/local/include.

>From within your script, include "../test/sample.php" would
look relative to the path setup in php.ini,

so if include dir via php.ini is /usr/local/include/

then include from your script would be /usr/local/test/sample.php/

Anyone care to verify?

Jeff


> I'm confused on what should be a simple issue - where does php look for
> an include file in the following example? My test results seem very
> confusing and the docs never mention it.
> 
> In the program:
>   include "../test/sample.php";
> 
> In php.ini:
>   include_path="../include"
> 
> Does php:
>   A. Look in the dir "../test" for sample.php first and if not found,
>   look in "../include" for sample.php? B. Ignore the dir "../test/" and
>   look in
>   "../include" for sample.php? C. Look in dir "../test" for sample.php
>   and
>   if not found, look in "../include" for "../test/sample.php"? (and
>   can't find it as invalid) D. Look only in dir "../include" for
>   "../test/sample.php"? (and can't find it as invalid)
> 
> Does it work exactly the same for REQUIRE?
> 
> TIA
> 
>




In article <[EMAIL PROTECTED]>, "Arcady Genkin"
<[EMAIL PROTECTED]> wrote:

http://reality.sgi.com/grafica/flash/dist.99.linux.tar.Z

Jeff


> Are libswf's sources available, or is it only distributed in binary?
> 
>




I've adapted a session management script I found on
www.phpbuilder.com for storing session info in MySQL, but
I'm wondering about "garbage collection".  Does the system
do the garbage collection itself somehow, or should my
sess_open function call sess_gc directly?

I noticed that when I invoke session_destroy(), the session
row for that id remains in the database - but the session
data associated with that session id is gone.  Is that normal?
I almost expected the whole session row to be removed,
especially since the sess_destroy function does actually
does a DELETE FROM.  I don't quite understand how this is
working.

Is there some documentation somewhere on the "user"(database)
functions for a session management in a database, like what
each function is expecting, and what each should return, and
when each one is called???

TIA.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com




VERY exciting!
cool cool cool

zend cache, but for free!

but does it work.

more to come, as I will be testing this :)

_alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] (Marcin Orlowski)
> Organization: W.F.M.H. - http://wfmh.org.pl/
> Newsgroups: php.general
> Date: 9 Jan 2001 15:26:36 -0800
> Subject: [PHP] AFTERBURNER - PHP CACHE
> 
> http://bwcache.bware.it/





we're using PHPDoc with binarycloud, it's a little rough at the moment, but
it looks like the code is moving along, and having a standard is fantastical
:)

phpdoc.de

binarycloud: www.binarycloud.com

_alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Alain Fontaine")
> Newsgroups: php.general
> Date: 6 Jan 2001 12:17:16 -0800
> Subject: [PHP] Good and working documentation generator
> 
> Hi,
> 
> Is there such a thing yet ? I have had a look at the currently "being
> developed" documentation generators, but they just don't quite cut it yet,
> or did I miss one that actually works well ?
> 
> We are working on Windows platforms, so a tool that does not rely on
> Unix/Linux only tools, would be perfect.
> 
> Thanks a lot for your ideas and opinions.
> 
> ---
> Alain Fontaine
> Nvision s.a.
> Luxembourg
> 
> 
> 
> 
> -- 
> 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]
> 





Alex,

Ah well, never mind my mail about BinaryCloud:

    "Win(x) isn't considered or supported."

I guess then BinaryCould "isn't considered or supported" in my company
either :)

"Alex Black" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> we're using PHPDoc with binarycloud, it's a little rough at the moment,
but
> it looks like the code is moving along, and having a standard is
fantastical
> :)
>
> phpdoc.de
>
> binarycloud: www.binarycloud.com
>
> _alex
>
>
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
>
> The Turing Studio, Inc.
> http://www.turingstudio.com
>
> vox+510.666.0074
> fax+510.666.0093
>
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
>
>
>
>
> > From: [EMAIL PROTECTED] ("Alain Fontaine")
> > Newsgroups: php.general
> > Date: 6 Jan 2001 12:17:16 -0800
> > Subject: [PHP] Good and working documentation generator
> >
> > Hi,
> >
> > Is there such a thing yet ? I have had a look at the currently "being
> > developed" documentation generators, but they just don't quite cut it
yet,
> > or did I miss one that actually works well ?
> >
> > We are working on Windows platforms, so a tool that does not rely on
> > Unix/Linux only tools, would be perfect.
> >
> > Thanks a lot for your ideas and opinions.
> >
> > ---
> > Alain Fontaine
> > Nvision s.a.
> > Luxembourg
> >
> >
> >
> >
> > --
> > 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]
>






Don't reinvent the wheel. It will take you longer to write it than it will
to learn to admin majordomo or any of 10 other programs like it.

IMHO,
Cal

-----Original Message-----
From: Jason Beebe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 7:49 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-DB] Autonomous Mass Mail List System (Broadcast Email)


Hey Everyone,

I'm working a project for one of the company's websites. they have a
subscription mailing list that the user signs up their email address to
receies periodical emailings.

The email addresses are stored in a flat txt file. 1 email per line. I could
also convert it to a coma delimited txt file if it would be easier.

So, they've had problem with people who no longer want to receive emails,
and one's that bounce for whatever reason, generally a bad email address.

What I am trying to find out if who has some information to set up a system
where we will send out our emails to the subscribers with our mailing list
manager. when i customer respondes with a certain command in the body or
subject (like unsubscribe) or if the mail bounces, I'd like it to search out
the email address and delete it.

Now, I know there's lists like majordomo that do something similar. But I'm
looking for something a little more straightforward.

I also know this may be more along the lines of shell scripting, but I
thought some of you ingenious people may have already done something similar
or have some ideas on where to start. thanks.





well, the fact of the matter, is that we will not be sending the mail from
the server, i only need something to handle bounces and discontinues when
sent to a specific email address, which resides on the server. the resources
are not available to use to send out that volume of custimized emails.

i may go that route, just for the sake of ease, but what we really need is
much simpler in form. only needs to remove email addresses from a file.


> Don't reinvent the wheel. It will take you longer to write it than it will
> to learn to admin majordomo or any of 10 other programs like it.
>
> IMHO,
> Cal






I notice this is kinda getting pushed towards other
directions and the reasons for keeping the direction asked
for seem to have merit, so...

It can be done, I'm sure, but you'll have to sit down and
design it... you'll probably be better off using a package
that already does such things. You've got to figure out how
the script will be called, how it's going to determine what
address to remove, and how it will remove the address
(probably the easiest part).

That's pretty broad... and probably a day or two worth of
work, with chances for bugs, etc...

--Toby

----- Original Message -----
From: "Jason Beebe" <[EMAIL PROTECTED]>
To: "Cal Evans" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 9:34 PM
Subject: [PHP] Re: [PHP-DB] Autonomous Mass Mail List System
(Broadcast Email)


> well, the fact of the matter, is that we will not be
sending the mail from
> the server, i only need something to handle bounces and
discontinues when
> sent to a specific email address, which resides on the
server. the resources
> are not available to use to send out that volume of
custimized emails.
>
> i may go that route, just for the sake of ease, but what
we really need is
> much simpler in form. only needs to remove email addresses
from a file.
>
>
> > Don't reinvent the wheel. It will take you longer to
write it than it will
> > to learn to admin majordomo or any of 10 other programs
like it.
> >
> > IMHO,
> > Cal
>
>
>
> --
> 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]
>
>





write a lib that can call scp :)

-alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Nando2")
> Newsgroups: php.general
> Date: 5 Jan 2001 16:40:09 -0800
> Subject: [PHP] SSH file transfers
> 
> Hello Everybody,
> 
> I need to do upload and download with php but I didn't want to have a FTP
> server running on one of my linux servers since it is unsecure.
> 
> Since all my servers have SSH running I would like to be able to offer a PHP
> download/ upload system that uses SSH instead of FTP.
> 
> How can I upload / download files using SSH through PHP?
> 
> Has anyone ever did it before?
> 
> Thank you,
> 
> Carlos Fernando.
> 





jeremy brand wrote:
> 
> > How can I upload / download files using SSH through PHP?
> 
> Use scp.
> 
> I built a rather complex document system that is more
> than I want to mention for this topic, but...
> 
> > Has anyone ever did it before?
> 
> Yes.  You can run "any" program from php.  Just use the system, or
> exec or ``.


Is there a decent scp for windows?  In particular, is there one that
could be run through a browser?

What Nando2 probably wants is the normal HTTP upload, but over SSL.  Use
that SSL only if the contents of the files need to be protected, because
of the overhead it adds.  If the contents don't need to be protected, a
good sessioning system (with the HTTP upload) would probably work.




the people who make putty (my favorite ssh client for windows) also make a command 
line scp program. this could be included as an exec() in a script I would think...





Yeek!  Not quite what I meant.  I don't think that web servers have any
business being on windows boxes.  I was wondering if there were a way to
upload using something like scp from a windows (or other) browser to a
unix server.

bard wrote:
> 
> the people who make putty (my favorite ssh client for windows) also make a command 
>line scp program. this could be included as an exec() in a script I would think...
> 
> --
> 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]




HI all, 
i have an article from my friend where the subject is virus in php. My
Question is, is't true ? if yes, how to anticipate it? 

the article:


> This article from vnunet.com has been sent to you by [EMAIL PROTECTED]
> 
> who has added the following message: $#%@#^$&
> 
> If you wish to go straight to the page from which this article was sent,
> click here: http://www.vnunet.com/News/1116080 
> 
> Websites warned over first hypertext virus
> 
> A potential threat to ecommerce sites has been identified with the
> discovery of the first virus using the hypertext preprocessor (PHP)
> scripting language.  
> PHP is one of the most popular scripting
> languages and is used to develop ecommerce sites and those with heavy
> content.  
> Although the virus, which was discovered by antivirus
> software and computer services company Central Command, does not carry
> any immediate risks, the company warned that future versions could
> have more damaging consequences.  
> Steven Sundermeier, product manager
> at Central Command, said: "PHP.NewWorld is what we consider a
> proof-of-concept virus. In fact, the only way your server gets
> infected is if you manually insert the script into your site or access
> it through the web server."  
> Although the virus is spread by
> executing an infected script, Sundermeier does not believe that the
> spreading method allows the virus to leave the infected machine. But
> he warned that in future, the PHP script could be altered to trigger a
> more dangerous virus. 
> The majority of websites that integrate user
> interaction and personalisation rely on PHP, making them an appealing
> target for virus writers. "Because the PHP language is absolutely
> free, we are anticipating that copycats of this PHP script virus will
> become prominent and will have much more damaging consequences in the
> near future," said Sundermeier. 
> He added that while other antivirus
> providers require users to download a large upgrade file or patch when
> a malicious new virus emerges, the company's AntiVirus eXpert software
> has been updated to spot and deal effectively with the new bug. 
> 
> Security policy management, real-time management of antivirus
> software and support for TCP/IP and HTTP communications, JavaScript
> and ActiveX technologies are also included.
> 
> --------------------------------------------------------------------------
> 
> vnunet.com is the computing and IT web site with the broadest range of
> content in this field of any UK site. Whether you're a beginner or an
> expert, an enthusiast or a professional, vnunet.com has something for you.
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> http://www.vnunet.com - your computer connection
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> Thu Jan 11 01:49:42 GMT 2001


Best Regards
-JUANG-

http://www.infoasia.net
http://www.skopeonet.com
http://www.infoasiamall.com
http://www.laksamana.net




Either it's not the first, or it's pretty old news...

And if it's the same old virus from before, the referenced article didn't
even bother to describe the virus and how to detect remove it, which other
articles have done -- They just hawk their wares.

Search the archives for "PHP Virus" and you're bound to find much better
references to what it's all about.

Oh yeah -- You'd pretty much have to install the virus yourself for it to
get onto your server...  Last I heard, it had spread to two (2) machines.
:-^

While I don't want to downplay the importance of security, nor negate their
claims of future risks, it's a pretty uninformative article.

----- Original Message -----
From: <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Wednesday, January 10, 2001 8:10 PM
Subject: [PHP] Websites warned over first hypertext virus, is it true?


> HI all,
> i have an article from my friend where the subject is virus in php. My
> Question is, is't true ? if yes, how to anticipate it?
>
> the article:
>
>
> > This article from vnunet.com has been sent to you by [EMAIL PROTECTED]
> >
> > who has added the following message: $#%@#^$&
> >
> > If you wish to go straight to the page from which this article was sent,
> > click here: http://www.vnunet.com/News/1116080
> >
> > Websites warned over first hypertext virus
> >
> > A potential threat to ecommerce sites has been identified with the
> > discovery of the first virus using the hypertext preprocessor (PHP)
> > scripting language.
> > PHP is one of the most popular scripting
> > languages and is used to develop ecommerce sites and those with heavy
> > content.
> > Although the virus, which was discovered by antivirus
> > software and computer services company Central Command, does not carry
> > any immediate risks, the company warned that future versions could
> > have more damaging consequences.
> > Steven Sundermeier, product manager
> > at Central Command, said: "PHP.NewWorld is what we consider a
> > proof-of-concept virus. In fact, the only way your server gets
> > infected is if you manually insert the script into your site or access
> > it through the web server."
> > Although the virus is spread by
> > executing an infected script, Sundermeier does not believe that the
> > spreading method allows the virus to leave the infected machine. But
> > he warned that in future, the PHP script could be altered to trigger a
> > more dangerous virus.
> > The majority of websites that integrate user
> > interaction and personalisation rely on PHP, making them an appealing
> > target for virus writers. "Because the PHP language is absolutely
> > free, we are anticipating that copycats of this PHP script virus will
> > become prominent and will have much more damaging consequences in the
> > near future," said Sundermeier.
> > He added that while other antivirus
> > providers require users to download a large upgrade file or patch when
> > a malicious new virus emerges, the company's AntiVirus eXpert software
> > has been updated to spot and deal effectively with the new bug.
> >
> > Security policy management, real-time management of antivirus
> > software and support for TCP/IP and HTTP communications, JavaScript
> > and ActiveX technologies are also included.
> >
>
> --------------------------------------------------------------------------
> >
> > vnunet.com is the computing and IT web site with the broadest range of
> > content in this field of any UK site. Whether you're a beginner or an
> > expert, an enthusiast or a professional, vnunet.com has something for
you.
> >
> >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > http://www.vnunet.com - your computer connection
> >
> >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> > Thu Jan 11 01:49:42 GMT 2001
>
>
> Best Regards
> -JUANG-
>
> http://www.infoasia.net
> http://www.skopeonet.com
> http://www.infoasiamall.com
> http://www.laksamana.net
>
> --
> 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]
>





we chose metabase for binarycloud (www.binarycloud.com) specifically for its
maturity, relative simplicity, and the incredibly cool XML schema thing,
which has saved me countless hours of crapwork :)

I think PEAR's db class will eventually be good, but for now metabase beats
is simply because it is _far_ more mature.

I would recommend using metabase for your projects, I'd also recommend using
binarycloud (we use metabase for database abstraction, and have a bunch of
other code for building php apps)

both will save you many hours of work :)

-alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Manuel Lemos")
> Newsgroups: php.general
> Date: 5 Jan 2001 16:39:38 -0800
> Subject: Re: [PHP] DB portability
> 
> Hello mwaples,
> 
> On 03-Jan-01 11:19:53, you wrote:
> 
>>>> I am looking at undertaking a very large project that will be handled
>>>> initially in MySQL.  Down the road we may choose a corporate db such as
>>>> Oracle.  My thought was since we will have thousands of lines of code to
>>>> migrate to the new db, I could create a global script that is required by
>>>> each individual script.
>>>> 
>>>> This global script would alias typical database functions (connects,
>>>> queries, etc...) to PHP's MySQL functions for the time being and I could
>>>> adjust the alias in one central location if we switch from MySQL (I never
>>>> foresee this happening but you never know).
>>>> 
>>>> Can any of you see any repercussions of this central database alias
>>>> script?
>>> 
>>> I'm afraid things are not that simple. DBMS work in very different ways
>>> that it isn't
>>> just a matter of defining alias for each database.
>>> 
>>> You may want to try Metabase. Not only it abstracts the access to the
>>> database but it also abstracts the installation of the schemas so your
>>> applications can be completely database independent.
>>> 
>>> http://phpclasses.UpperDesign.com/browse.html/package/20
>>> 
>>> Manuel Lemos
> 
> 
>> I haven't looked at metabase yet - but have a few questions -
>> what about trigers and stored procedures - how does metabase deal with
>> them ?
> 
> It doesn't yet.  There isn't much that can be done on portability about
> things that vary so much between databases.  Still that doesn't mean you
> can't have triggers and stored procedures on applications that you access
> with Metabase.
> 
> 
>> Im just getting used to using postgresql, interbase, sybase as well as
>> myql with php - using a simple class to extract and insert data -
>> but I'm wondering how you deal with the different features of each
>> database - Mysql lacks a number of things like triggers and stored
>> procedures, sub ueries etc, would I lose any database specific
>> functionality by going with metabase ?
> 
> No, but if you used those database specific features your application would
> no longer be that much portable.
> 
> 
>> Would an application have to be simplified to work with MYsql and your
>> class ?
> 
> No, for instance Metabase has an interface to handle transactions.  If you
> try to use transactions on databases that don't support them, the
> transaction handling calls will fail.
> 
> OTOH, Metabase implements vital features that are not available in all
> databases but the respective drivers emulate them if necessary. For instance
> in MySQL you would use the LIMIT clause to restrict the range of rows that
> a SELECT statement would retrieve.  Metabase supports a similar feature in
> all supported databases so you can rely on that feature in the applications
> you use with Metabase regardless of the database you have.
> 
> 
>> Also what advantage does metabase have over the one in PEAR ?
>> If I use one wouldn't it be better to use one the ships with php as
>> eventually it would be more wisely used ?
> 
> Yes, a lot of people would think like that because they have no further
> information.  There are many things that PEAR-DB has still a lot to catch
> on.
> 
> To start, Metabase is not just a database abstraction to access databases.
> It is also capable of installing and maintaining database schemas specified
> in a portable format based on XML.  If you change your schema definition it
> will apply the changes without affecting any data added since the first
> time it was installed or the last time it was changed. This alone provides
> an higher level of database maintainability.
> 
> Then Metabase assures real portability.  For instance, if you want to
> handle fields with dates, Metabase assures that you only have to handle
> with one date format (ISO 8601 - YYYY-MM-DD).
> 
> Then Metabase adds abstractions for many important things for Web
> application development like the ability to define a row range that the
> select statements will provide, like it was mentioned above.
> 
> Metabase also provides a random access to query results where you can pick
> data from any row at any order.  As a consequence of this it is also always
> able to fetch the number of rows of a query result even with databases that
> do not have a function to support that.
> 
> Other than that Metabase has now over 2 years of development and consequent
> maturity. That can be demonstrated with the number of supported databases and
> the number of driver conformance tests that are made available in a test
> suite script that is provided with the package.
> 
> 
> As a consequence of this there are several ready to use components being
> made available here and there that rely on Metabase, like for instance this
> Query result table display class that not only lists the result rows in an
> HTML table that can be abritrarily customised but also presents links to go
> to the Next, Previous, First, Last or any other page of results of a query
> so you can browse over it.
> 
> http://phpclasses.UpperDesign.com/browse.html/package/130
> 
> There are a whole lot more useful database programming components based on
> Metabase. Stay tuned.
> 
> 
> Regards,
> Manuel Lemos
> 
> Web Programming Components using PHP Classes.
> Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
> --
> E-mail: [EMAIL PROTECTED]
> URL: http://www.mlemos.e-na.net/
> PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
> --
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 





just name the submit:

input type="submit" name="credit_card"
and
input type="submit" name="dealer"

that's easy to capture.

-alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Cal Evans")
> Newsgroups: php.general
> Date: 5 Jan 2001 09:09:03 -0800
> Subject: RE: [PHP] two submit buttons possible?
> 
> I'd use JavaScript and the onSubmit() of the form to redirect the action of
> the form based on the button pressed.
> 
> Cal
> 
> -----Original Message-----
> From: Geoff Coffey [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 05, 2001 10:45 AM
> To: PHP General
> Subject: Re: [PHP] two submit buttons possible?
> 
> 
> on 1/5/01 9:37 AM, Tom Beidler at [EMAIL PROTECTED] wrote:
> 
>> I'm wondering if there is a way in PHP to have two submit buttons on a
> form.
>> One directs to one page, the other to another page.
>> 
>> I have a checkout process that has two options, one for credit card users
>> that needs to be secure, the other uses a dealer id which doesn't need to
> be
>> secure.
>> 
>> The ISP we are working with can't get SSL and PHP on the same daemon. Most
>> orders do not be secure so I can use PHP to fill in most of the form for
>> them using PHP and MySQL. If they need to be secure I can't use PHP and
>> there by cannot fill out the form ( unless there is some way to pass the
>> variables from a PHP page to a vanilla html page?).
>> 
>> Any assistance would be greatly appreciated.
> 
> With javascript, you could have the buttons submit one of two hidden forms,
> each of which goes to a different php script (action=...)...but there's
> probably a better way.
> 
> Just put two submit buttons on your form with different values (labels) and
> the same name. On the PHP side, you can check which button was clicked
> because it's value will be the value of the variable associated with the
> submit button...does that make sense? Submit buttons are kind of like
> one-shot radio buttons...the one you click sends it's value back with the
> form...
> 
> Hope this helps,
> 
> Geoff
> 
> 
> --
> 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]
> 





why would you want to do that?

can you give me a little more detail about the application?

-alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Luescher Samuel (MMVZSLU)")
> Newsgroups: php.general
> Date: 5 Jan 2001 02:19:03 -0800
> Subject: [PHP] dynamic code
> 
> imagine having a database to which chunks of php code (among plain text) are
> submitted. how can i actually read this code from the database and then
> execute it within one script?
> the main problem is that i want to output plain text/html mixed with php.
> say, i have a field in my database containing html docs that can optionally
> contain php code. in this case, eval($body) produces parsing errors. do i
> have to parse them myself first and alternately eval() the php parts?
> 
> tia, sam
> 
> -- 
> 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]
> 





Humm... that's a bit difficult. There are easier solution:

1) Get your users to learn and usr SCP :) (not likely :))
2) Get a better FTP Server. There are better FTP servers out there other than
   Wu-FTPD :). Try Pro-FTPD
3) SSH server to forward the FTP port (21). This will pass the "command" channel of 
FTP ie the username
and password part of FTP process to SSH. But all other command like actual files 
transfers etc. will not
be encrypted. And as I recall the FTP clients will have to always use passive mode? or 
the other one I can't 
remember.

4) Run SSL on your server. This way you can just let your user use your PHP scripts to 
upload files

Otherwise, it'll be pretty difficult to get PHP to work with SSH.

> From: [EMAIL PROTECTED] ("Nando2")
> Newsgroups: php.general
> Date: 5 Jan 2001 16:40:09 -0800
> Subject: [PHP] SSH file transfers
> 
> Hello Everybody,
> 
> I need to do upload and download with php but I didn't want to have a FTP
> server running on one of my linux servers since it is unsecure.
> 
> Since all my servers have SSH running I would like to be able to offer a PHP
> download/ upload system that uses SSH instead of FTP.
> 
> How can I upload / download files using SSH through PHP?
> 
> Has anyone ever did it before?
> 
> Thank you,
> 
> Carlos Fernando.
> 




I want to add a user of my Netscape Messaging server(ldap)
with php,who can give me a example of such using,including
userid,password,email and so on!
Thanks a lot!

my email address: [EMAIL PROTECTED]
















I want to add a user of my Netscape Messaging server(ldap)
with php,who can give me a example of such using,including
userid,password,email and so on!
Thanks a lot!

my email address: [EMAIL PROTECTED]




















You might want to look at http://www.zend.com/codex.php?id=113&single=1

Maciek

> -----Original Message-----
> From: Huang Wenhai [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 3:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to add a user of LDAP?
> 
> 
> I want to add a user of my Netscape Messaging server(ldap)
> with php,who can give me a example of such using,including
> userid,password,email and so on!
> Thanks a lot!
> 




Actually, the pages I've been working on lately have been so code-intensive 
I've found it easier to echo/print the HTML, especially as not that much 
has been generated.

When I turn PHP on and off I tend to have "OOPS" scenarios, and have to go 
searching for the previous "?>" or "<?".

Miles

At 06:12 PM 01/10/2001 -0500, Brian Clark wrote:

>Hello Alexander,
>
>(AW == "Alexander Wagner") [EMAIL PROTECTED] writes:
>
> >> Mmmmppppfff... ultraedit's wordlist file still lacks the color of
> >> allaire's homesite - it does detect which parts of the .php file
> >> are HTML and what parts of the file are PHP code, and colours
> >> syntax very well...
>
>AW> Who needs that? Nesting PHP in HTML is bad style, IMHO.
>
>Bad style?!
>
>You _actually_ print() or echo() everything you want to send to the
>browser?
>
>If it doesn't need to be interpolated by PHP, why print() it?
>
>-Brian
>--
>Life may have no meaning, or, even worse,
>it may have a meaning of which you disapprove.
>
>
>
>--
>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]








Hello Miles, 

(MT == "Miles Thompson") [EMAIL PROTECTED] writes:

MT> When I turn PHP on and off I tend to have "OOPS" scenarios, and
MT> have to go searching for the previous "?>" or "<?".

Ah yes, but even that goes back to the Learning HTML days. "When you
open a tag, immediately create the closing tag."

Out of habit, you'll eventually stop making that mistake.

Likewise, if you get into the habit of doing <? ?> or ?> <? in tandem,
your worries will soon disappear.

MT> Miles


-Brian
--
Don't try to be like Jackie. There is only one Jackie.
Study computers instead. -- Jackie Chan







(BC == "Brian Clark") [EMAIL PROTECTED] writes:

BC> Likewise, if you get into the habit of doing <? ?> or ?> <? in
BC> tandem, your worries will soon disappear.

P.S. a decent editor that has *good* syntax highlighting (Ie.
different schemes for HTML, JavaScript and PHP highlighting in the
same document) helps that sort of thing too.

-Brian
--
A)bort, R)etry, I)gnore, V)alium?






> hi..
>
> ..i am curious if theres anny linux (x, KDE, Gnome) php editor with syntax
> highliting and this things...
>
> markus
>

You can also try quanta+ for the KDE desktop,

http://quanta.sourceforge.net

Meir Kriheli
MKsoft computer systems

  'There's someone in my head but it's not me" - Pink Floyd





Toby Butzon wrote:
> Come on... mixing PHP and HTML in the same file isn't bad
> style... in fact it can make things easier to read, if you
> do it right.
>
> This is one of PHP's biggest features... otherwise we'd just
> have another Perl...
>
> ....my .02...

There are more differences between PHP and Perl than this.
Anyway, mixing PHP and HTML ties you HMTL rather firmly to your 
PHP-Code and you will never be able to let anyone who doesn't know PHP 
edit you design, which tend to be a bad thing since many 
PHP-programmers don't like to design and most designers don't know PHP.

You get the most readable (smallest, in this case) code by generating 
the HMTL in special functions calls, or by including you HTML. There is 
no need to have that nasty HTML bloat your actual code, is there?

Ever heard about templates? This way, even a dumb designer who can't do 
more than click-and-point can edit your design.

I, personaly, never found any use for having HTML and PHP highlighted 
in the same file and am pretty contenc with emacs cc-mode or that 
php-mode I got somewhere, which both don't do that.

There may of course be cases where nesting PHP in HMTL is useful, but I 
can't think of too many of them now and never encountered one. 
Especially with bigger projects, it definately is not the way to go.

Wagner

-- 
Sanity is calming, but madness is more interesting.




Does anyone around knows the regular expression that matches all the
ocurrences of a word (p.e. "needle") not within PHP code, i.e., outside the
<? and ?> tags?

By the way, is there a good online tutorial or reference on regular
expressions?

Thanks a lot.





I reconfigured php with ./configure --with-mysql=/usr/local/etc/mysql 
--with-apxs=/usr/local/etc/apache/bin/apxs and apache will no longer start.  I removed 
the path from the mysql to get the webserver back up but my question was why would it 
not be able to find libmysqlclient.so.10 (error down below).   The file is located at 
/usr/local/etc/mysql/lib/mysql/libmysqlclient.so.10 ... any reason its not picking up 
the fact that its there when I pointed it to the directory I told mysql to install to?

Cannot load /usr/local/etc/apache/libexec/libphp4.so into server: Shared object 
"libmysqlclient.so.10" not found

-Shane





Hello Shane, 

(SR == "Shane Reid") [EMAIL PROTECTED] writes:

SR> I reconfigured php with ./configure
SR> --with-mysql=/usr/local/etc/mysql
SR> --with-apxs=/usr/local/etc/apache/bin/apxs and apache will no
SR> longer start. I removed the path from the mysql to get the
SR> webserver back up but my question was why would it not be able to
SR> find libmysqlclient.so.10 (error down below). The file is located
SR> at /usr/local/etc/mysql/lib/mysql/libmysqlclient.so.10 ... any
SR> reason its not picking up the fact that its there when I pointed
SR> it to the directory I told mysql to install to?

I don't know if this is your problem for sure, but here goes..

configure says:

for i in lib lib/mysql; do

  str="$MYSQL_DIR/$i/libmysqlclient.*"
  for j in `echo $str`; do
    if test -r $j; then
      MYSQL_LIB_DIR="$MYSQL_DIR/$i"
      break 2
    fi
  done

  done

  if test -z "$MYSQL_LIB_DIR"; then
    { echo "configure: error: Cannot find mysqlclient library under $MYSQL_DIR" 1>&2; 
exit 1; }
  fi


So it's checking /usr/local/etc/mysql/lib/libmysqlclient.* and
/usr/local/etc/mysql/lib/mysql/libmysqlclient.*

And it didn't spit out:

"configure: error: Cannot find mysqlclient library under
/usr/local/etc/mysql"

Right?

Then it obviously found it, which prompted you to start Apache.

SR> Cannot load /usr/local/etc/apache/libexec/libphp4.so into server:
SR> Shared object "libmysqlclient.so.10" not found

Try sticking the path to that library (/usr/local/etc/mysql/lib/mysql) into
ld.so.conf and run ldconfig once as root.

Then build php with mysql support again and start apache.

I find myself saying this a lot <g>, but see if that fixes it.

SR> -Shane

Maybe someone else will pipe up here soon with a definite answer if
that doesn't fix your problem.

-Brian
--
The end of the day is near when small men make long shadows.






I know this is kinda silly.  but, if I have the following, will the file
only be included when the case is matched or does require always bring in
the file regarless?

case blah:
    require('include.php');
    do something....
break;

-----------------------------------------------------------------
Jonathan Rosenberg
Be fierce, be fabulous, change the world!








> I know this is kinda silly.  but, if I have the following, will the file
> only be included when the case is matched or does require always bring in
> the file regarless?
>
> case blah:
>     require('include.php');
>     do something....
> break;

Pretty sure it depends on whether your file system is case-sensitive. If
you're on Windows, it's not; it Unix, it is.

Dean.






Hello Jon, 

(JR == "Jon Rosenberg") [EMAIL PROTECTED] writes:

JR> I know this is kinda silly. but, if I have the following, will the
JR> file only be included when the case is matched or does require
JR> always bring in the file regarless?

That is *supposed* to be the way it works. That is *supposed* to be one
of the differences of require() and include(). You'd use include(),
for example, within a conditional.

I can only speak for PHP 3.0.18, but yes. require() includes it
regardless. include() only includes it if 'blah' is met.

JR> case blah:
JR>     require('include.php');
JR>     do something....
JR> break;

-Brian
--
Everything should be built top-down, except the first time.






At 11:17 PM -0500 1/10/01, Jon Rosenberg wrote:
>I know this is kinda silly.  but, if I have the following, will the file
>only be included when the case is matched or does require always bring in
>the file regarless?
>
>case blah:
>    require('include.php');
>    do something....
>break;
>


'require' ALWAYS includes the file; 'include' is what you want here.

The tradeoff is that include is slightly slower. For more info, see

        http://www.php.net/manual/function.include.php
and
        http://www.php.net/manual/function.require.php

-steve

+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+




require includes the file BEFORE any processing is done - so yes it will be
included - you need to use include() instead.

--Joe

On Wed, Jan 10, 2001 at 11:17:43PM -0500, Jon Rosenberg wrote:
> I know this is kinda silly.  but, if I have the following, will the file
> only be included when the case is matched or does require always bring in
> the file regarless?
> 
> case blah:
>     require('include.php');
>     do something....
> break;
> 
> -----------------------------------------------------------------
> Jonathan Rosenberg
> Be fierce, be fabulous, change the world!
> 
> 
> 
> 
> 
> -- 
> 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]

-- 

Joe Stump, PHP Hacker
[EMAIL PROTECTED]
http://www.miester.org/






>'require' ALWAYS includes the file; 'include' is what you want here.

not since v4.0.2(?) came out ...
I heard from Zeev that require() and include() behave now just about the
same.
Read our posting regarding this topic of 1-2 month ago..

Cheers,
Maxim Maletsky

>The tradeoff is that include is slightly slower. For more info, see

>       http://www.php.net/manual/function.include.php
>and
>       http://www.php.net/manual/function.require.php

-steve

+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+

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




here we go, from Zeev:

> >As of PHP 4.0.3, the implementation of require() no longer behaves that
> >way, and processes the file 'just in time'.  That means that in the 1st
> >example, the file will be processed a hundred times, and in the 2nd
> >example, it won't be processed at all.  That's the way include() behaves
> >(in all versions of PHP) as well.

November 14-th ...


Cheers,
Maxim Maletsky

-----Original Message-----
From: Maxim Maletsky 
Sent: Thursday, January 11, 2001 2:26 PM
To: 'Steve Edberg'; Jon Rosenberg; PHP List .
Subject: RE: [PHP] case ?



>'require' ALWAYS includes the file; 'include' is what you want here.

not since v4.0.2(?) came out ...
I heard from Zeev that require() and include() behave now just about the
same.
Read our posting regarding this topic of 1-2 month ago..

Cheers,
Maxim Maletsky

>The tradeoff is that include is slightly slower. For more info, see

>       http://www.php.net/manual/function.include.php
>and
>       http://www.php.net/manual/function.require.php

-steve

+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+

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




At 2:29 PM +0900 1/11/01, Maxim Maletsky wrote:
>here we go, from Zeev:
>
> > >As of PHP 4.0.3, the implementation of require() no longer behaves that
> > >way, and processes the file 'just in time'.  That means that in the 1st
> > >example, the file will be processed a hundred times, and in the 2nd
> > >example, it won't be processed at all.  That's the way include() behaves
> > >(in all versions of PHP) as well.
>
>November 14-th ...
>
>
>Cheers,
>Maxim Maletsky



Aah; so I leaned something new today :)

My production systems are still PHP3; PHP4.0.4 is still on my test system.

        - steve



>-----Original Message-----
>From: Maxim Maletsky
>Sent: Thursday, January 11, 2001 2:26 PM
>To: 'Steve Edberg'; Jon Rosenberg; PHP List .
>Subject: RE: [PHP] case ?
>
>
>
> >'require' ALWAYS includes the file; 'include' is what you want here.
>
>not since v4.0.2(?) came out ...
>I heard from Zeev that require() and include() behave now just about the
>same.
>Read our posting regarding this topic of 1-2 month ago..
>
>Cheers,
>Maxim Maletsky
>
> >The tradeoff is that include is slightly slower. For more info, see
>
> >     http://www.php.net/manual/function.include.php
> >and
> >     http://www.php.net/manual/function.require.php
>
>-steve

+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+




Hi, I'm involved in a conundrum that is a little difficult to explain 
with plain English. Perhaps some PHP code will help you understand 
what I am attempting:

#Option 1: code I wish worked
$s = include("phpcode.php");

#Option 2: also code I wish worked
$s = sprintf("%s", include('template.php'));

Basically, I'm wondering if there is a way to redirect print and echo 
output from PHP to a variable instead of directly to a browser or 
file stream. What I'm trying to do is create code that can generate 
an HTML page to a variable that I can manipulate and then later store 
in a database.

Obviously, the "real" way to do this is to not use print() statements 
at all, but simply build a variable as follows:
$output .= "<html> yadda yadda yadda";
$output .= sprintf("More html and function output %s", function());

until the $output contains the entire file.

The reason I don't want to do this is that it will require rewriting 
all my PHP file templates.

Also, I'm simply obsessed with the problem now. I even went as far as 
using eval() on the reading of an fopen(template.php) of the PHP 
template, but even then I couldn't assign the output to a variable.

Anyone want to kill themselves trying? My head hurts.

Sincerely,
Kristofer
-- 
                              http://www.brokenhill.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~
"The only real ideas are the ideas of the shipwrecked"
--Ortega y Gassett

~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




Hi, I'm involved in a conundrum that is a little difficult to explain 
with plain English. Perhaps some PHP code will help you understand 
what I am attempting:

#Option 1: code I wish worked
$s = include("phpcode.php");

#Option 2: also code I wish worked
$s = sprintf("%s", include('template.php'));

Basically, I'm wondering if there is a way to redirect print and echo 
output from PHP to a variable instead of directly to a browser or 
file stream. What I'm trying to do is create code that can generate 
an HTML page to a variable that I can manipulate and then later store 
in a database.

Obviously, the "real" way to do this is to not use print() statements 
at all, but simply build a variable as follows:
$output .= "<html> yadda yadda yadda";
$output .= sprintf("More html and function output %s", function());

until the $output contains the entire file.

The reason I don't want to do this is that it will require rewriting 
all my PHP file templates.

Also, I'm simply obsessed with the problem now. I even went as far as 
using eval() on the reading of an fopen(template.php) of the PHP 
template, but even then I couldn't assign the output to a variable.

Anyone want to kill themselves trying? My head hurts.

Sincerely,
Kristofer
-- 
                              http://www.brokenhill.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~
"The only real ideas are the ideas of the shipwrecked"
--Ortega y Gassett

~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




> #Option 1: code I wish worked
> $s = include("phpcode.php");
> 
> #Option 2: also code I wish worked
> $s = sprintf("%s", include('template.php'));

$s = sprintf("%s", implode("\n", file('template.php')));

:)

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!




> $s = sprintf("%s", implode("\n", file('template.php')));

Why this??? It's redundant, isn't it? Wouldn't

$s= implode("\n", file('template.php')); do it?

Gfunk





Here's what you wrote, 01-01-11:

>  > $s = sprintf("%s", implode("\n", file('template.php')));
>
>Why this??? It's redundant, isn't it? Wouldn't
>
>$s= implode("\n", file('template.php')); do it?
>
>Gfunk

Gfunk, and Mr. Murray,

I guess I didn't write my query very clearly. What I am looking for 
is not just storing the PHP in a variable (that, as you both have 
pointed out, is easy enough), but I want to EXECUTE the PHP script 
(including it's print statements and everything) and instead of 
having that output go directly to the browser, I want it to go to the 
variable. The solutions offered certainly do put the PHP into a 
variable, but it doesn't execute the PHP and have the output of the 
executed PHP get stored into the variable.

Thanks for familiarizing me with implode(), though, as I'm sure to 
use that often.

Sincerely,
Kristofer
-- 
                              http://www.brokenhill.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~
"The only real ideas are the ideas of the shipwrecked"
--Ortega y Gassett

~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




Look into output buffering (ob_* functions). You wouldn't
want to do that with your whole script; but there is an
example (if not in the manual it's on zend I believe) so you
can assign the results (what would've been outputted to the
browser without the buffering) to a variable.

--Toby

----- Original Message -----
From: "Kristofer Widholm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 1:19 AM
Subject: Re: [PHP] Re-engineering print()


> Here's what you wrote, 01-01-11:
>
> >  > $s = sprintf("%s", implode("\n",
file('template.php')));
> >
> >Why this??? It's redundant, isn't it? Wouldn't
> >
> >$s= implode("\n", file('template.php')); do it?
> >
> >Gfunk
>
> Gfunk, and Mr. Murray,
>
> I guess I didn't write my query very clearly. What I am
looking for
> is not just storing the PHP in a variable (that, as you
both have
> pointed out, is easy enough), but I want to EXECUTE the
PHP script
> (including it's print statements and everything) and
instead of
> having that output go directly to the browser, I want it
to go to the
> variable. The solutions offered certainly do put the PHP
into a
> variable, but it doesn't execute the PHP and have the
output of the
> executed PHP get stored into the variable.
>
> Thanks for familiarizing me with implode(), though, as I'm
sure to
> use that often.
>
> Sincerely,
> Kristofer
> --
>                               http://www.brokenhill.net
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~
> "The only real ideas are the ideas of the shipwrecked"
> --Ortega y Gassett
>
> ~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> --
> 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]
>
>





$s = system ("/usr/local/whatever/php/bin/php /path/to/your/file.php");

This should be what you're after. In PHP4 there _may_ be some way
to use the inbuilt buffering for that purpouse, but I doubt it.

Perhaps this could be added to the language? It would be a good
counterpart to eval()...

Gfunk

       My name was Brian McGee,
       I stayed up listening to Queen,
       When I was seventeen.

http://www.gfunk007.com/


----- Original Message ----- 
From: "Kristofer Widholm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 5:19 PM
Subject: Re: [PHP] Re-engineering print()


> Here's what you wrote, 01-01-11:
> 
> >  > $s = sprintf("%s", implode("\n", file('template.php')));
> >
> >Why this??? It's redundant, isn't it? Wouldn't
> >
> >$s= implode("\n", file('template.php')); do it?
> >
> >Gfunk
> 
> Gfunk, and Mr. Murray,
> 
> I guess I didn't write my query very clearly. What I am looking for 
> is not just storing the PHP in a variable (that, as you both have 
> pointed out, is easy enough), but I want to EXECUTE the PHP script 
> (including it's print statements and everything) and instead of 
> having that output go directly to the browser, I want it to go to the 
> variable. The solutions offered certainly do put the PHP into a 
> variable, but it doesn't execute the PHP and have the output of the 
> executed PHP get stored into the variable.
> 
> Thanks for familiarizing me with implode(), though, as I'm sure to 
> use that often.
> 
> Sincerely,
> Kristofer
> -- 
>                               http://www.brokenhill.net
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~
> "The only real ideas are the ideas of the shipwrecked"
> --Ortega y Gassett
> 
> ~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> -- 
> 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]
> 





If the system() doesn't return something, try using the backticks (left of
the 1
key) like so:

$s = `/path/to/php /path/to/yourfile.php`;

Gfunk

       My name was Brian McGee,
       I stayed up listening to Queen,
       When I was seventeen.

http://www.gfunk007.com/


----- Original Message -----
From: "Kristofer Widholm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 5:19 PM
Subject: Re: [PHP] Re-engineering print()


> Here's what you wrote, 01-01-11:
>
> >  > $s = sprintf("%s", implode("\n", file('template.php')));
> >
> >Why this??? It's redundant, isn't it? Wouldn't
> >
> >$s= implode("\n", file('template.php')); do it?
> >
> >Gfunk
>
> Gfunk, and Mr. Murray,
>
> I guess I didn't write my query very clearly. What I am looking for
> is not just storing the PHP in a variable (that, as you both have
> pointed out, is easy enough), but I want to EXECUTE the PHP script
> (including it's print statements and everything) and instead of
> having that output go directly to the browser, I want it to go to the
> variable. The solutions offered certainly do put the PHP into a
> variable, but it doesn't execute the PHP and have the output of the
> executed PHP get stored into the variable.
>
> Thanks for familiarizing me with implode(), though, as I'm sure to
> use that often.
>
> Sincerely,
> Kristofer
> --
>                               http://www.brokenhill.net
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~
> "The only real ideas are the ideas of the shipwrecked"
> --Ortega y Gassett
>
> ~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> --
> 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]
>





On Wed, 10 Jan 2001, Kristofer Widholm wrote:

> Basically, I'm wondering if there is a way to redirect print and echo 
> output from PHP to a variable instead of directly to a browser or 
> file stream. What I'm trying to do is create code that can generate 
> an HTML page to a variable that I can manipulate and then later store 
> in a database.

http://www.php.net/manual/ref.outcontrol.php

Specifically, ob_get_contents().

Start an output buffer, include your files, get the contents, and
ob_ed_clean.  Ought to do the trick.

Matt





Cool, didn't think you could do that. Well never mind me then ;-)

Gfunk

       My name was Brian McGee,
       I stayed up listening to Queen,
       When I was seventeen.

http://www.gfunk007.com/


----- Original Message ----- 
From: "Matt McClanahan" <[EMAIL PROTECTED]>
To: "Kristofer Widholm" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 5:37 PM
Subject: Re: [PHP] Re-engineering print()


> On Wed, 10 Jan 2001, Kristofer Widholm wrote:
> 
> > Basically, I'm wondering if there is a way to redirect print and echo 
> > output from PHP to a variable instead of directly to a browser or 
> > file stream. What I'm trying to do is create code that can generate 
> > an HTML page to a variable that I can manipulate and then later store 
> > in a database.
> 
> http://www.php.net/manual/ref.outcontrol.php
> 
> Specifically, ob_get_contents().
> 
> Start an output buffer, include your files, get the contents, and
> ob_ed_clean.  Ought to do the trick.
> 
> Matt
> 
> 
> -- 
> 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]
> 





Like when you have to to run a thousand of functions and IFs for then output
it all in a simple $message to send as an email?

then just use $staff .= whatever();

assign everything to one single variable and use it later on.

$here .= from_there(); is the method to do that.

Did I understand you your question well?

Cheers,
Maxim Maletsky

-----Original Message-----
From: Kristofer Widholm [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 3:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re-engineering print()


Here's what you wrote, 01-01-11:

>  > $s = sprintf("%s", implode("\n", file('template.php')));
>
>Why this??? It's redundant, isn't it? Wouldn't
>
>$s= implode("\n", file('template.php')); do it?
>
>Gfunk

Gfunk, and Mr. Murray,

I guess I didn't write my query very clearly. What I am looking for 
is not just storing the PHP in a variable (that, as you both have 
pointed out, is easy enough), but I want to EXECUTE the PHP script 
(including it's print statements and everything) and instead of 
having that output go directly to the browser, I want it to go to the 
variable. The solutions offered certainly do put the PHP into a 
variable, but it doesn't execute the PHP and have the output of the 
executed PHP get stored into the variable.

Thanks for familiarizing me with implode(), though, as I'm sure to 
use that often.

Sincerely,
Kristofer
-- 
                              http://www.brokenhill.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~
"The only real ideas are the ideas of the shipwrecked"
--Ortega y Gassett

~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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




Try this:

function my_eval($code) {
   ob_start();
   eval($code);
   $retval = ob_get_contents();
   ob_end_clean();
   return $retval;
}

$str = my_eval("echo 2+2;");
echo $str;

-Rasmus

On Thu, 11 Jan 2001, Kristofer Widholm wrote:

> Here's what you wrote, 01-01-11:
>
> >  > $s = sprintf("%s", implode("\n", file('template.php')));
> >
> >Why this??? It's redundant, isn't it? Wouldn't
> >
> >$s= implode("\n", file('template.php')); do it?
> >
> >Gfunk
>
> Gfunk, and Mr. Murray,
>
> I guess I didn't write my query very clearly. What I am looking for
> is not just storing the PHP in a variable (that, as you both have
> pointed out, is easy enough), but I want to EXECUTE the PHP script
> (including it's print statements and everything) and instead of
> having that output go directly to the browser, I want it to go to the
> variable. The solutions offered certainly do put the PHP into a
> variable, but it doesn't execute the PHP and have the output of the
> executed PHP get stored into the variable.
>
> Thanks for familiarizing me with implode(), though, as I'm sure to
> use that often.
>
> Sincerely,
> Kristofer
> --
>                               http://www.brokenhill.net
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~
> "The only real ideas are the ideas of the shipwrecked"
> --Ortega y Gassett
>
> ~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> --
> 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]
>





Hey guys this one might be simple for ya..
how do you get a exponent of a verable.. example...

<?
$Value = 4;
$Exponent = 2;

$Equals = 1E$Exponent + $Value;
PRINT ("Equals");
?>

shoudl be simple.. i have tried all kinds of things.. please help
Ian LeBlanc
2tonecafe.com Admin
727-517-3866



You can have [EMAIL PROTECTED] free too. Apply today!






Hello Ian, 

(IL == "Ian LeBlanc") [EMAIL PROTECTED] writes:

IL> Hey guys this one might be simple for ya..
IL> how do you get a exponent of a verable.. example...

<?php

$value = 4;
$exponent = 2;

$equals = pow($value, $exponent);

print($equals);

?>

http://www.php.net/manual/html/function.pow.html

-Brian
--
Logic: The systematic method of coming to
the wrong conclusion with confidence.






exp(num,pow) i do believe. of course this is off the top of my head....

Gfunk

       My name was Brian McGee,
       I stayed up listening to Queen,
       When I was seventeen.

http://www.gfunk007.com/


----- Original Message ----- 
From: "Ian LeBlanc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 4:05 PM
Subject: [PHP] Exponents


> Hey guys this one might be simple for ya..
> how do you get a exponent of a verable.. example...
> 
> <?
> $Value = 4;
> $Exponent = 2;
> 
> $Equals = 1E$Exponent + $Value;
> PRINT ("Equals");
> ?>
> 
> shoudl be simple.. i have tried all kinds of things.. please help
> Ian LeBlanc
> 2tonecafe.com Admin
> 727-517-3866
> 
> 
> 
> You can have [EMAIL PROTECTED] free too. Apply today!
> 
> 
> -- 
> 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]
> 





sorry, btw about my wraps. vi, pine and I are having a bit of a
disagreement at the moment and I keep forgetting to hit return.







Hi,

I'm new to PHP so I thought someone could give me some advice on this one:

I'm creating a shopping cart, which is nothing but an array within a
session variable. Adding products to my cart works fine. But now I want to be
able to change certain fields in my already filled array, e.g. the amount of
one article or maybe delete one entire recordset. Is this possible? I have PHP
4.0.4 installed on my system running apache.

Thanks

Kersten





Here's what you wrote, 01-01-10:

>Try this:
>
>function my_eval($code) {
>    ob_start();
>    eval($code);
>    $retval = ob_get_contents();
>    ob_end_clean();
>    return $retval;
>}
>
>$str = my_eval("echo 2+2;");
>echo $str;

Mr. Lerdorf, Mr. McClahahan, Mr. Butzon et al,

Thank you for your replies. It appears I'm going to have to see about 
having my server upgraded to PHP 4 in order to solve the problem, as 
PHP 3 does not support ob_*().

If anyone else is paying attention to this thread, please be advised 
that ob_ functions require PHP 4.

Thanks to all who have helped.

Sincerely,
Kristofer

-- 
                              http://www.brokenhill.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~
"The only real ideas are the ideas of the shipwrecked"
--Ortega y Gassett

~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




> "C:\nusphere\apache\htdocs\morgan\php\database\CMS\pdf");

This string contains a newline...  You need \\ on each of those, or just use
/ and I think it will make everybody happy.






There are settings in php.ini for that, I think...

----- Original Message ----- 
From: Michal Thomka <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Wednesday, January 10, 2001 4:24 AM
Subject: [PHP] Session cookie expiration


> 
> 
>  I am working on an aplication which uses sessions, and I would like to
> set the expiration time of the cookie , which is sent by session. 
>   Can someone help me with this small problem? 
> 
>   Thank you in advance
>                                        Mike
> 
> -- 
> ****************************     
> 
>    Michal Thomka                             
> Programmer/Developer   
> _______________________                  
> surfEU.com GmbH            
> Nordbahnstrasse 36/1/3
> A-1020 Wien
> 
> Tel:  +43 1 9989777-208
> Fax:  +43 1 9989777-200    
> mailto: [EMAIL PROTECTED]
> http://www.surfeu.at/
> 
> ****************************
> 
> -- 
> 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]
> 





I don't think it looks for specific HTML tags to strip.

Anything that looks like <xxx > or </xxx> is going to get yanked.

In other words, it strips *EVERY* HTML tag, no matter how obscure.

----- Original Message ----- 
From: "Jon Rosenberg" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Wednesday, January 10, 2001 1:50 PM
Subject: [PHP] strip_tags ?


> Is there a list anywhere of hte tags this function will strip, I couldn't
> find it in the php manual?  I want to know if there are any that might be
> left out.  Thanks!
> 
> -----------------------------------------------------------------
> Jonathan Rosenberg
> Be fierce, be fabulous, change the world!
> 
> 
> 
> 
> 
> -- 
> 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]
> 





I think you want to do more like this:

session_start();
if (!session_is_registered('cart')){
    session_register('cart');
    $cart = array();
}

----- Original Message -----
From: "JB" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Wednesday, January 10, 2001 3:43 PM
Subject: [PHP] Cannot send session cache limiter - headers already sent
Cannot send session cookie - headers already sent by


actually.. still give me the same error after i fixed that. new code as
follows along with the error:

if (!session_is_registered('cart')) {
$cart = array();
session_register('cart');
}
else {
session_start();
}

?>


Warning: Cannot send session cookie - headers already sent by (output
started at C:\Program Files\Apache Group\Apache\htdocs/store/index.php:2) in
../../wpdbcon.php on line 14

Warning: Cannot send session cache limiter - headers already sent (output
started at C:\Program Files\Apache Group\Apache\htdocs/store/index.php:2) in
../../wpdbcon.php on line 14


any other ideas?   =)

thanks



> You are missing a parentheses:
>
> if (!session_is_registered('cart') {
>
> correct:
> if (!session_is_registered('cart')) {
>                                   ^
> -----Original Message-----
> From: JB [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 10, 2001 6:05 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Session Errors, do you recognize?
>
>
> Hey, I keep getting the same error messages when trying to fire up
sessions
> in this code i wrote. i've written some test scripts to test sessions on
my
> machine, and they are working, so the problem must lie within my code.
Here'
> what I'm getting, anyone know how to resolve this?
>
> Warning: Cannot send session cookie - headers already sent by (output
> started at C:\Program Files\Apache
> Group\Apache\htdocs/store/index.php:2) in ../../wpdbcon.php on line 14
>
> Warning: Cannot send session cache limiter - headers already sent (output
> started at C:\Program Files\Apache
> Group\Apache\htdocs/store/index.php:2) in ../../wpdbcon.php on line 14
>
>
> wpdbcon.php --------------
>
> <?
> $db = "mydb";
> $user = "mybot";
> $pw = "mypw";
> $mysql_access = mysql_connect("localhost", $user, $pw);
> mysql_select_db($db, $mysql_access);
>
> session_start();
>
> if (!session_is_registered('cart') {
> $cart = array();
> session_register('cart');
> }
>
> ?>
>
> i also tried doing
>
> if (!session_is_registered('cart') {
> $cart = array();
> session_register('cart');
> }
> else {
> session_start();
> }
>
> i thought it was sending conflicting data when it was trying to
initialize,
> didn't work either.
>
> thanks in advance.
>
>







Hi JB!
On Wed, 10 Jan 2001, JB wrote:

> actually.. still give me the same error after i fixed that. new code as
> follows along with the error:
> 
> if (!session_is_registered('cart')) {
> $cart = array();
> session_register('cart');
> }
> else {
> session_start();
> }
> 
> any other ideas?   =)

be sure you don't output *anything* before the session_start() 
or session_register() call. They imply sending a cookie header to
the browser, and having something already sent means the headers cannot
be sent anymore like in:

Content-Type: text/html

<html>
output already here
Set-Cookie: foobar=baz;
^... cannot see this as a header, cause it's in the body of the response.


-- teodor




> Hi. Does anybody knows how to have different configuration options, that
is,
> different php.ini files, for several different sites that reside on the
same
> server?
> I have IIS and the CGI version of PHP 4.04.

Hmmmm...

I dunno how IIS does Virtual Hosting, but maybe you could have a different
php.exe in a different directory for each site, and a different php.ini
sitting next to each php.exe...

IE:
C:/
    /InetPub
        /site1
        /site2
    /php
        /site1
            /php.exe
            /php.ini
        /site2
            /php.exe
            /php.ini

You'll somehow need to convince IIS to use the two differing copies of
php.exe, and they'll snag the php.ini sitting next to themselves.

Just be sure you don't have php.ini in your Windows and System folders or
anywhere else.

No promise this will work, even if you convince IIS to run the two different
php.exe...  but it should if you get that far.






Most dbs use "localhost" for that, and the database username/password that
is configured into the database software/tables...

I know nothing of Interbase, but that's how all the others work...

If "localhost" doesn't work for the host, try "127.0.0.1"

----- Original Message -----
From: "Chris Hayes" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Wednesday, January 10, 2001 5:21 PM
Subject: [PHP] ibase (firebird) localhost login ?


> hi,
> I know it's slightly off topic but i hope you;ll forgive me.
> i'm testing interbase because someone on this list mentioned it would be
a
> good offline database.
>
> Interbase ('firebird') wants to connect to the local server (i'm running
> WAMP - Windows, Apache, MySQL, PHP), and interbase needs a username.
>
> But its all local, not connected. So what should i tell interbase??
>
> Chris
>
> PS i AM currently downloading the manual but that will take another hour
(10
> MB, bad line, was interrupted several times )
>
>
>
> --------------------------------------------------------------------
> --  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --
> --------------------------------------------------------------------
>
>
>
> --
> 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]
>





use

localhist:path_to_your_db/your_db.gdb

example :

on *nix:

localhost:/opt/interbase/db/my_db.gdb

on win*

localhost:c:\ib_db\my_db.gdb

Meir Kriheli
MKsoft computer systems

  'There's someone in my head but it's not me" - Pink Floyd
----- Original Message -----
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 9:03 AM
Subject: Re: [PHP] ibase (firebird) localhost login ?


> Most dbs use "localhost" for that, and the database username/password that
> is configured into the database software/tables...
>
> I know nothing of Interbase, but that's how all the others work...
>
> If "localhost" doesn't work for the host, try "127.0.0.1"
>
> ----- Original Message -----
> From: "Chris Hayes" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Wednesday, January 10, 2001 5:21 PM
> Subject: [PHP] ibase (firebird) localhost login ?
>
>
> > hi,
> > I know it's slightly off topic but i hope you;ll forgive me.
> > i'm testing interbase because someone on this list mentioned it would be
> a
> > good offline database.
> >
> > Interbase ('firebird') wants to connect to the local server (i'm running
> > WAMP - Windows, Apache, MySQL, PHP), and interbase needs a username.
> >
> > But its all local, not connected. So what should i tell interbase??
> >
> > Chris
> >
> > PS i AM currently downloading the manual but that will take another hour
> (10
> > MB, bad line, was interrupted several times )
> >
> >
> >
> > --------------------------------------------------------------------
> > --  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --
> > --------------------------------------------------------------------
> >
> >
> >
> > --
> > 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]
>
>





I doubt it...

On busy servers, those files must get so huge, there's no way Apache can be
trying to keep it all in RAM.

So, pretty much, Apache logs it and forgets it.

The only place that data exists is in the log file...

Unless you hack the Apache logging routine to send it to your database or
something else instead...  I guess you could do that.

----- Original Message -----
From: "Scott Hutchens" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Monday, January 08, 2001 6:02 PM
Subject: [PHP] Accessing Common Log Format (CLF) info.


> Hi,
>
> Is it possible for PHP running as a mod on Apache to get the CLF data that
> you see in access.log without actually opening the file?
>
> Thanks for your time.
>
> 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]
>





>     I am interested in logging people in against a MySQL database, and
then
> storing temporary session data about them that would include anonymity
> stats, permissions, and variable tracking from page to page in a MySQL
> Database. (As opposed to insecure POST/GET/Cookie methods).

I'm a trifle confused...

Exactly how do you know that the person is the same person *withou* using
one of POST/GET/Cookie?

Since the database lives on the server, and the client only talks to it
through HTTP, and HTTP is stateless, I'm not understanding what you're even
trying to describe..

>     I have seen this before and the implementation I saw was relatively
> straight forward (The book "Core PHP Programming," [Orange Book of PHP]
> basically explains the method I saw.  Is anyone out there using something
> drastically different?
>
> To the experienced:
>     How do you authenticate and track people through your site?

Depends on the site, depends on how badly I need the data to be accurate and
how likely I think that somebody will try to abuse it.
There is no one answer to this.

>     Do you foresee flaws (possible flaws) in your system?

Yes.

>     Does a perfect system exist?

No.






> I'm running Suse 7.0 as root, apache runs as wwwrun, so i guess the php
> calls also run as wwwrun.

Not only does php run as wwwrun, it also runs with a different shell,
environment, and most notably path than you do when you log in.

You should probably just get in the habit of providing full paths to
system/exec for any binary or file involved.

If the shell scripts are relying on the current working directory or other
environment variables, you'd better be sure you have them set up.

You can use PutEnv() in PHP to set them, or alter the wwwrun user's
.profile/.bashrc or whatever it is using, if it even has one...






> Can somebody please give me a starter in trying to run a local application
> (.exe) from a html button eg. Does it involve exec() or system() ? And if
> so, could somebody give me an example. I'm too dim to learn any other way
;)

exec("C:/program files/whatever/full/path/something.exe", $output, $error);
while (list(,$line) = each($output)){
    echo $line, "<BR>\n";
}
if ($error){
    echo "OS Error $error.  Usually path/permissions.<BR>\n";
}

If the exe takes args, just tack them on after .exe:

$arg1 = 'foo';
exec("C:/.../something.exe $arg1", $output, $error);

You can have your HTML buttons choosing what to run by making the exe path a
variable or...






> How to develpe and add a lib or extension or user function to php. I want
to
> make things easy. The idea case is, I don't need to change my current php,
> just add the new module to the current php.

You want to read about "PEAR".

How the functins you describe will be any more secure than using
http://php.net/mcrypt or exec() to call gpg, I don't understand at all...






*WHY* not use auto_increment?

Would the builtin http://php.net/uniqid function not work better?

*NEVER* seed the random number generator more than once per script.  Call
srand() once, and only once.

The return() statement will return the MySQL resource ID, which is probably
not useful, but all the other variables will be forgotten so I think
whatever pointer and loop position 0 you mean will be reset-- assuming all
this is in a function.

You are limiting yourself to 99999 - 10000 records, which is pretty small.

Basically, you almost for sure are making your life difficult and should
just use auto_increment.

----- Original Message -----
From: AJDIN BRANDIC <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Tuesday, January 09, 2001 11:14 AM
Subject: [PHP] unique id


> Hi again,
>
> I am generating a randum number but before inserting it into a table I
> want to make sure that onother number with the same value doesn't exist
> in the table. Here is what I have:
>
> srand((double)microtime()*1000000);
>     $ran_num = rand(10000, 99999);
>
>     $query01 = "SELECT thisnum FROM mytable";
>     $results = mysql_query($query01) or die("Failed on select
> mytable!");
>
>       while ($result = mysql_fetch_array($results)) {
>         $thisnum=$result['thisnum'];
>         if($ran_num==$thisnum) {
>           srand((double)microtime()*1000000);
>           $ran_num = rand(10000, 99999);
>   reset($results)
>  // will this reset the pointer and will the
> while loop start from position 0??? If not how do I force the check to
> start from position 0?
>         }
>       }
>
> I donot want to use autoincrement???
>
> Thanks
>
> Ajdin
>
> --
> 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]
>





What arguments are you passing to odbc_exec()?

----- Original Message ----- 
From: Justin Smith <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Tuesday, January 09, 2001 1:07 PM
Subject: [PHP] FATAL: emalloc() error


> I'm trying to query an MS Access database via ODBC, but the odbc_exec
> command fails with this error:
> 
> FATAL:  emalloc():  Unable to allocate 2147483599 bytes
> 
> I don't know why it could possibly be trying to allocate 2GB, as the
> database is only about 4MB.  Any suggestions would be appreciated.
> 
> Thanks,
> 
> 
> Justin Smith
> New Mexico Natural Heritage Program
> University of New Mexico
> Department of Biology
> 167 Castetter Hall
> Albuquerque, New Mexico 87131
> 505-277-3822 x226
> 505-277-3844 (fax)
> [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]
> 





Phorum?

----- Original Message ----- 
From: "H. Wade Minter" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Tuesday, January 09, 2001 2:36 PM
Subject: [PHP] Discussion board recommendation


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I'm looking for a PHP/MySQL-or-Postgres based discussion board setup that
> can easily be integrated into an existing user authentication setup,
> instead of relying on its own user tables.  Does anyone have any
> recommendations?
> 
> - --Wade
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE6W3aQX5y4ZKLK2pMRAtUDAJ9jlC0xR0BQBfH2cWYYl6qDOTV1HQCgqqwg
> 4OQE4Xtfy4mLf691ACz/DxQ=
> =s8yv
> -----END PGP SIGNATURE-----
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 





You could save yourself a whole lot of headaches by putting the files in the
file-system, and storing only the path in the database...

Also, IE and Netscape use different things to populate the filename box on
the download dialog...

One uses Content-disposition header(), and one uses whatever happens to be
at the end of the path part of the URL.

Thus, a goofy path like:

http://wild.net/display.php/goofy.gif?id=42
(Where 42 is a GIF image of Goofy)
actually works.
The web-server and PHP ignore that goofy.gif crap, and the browser is fooled
into thinking you're downloading a static file.

----- Original Message -----
From: "Boget, Chris" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Tuesday, January 09, 2001 4:44 PM
Subject: [PHP] Serving files form DB


> I'm storing files in a mySQL table that looks like this:
>
> | file_name        | varchar(100)        |      | MUL |         | |
> | file_description | text                | YES  |     | NULL    | |
> | file_type        | varchar(50)         |      |     |         | |
> | file_size        | int(10) unsigned    |      |     | 0       | |
> | added_by         | varchar(10)         |      |     |         | |
> | access_types     | text                | YES  |     | NULL    | |
> | access_users     | text                | YES  |     | NULL    | |
> | file_num         | bigint(10) unsigned |      | PRI | 0       |
> auto_increment |
> | bin_data         | blob                |      |     | NULL    | |
>
> the "file_type" field stores the actual data type for the file
> (such as 'application/msword', etc).  To serve the file, I'm
> using the following code:
>
> <script language="php">
>
>   $dbInfo = unserialize( base64_decode( $db_key ));
>   if( is_array( $dbInfo )) {
>
>     $fileQuery  = "SELECT * FROM $dbInfo[table_name] WHERE
>                             file_num=$dbInfo[record_num]";
>     $fileResult = mysql( $dbInfo[db_name], $fileQuery );
>
>     if(( $fileResult ) && ( mysql_errno() == 0 )) {
>       $fileInfo = mysql_fetch_array( $fileResult );
>
>       header( "Content-Disposition: attachment;
> filename=$fileInfo[file_name]" );
>       header( "Content-Description: PHP Generated Data" );
>       header( "Content-type: $fileInfo[file_type];" );
>       header( "Content-length: $fileInfo[file_size]" );
>
>       echo $fileInfo[bin_data];
>
>       flush();
>
>     }
>   }
>
> </script>
>
> Everything is working great.  If I echo the query that is getting
> run, it's correct.  If I echo out the data that is getting passed via
> the header() function, it looks all good.  However, when my
> browser actually tries to download/open the file, everything gets
> all screwed up.  The file name that it says that it's downloading
> is *nothing* like the actual file name and is in fact just a bunch
> of garbage.  If I try to open anything other than a text file, I
> get errors from the application that is getting run (MSWord, say)
> and if I try to save if, the file is corrupt.  There are no spaces or
> NULL characters being printed out by the script.
> What's going on?  What am I doing wrong?
>
> Chris
>





http://www.php.net/manual/language.expressions.php

<snip>
One last thing worth mentioning is the truth value of expressions. In many
events, mainly in conditional execution and loops, you're not interested in
the specific value of the expression, but only care about whether it means
TRUE or FALSE (PHP doesn't have a dedicated boolean type). The truth value
of expressions in PHP is calculated in a similar way to perl. Any numeric
non-zero numeric value is TRUE, zero is FALSE. Be sure to note that negative
values are non-zero and are thus considered TRUE! The empty string and the
string "0" are FALSE; all other strings are TRUE. With non-scalar values
(arrays and objects) - if the value contains no elements it's considered
FALSE, otherwise it's considered TRUE.
</snip>

Since variables doesn't need to be declared it's regarded as set when used
in an expression... hence $a is evaluated to "", or 0 if compared to
numbers, false if compared to boolean.

-Jørg
-----Original Message-----
From: Neil Zanella [mailto:[EMAIL PROTECTED]]
Sent: 10. januar 2001 19:33
To: Toby Butzon
Cc: PHP General Mailing List
Subject: Re: [PHP] PHP newbie question



On Wed, 10 Jan 2001, Toby Butzon wrote:

> : <?php if (! $a) print "Hello, World!"; // script 2 ?>
> 
> $a evaluates to false, the ! reverses it, and it prints "Hello, World!"

What is bothering me is the following: if variables that are not assigned
a value were to evaluate to false then since false is the same as the
number 1 the following PHP script should print the number 1 but instead
prints nothing:

<?php if (! $a) print $a; ?>

How is this behavior justified?
I could not find anything on this in the PHP manual.

Thanks,

-- Neil


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




On Wed, 10 Jan 2001 12:13:26 +0530, "Hrishi" <[EMAIL PROTECTED]>
wrote:

>Cache-Control: no-cache
>
>will make sure any proxies/ISP caches will also not store the page.

Yes this works.  I can see that IE5 does not cache the page locally,
by looking in Temporary Internet Files.

I realize now though, that what I really need is to drop certain pages
out of the browser "back" chain.

For instance say I have three pages:

   A -->  B  -->  C


Once the user selects page C, I don't want them to see page B with the
browser back button.  If they use the back button, I want them to jump
from C all the way back to A.

IOW, I want to "unlink" B from the chain. Is that possible?

Egan






Hello,

I was wondering if somebody could give me some links to information 
about running java.

I cant get a instance of a class, and i don't know what im doing wrong..
the message that i get is 'Unable to locate CreateJavaVM function', So i 
suspect that php cant find java. How do i debug this?

-- 
Eduard Witteveen        Systeemontwikkelaar NOS Internet

Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal





Hey Eduard,

> I was wondering if somebody could give me some links to information
> about running java.

Check out :

    Can someone explain me how PHP interacts with Java           ?
    --------------------------------------------------------------
    http://www.faqts.com/knowledge_base/view.phtml/aid/7137/fid/51
    
Regards,

Philip







How cn I make the following code set a cookie for vars username and
password??

<?php

$auth = false; // Assume user is not authenticated

if (isset( $PHP_AUTH_USER ) && isset($PHP_AUTH_PW))


    // Connect to MySQL

    mysql_connect( 'localhost', 'root', '*****' )
        or die ( 'Unable to connect to server.' );

    // Select database on MySQL server

    mysql_select_db( 'cfsforums' )
        or die ( 'Unable to select database.' );

    // Formulate the query

    $sql = "SELECT * FROM user WHERE
            username = '$PHP_AUTH_USER' AND
            password = '$PHP_AUTH_PW'";

    // Execute the query and put results in $result

    $result = mysql_query( $sql )
        or die ( 'Unable to execute query.' );

    // Get number of rows in $result.

    $num = mysql_numrows( $result );

    if ( $num != 0 )


        // A matching row was found - the user is authenticated.

        $auth = true;

    }

}

if ( ! $auth )


    header( 'WWW-Authenticate: Basic realm="Combat Flight Center Members
Area"' );
    header( 'HTTP/1.0 401 Unauthorized' );
    echo 'Authorization Required.';
    exit;

} else


    echo '<!-- Login Successful -->';
}

?>

        WreckRman2
        Combat Flight Center
        http://www.combatfs.com





Hi,

I've been looking on the cool web, but up till now I got only complex
explanations about how to create users in mysql.
I know it's more a MySQL question, but since lots of you are using this
DB, maybe someone can just send me an example on how to create on a
proper way (straight forward) users. The meaning is to consolidate the
DB like:

$connection = mysql_connect("localhost","nobody","dummy")
                or die("Couldn't connect to server.");
$db = mysql_select_db("searchDB", $connection) 
                or die("Couldn't select database. Mysql said: "
.mysql_error());

I tried to add a user with password and host in the myql database and
supposed to be able to use thatone for the searchDB database?

Hope this doesn't sound to stupid at all!

Thanks a lot for any trick or usefull example!
Yoeri.





http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#GRA
NT

----- Original Message -----
From: "Yoeri De Bruyn" <[EMAIL PROTECTED]>
To: "phpGeneralList (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 1:24 AM
Subject: [PHP] Connect with user and pwd from PHP to MySql !!!


Hi,

I've been looking on the cool web, but up till now I got only complex
explanations about how to create users in mysql.
I know it's more a MySQL question, but since lots of you are using this
DB, maybe someone can just send me an example on how to create on a
proper way (straight forward) users. The meaning is to consolidate the
DB like:

$connection = mysql_connect("localhost","nobody","dummy")
or die("Couldn't connect to server.");
$db = mysql_select_db("searchDB", $connection)
or die("Couldn't select database. Mysql said: "
.mysql_error());

I tried to add a user with password and host in the myql database and
supposed to be able to use thatone for the searchDB database?

Hope this doesn't sound to stupid at all!

Thanks a lot for any trick or usefull example!
Yoeri.

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






Try :


    MySQL Administration                               :
    ----------------------------------------------------
    http://devshed.com/Server_Side/MySQL/Administration/



Philip


On Thu, 11 Jan 2001, Yoeri De Bruyn wrote:

> Hi,
> 
> I've been looking on the cool web, but up till now I got only complex
> explanations about how to create users in mysql.
> I know it's more a MySQL question, but since lots of you are using this
> DB, maybe someone can just send me an example on how to create on a
> proper way (straight forward) users. The meaning is to consolidate the
> DB like:
> 
> $connection = mysql_connect("localhost","nobody","dummy")
>               or die("Couldn't connect to server.");
> $db = mysql_select_db("searchDB", $connection) 
>               or die("Couldn't select database. Mysql said: "
> .mysql_error());
> 
> I tried to add a user with password and host in the myql database and
> supposed to be able to use thatone for the searchDB database?
> 
> Hope this doesn't sound to stupid at all!
> 
> Thanks a lot for any trick or usefull example!
> Yoeri.
> 
> -- 
> 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]
> 





That one was really helpfull!

Thanxxx!!!
Yoeri.

Try :


    MySQL Administration                               :
    ----------------------------------------------------
    http://devshed.com/Server_Side/MySQL/Administration/



Philip


On Thu, 11 Jan 2001, Yoeri De Bruyn wrote:

> Hi,
> 
> I've been looking on the cool web, but up till now I got only complex
> explanations about how to create users in mysql.
> I know it's more a MySQL question, but since lots of you are using
this
> DB, maybe someone can just send me an example on how to create on a
> proper way (straight forward) users. The meaning is to consolidate the
> DB like:
> 
> $connection = mysql_connect("localhost","nobody","dummy")
>               or die("Couldn't connect to server.");
> $db = mysql_select_db("searchDB", $connection) 
>               or die("Couldn't select database. Mysql said: "
> .mysql_error());
> 
> I tried to add a user with password and host in the myql database and
> supposed to be able to use thatone for the searchDB database?
> 
> Hope this doesn't sound to stupid at all!
> 
> Thanks a lot for any trick or usefull example!
> Yoeri.
> 
> -- 
> 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]
> 





Hello !

Tried with PNG , JPG and PHP extentions, with the image extentions, the
files doesn't get parsed. when I use *.php it gives me a "call to
undefined function" error(without even parsing the HTML).

I think I scr*ed my GD instalation, going over it again...

cheers !

Alain


Matt Whipple wrote:
> 
> What is the extension of the file?
> 
> At 03:00 PM 1/9/2001 +0100, you wrote:
> >Howdy,
> >
> >Stipid question, Why do I have the following code being output as plain
> >text ?(yes, even the "<?" and "?>" are being written).
> >
> >It's supposed to be an Image. I do have the GD lib running... (Tried
> >with Gif, Jpg, Png...)
> >
> >Cheers,
> >
> >Alain
> >
> >CODE:
> >
> ><?
> >// send header
> >Header("Content-Type: image/gif");
> >
> >// create image and colours
> >$im = ImageCreate(500, 75);
> >$red = ImageColorAllocate($im, 255, 0, 0);
> >$black = ImageColorAllocate($im, 0, 0, 0);
> >
> >// fill image
> >ImageFill($im, 0, 0, $red);
> >
> >// write string at (210,30) in black
> >ImageString($im, 4, 210, 30, "Hello John", $black);
> >
> >// release image
> >ImageGIF($im);
> >?>
> >
> >--
> >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]




Hi list,

this is not a problem, but a nice feature of OOP, I found today. Maybe it is
useful for someone:

<?php
        // class test

        class Basis
        {
                var $name = "Basis";

                function Basis($typ = false)
                {
                        switch ($typ)
                        {
                                case "A":
                                        $this = new Basis_A();
                                        break;

                                case "B":
                                        $this = new Basis_B();
                                        break;
                        }
                }

                function print_name()
                {
                        echo $this->name . "<br>";
                }
        }

        class Basis_A extends Basis
        {
                var $name = "Basis_A";
        }

        class Basis_B extends Basis
        {
                var $name = "Basis_B";
        }

        $my_basis_1 = new Basis();
        $my_basis_2 = new Basis("A");
        $my_basis_3 = new Basis("B");

        $my_basis_1->print_name();
        $my_basis_2->print_name();
        $my_basis_3->print_name();
?>

The point is, that the class morphs itself into another class in the
constructor.

Hope it helps someone,

Moritz.





Is it possible to have a "php" executable to generate static pages instead of using 
the apache to generate the dynamic pages every time a connection is received?

I would like to have a serer with static pages and recreate them using xml/html every 
time there is a change...

J:esse




The DCOM (COM on a remote server) works fine but you still have to run PHP
on a windows machine. AFAIK there's no decent way to use COM from a unix
box.

Pavel

----- Original Message -----
From: "Niel Zeeman" <[EMAIL PROTECTED]>
To: "Paulson, Joseph V. "Jay"" <[EMAIL PROTECTED]>; "php gen list"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 5:16 PM
Subject: Re: [PHP] Calling a Windows Com object or an Extended Fetch?


> Try this article
> http://www.phpbuilder.com/columns/alain20001003.php3
>
> it helped me allot, If you go deeper into the Com object you will find
that
> you can actually call an object from a
> remote server -- have not tried it myself yet : )
> Niel Zeeman
>
> ----- Original Message -----
> From: Paulson, Joseph V. "Jay" <[EMAIL PROTECTED]>
> To: 'bard' <[EMAIL PROTECTED]>; Miles Thompson
> <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 10, 2001 5:42 PM
> Subject: RE: [PHP] Calling a Windows Com object or an Extended Fetch?
>
>
> > Well the next problem I have found is that php has to be running on a
> > windows machine for the com objects to actually work and well we are
> running
> > it on a Unix box.  So we can't use the com objects.  Thanks for all the
> help
> > thought!
> > Jay
> >
> > -----Original Message-----
> > From: bard [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 09, 2001 5:37 PM
> > To: Miles Thompson
> > Cc: Paulson, Joseph V. "Jay"; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Calling a Windows Com object or an Extended Fetch?
> >
> >
> > Or you could just look at the phpbuilder.com column on using COM objects
> in
> > php, or you could RTFM at the php.net site. just type in php.net/com and
> see
> > what happens.
> >
> > We use php and com here a lot, and while the implementation lacks a few
> > features of the asp/vb implementation it's handy when migrating from
> NT/ASP
> > to NT/PHP.
> >
> >
> > On Tue, 9 Jan 2001, Miles Thompson wrote:
> >
> > > I don't know, but I was glancing through an article on PHP in the
> current
> > > issue of Dr. Dobb's Journal last week. At the very end I *think* there
> was
> >
> > > an example of calling a COM object. It was a VbScript <-> PHP
> comparision.
> >
> > > Have a look, might help.
> > >
> > > Miles
> > >
> > > (Yes, I've been known to make notes while in the newsstand.)
> > >
> > > At 10:01 AM 01/09/2001 -0600, Paulson, Joseph V. \"Jay\" wrote:
> > > >Hello everyone--
> > > >I was wondering if PHP can call Windows COM objects in memory?  If
PHP
> > can
> > > >do this does anyone know how to do it or can you point me in the
> > direction
> > > >were I can pissibly figure it out.  Also, does anyone know if PHP can
> > call
> > > >an Extended Fetch?
> > > >Thanks,
> > > >Jay Paulson
> > > >
> > > >--
> > > >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]
>





Hi!

I want to use a code like:
<img src="./randomgif.php">

I know, this is possible with perl, but with php?
... and it should be performant as well :-) !!

thanks
any hints appreciated
witty

-- 
Sent through GMX FreeMail - http://www.gmx.net





Hey there,

Just a quick enquiry - is anyone available to work Saturdays with PHP.  It
is important that this person is available to work in London not remotely.

Sorry if this is not appropriate for this list... Please email me off the
list.

Thanks





Below is my code. I am uploading an image and a zip file only I want to make
it insert nopic.jpg if they don't upload an image. When I change
if($fileimage== "none") { to

if($fileimage== "none") {
        $FileImage = 'nopic.jpg';
}
else {
        $FileImage = $fileimage_name;
}

I get error can't upload "none" Is there a fix for this?

----------------------------

<?

        if ($FileType== "none") {
                print "ERROR! - You must specify a File Type before we can begin the
upload.<BR>";
        }
        else {

        if ($filezip== "none") {
                print "ERROR! - You must specify a zip file to upload.<BR>";
        }
        elseif($fileimage== "none") {
                print "ERROR! - You must specify an image file to upload.<BR>";
        }
        else {
                copy($filezip, "/home/sites/site1/ftp/$FileType/$filezip_name");
            copy($fileimage, "/home/sites/site1/ftp/$FileType/$fileimage_name");
        unlink($filezip);
        unlink($fileimage);

                if($filezip_size >= 1048576)
                    {
                                $filezip_size = round($filezip_size / 1048576 * 100) / 
100 . " Meg";
                        }
                elseif($filezip_size >= 1024)
                        {
                                $filezip_size = round($filezip_size / 1024 * 100) / 
100 . " Kb";
                }
                else{
                                $filezip_size = $filezip_size . " Bytes";
                }

        $FileDate = date("Y-m-d H:i:s");

        }
}

?>

Thanks...

        WreckRman2
        Combat Flight Center
        http://www.combatfs.com





Sent: Wednesday, January 10, 2001 11:17 PM


> > As I am working I am taking more and more of the code out and
> > putting it into functions straight into the include file. This
> > file is included on almost every page and I am worried that it
> > is going to slow the pages down.  Will it have a large effect
> > on the pages speed.  It's only about 400 lines at the moment
> > but getting bigger the way I am working
> >
> > Is it likely to slow the pages much even if only some of the
> > functions are called from particular pages.

You could split the one big include file into several smaller
conceptual-based include files. Ie. put related functions together in small
groups and then only include the files containing the functions you need.

- Carsten






On Thursday 11 January 2001 00:08, Todd Cary wrote:

> <<<
> Did I completely miss the point?
>
> Yes and No.  I have my Win 2K system in my office on which I do PHP
> development.  However, sometimes I am on the road with a "simple"
> Notebook computer (450 MHz and 6 GHz drive).  It would be nice to "play
> around" with PHP and see if it will run.

*simple* ????
I have PHP running nicely on a Pentium 90 with 48MB RAM which also 
happens to be the file-/mail-/smb-/cvs-/... server in my house. So don't 
worry about your "simple" notebook being too slow :)

(granted - that computer here runs on Linux without any GUI, but still...)


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

This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.

- /. posting discussing the likelihood that an AC post that claimed to be
posted by John Carmack during his honeymoon (and having the login info at
home) was actually from him.




Hello,

I am doing file uploading of only jpg file format, It first copys in tmp directory 
then I copy it in main.... well you all know the procedure... neways what I am 
concerned is how can I check that the file in temp is correct file and is safe for me 
to copy it in the main folder?

Regards
Statbat





if(ereg("jpg|jpeg|gif$",$userfile_name))
{
        do something
}
else
{
        this file is not allowed
}
This will check that the uploaded file has the correct extension.

Where $userfile is the upload field name in the form

M@
> -----Original Message-----
> From: Statbat [mailto:[EMAIL PROTECTED]]
> Sent: 11 January 2001 11:00
> To: PHP-General
> Subject: [PHP] File Uploading Security - Urgent please
> 
> 
> Hello,
> 
> I am doing file uploading of only jpg file format, It first copys 
> in tmp directory then I copy it in main.... well you all know the 
> procedure... neways what I am concerned is how can I check that 
> the file in temp is correct file and is safe for me to copy it in 
> the main folder?
> 
> Regards
> Statbat
> 




$userfile_type

contains the MIME-type of the file. This is maybe more relieable then just
the extension...

Mo.

> if(ereg("jpg|jpeg|gif$",$userfile_name))
> {
>       do something
> }
> else
> {
>       this file is not allowed
> }
> This will check that the uploaded file has the correct extension.
>
> Where $userfile is the upload field name in the form
>
> M@
> > -----Original Message-----
> > From: Statbat [mailto:[EMAIL PROTECTED]]
> > Sent: 11 January 2001 11:00
> > To: PHP-General
> > Subject: [PHP] File Uploading Security - Urgent please
> >
> >
> > Hello,
> >
> > I am doing file uploading of only jpg file format, It first copys
> > in tmp directory then I copy it in main.... well you all know the
> > procedure... neways what I am concerned is how can I check that
> > the file in temp is correct file and is safe for me to copy it in
> > the main folder?
> >
> > Regards
> > Statbat
> >
>
> --
> 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]
>





Hi everybody.

I can't seem to find the way how to connect to my mail server from php
scripts.
I have wu imap daemon running with only imap accounts - no pop3.
I have compiled php (4.03.pl1) --with-imap=path_to_wu-c0client-files,
but I always get this error: "Warning: Couldn't open stream
{mail.wittmann.sk:143} in /home/httpd/html/webmail/mailbox.php on line
13"
Line 13 is:

$conn = IMAP_Open("{mail.wittmann.sk:143}", $jmeno, $heslo);

can anybody point me how to solve this? Thanx

Dezider




Please, can you send me where could I find more information about 
HTTP autentification and PHP support.

Thanks.

Regards, PETER.

-------------------------------------------------
Tento e-mail byl odeslán ze serveru www.worldmail.cz




http://www.php.net/manual/features.http-auth.php

Pavel

P.S. Manual je nekdy docela prima cteni. ;-)

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 12:42 PM
Subject: [PHP] HTTP autentification


> Please, can you send me where could I find more information about
> HTTP autentification and PHP support.
>
> Thanks.
>
> Regards, PETER.
>
> -------------------------------------------------
> Tento e-mail byl odeslán ze serveru www.worldmail.cz
>
> --
> 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]
>



Reply via email to