php-general Digest 21 Dec 2005 18:13:39 -0000 Issue 3863

Topics (messages 227762 through 227776):

Re: load balancer question
        227762 by: will.25sucks.com

Œ³‹C‚©H
        227763 by: aoe5

gdf fonts
        227764 by: Adrian Bruce
        227766 by: Silvio Porcellana [tradeOver]

Re: select statement with variables ???
        227765 by: Robin Vickery
        227769 by: Jim Moseby
        227770 by: Jay Blanchard
        227771 by: Jochem Maas
        227772 by: Jay Blanchard
        227773 by: Jochem Maas

mutiple file upload
        227767 by: Ross
        227768 by: Silvio Porcellana [tradeOver]

Re: pspell dictionary issue
        227774 by: Adi

Re: Help Desk software
        227775 by: Daniel Lahey

HTML rendering extension?
        227776 by: Marcus Bointon

Administrivia:

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

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

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
I've had really good experiences with load balancing a large php app
using
windows 2003 NLB (network load balancing)  (really, windows, I'm not
kidding :)).

It's available in 2003 server, you just have to turn it on and
configure.
If you're using windows currently I'd give it a shot before
purchasing a dedicated load balancer.  There are some nice
ones out there, but the major drawback is redundancy.
If your load balancer goes out, all of your nodes are unavailable,
So, you'd need at least 2 hardware load balancers operating in failover
mode.  
If you care nothing about availability and only care about the
performance 
then you've got alot of options.

Of course to load balance your app you need to centralize your data
onto a dedicated data server.  You'll have to put some thought into your

session issue, and any other data read/written by the app.

good luck,
will






> -------- Original Message --------
> Subject: [PHP] load balancer question
> From: jonathan <[EMAIL PROTECTED]>
> Date: Tue, December 20, 2005 8:54 pm
> To: [email protected]
> 
> I was having a discussion about scaling a php-based app. Most of the  
> sites I've worked on have easily fit into a single server model. I"m  
> looking at a site that will need to scale beyond that. The  
> anticipated bottleneck will be TCP connections and database  
> performance. I'm looking at load balancers and was wondering if  
> people had experience with one that they felt was up to task.
> 
> We do use sessions and I would not like to go to a saving session  
> data on another box or in the database. I would prefer for the  
> session identifier cookie to determine which box the user goes to.
> 
> thanks,
> 
> jonathan
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
出会いの金メダリスト達最新号
お堅い仕事のOLさん。夜の弾けっぷり暴露!

http://ovo-ovo.net/1292/

info
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Hi

Does anyone know where i can get some decent gdf fonts for using in the imageloadfont() function, i have found some on the net but they are all a bit naf so far. I'm really just looking for something like Arial or verdana. Im creating pie charts on the fly but at the moment they look like something that would be produced by a spectrum or commodore 64!

Thanks
Adrian

--- End Message ---
--- Begin Message ---
Adrian Bruce wrote:
> Hi
> 
> Does anyone know where i can get some decent gdf fonts for using in the
> imageloadfont() function, i have found some on the net but they are all
> a bit naf so far.  I'm really just looking for something like Arial or
> verdana.  Im creating pie charts on the fly but at the moment they look
> like something that would be produced by a spectrum or commodore 64!
> 
> Thanks
> Adrian
> 

Try here:
http://www.widgnet.com/gdf_fonts/

HTH, cheers

Silvio
-- 
tradeOver | http://www.tradeover.net
...ready to become the King of the World?

--- End Message ---
--- Begin Message ---
On 12/21/05, Anasta <[EMAIL PROTECTED]> wrote:
> Can someone tell me why this select is wrong please---ive tried everything.
> the $cat is the tablename .

You've tried *everything*  ?

Why do you think it's "wrong"? Did you get an error message of some kind?

What do you see if you echo $query? Are the values of $cat and $id
what you expected?

  -robin

--- End Message ---
--- Begin Message ---
> 
> Can someone tell me why this select is wrong please---ive 
> tried everything.
> the $cat is the tablename .
> 
> 
> $query=" SELECT title FROM $cat WHERE id='$id'";
> 
> 

Apparently, either $cat or $id is not the value you think it is.  First, I
would try changing

$result=mysql_query($query);

to read:

$result=mysql_query($query) or die(mysql_error());

This will, no doubt, lend some insight into where your error is.

JM

--- End Message ---
--- Begin Message ---
[snip]
> $query=" SELECT title FROM $cat WHERE id='$id'";
[/snip]

echo $query; // does it look right to you?
Alway throw an error when in question

if(!($result = mysql_query($query, $connection))){
   echo mysql_error() . "<br>\n";
   exit();
}

My bet is that you need to concatenate

$query = "SELECT title FROM " . $cat . " WHERE id = '". $id ."' ";

--- End Message ---
--- Begin Message ---
<side-question>
Jay how come you though concating would give
a different result to interpolation?
</side-question>

Jay Blanchard wrote:
[snip]

$query=" SELECT title FROM $cat WHERE id='$id'";

[/snip]

echo $query; // does it look right to you?
Alway throw an error when in question

if(!($result = mysql_query($query, $connection))){
   echo mysql_error() . "<br>\n";
   exit();
}


