up these two sluggish lines of
code? I'm pretty much out of ideas. And if you have any other
suggestions to speed things up, I would really appreciate them too.
Thanks,
-Galen P. Zink
The code:
function cmp($a, $b
I'm working on some database search ranking code. It currently
represents 95-98% of the time spent when doing fuzzy seaches. I have
tried my best to optimize my code - algorithmic shortcuts, eliminating
session variables, unsetting irrelevant results, etc and benchmarking
to find the best
I'm working on some code that deals with a LOT of results from a MySQL
database and drops them into an array. It deals with about 17,200
results on a very fast box in about 0.5 seconds, which is not too bad,
until I realize I may need to call it on about that many results
several times in a
will compile so it can't easily be changed or modified for
reuse. I also have a few other projects like this in the works.
I'm still learning about the best ways to do all this, but I think you
might find what I've learned so far helpful.
Galen P. Zink
Computer Consulting Web Design
function that runs off a file to
run off the contents of a variable, it's just binary data.
Thanks,
Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
So you're saying there's no way to do what I want to do.
Anybody got any other ideas?
It seems so stupid to be unable to run functions that accept files on
variables, with so many people using databases and whatnot these days.
-Galen
On Dec 7, 2003, at 1:46 AM, Justin Patrin wrote:
Galen
don't span multiple domains!
-Galen
On Dec 9, 2003, at 1:26 PM, Tariq Murtaza wrote:
Dear All,
Please comment on Best Practices for sharing members database between
different portals.
Suppose we have 3 portals running on different networks.
Assignment is to make a single Login/Pass for all
boxes with 1.5 GB of RAM make this
almost a moot issue. :)
-Galen
On Dec 9, 2003, at 5:14 PM, Al wrote:
There's a command line, open-source utility called ImageMagick
(http://www.imagemagick.org/) available for all major platforms that
allows
you to do lots of powerful image manipulation on one
the convenience of database
and the performance boost of caching, and as always, if the cache
fails, just hit the database for the information.
For your needs, give it a try. I doubt you'll have performance
problems, and you can always switch back to the filesystem if you do
have troubles.
-Galen
If you
might like it.
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
failing. If I
can't solve it, I'll look into other options to do what I need to do.
Thanks!
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, it's the max_allowed_packet size!
I already saw that variable and assumed it was related to packet length
- as in TCP/IP packet length - not query length.
It's all working now. Thanks!
-Galen
On Dec 11, 2003, at 2:36 AM, Rich Gray wrote:
I have a script that accepts large files (images
I would love one of these too! PHP programming in my pocket! And how
about a mini database for Palm OS also? (SQLite?)
Anybody know anything more about this?
I'm not finding much with Google that seems relevant for PHP running on
the Palm.
-Galen
On Dec 11, 2003, at 7:47 AM, Stephen Craton
forms (many sizes of pdas, cell phones, even watches
now), so php for the Palm would be more useful. Plus, they already have
source and binaries of php, apache, etc for the Zaurus, but not for the
Palm, at least that I can find.
Any other ideas?
-Galen
--
PHP General Mailing List (http
not be enabled, which I use all over my
site. Secondly, it only supports an older version of WordNet (as far
as I can tell). These two limitations, especially the first, tend to
make this a poor choice for me.
Does anybody know anything about this?
-Galen
--
PHP General Mailing List (http
?
All suggestions are welcome, I hear this can be a tough topic.
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Considering all this, a few ideas for you.
1) Store all questions in a MySQL table. Maybe add a column for test
number or something so it can handle all the questions necessary for
several tests. When generating the test, load everything into an array
and create the test from that array. Be
serve these purposes?
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
won't work out very
well here because a lot of data has to be handed back and fourth here,
and it doesn't really improve response times when I am sorting or
whatever. So now to look at the next replies
-Galen
On Jan 24, 2004, at 12:54 PM, Lucas Gonze wrote:
One possibility is to have
Looks great, except it's not setup on my remote host. I have SSH, FTP,
etc access but I do not administrate the system nor can I request
something like recompiling PHP just for me.
You can see for yourself:
http://zinkconsulting.com/phpinfo.php
Any other ideas?
-Galen
On Jan 24, 2004, at 12
Sorry, no-can-do. No root access - it's a lightly loaded shared
machine. No Apache 2. Other ideas?
Full info at:
http://zinkconsulting.com/phpinfo.php
-Galen
On Jan 24, 2004, at 6:16 PM, Chris Shiflett wrote:
--- Galen [EMAIL PROTECTED] wrote:
This may be completely crazy, but let me tell you
still
seeking a solid way to get some sort of thread functionality working.
-Galen
On Jan 24, 2004, at 1:15 PM, Mark Charette wrote:
On Sat, 24 Jan 2004, Galen wrote:
Hi,
This may be completely crazy, but let me tell you what I want to do:
thread PHP.
Can you set processor affinity on your system
.
Good luck with your arrays!
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thoughts and feelings? Do you like it?
Feel free to reply off-list if you think this topic is off-topic and/or
you don't want to blast your information to the whole world.
Thanks,
Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Look at:
exec()
Be careful if you don't control the input of course.
-Galen
On Feb 7, 2004, at 7:56 AM, Sebastian wrote:
Is there a possibility to convert a string like 10*500 (parsed from a
XML-File) to a float?
When i try to store this String in a float variable it only coverts
the 10
.
Even 1/4 second script parsing feels peppy with a big, low-latency
pipe, simple HTML formatting, and on-the-fly compression. Just look at
Google.
-Galen
On Feb 10, 2004, at 5:46 AM, Manuel Lemos wrote:
Hello,
On 02/09/2004 11:36 PM, Merlin wrote:
I do have a performance question regarding
- this stuff is pretty fundamental
programming and database concepts. If your overall skill level isn't
very high, you're likely to make mistakes, and either have errors,
problems in functionality, or, worse, security problems.
-Galen
On Feb 12, 2004, at 3:00 AM, Alex wrote:
Hi folks,
I'm using usual md5
on. I would like to hear about very
complex, high-end PHP coding and techniques and perhaps interact a
little too.
Anyone got suggestions? Anyone else have the same interest?
Feel free to reply off-list if you don't think this is on-topic.
-Galen
--
PHP General Mailing List (http://www.php.net
in the manual would have found the function to do this) to the
php-general list. That would leave our group free to discuss meaty
things and really get somewhere.
Anybody else interested in this type of list?
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
, the community doesn't think this is a good idea, and I do
see validity in many of your points, so I'll drop this topic unless
someone else wants to pursue it.
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
trouble with regarding
sessions? We _can_ and _do_ help people when they ask something in
specific. If you want a tutorial on building a simple ecommerce site,
Google for one. I bet you'll find several good ones.
Good luck!
-Galen
On Mar 15, 2004, at 6:07 PM, [EMAIL PROTECTED] wrote:
Hai..
I
this (if there is one)? I'm
sure I could hack something together (I always have) but I'd really
like the best way - cleanest, fastest, whatever the technique may be.
Thanks,
Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yeah, I'm aware PHP doesn't do DNS stuff, at least not directly. But I
am curious as to how people handle subdomains. The 404 error seems like
an interesting option, how does anyone else handle this?
-Galen
On Mar 23, 2004, at 10:58 AM, Justin Patrin wrote:
Galen wrote:
Hi,
I've done loads
) that you
are not coding efficiently. Very few of my projects even approach 160
KB of pure PHP, even things as massive as a complete online store
creation and management application I developed not too long ago.
Good luck! Re-post to php-general if you have further questions!
-Galen
On Mar 27, 2004
. The trickier part will be going in the opposite
direction, although that too is manageable.
Good luck!
-Galen
On Mar 27, 2004, at 6:55 PM, Karl Timmermann wrote:
Hi,
I am working on a PHP/MySQL solution to have a webpage where users can
rate cigars. I ran into a problem though. One variable
please! The
requirements are simple, so I don't need loads of complex stuff,
simpler (interface-wise) is better here, but I most need something that
plain works!
Thanks,
Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
looking for something with a little more advanced
approach if possible. Anyone else got suggestions?
-Galen
On Apr 13, 2004, at 1:28 AM, Elfyn McBratney wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello Galen,
On Tuesday 13 Apr 2004 07:12, Galen wrote:
Hi PHP people,
I'm looking
is much less than optimal.
-Galen
On Apr 13, 2004, at 5:56 AM, Will wrote:
Hi,
I had a thought while reading the postings.
You could open a frameset with one frame a hundred% and the other *,
thus hiding the frame. The hidden frame could be the on checking the db
and then using JavaScript you
the GD image reference section in the PHP manual.
Sorry if this is too vague, it's all off the top of my head but I think
it will give you enough to go on.
-Galen
On May 14, 2004, at 3:05 PM, Sam Joseph wrote:
Hi all,
I've recently got the GD libraries set up and working with php and I
have
apologies if I am, but the gist is that you need a
palette-based image to get 8-bit PNGs!
-Galen
On May 14, 2004, at 4:27 PM, Sam Joseph wrote:
Hi Galen,
Many thanks for your reply. I tried to find things in the php manual
relating to bit depth, but I didn't find anything relevant:
http
with things there. I haven't yet found enough of a need for it to play
with it yet, but I would bet you could do all sorts of things that
might help file size (better color reduction, etc) and it doesn't look
too tricky.
Good luck!
-Galen
On May 14, 2004, at 7:37 PM, Sam Joseph wrote:
Hi Galen,
Thanks
and we promise not to group-lynch you :)
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this process,
but before I look at doing this (and spend hours upon hours doing it),
I want to check and see that nothing else is already out there.
Thoughts anybody?
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
process you're working on, if you really want
_that_ installation, somebody else will have to tell you how to make it
work. I don't know the specific process off hand.
-Galen
On Jun 6, 2004, at 5:03 PM, Robert Duran wrote:
PHP 4.3.6
Image Magick 5.5.7
imagick 0.9.10
OS: Mac OS X (10.3.4)
I'm trying
I'm developing a photo gallery/store site. I am storing
full-resolution, full-quality images on my server and generating (and
caching) lower resolution thumbnails for previewing the images. As it
stands, I accept PNG and JPEG images via the GD image functions.
Typically, I upload PNG files,
I'm working on a photo site and most of it is working. The intent is to
store original high-resolution photos that will only be accessed when
purchased, and then a variety of thumbnails that will be accessed when
viewing. Because they're high-resolution, I need maximal image
compression but I
On Jun 12, 2004, at 4:36 PM, Kim Steinhaug wrote:
well, there are formats that have impressed me. The Mpg-4 format
which requires plugins all over the place is really amazing, from
e-vue.
They also provide a plugin atleast for IE to browse the images.
I dont know if you can compress images
requirements? (This is a U.S. thing)
I did some googling, but now that google searches the URL as well as
the content of the page for your query, searches including php have
become dramatically less useful. (.php, ?phpsessid, etc)
Thoughts or products/projects anybody?
-Galen
--
PHP General Mailing List
requirements? (This is a U.S. thing)
I did some googling, but now that google searches the URL as well as
the content of the page for your query, searches including php have
become dramatically less useful. (.php, ?phpsessid, etc)
Thoughts or products/projects anybody?
-Galen
--
PHP General Mailing List
typing md5 in the command line will pull it up and
man md5 gives all the info you could need on using it. I don't
encourage the use of the command line version of md5 for php because it
will be slower than the built in php function, but it is there!
-Galen
On Oct 25, 2004, at 10:38 AM, Daniel
I'm working on a web spider application where the server has
considerable latency in serving the information I require, but
simultaneous requests do not have a significant performance hit. I have
a nice little class that handles all the sessions, cookies, etc
perfectly. What's the best way to
is and is
not. And if you can possibly, please give us more than a sentence of
detail.
-Galen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= microtime_float();
$time = $time_end - $time_start;
echo Did nothing in $time seconds\n;
?
(from http://php.net/microtime )
-Galen
On Sep 8, 2004, at 8:22 AM, Robb Kerr wrote:
Here's the scenario...
First, my HTTP Server (Apache), PHP Server and MySQL Server are on the
same
machine - an Apple
is by far the majority in market share
and the other OSes could easily just pop into an HTML document that
directs them to our online version.
Thanks,
Galen P. Zink
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
existing products along these lines? It probably wouldn't
be practical to develop a whole project our selves, but if there was
something already out there, we might use it.
-Galen
On Friday, June 20, 2003, at 11:04 AM, Michael A Smith wrote:
Why not have them all do that? HTML that re-directs? Other
On Friday, June 20, 2003, at 11:42 AM, Brian V Bonini wrote:
On Fri, 2003-06-20 at 13:57, Galen P. Zink wrote:
I work for a small networking company. We're working on a piece of
software that will be run server-side with PHP and MySQL. It allows
the
user to develop an online store and handles
56 matches
Mail list logo