Ok,
To address easy, here is the code to for the image test.
In short this is basically a web service. The test we ran used
Witango to
generate the table and the <IMG SRC=> called this php code
Notice all it took was one call to header function and then echo
the data
(A neat thing in PHP is the header() function, no more having to
mess with
having to create the entire header, or trying to get the length
right)
<pre>
<?php
$mysqli = new mysqli('host-name-here', 'user-name-here', 'user-
pass-here',
'db-name-here');
if ($mysqli)
{
$query = "select thumb from image where guid='$_REQUEST[guid]'";
if ($result = $mysqli->query($query)) {
if ($row = $result->fetch_row()) {
$thumb = $row[0];
}
$result->close();
}
$mysqli->close();
header('Content-Type: image/jpeg');
echo $thumb;
}
?>
</pre>
Hey, I posted this to show actual code for the test. Remember one
thing
guys, you can work with many diff environments together.
We have millions of images that need to be presented to our
customers, so we
are doing all we can to find the fastest way to do this and
handle the
growth
Ben
-----Original Message-----
From: Rick Sanders [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 26, 2006 11:07 AM
To: [email protected]
Subject: RE: Witango-Talk: Probably my last code contribution
Hey Robert,
Apples and Oranges my friend! I find cold Fusion easier, and I
like that
develop with it straight in Dreamweaver.
It has a lot of unique features. Yes, there's tons of PhP code
out there,
there's also a lot of CF code too.
I still love WiTango, just can't get my clients to buy into the
technology.
I keep getting the same question, "If it's been around since
1996, why
haven't I heard of it?".
Rick Sanders
President
902-401-7689
www.webenergy-sw.com
-----Original Message-----
From: Robert Garcia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 26, 2006 2:57 PM
To: [email protected]
Subject: Re: Witango-Talk: Probably my last code contribution
Oh yeah, the google effect has a huge effect on the learning curve.
You can find php code on anything you can think of, and start there.
Try that with witango. It is better with CF, but it is amazing how
much is available for php, and especially php/mysql.
As far as enterprise level, look here: http://public.yahoo.com/
~radwin/
As far as power, here is a presentation about php-gd, a C based
graphic library as a module in php. And it doesn't require any
compiling. This is just one thing, but gives a good idea.
http://www.nyphp.org/content/presentations/GDintro/
To install gd on my FC5 apache/php machine, this is what it took.
sudo yum install php-gd
Then I restarted apache, and gd was ready and available in php.
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/
On Apr 26, 2006, at 9:43 AM, William M Conlon wrote:
On Apr 26, 2006, at 9:11 AM, Rick Sanders wrote:
My 2 cents,
PhP is a long learning curve and isn't powerful at all. Many sites
use it because it's free. Coding takes forever, and it's a
scripting engine that parses script, then executes it.
But it does have PEAR and an ever expanding codebase that you can
use. Realistically, even with the builders, which are ancient and
do not implement best practices, every witango project starts from
scratch. Of course we all have a bag of tricks to use, but what
about new shops?
And Witango is a scripting engine, too, and though it caches code,
it doesn't to my knowledge compile it. Does the witango cacher
even discard anything extraneous, like comments?
Anyway, I've found php to be very easy to use. I never even bought
an O'Reilly book, and have done a complete witango app conversion
(someone else's) in BBEdit -- without Zend. Of course, I wouldn't
claim to have 'learned' php, so you're right about the lengthy
learning curve. And there is a LOT to like with witango compared
to php -- especially variable scopes.
Compared to Cold Fusion, Cold Fusion beats it hands down in
performance and time it takes to code. Cold Fusion has superior
XML integration, and OS integration. Anyone looking at a second
programming language should look at Cold Fusion. It's a much
easier learning curve than PhP.
MySQL has come a long way, but is still not a good platform for
enterprise applications. Microsoft SQL server 2005 ties into
Windows server 2003, and is the fastest database on windows. If
you're into Linux, Pervasive is 30% faster than MySQL. And,
Pervasive has a free open source database too: http://
www.pervasivepostgres.com/
Don't know about PervasiveSQL, but Postgres is definitely not
faster than MyISAM. If you don't need Stored Procedures,
referential integrity, or transactions, mySQL is hard to beat. (I
know mySQL 5 is adding SP, and the InnoDB tables support
transactions, but my apps are still on 3.23 and 4.1). If you do,
then Postgres is the way to go.
<image001.jpg>
Rick Sanders
President
902-401-7689
www.webenergy-sw.com
From: John McGowan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 26, 2006 11:42 AM
To: [email protected]
Subject: Re: Witango-Talk: Probably my last code contribution
Robert,
I have no problem with your post(s). I find it disturbing that
you still haven't received documentation on the Witango JavaBean
Interface. For clarification though, was your request completely
ignored? Or were you at least told something about why they can't
or won't give you what you're looking for.
If anybody out there has something they'd like to share positive
or NEGATIVE. Please share it. Last time I checked, this was an
open forum about Witango. Information about how Witango is
outperformed 3X by PHP is absolutely relevant information and
should be addressed.
/John
DB1 CB14 wrote:
Robert,
I am not sure why you keep posting these types of email. I have
read your posts about moving to PHP and MySQL and how you don't
like Witango anymore but many of us do not want to learn PHP and
really like the way Witango ties everything together for us.
It is your choice to move to another platform and it is my choice
to stay with Witango. If you no longer wish to use Witango that
is fine but please move on quietly and stop beating up on the
product. When Scott Cadillac moved to .Net he did it quietly and
professionally and he seems to still be on the list and drops us
some words of wisdom from time to time. You seem to be want to
punish Witango Inc for some reason.
If you are really concerned about putting the code into open
source just create a project on sourceforge like Jason did with
his crontab taf.
Just my 2 cents worth.
Rds
Dave Breaker
How low will we go? Check out Yahoo! Messenger's low PC-to-Phone
call rates.
__________________________________________________________________
___
___TO UNSUBSCRIBE: Go to http://www.witango.com/developer/
maillist.taf
__________________________________________________________________
___
___ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/
maillist.taf
Bill
William M. Conlon, P.E., Ph.D.
To the Point
345 California Avenue Suite 2
Palo Alto, CA 94306
vox: 650.327.2175 (direct)
fax: 650.329.8335
mobile: 650.906.9929
e-mail: mailto:[EMAIL PROTECTED]
web: http://www.tothept.com
___________________________________________________________________
___
__
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
____________________________________________________________________
____
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
____________________________________________________________________
____
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
____________________________________________________________________
____
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf