[PHP] Optimizing PHP Relevancy Ranking Algorithm

2003-11-28 Thread Galen
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

[PHP] Suggestions for optimization?

2003-11-29 Thread Galen
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

[PHP] Fastest loop code/best way to get database results into array

2003-12-01 Thread Galen
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

Re: [PHP] Working as a PHP/database developer..

2003-12-02 Thread Galen
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

[PHP] getimagesize() MySQL Image Storage (Running functions on contents of variables)

2003-12-07 Thread Galen
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

Re: [PHP] Re: getimagesize() MySQL Image Storage (Running functions on contents of variables)

2003-12-07 Thread Galen
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

Re: [PHP] Best practices for sharing members database between different portals

2003-12-09 Thread 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

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread Galen
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

Re: [PHP] Images in MySQL vs directory/file?

2003-12-10 Thread Galen
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

Re: [PHP] Images in MySQL vs directory/file?

2003-12-10 Thread Galen
might like it. -Galen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP's MySQL Query Length Limit? (Long SQL failing!)

2003-12-11 Thread Galen
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

Re: [PHP] PHP's MySQL Query Length Limit? (Long SQL failing!)

2003-12-11 Thread Galen
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

Re: [PHP] Palm OS Processor

2003-12-11 Thread Galen
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

Re: [PHP] Palm OS Processor

2003-12-11 Thread Galen
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

[PHP] Lexical PHP stuff? (Thesaurus and similar)

2003-12-11 Thread Galen
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

[PHP] PHP QuickBooks Integration

2004-01-20 Thread Galen
? 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

Re: [PHP] Question about array limits practicallity

2004-01-21 Thread Galen
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

[PHP] Threading PHP

2004-01-24 Thread Galen
serve these purposes? -Galen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Threading PHP

2004-01-25 Thread Galen
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

Re: [PHP] Threading PHP

2004-01-25 Thread Galen
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

Re: [PHP] Threading PHP

2004-01-25 Thread Galen
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

Re: [PHP] Threading PHP

2004-01-25 Thread Galen
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

Re: [PHP] Size of Arrays

2004-01-30 Thread Galen
. Good luck with your arrays! -Galen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Selling PHP Code? PHP Careers?

2004-02-02 Thread Galen
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

Re: [PHP] how to conver a string to float

2004-02-07 Thread Galen
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

Re: [PHP] Re: speeding up PHP

2004-02-10 Thread Galen
. 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

Re: [PHP] Unique ID - again

2004-02-12 Thread Galen
- 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

[PHP] Advanced PHP Mailing List?

2004-03-05 Thread Galen
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

[PHP] Let's start a php-advanced list!

2004-03-05 Thread Galen
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

Re: [PHP] Let's start a php-advanced list!

2004-03-06 Thread Galen
, 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

Re: [PHP] e - comerce website

2004-03-17 Thread Galen
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

[PHP] Domain Sub-domain Handling with PHP

2004-03-23 Thread Galen
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

Re: [PHP] Re: Domain Sub-domain Handling with PHP

2004-03-23 Thread Galen
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

Re: [PHP] slow script

2004-03-27 Thread Galen
) 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

Re: [PHP] Measurement Problem

2004-03-27 Thread Galen
. 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

[PHP] PHP Web-Chat Software

2004-04-13 Thread Galen
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

Re: [PHP] PHP Web-Chat Software

2004-04-13 Thread Galen
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

Re: [PHP] PHP Web-Chat Software

2004-04-13 Thread Galen
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

Re: [PHP] GD createpng and getting different png formats

2004-05-14 Thread Galen
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

Re: [PHP] GD createpng and getting different png formats

2004-05-14 Thread Galen
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

Re: [PHP] GD createpng and getting different png formats

2004-05-15 Thread Galen
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

Re: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-30 Thread Galen
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

[PHP] PHP User Interface

2004-06-05 Thread Galen
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

Re: [PHP] Help installing imagick

2004-06-06 Thread Galen
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

[PHP] PHP + JPEG2000

2004-06-10 Thread Galen
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,

[PHP] Best Lossless Hi-Res Photo Storage with PHP

2004-06-12 Thread Galen
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

Re: [PHP] Re: Best Lossless Hi-Res Photo Storage with PHP

2004-06-13 Thread Galen
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

[PHP] PHP Online Appointment Scheduler?

2004-10-23 Thread Galen
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

[PHP] PHP Online Appointment Scheduler?

2004-10-23 Thread Galen
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

Re: [PHP] Re: PHP Crypt on MacOSX

2004-10-26 Thread Galen
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

[PHP] Best method for threading?

2005-01-15 Thread Galen
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

Re: [PHP] help ???

2004-07-02 Thread Galen
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

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Galen
= 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

[PHP] Standalone PHP Client?

2003-06-20 Thread Galen P. Zink
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

Re: [PHP] Standalone PHP Client?

2003-06-20 Thread Galen P. Zink
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

Re: [PHP] Standalone PHP Client?

2003-06-20 Thread Galen P. Zink
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