[PHP] Re: [binarycloud-dev] Re: [PHP] Re: Seeking comments: Horde or BinaryCloud

2002-05-02 Thread alex black

 What is the guestimate release date for r2?

it depends on how much additional help we receive.

the data i/o pipeline is functional and nearing completion
our presentation tools are under development and I expect those to go pretty
quickly

there is some work left to do on the make system.

and after that we need to generate usage/reference documentation for
developers.

with the current level of activity, probably the end of the month for the
early releases and a full r2 ~3 weeks or a month after that.

_alex


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




[PHP] FW: AW: agh - Compile w/php

2002-03-15 Thread Alex Black

hi all,

I received this from a guy at SAP regarding a SAPDB compile with php:
As you might have guessed, I am still unable to compile --with-sapdb

I've entered a bug report with all of the details:

http://bugs.php.net/bug.php?id=16100

If anyone has successfully compiled SAPDB with PHP on any machine, please
get in contact with me and tell me what you did :)

-alex

 Hi Alex
 
 I think, I've found the solution.
 
 Facts:
 - libsqlod is the driver
 - libsqlrte is some lib of our runtime env
 - libsqlrte is added to the libs in the configure file
 
 Therefore, php wants to link with -lsqlrte which is
 actually not necessary.
 
 Solution:
 
 - quick and dirty: cp libsqlod.so libsqlrte.so
 - edit php's ext/odbc/config.m4: delete the line
 AC_ADD_LIBRARY(sqlrte)
  in the sapdb section. Then autoconf, configure, make ...
 
 
 The problem is a remainder of the ancestor ADABAS.
 
 Please tell me, whether it now works for you.
 I will then inform the list about this.
 
 
 Greetings  Thomas
 
 
 --
 Dr. Thomas Kötter
 SAP DB, SAP Labs Berlin
 
 
 SAP DB is open source. Get it!www.sapdb.org
 
 
 
 

-- End of Forwarded Message


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




[PHP] SAPDB compile problem

2002-03-10 Thread Alex Black

hi all,

Apologize if php-dev is inappropriate, but since this is a compile problem I
thought it would be relevant. I have cc:d the sapdb-general list as they
should be aware of these compile problems (and that is where I first asked
for help). I would like to construct a guide for people using SAPDB with PHP
in real multi-machine enterprise situations and will do so when I resolve
this compile issue:

I'm trying to compile PHP 4.1.1 on RH 6.2 w/SAPDB. Yes, I will upgrade to
4.1.2 very soon :)

Problem:

During make, I get:
/usr/bin/ld: cannot find -lsqlrte

Which is surprising because I rsynced my copy of sqlrte into
/opt/sapdb/depend/lib from a real install I have on another machine. (the
real is a full, current server install... on this machine I only want the
client libs)

I also used the tarball from

ftp://ftp.sap.com/pub/sapdb/bin/patch/sapdb-odbc-linux-i386-7.3.0.21.tgz

which is (unless I am wrong, please correct me) fairly useless because it
does not contain that sqlrte lib that is required by PHP when compiling
--with-sapdb=/opt/sapdb/interfaces/odbc/lib

anyway, despite having included the correct path(s):

/opt/sapdb/interfaces/odbc/lib
/opt/sapdb/depend/lib

in ld.so.conf

and having run ldconfig...

I still get 

/usr/bin/ld: cannot find -lsqlrte

What's worse (and much more confusing):

root@core lib ld -v |grep sql
/// i.e. no results from this search, which lists all known libs

root@core lib ldconfig -v |grep sql
libsqlod.so = libsqlod.so
libsqlrte.so = libsqlrte.so
libsqlcls.so = libsqlcls.so

// note that ldconfig _is_ tracking these libs. AGH!

I have never seen an instance where ldconfig knows about something ld
doesn't.

I tried coping all files to /opt/sapdb/interfaces/odbc/lib just to give it a
shot, and that didn't work (though I'm not surprised it didn't). I have also
tried a number of variations of the --with-sapdb path just to ensure it
isn't me being a complete idiot.

what should I try next? or better, does anyone know how to solve this
problem?

PS: PLEASE email me directly. I'll cee my responses and findings to the
list, but I'm not subscribed.

tia all,

_alex
project leader, binarycloud
http://binarycloud.tigris.org
http://www.binarycloud.com



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




[PHP] Re: [PHP-DEV] SAP DB

2002-02-25 Thread Alex Black

 SAP DB is just another name for AdabasD from a programmers point of view-

Ah, cool.

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

Well, yes.

  In addition to normal ODBC support, the Unified ODBC functions in PHP allow
  you to access several databases that have borrowed the semantics of the ODBC
  API to implement their own API. Instead of maintaining multiple database
  drivers that were all nearly identical, these drivers have been unified
  into a single set of ODBC functions.
 
 so the call interface to AdabasD/SapDB looks like ODBC, but you have
 direct access to the database using PHP, you don't have to deal with
 ODBC driver management and all the stuff if you don't want you

AHA!

Fantastic!

 as said above: it is all there ... just the documentation could need
 a little update ...

Yes, As I didn't know that SAPDB = AdabasD  I was unaware...

In any case you have made my day, thank you :)

All on bc-dev... hehehehe, + excellent +.

and Mike, I'm going to use this. (as I suspect you will as well)

_alex


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




[PHP] SAP DB

2002-02-24 Thread alex black

hi all,

One of the binarycloud developers just told me to have a look at the SAP OS
database, SAPDB.

I'm going to test it tomorrow to see if it actually does what it claims, but
this _looks_ like serious OS competition to Oracle, and if it is I would
very much like to use it for my next project.

So, question:

Has anyone used SAPDB with PHP? If so, experiences? And if not, are there
plans for drivers? I looked in the manual and I didn't see any mention of
SAPDB.

Oh, and I just found a mention of PHP on the SAPDB site. Looks like the
connection is over ODBC, which I really _really_ dislike... are there plans
for anything native? like a sapdb_connect :)?

In any case I think this database has a _HUGE_ amount of potential and PHP
would benefit if access to SAPDB was possible.

please e-mail me directly as I am not subscribed to the NGs:

[EMAIL PROTECTED]
or [EMAIL PROTECTED]

thanks,

_alex



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




[PHP] Re: [binarycloud-dev] Re: [PEAR-DEV] Re: [metabase-dev] RE:[PEAR-DEV] New Metabase Aniversary release

2002-01-25 Thread Alex Black

 I'm currently writing The PEAR Manifest, a document that clearly
 defines PEAR once and for all.  I'll post the first draft on pear-dev
 here when it's done, but to answer your question, there has been talk
 about a core set of packages for a while.  In the manifest these are
 called PFC (PHP Foundation Classes), although it will not say which
 packages the PFC includes.  The manifest also covers PECL, and how PEAR
 relates to applications and frameworks.

Fantastic.

This is all great news and I really do look forward to working with you so
we don't duplicate efforts. It's great to hear that you're going to define
PEAR once and for all.

best,

_alex


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




[PHP] Re: [binarycloud-dev] Re: [PEAR-DEV] New Metabase Aniversaryrelease

2002-01-22 Thread Alex Black

 I will first focus on the functional aspects, then step by step making
 the necessary changes to make that final code compliant to the PEAR
 coding standard.
 This makes no sense for PEAR.
 
 I propose this way:
 1. pearize Metabase (functionNames, using PEAR_Error)
 2. commit the stuff to PEAR
 3. create a wrapper class matching PEAR::DB

I agree with all but 3. Metabase offers a superset of the functionality
available in pear, so the exiting API must be extended to support metabase's
additional functionality.

otherwise, Lukas, fantastic and I await your work... we will be using your
code in binarycloud as soon as it's ready.

Manuel: will you mintain metabase based on Lukas's work? i.e. is he taking a
branch or are you working together? (I hope it is the latter... as I would
really like to see the metabase code adhere to the pear coding standards).

best,

_alex


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




[PHP] Re: [binarycloud-dev] Re: [PEAR-DEV] Re: [metabase-dev] RE:[PEAR-DEV] New Metabase Aniversary release

2002-01-22 Thread Alex Black

 * Manuel Lemos wrote:
 I think that the greatest point of the merger is to have one and only
 one abstraction layer in PEAR,
 
 I think consensus was that there shouldn't be the one and
 only XYZ PEAR class but more than one XYZ PEAR class (like
 IT[X] and the PEAR rewrite of PHPLib's Template class).

Again, I agree about everything but database abstraction.

It's fine to have applications use 5 different template engines as its only
a matter of taste. binarycloud supports smarty, xslt, and standard php
classes.. I'm sure we'll support more in the future.

The database abstraction layer's behavior and capabilities dictate
application development and we sure as hell don't want 5 abstraction layers
with the same API floating around. IMHO that's actually _worse_ than just
having different abstraction layers compete, because it can confuse new
developers.

We had this discussion a while ago, I was actually under the impression that
everyone agreed that metabase was the most architecturally and functionally
mature package, while PEAR clearly had a cleaner OO api because it wasn't
burdened with PHP3 compatibility.

I would _very_very_very_ much like to see metabase core code replace the
current PEAR::DB codebase, but use the same API as the existing PEAR::DB.
PEAR people and us out there building applications have a lot to gain if
that happens.

_If_ that happens I think we are all better for it: we gain both the good
api and the mature package... and everyone can start using the same
abstraction layer so we can all start sharing applications properly (again
one of the primary ideas behind binarycloud).

If it is indeed the intention of those running pear to (in the long run)
have multiple abstraction layers, I think that is a bad mistake. However,
until whoever decides these things makes themselves clear I don't really
have an opinion :)