up to here I agree with Jay 100%, especially the 'echo' part (also get
familiar with var_dump() and print_r() functions to help debug your problems...

My bet is that you need to concatenate

$query = "SELECT title FROM " . $cat . " WHERE id = '". $id ."' ";

now unless either $cat or $id is actually an object with a 'magic'
__toString() method defined and the engine has been changed to fully/properly
support 'magic' object2string casting I don't agree that concat'ing will help
(even all of what I sAid was true I don't think it would help either),
the reaosn being that AFAICT the following 2 statements leave you with the same
string:


$cat = "mytable";
$id  = 1234;
$one = "SELECT title FROM $cat WHERE id='$id'";
$two = "SELECT title FROM ".$cat." WHERE id = '".$id."'";

var_dump( ($one === $two) ); // <-- will show you that this equates to TRUE.

--- End Message ---
--- Begin Message ---
[snip]
<side-question>
Jay how come you though concating would give
a different result to interpolation?
</side-question>
[/snip]

It is not really a different result, it is just something that I am in the
habit of doing. The "concat or not to concat" question has fueled many a
holy war. I concat, others do not. I am used to seeing it and looking for it
in code. Others think that it adds too much junk.

[snip]
> My bet is that you need to concatenate

...I don't agree that concat'ing will help...
[/snip]

I probably shouldn't have used "bet"...I just should have suggested it.

--- End Message ---
--- Begin Message ---
Jay Blanchard wrote:
[snip]
<side-question>
Jay how come you though concating would give
a different result to interpolation?
</side-question>
[/snip]

It is not really a different result, it is just something that I am in the
habit of doing. The "concat or not to concat" question has fueled many a
holy war. I concat, others do not. I am used to seeing it and looking for it
in code. Others think that it adds too much junk.

I see - personally I don't give a **** about this holy war; I use both
pretty interchangably - depends on the context what I think looks neater.

<tangent>
it is my believe the technically this:

echo $a, $b, $c;

is (should be) faster than:

echo $a . $b . $c;

can anyone confirm this to be true?
</tangent>


[snip]

My bet is that you need to concatenate


...I don't agree that concat'ing will help...
[/snip]

I probably shouldn't have used "bet"...I just should have suggested it.

I still stand by the fact that whether you bet or suggest the OP would end up
with the same broken query string.

now the hint about using ECHO .. that you could have written in 40 foot high 
letters :-)



--- End Message ---
--- Begin Message ---
Hi,

I am trying create a multiple file upload to a mysql server.

I have done the the single upload 
http://www.php-mysql-tutorial.com/php-mysql-upload.php but what if I want to 
upload many files (BLOB)at once.

Thanks,


Ross

--- End Message ---
--- Begin Message ---
Ross wrote:
> Hi,
> 
> I am trying create a multiple file upload to a mysql server.
> 

Google is your friend...
http://www.google.com/search?hl=en&q=multiple+upload+php&btnG=Google+Search

And, by the way, if you are uploading and storing images in your MySQL
DB, you might want to consider that there is a much better database for
storing files. It's called 'filesystem'.

HTH, cheers

Silvio
-- 
tradeOver | http://www.tradeover.net
...ready to become the King of the World?

--- End Message ---
--- Begin Message ---
I found my problem...I was using:

pspell_new("en", "british");
pspell_new("en", "american");
pspell_new("en", "canadian");

and I should've been using:

pspell_new("en_GB", "british");
pspell_new("en_US", "american");
pspell_new("en_CA", "canadian");

if I want to use specific dictionaries in the english language. There is no
sign of this in the documentation; I stumbled upon this by chance...trying
everything to resolve my problem.

Take care...
Adam.

--- End Message ---
--- Begin Message --- I found one set of links that might prove helpful: http:// www.helpdesk.com/software-helpdesk.htm A lot of the software doubles as asset management software or comes bundled with such a module. There are a yitload of links on that page. I'm only on the Bs. Good luck.

On Dec 21, 2005, at 12:05 AM, [EMAIL PROTECTED] wrote:

Daniel Lahey said the following on 12/20/2005 10:28 PM:
Can anyone recommend some good Open-Source Help Desk software for
PHP?

Glenn Sieb said:
IMHO the best is RT, which is Perl and Mason.
(http://www.bestpractical.com/rt)

There are some nice PHP ones out there, but I don't have any
experience
with them:

ruQueue: http://freshmeat.net/projects/ruqueue/
Hesk: http://www.phpjunkyard.com/free-helpdesk-software.php
Help Desk Software: http://www.helpdeskreloaded.com/

I'm sure there are more..

At the risk of hijacking this thread, I was hoping to see, in the
answers to Daniel's question, software that handled software/hardware
itinerary and problem history .. so support, but for a closed group of
users, rather like a medical history for each machine and user. Anyone
know of anything like that?

J

--- End Message ---
--- Begin Message --- Has anyone seen such a thing? I'm looking to be able to generate web page previews dynamically and automatically, so I need to render the page on the server. The most efficient way would be if there was a PHP HTML rendering extension - gecko or KHTML perhaps. HTML2PDF doesn't go nearly far enough. Alternatively something like a CLI option to firefox to run without X (i.e. no visible windows) and output to a file instead of a display device. The options here don't indicate that it can do that:

http://kb.mozillazine.org/Command_line_arguments

Any other ideas?

Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk

--- End Message ---

Reply via email to