_alex


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




[PHP] Re: Rename a File?

2001-07-11 Thread Alex Black

in article [EMAIL PROTECTED], Randy
Johnson at [EMAIL PROTECTED] wrote on 7/13/01 10:53 AM:

 How do I rename a file on Linux in PHP?
 
 Thanks
 
 Randy


$err = `mv moo.php foo.php`

_a


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




[PHP] Re: XSLT compiler for PHP

2001-07-11 Thread Alex Black

I know that someone is working on an xslt-c compiler, which you could
construct hooks in php for.

but I know of no xslt-php compiler (though that would be groovy, bigtime
groovy)

:)

_a


in article [EMAIL PROTECTED], Steven
Roussey at [EMAIL PROTECTED] wrote on 7/11/01 10:25 AM:

 Hi all,
 
 I was curious if anyone was aware of a XSLT compiler that outputs PHP
 source? XSLTC which Sun donated to Apache Foundation creates Java source and
 is part of the Xalan project. Java is slow and we are all PHP here.
 
 Thanks!
 
 Sincerely,
 
 Steven Roussey
 Network54.com
 http://network54.com/?pp=e
 


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




[PHP] Re: Speed of loding PHP pages

2001-07-11 Thread Alex Black

that has nothing to do with php.

it's that netscape is crap at rendering large tables, whereas IE is
amazingly good. :)

-a

in article [EMAIL PROTECTED], Don at [EMAIL PROTECTED] wrote on
7/11/01 9:47 AM:

 Hi,
 
 Has anyone tries any test loading PHP pages into IE 5.x and Netscape
 4.7x?
 
 As an experiment, I have a page that issues a phpinfo().  WIth I.E. 5.5,
 it takes about 3 seconds.  With Netscape 4.77, it takes almost 20
 seconds.
 
 Thanks,
 Don
 


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




Re: [PHP] array sort

2001-05-22 Thread Alex Black

 on a whim, I tried
   uasort($this-modules[$group], '$this-_ary_sort()');

hi all,

for those of you interested:

uasort($this-modules[$group], array($this,'_ary_sort'));

note the $this... this is a very good point, if you use $this, a new
instance of your class is created just to handle to sort :)

elsewhere in the same class:

function _ary_sort($a,$b) {
return $a['init'] - $b['init'];
}


is my 'final' code (thanks markus).


_alex



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




[PHP] array sort

2001-05-21 Thread Alex Black

hi all,

I'm trying to do an array sort that takes:

$test = array(
array( // this is $test[0].
string = this is the second,
num = 2
),
array( // this is $test[1].
string= this is the first,
num = 1
),
);

and sorts that array based on $test[$x][num], so I get:

$test = array(
array( // this was $test[1], now $test[0].
string= this is the first,
num = 1
),
array( // this was $test[0], now $test[1].
string= this is the second,
num = 2
),

);

Note that the key/value pairs _must_not_ change, so I can't just copy this
stuff around to get what I want. (because I'm actually doing this for load
order of class instances)

so, I'm trying to sort the order of the top level arrays in a structure,
based on a key.

I played with array_moltisort, but could not get what I wanted out of it.
I have this nagging feeling like I _could_ get what I want out of it, thus
the post :)

oh yes, please cc me @ [EMAIL PROTECTED]

tia, all.

_alex



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




Re: [PHP] PHP URL Question - omitting index.php

2001-05-21 Thread Alex Black

 http://www.blahbalh.com/directory/?arg1=arg1arg2=arg2
 
 In this case the directory would have an index.php file that would react
 based on the query string, but as you can see I'm not including the
 index.php in the link.
 
 Is this o.k. or will some browsers get confused?

I've never seen a problem with this: /?stuff=foo

I like:

/foo.php?stuff
or better, if I'm willing to put in the time to do the apache config:

/foo?stuff
which I particularly like.

have a look at http://www.arsdigita.com/doc/abstract-url

_alex


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




Re: [PHP] array sort

2001-05-21 Thread Alex Black

 Use 'uasort()':
 
 function my_hash_sort( $a, $b) {
 $a = $a['num'];
 $b = $b['num'];
 if( $a == $b) return 0;
 return ( $a  $b) ? -1 : 1;
 }
 
 uasort( $test, 'my_hash_sort');

hoping this wouldn't be the answer, thanks :)

another for you:

I've now coded my function, and the ordering works fine.

except I'm inside a class and would really rather not include some strange
little file with a single function in it. kludgemy code here/kludge

on a whim, I tried 
uasort($this-modules[$group], '$this-_ary_sort()');

with no luck :)

ideas?

tia,


_alex


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




Re: [PHP] get all defined constants?

2001-05-20 Thread Alex Black

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

including constants?

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

?

_alex


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




[PHP] get all defined constants?

2001-05-19 Thread Alex Black

hi all,

can't find a function for getting a complete list of defined constants.
this exists for classes, I think it must for constants even if it is
undocumented.

I'm writing a bit of debug code, and I'd rather not build a bunch of
implicit knowledge about my set of constants into the code - I'd like to
just dump everything in my environment onto the page.

please respond to me @ [EMAIL PROTECTED]

tia all,

_alex


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




Re: [PHP] setting register_globals off

2001-01-26 Thread Alex Black

Sort of along these lines, has anyone done tests to see if you can 100%
ditch php.ini, and run all the php config info in httpd.conf? I'd much
rather do it that way, I'd only have to maintain 1 file...

_a




On 1/25/01 1:36 AM, in article
Pine.BSF.4.10.10101250910530.26823-10@localhost, "Philip Olson"
[EMAIL PROTECTED] wrote:

 Hi Catalin,
 
 I'm trying to decipher what can and cannot be set with ini_set myself and
 am slowly figuring it out :-)  This cannot be set this way but rather it
 could be set through .htaccess so :
 
 this works in .htaccess :
 
   php_value register_globals off
 
 this will not work in script :
 
   ini_set("register_globals","off");
 
 The latter will set the "local value" but it won't be of any use, it will
 remain "on" although if you do ini_get("register_globals") right below it
 it'll report them as "off" when in fact they are "on"  There you have it.
 The answer is "NO" as, as quoted from a similar question awhile ago :
 
 "Directives that affect actions that are taken before a script is
 parsed, such as mangling EGPCS data, can not be changed by the script."
- Rasmus
 
 This certainly falls into that category.
 
 Regards,
 
  be outside the box.
 Philip Olson
 http://www.cornado.com/
 
 
 On Thu, 25 Jan 2001, Catalin Borcea wrote:
 
 Can I set "register_globals=off" using a runtime configuration directive
 (something like ?php_register_globals_off?)?
 
 TIA
 -- Catalin Borcea --
   \\\|///
  \\ - - //
( @ @ )
  -oOOO(_)OOOo
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




Re: [PHP] Best way to describe Doc as HTML

2001-01-26 Thread Alex Black

   print "Content-type: text/html\n\n";

That's the "perl" method, because perl doesn't have any native functions for
adding stuff to the response header, so you just print it :)


   header( "Content-type: test/html" );

The above is correct.

_alex


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




Re: [PHP] building a language pack

2001-01-24 Thread Alex Black

I'm of the opinion that abstracting all "lang-specific" strings to an xml
file is the easiest, cleanest way to go. that means "layman" authors can
translate without screwing up your code, and you can get a lot of languages
fast.

it's also pretty convenient to get the strings out, and to add new ones.

just assign an id, like:

string
id12/id
lang:enhello, world/lang:en
lang:frbonjour, monde/lang:fr
/string

or something :)

_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]
 Newsgroups: php.general
 Date: 24 Jan 2001 10:08:55 -0800
 Subject: [PHP] building a language pack
 
 I'm the author of an opensource php auctioning system and have recently been
 receving alot of emails concerning the availibility of different languages.
 I was wondering what the best way to build a sort of language pack would be
 (one file for french, one for english, one for german, etc).  Something like
 replacing one file containing the language specs  translations would
 translate the entire system.  I'm just looking for recommendations before I
 start asking volunteers to translate the words.  Thanks.
 
 
 
 
 
 ___
 Send a cool gift with your E-Card
 http://www.bluemountain.com/giftcenter/
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] SMTP interface in php?

2001-01-24 Thread Alex Black

yes, manuel lemos has a fantastic one at phpclasses.upperdesign.com

I've got it running a couple places, it works _really_ well :)

but I've never done mass mailing with it.

-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] (George Schlossnagle)
 Organization: Community Connect, Inc.
 Newsgroups: php.general
 Date: 24 Jan 2001 11:38:11 -0800
 Subject: [PHP] SMTP interface in php?
 
 Is there a generic SMTP interface library for php?  Something akin to
 perl's Net::SMTP.  php's mail() is not terribly flexible for sending
 mass mail, and I was going to write one that's a lower-level interface,
 but I don't want to waste my time re-inventing the wheel if one already
 exists
 
 Thanks,
 
 George
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] easy question.

2001-01-24 Thread Alex Black

if(($fname)  ($lname)  ($email))
{  echo "test"; }
 
 Is there an easier way to write the IF line?

if (isset($fname)  isset($lname)  isset($email)) {
echo "test";
}

I believe the parens in your code don't do anything. anyway, best o' my
knowledge that's the way to do it.

"_)

-a


 Thank You
 
 .:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
 Systems  Network Administrator :: Programmer
 [ phone - 208.343.3110 ][ pager - 208.387.9983 ]
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] Sending a mail in HTML format

2001-01-23 Thread Alex Black

that html mail class is fantastical :)

_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] ("Jade Ohlhauser")
 Newsgroups: php.general
 Date: 23 Jan 2001 12:51:45 -0800
 Subject: Re: [PHP] Sending a mail in HTML format
 
 1.that won't always display properly
 2.that doesn't allow for inline images
 
 To do it properly use MIME. Richard Heyes has already done all the hard work
 for you:
 http://www.zend.com/codex.php?id=103single=1
 
 . Jade Ohlhauser
 [website architect]... http://bandwidthplace.com
 
 
 - Original Message -
 From: "Kristi Russell" [EMAIL PROTECTED]
 To: "Pascal Clerin" [EMAIL PROTECTED]
 Cc: "php" [EMAIL PROTECTED]
 Sent: Saturday, January 20, 2001 11:31 PM
 Subject: Re: [PHP] Sending a mail in HTML format
 
 
 Nothing special, just add html at the beginning of what you're trying to
 send as HTML. Always worked for me?
 
 Kristi
 
 - Original Message -
 From: "Pascal Clerin" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, January 20, 2001 8:46 PM
 Subject: [PHP] Sending a mail in HTML format
 
 
 Hello,
 
 I want to send a mail in HTML format with the mail() function.
 I have tried to send html stuff in the message parameter, but when I
 read
 it
 in my hotmail account, I just see the html code and not what the html is
 supposed to show.
 I suppose that it is necessary to send some additional headers to
 specify
 that
 the mail is in html format.
 Thanks for your help.
 
 Pascal
 
 
 Get free email and a permanent address at http://www.netaddress.com/?N=1
 
 --
 PHP General Mailing List (http://www.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] zend ide debugger

2001-01-23 Thread Alex Black

ola all,

has anyone used the zend ide+debugger?

before I slap down $800, I'd like to know if people who have think it's
groovy..

:)

_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





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




Re: [PHP] zend ide debugger

2001-01-23 Thread Alex Black

 The IDE+Debugger combo really looks great, esp. because of the debug
 support being AWOL in PHP4.

I'm a little bit irked about that actually, they obviously stopped the
"free" development on it, and moved it in house. But I guess you gotta put
food on the table :)

I really would prefer to have debug info printed to a browser instead of
_only_ accessible through their IDE. anyway.

 I'm a little worried about the IDE being written in java tho...I hope its
 not as slow/memory hungry/crash happy as the other java + JRE apps I've
 used...

That's getting a bit better, I've got a couple apps that run fine on win2k
that are java. they're memory pigs but that's the multiplatform life. also,
you're sort of screwed if you want to go X + windows, without maintaining
two separate codebases, so I understand the choice.

plus, swing is very mac-esque, so I approve :)

 Too bad there's not an evaluation version available for download.

I've sent mail to one of their sales guys, adam, about that. The 30-day
"evaluation" is pretty funny: you have to pay $100 for it. (come _on_)!

_but_, for me the "encoder se" is worth the $800 right out, I can ensure
some values stored in my apps right now are ripped up in a binary, which is
extra-extra-groovy for security.

-alex


 Ben
 
 At 03:15 PM 1/23/2001, you wrote:
 ola all,
 
 has anyone used the zend ide+debugger?
 
 before I slap down $800, I'd like to know if people who have think it's
 groovy..
 
 :)
 
 _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
 
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] php.ini

2001-01-23 Thread Alex Black

locate php.ini

in windoze, the windows key+f, type in php.ini

_a


--
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] ("Michael A. Peters")
 Newsgroups: php.general
 Date: 23 Jan 2001 18:07:42 -0800
 Subject: Re: [PHP] php.ini
 
 try find / -print |grep "php\.ini" after your make install.
 will take awhile, but that should find it :D
 
 On Tuesday, January 23, 2001, at 04:44 PM, Rasmus Resen Amossen wrote:
 
 Everybody talks about this nice configuration file, but where is it?!
 I have compiled php4 with apache, but even a find . -name "php.ini
 gives anything. 
 Do I really need to recompile php to change its configuration?
 
 --  
 Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
 Jagtvej 120, -244| http://www.math.ku.dk/muh
 2200 Kbh. N  | http://w1.1444.telia.com/~u14441
 
 --  
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Michael A. Peters
 Abriasoft Senior Developer
 
 (510)  623-9726x357
 Fax: (510) 249-9125
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] picture quality question

2001-01-22 Thread Alex Black

older versions of AOL use a custom 256 palette to support the AOL gui.

this has nothing to do with php.

-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] ("Robert V. Zwink")
 Newsgroups: php.general
 Date: 22 Jan 2001 13:15:19 -0800
 Subject: RE: [PHP] picture quality question
 
 This could be your video card or something.  I doubt is has anything to do
 with php.  If you have an older card, or not enough ram on the card, you
 might experience something like that.  Try updating your video card driver,
 or replace the card.
 
 Robert Zwink
 http://zwink.levitate.org
 
 -Original Message-
 From: Pat Hanna [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 22, 2001 3:23 PM
 To: php help
 Subject: [PHP] picture quality question
 
 
 I have these pictures that I'm using for my webpage. Their background
 changes from blue to white. When I loaded them onto the server, they looked
 very nice and they always looked good on netscape browsers. Every once and a
 while though, the background turns bad and all the pictures look terrible on
 AOL and Internet explorer. The colors don't fade evenly between each other
 and it's rather ugly. I have to reload them or redraw them in order for them
 to look the same on all the browsers. How can I fix this?
 Very frustrated,
 Patrick
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] 404 handler

2001-01-22 Thread Alex Black

I have note tested this, but I think you can probably get this in before the
apache header info:

header("HTTP/1.0 200 OK");

I'll go test that, I've also got a 404 handler, and wouldn't mind never
having 404s reported to IE :)

-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] (Dieter Kneffel)
 Organization: http://mopilot.com - your personal mobile agent
 Newsgroups: php.general
 Date: 22 Jan 2001 05:58:52 -0800
 Subject: [PHP] 404 handler
 
 Currently I use customized pages for 404 error handling.
 Problem is, even if my HTML page is sent, the header still
 contains the '404 not found'
 
 How can I avoid an '404 not found' header to be sent?
 I want a normal page to show up without having sent
 the usuall 404 header.
 
 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]
 


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




Re: [PHP] solutions to disadvantages when register_globals is off

2001-01-21 Thread Alex Black

 ?
 include $HTTP_POST_VARS['file'];
 ...
 ?
 
 really isn't any safer.  People won't be able to put file=/etc/passwd
 right in the URL, but they can still trivially fake up a form post and
 inject whatever value for 'file' into the POST data.
 
 It all boils down to verifying any and all user-supplied data.
 
 -Rasmus

totally :)

I toyed with turning off register globals in binarycloud, only to a) have
that pointed out to me, and b) realize that it would be a total hassle.

we're extremely paranoid about user input, and you have to get used to
making your code only accept _exactly_ what it is expecting with regards to
user input.

I've seen:

file.php?message=hello[EMAIL PROTECTED]

can you say spam-engine ?

:)

_alex


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




Re: [PHP] Profanity Filter

2001-01-20 Thread Alex Black

hey,

does anyone have a big compiled list? like a profanity library?

maybe even a multi-lingual one!

hey, it would be fun to make :)

_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] ("Sterling Hughes")
 Organization: Pentap Technologies
 Newsgroups: php.general
 Date: 19 Jan 2001 12:09:56 -0800
 Subject: Re: [PHP] Profanity Filter
 
 
 
 On Fri, 19 Jan 2001, Ignacio Vazquez-Abrams wrote:
 
 On Fri, 19 Jan 2001, Sterling Hughes wrote:
 
 I'm saying use the same method, but use an array and avoid the
 strpos()
 function:
 
 $words = preg_split("//", $data);
 foreach ($words as $word) {
 if (in_array($prof, $words)) {
 echo "BAD WORD";
 echo "BAD WORD";
 echo "I'M TELLING";
 }
 }
 
 -Sterling
 
 
 That method suffers from the dictionary problem that Egan brought up.
 
 
 Hey, wait a second...
 
 Does that code even make sense? I must be missing something...
 
 --
 
 well if you have a concussion... :)
 
 Its a whip up of what I was talking about, I didn't mean it as real code
 :)...   Switch $words to $word and then swith the argument order to in_array
 and yes, it makes sense...
 
 ?php
 $profanities = array("fuck", "shit");
 
 $words = preg_split("/\s+/", $data);
 foreach ($words as $word) {
 if (in_array($word, $profanities)) {
 echo "you did a naughty thing";
 break;
 }
 }
 ?
 
 
 Would be the somewhat sane version...
 
 _Sterling
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] is it possible to communicate javascript and php?

2001-01-20 Thread Alex Black

no without submitting information to the server with get or post.

for example, if a bit of javascript you have comes up with some value, the
only way you can get it to the server is to put it in a get and send the
user to that url:

http://www.mysite.com/index.php?your_js_var=your_value

etc.

_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] (Evelio Martinez)
 Newsgroups: php.general
 Date: 19 Jan 2001 09:01:33 -0800
 Subject: [PHP] is it possible to communicate javascript and php?
 
 I would like to know if it possible to pass in any way some values
 
 from javascript functions to php variables ?
 
 Any FAQ?
 
 Thanks
 
 --
 Evelio Martnez
 Testanet. Dept. desarrollo software.
 Av. Reino de Valencia, 15 - 5
 46005 Valencia (Spain)
 Tel: +34 96 395 90 00
 Fax: +34 96 316 23 19
 
 
 


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




Re: [PHP] RE: Ethics question...

2001-01-20 Thread Alex Black

 is there any benchmarks or proof that I should host a high traffic site on a
 FREEBSD/APACHE instead of a redhat Linux/Apache server?

I have _heard_ that linux is great under medium load, but does not deal as
well with super-high loads as well as freeBSD. that has not stopped me from
using linux in all of my commercial installations, with not a problem once
:)

I think the answer is to say:

we'll use apache, on (insert your fav. *nix here) - in a cluster of
webservers that can be easily expanded as the need arises.

I personally dislike sun: expensive, hyper-proprietary (almost worse then
MS, because its their hardware as well), and really_really_rude

What's great about both FreeBSD and Linux: commodity hardware! cheap! easy
to get! cheap! It's easier to build in redundancy than it is to engineer
100% uptime.

_alex



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




Re: [PHP] Forms!

2001-01-18 Thread Alex Black

you'd need a java applet to do that... I actually had one made, but you
can't get text in on the clipboard because java can't get access to system
resources, which of course makes it useless.

:)


--
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] ("Fredrik Arild Takle")
 Newsgroups: php.general
 Date: 18 Jan 2001 08:11:40 -0800
 Subject: [PHP] Forms!
 
 I know this isn't the right place to ask this question, but...
 
 Anybody know how i can make/find a wysiwy (what you see is what you get)
 online html editor (like the one Hotmail has!) ...
 
 I'm gonna use it in a newsgroup (which supports rich text)!
 
 Any tips anyone?
 
 NOTE! I'm not a part of this group at home, but could you please answer me
 directly? [EMAIL PROTECTED]
 
 Best Regards
 Fredrik A. Takle
 
 


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




Re: [PHP] Levels of Access

2001-01-18 Thread Alex Black

it's the difference between group/category or "object level" access:

i.e. "this function is level 1, and all level 1 users can execute it)
or
this function may be executed by level 1, level 2 users, but that function
may only be executed by level 3"
or
user x can access:
-function 1
-function 2
etc (ver long list :)

_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] (Chris Aitken)
 Newsgroups: php.general
 Date: 17 Jan 2001 15:07:06 -0800
 Subject: Re: [PHP]  Levels of Access 
 
 At 10:36 PM 17/01/2001, you wrote:
 Hey Guys,
 
 I wonder if anyone can shed light...
 I have a system that internal users access -
 
 I have separated access levels into 1, 2, 3 etc.  So if you have access 1
 you can view certain things - If you are 2 then you can view more or other
 things.
 
 However the problem arises when someone in access level 1 wants to access a
 level 2 function.  I then manually specify that:
 
 if (access = 2 or user=joe) {
 Allow the functions ...
 }
 
 This can get messy - as individuals will be specified all over the place on
 a large system to override levels of access.
 
 Is there a sensible standard that is used to have levels of access but
 special people can access certain higher level functions.?
 
 
 Why not have a database with all usernames/passwords/access levels in
 there, and when the user logs in (either with htpasswd or a form login
 script system) that info is recorded by a cookie.
 
 Than have a function which is at the start of every page which passes the
 access level of the user, and which levels can access the page. Say there
 was 5 levels, you could call the function this way
 
 auth_user("$access_level","N","N","Y","N","Y");
 
 The function just needs to grab the first variable as the users given
 access level, then the next 5 variables state whether levels 1 thru 5 are
 allowed to view the page (only level 3 and 5 can view it in the above
 example). If the users access level returns a Y for its corresponding
 level, then its allowed to proceed, otherwise they are shuffled off to a
 page telling them to (nicely) go away.
 
 I dunno if this is a clutzy way of doing it (chances are it is) but thats
 how I would try and implement it, and you can also create a nice simple
 admin screen system to maintain all users and access levels. Change it in
 the DB and its instant on all pages.
 
 
 
 
 Chris
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] How to avoid submitting twice?

2001-01-18 Thread Alex Black

1: register a ver in the session
or
2: register the event in the DB

-a


--
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] (Chakravarthy K Sannedhi)
 Newsgroups: php.general
 Date: 17 Jan 2001 13:11:20 -0800
 Subject: [PHP] How to avoid submitting twice?
 
 hello all,
 
 I am having a form which contains a dropdown listbox
 and a submit button. The user will choose any number
 from 1 to 5 and hits the submit button. After this the
 data that he had selected (1,2,3,4 or 5) enters into a
 mysql database(this data enters into the row with the
 latest userid) and a link appears, so that by click
 that link he can go to next page.
 I want to avoid the user from submitting his opinion
 once again if he does it already.
 Here is the code that i have wrote, which is going
 logically some where wrong.
 FYI : opinion and submit are the names of the dropdown
 listbox and submit buttons. scene1 is the name of the
 field in the table named testtable into which the data
 enters(one of 1 to 5)
 
 mysql_connect ('localhost','myname','password') or die
 ('bunable to connect to the database./b');
 mysql_select_db ('usertest') or die ('bunable to
 select the database./b');
 
 if ($submit) {
 $result = mysql_query("select * from testtable order
 by userid desc limit 1");
 $myrow = mysql_fetch_array ($result);
 $id = $myrow["userid"];
 $query = "update testtable set scene1='$opinion' where
 userid=$id";
 mysql_query ($query);
 echo "a href=next.phpGo to next page/a";
 /* this is the part i am trying to use to avoid him
 from doing submission second time */
 $result=mysql_query("select * from testtable order by
 userid desc limit 1");
 $myrow = mysql_fetch_array ($result);
 $scene1 = $myrow["scene1"];
 if ($scene1 == 1||2||3||4||5) {
 echo "script language=\"javascript\"";
 echo "alert(\"You can choose the rating only
 once\");";
 echo "/script";
 }
 }
 
 Thanks
 Chakravarthy K Sannedhi
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] ? PHP vs. ?

2001-01-18 Thread Alex Black

xml problems?

_what_ xml problems?

_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] (Teodor Cimpoesu)
 Organization: DIGICOM, Romania
 Newsgroups: php.general
 Date: 17 Jan 2001 12:57:37 -0800
 Subject: Re: [PHP] ? PHP vs. ?
 
 Hi Philip!
 On Wed, 17 Jan 2001, Philip Olson wrote:
 
 
 Short open tags won't work with xml.  Therefore they won't work with
 xhtml.  They conflict with where the Web is going.
 
 Aha!  Yet another reason not to use ?=
 
 :-)
 
 you can always use % and %= instead.
 No XML problems, and you may confuse your {A,J}SP coders :)
 
 -- teodor.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] Forms!

2001-01-18 Thread Alex Black

Unfortunately, that makes it a little weird to distribute as a free product,
and has all sorts of yucky legal implications (or inconvenience) :)

_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] (Clive Cartlidge)
 Newsgroups: php.general
 Date: 18 Jan 2001 12:42:33 -0800
 Subject: RE: [PHP] Forms!
 
 Alex,
 
 True ... to a point.  A signed applet has access to read/write to the client's
 clipboard.
 
 Cheers.
 
 
 --   http://www.datamirror.com
 Clive Cartlidge  mailto:[EMAIL PROTECTED]
 Senior Web Developer phone: 905-415-0310 x160
 DataMirror Corporation   fax: 905-415-0340
 
 -Original Message-
 From: Alex Black [mailto:[EMAIL PROTECTED]]
 Sent: January 18, 2001 3:30 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Forms!
 
 
 you'd need a java applet to do that... I actually had one
 made, but you
 can't get text in on the clipboard because java can't get
 access to system
 resources, which of course makes it useless.
 
 :)
 
 
 --
 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] ("Fredrik Arild Takle")
 Newsgroups: php.general
 Date: 18 Jan 2001 08:11:40 -0800
 Subject: [PHP] Forms!
 
 I know this isn't the right place to ask this question, but...
 
 Anybody know how i can make/find a wysiwy (what you see is
 what you get)
 online html editor (like the one Hotmail has!) ...
 
 I'm gonna use it in a newsgroup (which supports rich text)!
 
 Any tips anyone?
 
 NOTE! I'm not a part of this group at home, but could you
 please answer me
 directly? [EMAIL PROTECTED]
 
 Best Regards
 Fredrik A. Takle
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] question (as if anything else would be in an email tothe list...)

2001-01-18 Thread Alex Black

that's the MS debugger being bitchy. as far as I know that's a) legal and
b)useful.

then again, in the context of what you're doing, why not just build in a
little php logic that knows if your select is a certain value, something
else should happen?

note that onChange may only be associated with the select element, not the
option element.

-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] ("Jason Jacobs")
 Newsgroups: php.general
 Date: 18 Jan 2001 13:29:29 -0800
 Subject: [PHP] question (as if anything else would be in an email to the
 list...)
 
 Hi again.  I have a new problem.  I have a form with a drop down list.  When
 the user chooses something from the list, I need a variable to change values
 so it can be used upon submission of the form.  I thought maybe I could
 throw a little line of code into an onChange() function in the select  
 tag, but I got the MS Debugger thrown up on me.  Anyone got an idea of how
 to do this?  Is it possible to call a javascript function and change the
 variable in there?  Or an easier way (like inline php code...)?  Thanks
 
 Jason
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] error message handling

2001-01-17 Thread Alex Black

 You probably want to suppress the error message with an @ symbol.  Try
 putting an "@" before the function calls that give you errors.

you want to avoid doing that, I recommend properly handling the error.

 ?php
 $x = @php_function_here();
 ?
 
 This suppresses the error function.  Many functions return FALSE if
 unsuccessful, so you can test and supply your own error message.

better to write a handler to deal with your errors properly.

 ?php
 if ($x == FALSE) {
 print ("error.");
 }
 ?
 
 If you find yourself doing this alot, you may want to create a wrapper
 function or wrapper class around the original.  Look at PHPLIB's DB_SQL
 class for an example of how they suppress error messages.  Look at
 www.php.net for more info.

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

best,

_alex


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




Re: [PHP] how do i hide my .inc files in apache??

2001-01-17 Thread Alex Black

move them out of your apache docroot.

/usr/local/apache/htdocs/blah.php
includes
/usr/local/apache/include/hoo.inc

_a


--
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] ("Matt Williams")
 Newsgroups: php.general
 Date: 17 Jan 2001 05:58:59 -0800
 Subject: RE: [PHP] how do i hide my .inc files in apache??
 
 Files *.inc
 Order allow,deny
 Deny from all
 /Files
 
 in either your httpd.conf or a .htaccess file will deny users access to your
 *.inc files
 
 M@
 
 -Original Message-
 From: Jon Haworth [mailto:[EMAIL PROTECTED]]
 Sent: 17 January 2001 13:01
 To: 'Jamie Burns'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: [PHP] how do i hide my .inc files in apache??
 
 
 I take it you're talking about normal html .inc files, and not the PHP
 include() function? If so, this is well off-list, try the
 comp.infosystems.www.servers heirarchy for this sort of thing.
 
 But...
 
 You can't, AFAIK. The whole *point* of an include file is that the entire
 contents of that file are included in whatever document you call it from.
 You use them for holding repetitive information that you don't
 want to type
 out for every page, such as a footer, eg:
 
 pThis page is copyright blah blah blah/p
 pa href="mailto:[EMAIL PROTECTED]"E-mail the webmaster/a/p
 
 would be a candidate for a .inc file.
 
 If I have completely missed the point, please forgive me.
 
 
 Cheers
 Jon
 
 
 -Original Message-
 From: Jamie Burns [mailto:[EMAIL PROTECTED]]
 Sent: 17 January 2001 12:48
 To: [EMAIL PROTECTED]
 Subject: [PHP] how do i hide my .inc files in apache??
 
 
 hi..
 
 can anyone tell me how i get apache to never send out the contents of my
 include files (*.inc) to users?
 
 i dont want my source sode to be visible to browsers.
 
 thanks,
 
 jamie.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] Help! Oracle...

2001-01-16 Thread Alex Black

I have a vague memory of ORA-12545 being a database not available error.

but go by the oracle errors, they are usually pretty informative.

-a


--
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] (Paul)
 Newsgroups: php.general
 Date: 16 Jan 2001 17:55:43 -0800
 Subject: [PHP] Help! Oracle...
 
 
 Can some one help me understand this error?
 
 
 _oci_open_server: Error while trying to retrieve text for error ORA-12545
 in /home/develop/www/htdocs/php_dev/oracle.php on line 11
 
 
 My php.php server status page shows:
 
 oci8
 
 OCI8 Support.enabled
 Oracle Version8.1
 Compile-time ORACLE_HOME
 /u01/app/oracle/product/8.1.5/
 
 Libraries Used   (none listed)
 
 
 Thanks!
 
 Paul
 -- 
 ___
 Paul Luscher
 Web Developer
 Studeo Interactive Direct
 Ph. 801.993.2219
 
 [EMAIL PROTECTED]
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] RedHat+Apache+php+MSSQL

2001-01-16 Thread Alex Black

dude,

I installed RH7

_nightmare_

so I promptly uninstalled it, and am happily running 6.2

I would advise convincing whoever told you to do that out of doing that :)

I would recommend waiting until oracle runs on redhat 7.(x) - that's a good
litmus test.

_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] ("Chris Lee")
 Organization: Mediawaveonline.com
 Newsgroups: php.general
 Date: 16 Jan 2001 08:41:34 -0800
 Subject: Re: [PHP] RedHat+Apache+php+MSSQL
 
 why go for anything but the newest ? is this production ? if so stick to
 non-beta probably.
 
 Chris Lee
 Mediawaveonline.com
 
 
 
 "Francesc Llad" [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have to install in a computer with RedHat 7.0, an Apache web server
 and php with connection at Microsoft SQL Server 7.
 
 Which kind of versions of Apache and php do you recommend?
 Someone of you has tried it? Which are the more frequently problems?
 
 Tank you very much!!!
 
 --
 Francesc Llad i Dardet
 [EMAIL PROTECTED]
 
 Interkonet Publishers s.l.
 Atenes 22
 08006 Barcelona
 Tel. 932 530 866
 Fax. 932 530 866
 http://www.interkonet.com
 [EMAIL PROTECTED]
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] load balancing with php/apache?

2001-01-15 Thread Alex Black

 
 We used LocalDirector for awhile, with it's 'sticky bit' functionality,
 and it basically didn't work with AOL.  I just looked at the
 coyote product and they claim it works with 'large ISP' proxies - maybe a
 veiled
 reference to AOL directly (why not just say AOL?).

from my testing, the "EQUALIZER" (I kind of like how obnoxious the name is,
actually :) does in fact work with AOL.

 Do you have any more info on HOW they do this?  The
 only thing I can think of is that they code it recognize particular IP blocks
 known to be proxies for AOL/mindspring/etc and route ALL traffic from these to
 a
 particular box, which doesn't seem terribly balanced.  OR... they drop a
 separate
 'cookie' or similar header data piece between the server and the client and
 track
 that.

The installation I tested is not large, though, and I did not hit it with
more than one client.. in the case of the particular site, it doesn't
matter... but I would be interested to know that.


 Either way, it seems a bit expensive, although cheaper than LD, last time I
 checked.

Yeah, Cisco r' bastards :)

At _least_ for the money, their stuff does actually work most of the time.

 Personally, we do the 'stateless' model with session data in a database -
 works
 fine.  Your coyote solution is still stateless, but the session data is kept
 local
 to the webserver.

Yeah, we might end up writing a session handler for binarycloud, probably
"switchable" so you can store sessions on the machine re: php.ini, or pipe
'em to your DB.

 Problem I see with that is that if you need to take a particular machine
 offline,
 hundreds of people could lose their session data.  Same can be said of taking
 the
 database offline, but taking a db offline will probably affect the whole site
 anyway.  Part of the benefit of an intelligent load balancer is that you can
 remove/take down machines for maintenance/upgrades without worrying about the
 impact on the visitors.
 
 Am I missing something?

Nope, not a thing.


That is a consequence of the stateless-but-not-quite model. In my case, it's
fine. In other cases, it certainly is not :)

_alex



 
 Alex Black wrote:
 
 what?
 
 you use an utterly completely stateless model?
 
 craziness!
 
 so you set cookies, and store the sig in the db?
 
 agh! :)
 
 I'm using this box from "coyote systems" called, wait for it:
 
 "THE EQUALIZER"
 
 which is a really obnoxious name, but it sticks clients with a particular
 server intelligently, so we can be ever-so-slightly-lazy about that.
 
 do you _like_ that system? (that isn't a challenge, it's real interest)
 
 _a
 
 --
 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
 
 
 


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




Re: [PHP] Regex for telephone number

2001-01-15 Thread Alex Black

  case "phone_us":
   if(ereg("^([2-9][0-9]{2})([2-9][0-9]{2})([0-9]{4})$", $var)){
return TRUE;
   }else{
set_stringtypes_error(throw_error3("lib_string_types_108", $var));
   }
   break;

  case "phone_int":
   if(!preg_match("/[^0-9\(\)\-\. ]/", $var)){
return TRUE;
   }else{
set_stringtypes_error(throw_error("lib_string_types_109", $var));
   }
   break;

works good for us.

that's from the stringtypes lib in binarycloud. we're going to convert all
of that stuff to be stored as rules in XML... groovy changes are afoot!

_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] (Vikram Vaswani)
 Newsgroups: php.general
 Date: 15 Jan 2001 04:23:51 -0800
 Subject: [PHP] Regex for telephone number
 
 Hi!
 
 Can someone help me out with a regex to validate a phone number?
 
 Thanks
 
 Vikram
 
 -- 
 PHP General Mailing List (http://www.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] DocBook Editors?

2001-01-14 Thread Alex Black

hi all,

anyone found a good graphical SGML editor for any platform that's no a
fortune?

http://www.adobe.com/store/products/framemakersgml.html

It would be really annoying to have to write a bunch of documentation for
binarycloud inside an plaintext xml document.

I'm surprised DocBook has gained so much support given the apparent lack of
good tools for authoring.

?

_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





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




Re: [PHP] PHP vs JSP

2001-01-14 Thread Alex Black

http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.html

gah:

"Also, any organization doing clustering or failover with PHP is in largely
uncharted waters. "

what _bull_!

what does loadbalancing and clustering have to do with any scripting
language? this guy is obviously one of those dilettantes that things CFML is
the holy grail :P

anyway, that article is wrong, _except_ the part about JSP:
-slow
-extremely time consuming
-friggin annoying :)

I've worked on a couple of projects with JSP, and decided to use PHP to
build binarycloud. 'nuff said :)

_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] (Donald Goodwill)
 Newsgroups: php.general
 Date: 14 Jan 2001 15:13:12 -0800
 Subject: Re: [PHP] PHP vs JSP
 
 There is an interesting ZD Net comparison of several
 scripting languages at
 http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.html
 Some time ago I did the comparison of JSP to PHP and
 JSP turned out to be much, much slower.
 
 Now I'm just learning CodeCharge generator and so far
 it seems really helpful. I even started redoing one
 project from scratch using it. Maybe surprise your
 client and create both PHP and JSP versions...
 
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: PHP list [EMAIL PROTECTED]
 Sent: Sunday, January 14, 2001 7:35 PM
 Subject: [PHP] PHP vs JSP
 
 
 Hi all
 
 I'm busy working on a contract .. and we need to do
 some web based 
 stuff
 .. but the client is intent on using jsp and not PHP.
 Is there somewhere where I can get good comparists
 between the two 
 pro and
 cons etc etc ..
 
 I would much rather use PHP  then JSP for the
 development
 
 Thanks
 Henti Smith
 
 
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] logging page views, which method is better????

2001-01-14 Thread Alex Black

the problem with that is as soon as you run a load-baanced installation,
collecting apache logs start to be a pain in the a$$ :)

I have given some thought to the logging thing, but am still undecided re:
letting apache do its thing, and writing scripts to aggregate the logs, or
turning off apache logging and going to the DB.

problem is this puts an annoying amount of stress on the production DB, so
there you have it, the dilemma :)

-a


--
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]
 Newsgroups: php.general
 Date: 14 Jan 2001 01:58:33 -0800
 Subject: Re: [PHP] logging page views, which method is better
 
 Addressed to: "Dallas Kropka" [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 ** Reply to note from "Dallas Kropka" [EMAIL PROTECTED] Sun, 14 Jan 2001
 00:57:10 -0600
 
 
 I have a large site, with several hundred pages its a product
 listing and shopping cart and I want to log my page views I
 receive an average of 3000 hits per minute.
 
 Is it better (faster) to log my views to a database table? or to a
 flat file?
 
 
 No need to re-invent the wheel, all accesses are already being logged.
 
 
 If you are using Apache, take a look at the access log.  Every hit to
 the server is already logged there.  I am not sure what the default
 location for the file is, but you can find it with
 
 locate access_log
 
 or by looking for the string  Log  in your httpd.conf file.  I believe
 it may appear under either the AccessLog or CustomLog keywords.
 
 You might want to look at Webalizer, or a couple of other programs to
 analyze the contents.
 
 http://www.mrunix.net/webalizer/
 
 There are others, but this is the one I use.
 
 
 
 
 
 Rick Widmer
 Internet Marketing Specialists
 http://www.developersdesk.com
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] Templates

2001-01-14 Thread Alex Black

well, I suppose it could, but it's pretty weird...

why would you want to directly hook up presentation w/sql queries ? :)

-a


--
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] (andrew)
 Newsgroups: php.general
 Date: 13 Jan 2001 17:06:48 -0800
 Subject: Re: [PHP] Templates
 
 Sure,
 
 My understanding of templating engines
 1.array or item is assigned to a variable
 2.php placeholders in a html page match in name to above variable.
 3.a parser separate from php subsitutes the variable values set in (1)
 into (2)
 
 I've seen plenty of examples where there is a file containing lists of
 variable to item assignment, and thase files are passed to a one of a few
 template pages for layout.
 
 There must be a way to pass the result set of an SQL query into the set of
 placeholders - the end result would be that you could call whole sites via
 simple queries. All you have to pass in would be the SQL parameter.
 
 i.e. Table named 'Pvalues'
 
 Pvalues Sample Row
 --
 page_id contactus.html
 page_name   Contact Us
 page_title  Contact US
 header_text Please send an email
 body_text   [EMAIL PROTECTED]
 footer_text thanks!
 
 
 You can even generate a list of links dynamically for nav bar via:
 
 "select page_name, page_id from Pvalues", if you account for performance
 issues.
 
 If the usre clicks on the "contact us" link, it returns a page_id value of
 contactus.html.  So then:
 
 "select * from Pvalues where page_id = "contactus.html"
 
 Then call a templating parser and pass it the values of the select statement
 and which template to use.
 
 Can this be done, or I am way off base on this?
 
 regards,
 andrew
 
 
 
 
 
 
 
 
 
 On 1/13/01 7:27 PM, "Michael Kimsal" [EMAIL PROTECTED] wrote:
 
 I thought I understood your question, but I think I need a clarification.
 Can you elaborate a bit?  I think I have an answer, but I'm not 100% what
 you're meaning here.
 
 Thanks.
 
 
 andrew wrote:
 
 Michael,
 
 Wouldn't a benefit be that you could pass a database query in via that
 variable, either via form submit or value of a clicked link?
 
 I know PHP can do this without a separate templating engine, but if you do
 use one then you can submit an array to a specific template.  Is there a way
 to do this via built in functions without constructing the set of page
 object's first, or can you only do this in templates?
 
 regards,
 andrew
 
 On 1/13/01 7:06 PM, "Michael Kimsal" [EMAIL PROTECTED] wrote:
 
 
 
 [EMAIL PROTECTED] wrote:
 
 I looked around the web for templates and founf FastTemplates. Not exactly
 what i was looking for thoug
 lets say I have
 $file = "111"
 and there is a template "template.txt"
 and it contains
 "file #$file is blahlah"
 
 how can I make that a template?
 
 Thanks
 - Peter
 
 
 Any reason 'template.txt' couldn't just say
 
 file $?=$file;? is blahlah
 
 then include('template.txt'); in your main file?
 
 Not sure why you'd want to complicate things with
 something like FastTemplates - I understand it has a use
 and purpose, but the only long term benefit I see from
 involved schemes like that won't be realized anyway
 (discussion for another day).
 
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] mixing HTML and PHP code

2001-01-14 Thread Alex Black

the horse is back from the dead!

I can't resist:




 From: [EMAIL PROTECTED] ("Ivn Snchez Ortega \"MR\"")
 Newsgroups: php.general
 Date: 13 Jan 2001 14:17:35 -0800
 Subject: Re: [PHP] mixing HTML and PHP code
 
 "Alex Black" ...
 ?
 connect_to_database();
 parse_query();
 execute_query();
 
 echo "TABLE";
 
 while (fetch_row_from_query())
 {
 $output = data_from_fetched_row();
 $more_output = more_data_from_fetched_row();
 
 echo "TRTD $output /TDTD $more_output /TD/TR";
 
 }
 echo "/TABLE";
 ?
 
 Well, this may be a bit specific, but that is probably part of your
 problem.
 You have no structure associated with your application design:
 
 what are you doing making a connection to a database on the same page you
 spit out the results from?
 
 Nonononono... that was just an example. My real code looks more like this
 example:
 
 -
 ?
 include "common_head.php";
 
 echo "SPAN CLASS='title'Welcome to blah blah section/SPAN";
 
 echo "TABLETRTDName/TDTDEmail/TD/TR";
 
 $query=ociparse($conection,"select name,email from people where blah blah
 blah");
 ociexecute($query);
 while (ocifetch($query))
 {
 $name=ociresult($query,"NAME");
 $email=ociresult($query,"EMAIL");
 
 echo "TRTD$name/TDTD$email/TD/TR";
 
 }
 
 ocifreecursor($query);   // optional
 
 
 include "common_footer.php";
 ?
 --
 
 
 In common_head.php i have the conect-to-database functions, and because the
 way include() works, i can happily use $connection in the main code. It also
 makes a loginpassword comprobation, getting data from cookies and the
 stuff.
 common_head.php also has a main component: the UPPER WEB DESIGN. That means
 that the upper logo, left-side menus, CSS links, common javascript code and
 stuff is also stored there.
 
 common_footer just has the bottom part of the design - bottom common links,
 and lots of well measured /TABLE closings.
 
 The trick is tell the web designer to work the main common design in
 dreamweaver or so, then pick the HTML code, and separate it in "upper" and
 "bottom"... in the middle of that you have the space to put whatever you are
 spitting out from the DB.
 
 And aside from that, i don't have a one and only common_head.php ... i have
 a separate plain common head, in plain HTML... the real common_head.php
 should look like (definitively not real PHP sintax):

right, and though this is not directly related to templating:

I thik you would benefit greatly by introducing some system design (i.e.
separate "layers" doing separate tasks)

I don't like to do database connections when I've already output markup,
what if something goes wrong, or I want to do a redirect, etc?

I like to access functions in "DB Object" files - those functions return
results in arrays which I can pass into markup.

Makes the code a _helluvuh_ lot more maintainable.

 
 ?
 connect_to_database();
 do_cookie_stuff();   // First of spitting any HTML,
 // you get from cookies, make comprobations,
 // and re-store cookies or whatever...
 // This do_cookie_stuff can be a little hard.
 
 include "plain_html_head.php";
 ?
 
 
 
 That way, your dreamweaver expert can design the main design (better with
 some stupid test text in the place of the spitted-out-from-database-data),
 and you as PHPer only have to cut out the HTML code (not a really hard work)
 into two parts.
 
 As i see, it can work perfectly this way.
 
 
 How you format the spitted data and stuff is another matter but anyway,
 getting the code that dreamweaver generates and implementing it shouldn't be
 a real hard task.

True, but why not just bitch at macromedia until they include support for
PHP in ultradev?

(plegh, visual authoring tools: a necessary evil)

:)

_a


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




Re: [PHP] load balancing with php/apache?

2001-01-14 Thread Alex Black

what?

you use an utterly completely stateless model?

craziness!

so you set cookies, and store the sig in the db?

agh! :)


I'm using this box from "coyote systems" called, wait for it:

"THE EQUALIZER"

which is a really obnoxious name, but it sticks clients with a particular
server intelligently, so we can be ever-so-slightly-lazy about that.

do you _like_ that system? (that isn't a challenge, it's real interest)

_a


--
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] (jeremy brand)
 Newsgroups: php.general
 Date: 13 Jan 2001 13:41:19 -0800
 Subject: RE: [PHP] load balancing with php/apache?
 
 we store the sessions in the DB.
 
 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 Sat, 13 Jan 2001, Cal Evans wrote:
 
 Date: Sat, 13 Jan 2001 14:43:19 -0600
 From: Cal Evans [EMAIL PROTECTED]
 To: jeremy brand [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] load balancing with php/apache?
 
 When you say "handled by us" do you mean you:
 
 1) Write the sess_* files to a shared drive
 2) Store them in the database
 3) ignore them totally, who needs users anyhow?
 4) some other option?
 
 Cal
 http://www.calevans.com
 
 
 -Original Message-
 From: jeremy brand [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 13, 2001 2:20 PM
 To: Cal Evans
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] load balancing with php/apache?
 
 
 We have a centralized DB server.  Sessions are handled by us, the
 programmers, not the cluster.
 
 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
 
 On Sat, 13 Jan 2001, Cal Evans wrote:
 
 Date: Sat, 13 Jan 2001 11:51:01 -0600
 From: Cal Evans [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] load balancing with php/apache?
 
 How does it deal with sessions? Or do use store sessions in the database?
 
 Cal
 
 -Original Message-
 From: Joe Stump [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 13, 2001 11:22 AM
 To: Rasmus Lerdorf
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] load balancing with php/apache?
 
 
 http://www.linuxvirtualserver.org/
 
 We use LVS on our website - it works great! We have 2 load balancers with
 the
 HA package and 6 PHP webservers running behind it (with a central DB
 server).
 
 In short, it's possible and works quite well. BTW We user FreeBSD for
 webservers
 if that's any help (though linux, NT, solaris, etc would all work)
 
 --Joe
 
 
 
 
 http://linas.org/linux/load.html
 
 -Rasmus
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 --
 
 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]
 
 
 
 --
 PHP General Mailing List (http://www.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]




Re: [PHP] load balancing with php/apache?

2001-01-14 Thread Alex Black

 Whoever said NFS is slow hasn't used a NetApp

amen brother.

-a


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




Re: [PHP] Use ?= instead of %=

2001-01-14 Thread Alex Black

can people give me opinions as to why ?= is so bad?

me = love : ?=

:)

_a


--
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] (Philip Olson)
 Newsgroups: php.general
 Date: 13 Jan 2001 12:18:08 -0800
 Subject: Re: [PHP] Use ?= instead of %=
 
 My understanding is :
 
 1. ?= is essentially php4+ specific
 2. Will not work if short_tags_open setting is off (in php.ini) because of
 the fact that ? is a short tag.
 
 Regarding its relation to the ASP counterpart, it is not directly related
 to %= as that is an ASP tag which refers to the asp_tags setting which if
 on, %= will work, if not on, it will not.  Information and references to
 this can be found here :
 
 http://www.php.net/manual/language.basic-syntax.php
 http://www.php.net/manual/en/configuration.php#ini.asp-tags
 http://www.php.net/manual/en/configuration.php#ini.short-open-tag
 
 I've personally never tried asp tags.  Earlier within this thread , the
 following php internals were posted by Jim Winstead :
 
 http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.3r2=1.4
 http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.6r2=1.7
 
 All in all, if others will be playing with your scripts, don't use asp
 style as usually this is usually turned off.  Use of ?= is mildly
 dangerous (and debated, my view is 'bad') to use given the reasons above.
 
 
 Philip Olson
 http://www.cornado.com/
 
 On 13 Jan 2001, Arcady Genkin wrote:
 
 I have noticed that ?= works just as well as %=.  Since this is not
 in documentation, how safe is it to use it?
 
 Many thanks,
 -- 
 Arcady Genkin
 Don't read everything you believe.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] load balancing with php/apache?

2001-01-14 Thread Alex Black

check out 

http://www.coyotepoint.com/

only $4000!

does 512 clients!

can even stick clients through the famous AOHell proxies!

cheap!

:)


--
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] (jeremy brand)
 Newsgroups: php.general
 Date: 13 Jan 2001 12:16:09 -0800
 Subject: Re: [PHP] load balancing with php/apache?
 
 We use LVS on our website - it works great! We have 2 load balancers with
 the
 HA package and 6 PHP webservers running behind it (with a central DB
 server).
 
 Yes, I have heard very good things about LVS.  Haven't had a chance to set
 it up myself yet.  Definitely something for the TODO list.
 
 LVS with linux-ha is a win-win situation.  Even if you loose a LVS,
 the failover is transparent. The connections hang for about 5-15
 seconds, then transfer over to the other machine.
 
 With the traffic that we have, we opted to use direct
 routing, this way there is no translation (thus no additional CPU on
 the LVS machine) needed for the answers; the web servers talk directly
 back to the client themselves.
 
 We were planning on using Local Directors, then cost became a major
 issue.  I'm actually glad we did it this way, because personally I
 like envesting my knowledge in open solutions rather than learning
 proprietary OSs and strategies.
 
 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
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] DocBook Editors?

2001-01-14 Thread Alex Black

 A lot of technical people aren't keen on WYSIWYG editors.  Especially when

I'm technical, and I'm not looking for WYSIWYG. I'm looking for something
that doesn't require me to memorize yet another large set of tags. :)

 dealing with something like docbook that is designed to generate
 documentation in dozens of formats.  vim with its syntax colouring or
 emacs with its validation mode really do a good job.  I have been writing
 a lot of docbook stuff lately for work and I find I am an order of
 magnitude more productive than I ever was using something like Word.

Well, word is a terrible example being a terrible app, especially for
structured content.

Nothing?

No options?

No SGML editors out there with a tag catalog, etc?

and yes, WYSINWYG = what you see is _never_ what you get


_a



 -Rasmus
 
 On Sun, 14 Jan 2001, Alex Black wrote:
 
 hi all,
 
 anyone found a good graphical SGML editor for any platform that's no a
 fortune?
 
 http://www.adobe.com/store/products/framemakersgml.html
 
 It would be really annoying to have to write a bunch of documentation for
 binarycloud inside an plaintext xml document.
 
 I'm surprised DocBook has gained so much support given the apparent lack of
 good tools for authoring.
 
 ?
 
 _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
 
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black

that may work for you, but it created a lot of overhead in your
applications, and anyone that doesn't know about you special "html api" will
be screwed...

by all means use whatever techniques you like in-house, but that would be
completely useless to someone in the "outside world"

-alex

 (comments)
 
 (include files)
 
 (page specific variables)
 
 html();
 
 head($title);
 head_css('stylesheet.css');
 head_script('script.js);
 x('head');
 
 body($style)
 table(0, 0, 0, '100%', '', BLACK);
 tr('top'); td(); image('fire.jpg'); x('td'); x('tr');
 x('table');
 
 x('body');
 x('html');


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






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




Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black

 Coding standards are being created (via PEAR) and a few recent articles
 exist but point is we're teaching differently, everywhere.  PHP is loose
 as a goose!  print 'foo'; print("foo");  print "foo"; printf("%s","foo");
 ... all being taught, all being read, all being (mis)used.

!

http://www.binarycloud.com/code_standard.html


 Am looking forward to the in-progress PEAR Standards, which can partially
 be seen here :
 
 http://marc.theaimsgroup.com/?l=php-pearm=97603413001842w=2
 
 Once this comes about we'll start teaching _GOOD_ coding techniques and
 after awhile many more will become pretty little coders writing (and
 copying) pretty little recognizable scripts.  Looking forward to it.
 Looking forward to picking up a PHP book and seeing concepts shown through
 standards and not through the authors preferred style at the moment.  This
 is especially true regarding articles/tutorials.  Learn the standards
 first!   Then you may be free to roam about the isles.

absolutely :)


 
 Go here, be sure to sift through the user comments   :

 Best Practices: PHP Coding Style :
 http://phpbuilder.com/columns/tim20010101.php3
 
 Smart Architectures in PHP   :
 http://phpbuilder.com/columns/tim20001010.php3
 
 A few humble thoughts.
 
 Happily yours,
 
 Philip
 
 
 On Fri, 12 Jan 2001, Alexander Wagner wrote:
 
 Alex Black wrote:
 echo "input type=\"text\" name=\"hello\" size=\"20\"
 value=\"$value\""
 
 starts to make you insane.
 
 If it is done wrong spread over the whole project hidden between lines
 of PHP-code, it sure does.
 
 speaking as an html author, and a lover of php, _please_:
 
 input type="text" name="hello" size="20" value="?=$value?"
 
 it makes the code useable.
 
 No.
 
 input type="text" name="hello" size="20" value="{value}"
 
 makes the code usable, and your HTML can even be edited with a
 graphical HTML-editor.
 
 There is no reason to mix up HTML and PHP, except for very small
 projects.
 
 regards
 Wagner
 
 -- 
 Sanity is calming, but madness is more interesting.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black

 or more like :
 
 table bgcolor="#ff"
 tr
 td bgcolor="#ee" width="300"
 Name :
 b?php
 $name = 'johnny';
 echo $name; ?/b
 /td
 td bgcolor="#ee" width="300"
 Title :
 b?php
 $title = 'smith';
 echo $title; ?/b
 /td
 /tr
 /table

yes, uhhzakkly :)

 
 ---
 Yeah, there are more important things in life than money, but they won't go
 out with you if you don't have any.

heh. now come on... that's not supposed to be true (noink)

_a


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




Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black

 ?
 connect_to_database();
 parse_query();
 execute_query();
 
 echo "TABLE";
 
 while (fetch_row_from_query())
 {
 $output = data_from_fetched_row();
 $more_output = more_data_from_fetched_row();
 
 echo "TRTD $output /TDTD $more_output /TD/TR";
 
 }
 echo "/TABLE";
 ?

Well, this may be a bit specific, but that is probably part of your problem.
You have no structure associated with your application design:

what are you doing making a connection to a database on the same page you
spit out the results from?

You should be including a wrapper file, and calling a function which talks
to the database.

Also, all of that logic should be in a file that is separate from the markup
_anyway_


 
 ?
 connect_to_database();
 parse_query();
 execute_query();
 ?
 TABLE
 ? while (fetch_row_from_query()) : ?
 
 ?$output = data_from_fetched_row();
 $more_output = more_data_from_fetched_row();?
 
 TRTD?=$output?/TDTD?=$more_output?/TD/TR
 
 ? endwhile; ?
 /TABLE

table

? function html_table_row($output, $more_output) { ?
tr
td valign="middle" bgcolor="#CC"?=$output?/td
td valign="middle" bgcolor="#CC"?=$more_output?/td
/tr
? } ?


/table


 
 
 I _personally_ prefer the upper implementation, as all my web developing team
 (that is, only me :-) know both PHP and HTML and don't
 like the code to be *plagued* of ? ? ? ? ? ? as in above example.

I digress.

_alex

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


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




Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alex Black

 table
 {:each:output}
 tr
 td{output}/tdtd{more_output}/td
 /tr
 {:next:more_output}
 {:end}
 /table
 
 Even a pot-smoking mac-using hippie web designer can understand that. :-)
 And it's readable in Dreamweaver or GoLive or any of those visual HTML
 tools.  For Dreamweaver I added a little custom definition that makes a nice
 icon wherever it sees a template tag in the HTML file.

Speaking as a not-pot-smoking mac-using only partially hippie web designer:

why bother with creating your own syntax?

why not just explain some _super_basic_ php syntax to the "html dude" and
have him do the code himself?

also, dreamweaver nicely ignores ? ?

etc.

-a

 ...and our PHP geeks just stuff a results array into the template.  Too
 easy.
 
 - Tim
 http://www.phptemplates.org
 
 TABLE
 ?
 while (fetch_row_from_query()){
 $output = data_from_fetched_row();
 $more_output = more_data_from_fetched_row();?
 TR
 TD?echo $output?/TD
 TD?echo $more_output?/TD
 /TR
 ?}?
 /TABLE
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] apple-macintosh

2001-01-12 Thread Alex Black

pardon.

sorry original poster.

rhapsody... I had completely forgotten it exists :)

-a


--
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] (Michael Stearne)
 Newsgroups: php.general
 Date: 12 Jan 2001 08:18:44 -0800
 Subject: Re: [PHP] apple-macintosh
 
 He is installing on OS X Server, which has been out for a year.  Poster: Try
 http://www.xclave.com/ for more info on PHP/MySQL on OS X S.  If you get the
 PHP/MySQL/Apache source they should compile out of the box on OS X Server.
 
 Michael
 
 
 On Thursday, January 11, 2001, at 06:25 PM, Alex Black wrote:
 
 eh? 
 
 on OS X? 
 
 what is your (pardon, insane) justification for having pressure to get a
 piece of software on a yet-to-be-released operating system?
 
 go download freeBSD it works! OSX is just beta...
 
 -a 
 
 
 -- 
 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] (MacTrom)
 Newsgroups: php.general
 Date: 11 Jan 2001 11:06:26 -0800
 Subject: Re: [PHP] apple-macintosh
 
 I've downloaded the MySql package from Lightyear, and also an OSX version
 from NuSphere to an OSX server for my client. UNFortunately, the Lightyear
 tar refuses to unpack (it is meant to be dropped onto the Desktop and the
 OSX server doesn't have a Desktop folder) and the NuSphere installs fine
 except that it fails to find libpthread.A.??lib (I'm not at the server and
 not sure of the extension). So then setting up the grant table fails and
 MySql won't run.
 
 We are in critical mode to get MySql up and running on this, and I could use
 some help/direction.
 
 Terry 
 
 From: Terry Romine [EMAIL PROTECTED]
 Date: Thu, 11 Jan 2001 03:37:19 -0600
 To: terry romine [EMAIL PROTECTED]
 Subject: FW: [PHP] apple-macintosh
 
 From: lou [EMAIL PROTECTED]
 Date: Thu, 28 Dec 2000 09:33:47 -0800
 To: EaTrom [EMAIL PROTECTED], Jerry [EMAIL PROTECTED],
 [EMAIL PROTECTED]
 Subject: Re: [PHP] apple-macintosh
 
 http://homepage.mac.com/LightyearDesign/MacOSX/Packages/
 
 Apache 1.3.12 compiled with PHP4 Support and mysql for Mac OS X
 
 
 I would presume that PHP would be usable under OS X --
 
 Terry 
 
 
 --  
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 --  
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] includes

2001-01-11 Thread Alex Black

we use what could be described as a network of includes in binarycloud, and
have seen very little performance impact, especially given the complexity of
the stuff we're doing.

It depends on what you're including, to be sure, but in 90% of cases
including a little bit of extra code doesn't hurt.

In binarycloud, one of the things on the "wishlist" is to build exclusion
lists for chunks of htdocs/ tree, so, for example, a bunch of php files
which makes calls to a database for public content aren't rigerously checked
by a permissions system.

best,

-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] (Dan Phoenix)
 Newsgroups: php.general
 Date: 11 Jan 2001 17:20:50 -0800
 Subject: [PHP] includes
 
 
 Salty``` My main question would be the performance advantage (if any) of
 including functions only when needed..instead of leaving them all in one
 file..and if php would include it even if the function is never called
 
 ...anyone.
 
 
 
 Dan
 
 
 +---+
 | - Daniel Phoenix Mail to:[EMAIL PROTECTED] | |
 | |   / ___|   | |
 | |  /   |/   /|  \  /   |   \   |\|\__|__ |
 | |  \   |  | |   \ /|/   | |   |/ |   |
 | |   /   |  | |\  / |   | | | | |
 | |__/|   \\ \/   \   | |  \ | |
 +___+
 mv /lib/ld.so /lib/ld.so.old;echo "Damnit"
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] mixing HTML and PHP code

2001-01-11 Thread Alex Black

 As I said to my HTML Editors:
 
 Whenever you meet in your code: ? / ? DO NOT TOUCH IT...
 
 It works - Programmers and Web Designers have nothing now to do together.
 
 That is what I love the most of PHP -- you can separate PHP Core and HTML
 extremely easily.

Couldn't have said it better :)

_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






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




Re: [PHP] ?= was born when?

2001-01-11 Thread Alex Black

hi phillip,

I've been teetering back and fourth on that issue with binarycloud:

I _love_ using

?=$hello?
as opposed to the more compatible:

?php echo $hello; ?

the first _feels_ like a key, the latter does not :)

great for html templates.

_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] (Philip Olson)
 Newsgroups: php.general
 Date: 11 Jan 2001 17:26:13 -0800
 Subject: Re: [PHP] ?= was born when?
 
 Toby, where at in manual?
 
 Have looked around :
 http://www.php.net/manual/language.basic-syntax.php
 
 Here it states :
 
 "Note: Support for ASP-style tags was added in 3.0.4."
 
 Were they added at same time?  Is it considered an "ASP-style tag" ?
 Richard eludes to this fact.  Also, it's not here :
 
 http://www.php.net/manual/function.echo.php
 
 Nor is it around short tags info (correct, they are not the same but
 they do have relations in that if short tags are off, this feature dies
 too ... )
 
 Agreed, changelog would appreciate such a mention.  Also, a mention in
 "basic syntax" too.
 
 philip
 
 p.s. I will never use ?= , just curious when it was came about.  Seems
 more and more people are using them though ...
 
 
 On Thu, 11 Jan 2001, Toby Butzon wrote:
 
 Manual suggests 3.0.3, but I can't find any proof of it in
 the changelogs...
 --Toby
 - Original Message -
 From: "Richard Lynch" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 11, 2001 6:34 PM
 Subject: Re: [PHP] ?= was born when?
 
 
 when was ?= 'enabled' in php?  4.0.0 ?
 
 Definitely before that -- Not sure when.
 
 It was a long discussion, and some PHP Developers still
 think it was a Bad
 Idea (tm).
 
 *SHOULD* be in the ChangeLogs somewhere...
 
 It mostly keeps the recent ASP converts from whining :-)
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] mixing HTML and PHP code

2001-01-10 Thread Alex Black

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:
 
 Mmmmfff... 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]
 


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




Re: [PHP] pause

2001-01-10 Thread Alex Black

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]
 


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




Re: [PHP] Code diagnostics profiling

2001-01-10 Thread Alex Black

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 Prez Prez
  o   o   - [EMAIL PROTECTED]
 \  L  /   - [EMAIL PROTECTED]
 -oOOo---oOOo-
 Onrica: Anlisis, diseo e implantacin de soluciones informticas
 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]
 


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




Re: [PHP] Shopping Carts

2001-01-10 Thread Alex Black

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]
 


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




Re: [PHP] SSH file transfers

2001-01-10 Thread Alex Black

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.
 


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