Re: [PHP] Re: posting variables to parent frame

2007-04-25 Thread Lori Lay
tedd wrote: At 2:35 PM -0400 4/25/07, Al wrote: Incidentally, "" is an error for html. Really -- why don't you tell the w3c about that? http://www.w3schools.com/tags/tag_br.asp Actually your example here is wrong. It is unfortunate how they have written this explanation. In xhtml is qui

Re: [PHP] Result problem

2007-04-25 Thread Daniel Brown
Are you trying to just print this to the screen? If so, refer to the modified snippet I sent you a bit ago. On 4/25/07, Dan Shirah <[EMAIL PROTECTED]> wrote: I'm sorry, perhaps I confused everyone by including the print_r. My table has 79 records all with a status_code of 'P' that this "s

Re: [PHP] Server side speech

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 3:17 pm, tedd wrote: > At 2:07 PM -0500 4/25/07, Richard Lynch wrote: >>On Wed, April 25, 2007 2:00 pm, tedd wrote: >>> However, server-side "text to speech" is possible by delivering >>> the >>> sound to the browser via EMBED or BGSOUND tags -- an example of >>> this >>>

Re: [PHP] Server side speech

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 3:27 pm, Daniel Brown wrote: > That's fine if you can find a shared host (as the OP states he's > using) > that's willing to install it on their servers. Or you have a spare computer in your closet that you can install the same OS as the server has, and the you compile t

Re: [PHP] Server side speech

2007-04-25 Thread Daniel Brown
Tedd, If you want, I'll zip up my compiled binary of Festival for you to try on your system. I'll put it up on one of my servers so that you can download it. I really like Richard's idea of making a PECL component for Festival there's something to look into this weekend -- Dan

Re: [PHP] Server side speech

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 3:33 pm, Daniel Brown wrote: > On 4/25/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: >> >> unless there is some way for PHP to do text-to-speech >> translation, which seems way out of scope for a scripting >> language >> > > Give it a couple of years. ;-P Somebo

Re: [PHP] printing a one-to-many relationship

2007-04-25 Thread Richard Lynch
$last_entry = 'an extremely unlikely entry'; while (list($entry, $note) = mysql_fetch_row($entries)){ if ($entry != $last_entry){ echo $entry; $last_entry = $entry; } echo $note; } On Wed, April 25, 2007 1:35 pm, Thufir wrote: > There's a one-to-many relationship between px_items.i

Re: [PHP] Result problem

2007-04-25 Thread Dan Shirah
No, I am trying to figure out why my query is only returning the last record that matches instead of all the records that match. On 4/25/07, Daniel Brown <[EMAIL PROTECTED]> wrote: Are you trying to just print this to the screen? If so, refer to the modified snippet I sent you a bit ago.

Re: [PHP] everything printed suddenly has blue text, as if were a link

2007-04-25 Thread Richard Lynch
I'm betting your links are also blue. Which means that you forgot a closing somewhere. use "View Source" in your borwser to see what you output. ^^ always good advice And if you can click on the blue stuff that shouldn't be blue, and it takes you to another page, well, then

Re: [PHP] Open source web Catalog ?

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 10:39 am, Joey wrote: > Can anyone recommend a good open source catalog program that is NOT a > shopping cart, but a simple way for a person to maintain their > products, > pictures descriptions etc? I daresay every one of them that ever existed was forced by popular demand

Re: [PHP] Re: posting variables to parent frame

2007-04-25 Thread Al
Ted: FF 2.0.0.3 is what I used to examine your html code. It looks the same with IE7. The nifty FF add-on TotalValidator is what I used to validate your html code. tedd wrote: At 2:35 PM -0400 4/25/07, Al wrote: Very clever use of iFrame. So clever it doesn't show in your html source code.

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-25 Thread Dotan Cohen
On 26/04/07, Justin Frim <[EMAIL PROTECTED]> wrote: Then you're already protected from XSS attacks, no HTML filters necessary. Easy as pi. ;-) (ok, that one was lame) At least you didn't say ez as pi (ez would be 2.71 * Z variable, of course). Dotan Cohen http://lyricslist.com/lyrics/art

Re: [PHP] Re: PHP & Text Messaging

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 8:28 am, tedd wrote: > That's a good idea. But, do you create an entry for every someone or > is there a way to use suffixes or something? Given number portability, prefix/suffix schemas are unlikely to be of any use. -- Some people have a "gift" link here. Know what I wan

Re: [PHP] Result problem

2007-04-25 Thread Daniel Brown
It looks like it's a combination of what everyone's been suggesting. Try this rewritten code: print_r ($sql_record); On 4/25/07, Dan Shirah <[EMAIL PROTECTED]> wrote: No, I am trying to figure out why my query is only returning the last record that matches instead of all the records that m

Re: [PHP] Redirecting (after output has started)

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 8:25 am, Don Don wrote: > Hi all, whats the best way to perform a redirect after out put has > started ? using header:location will not work unless theres been no > output. The BEST way is to re-structure your code logically, with the heavy lifting calculations done up-f

Re: [PHP] Re: PHP & Text Messaging

2007-04-25 Thread Daniel Brown
That's an excellent point, Richard. I just switched providers sort of. I went from the right-wing of the Sprint Regime (Sprint PCS) to the left-wing (Nextel) on Saturday afternoon. Exact same number --- even the same overall company --- but completely different address for email-to-SMS.

Re: [PHP] slow performance

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 4:33 am, Henning Eiben wrote: > I wrote a small sample-application once using PHP (with propel and > smarty) and once using Java (JBoss, EJB3, JSP & Servlets). Both apps > are > being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but the > performance of the PHP ve

Re: [PHP] slow performance

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 4:45 am, Zoltán Németh wrote: > 2007. 04. 25, szerda keltezéssel 11.33-kor Henning Eiben ezt írta: >> Hi, >> >> I wrote a small sample-application once using PHP (with propel and >> smarty) and once using Java (JBoss, EJB3, JSP & Servlets). Both apps >> are >> being served

Re: [PHP] slow performance

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 4:53 am, Henning Eiben wrote: > Well ... I did some stress-testing. I create 20 concurrent requests to > my application: random pages, randomizing the post parameter, which > causes to load different data from the database (MySQL 5.0.37, running > on a separate server). My we

[PHP] querying a database to sort ascending but list non null results first

2007-04-25 Thread Tasneem Qadeer
Hi, I hope you will take some time from your busy day to answer my question. Thank you in advance. I am new to php programming, so hope my question doesn't bore you. I am helping to develop an online directory. The database is set up with some of the data entries as "prime". These are the people

Re: [PHP] slow performance

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 5:09 am, Zoltán Németh wrote: > 2007. 04. 25, szerda keltezéssel 11.53-kor Henning Eiben ezt írta: >> Zoltán Németh schrieb: >> > not exactly. it pre-compiles them to opcodes and stores the opcode > blocks. the interpreter normally first pre-compiles the code to > opcodes

Re: [PHP] Result problem

2007-04-25 Thread Stut
Dan Shirah wrote: Any ideas why my query only returns the very last record that matches the criteria specified?? $sql_record ="SELECT * FROM payment_request WHERE status_code = 'P'"; $result_record = mssql_query($sql_record) or die(mssql_error()); if(!empty($result_record)) { while ($row_recor

Re: [PHP] slow performance

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 5:38 am, Henning Eiben wrote: > Richard Davey wrote: > >>> Running my test for about 5 minutes, I get about 31.000 request for >>> the >>> java application, but only about 3.000 for the php. >> >> No offence, but the problem is almost 100% certainly in your PHP >> code >> the

Re: [PHP] Result problem

2007-04-25 Thread Daniel Brown
Exactly. And I also wanted to make a note that when I included the print_r($sql_record); in my last post, it was only because I forgot to delete it. I'm so ready to get out of here and grab a beer now! On 4/25/07, Stut <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > Any ideas why my qu

Re: [PHP] slow performance

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 5:48 am, Henning Eiben wrote: > But as far as I understand, java kinda does the same thing, doesn't > it? Sort of, but not really... Java has a single central one giant process architecture. PHP has a shared-nothing architecture. They're at polar opposites on this bit. A

Re: [PHP] Re: [PHP-WIN] Re: [PHP] slow performance

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 6:43 am, Henning Eiben wrote: >>> Are there multiple threads spawned? >> >> Depends on server API. ISAPI does, fastCGi doesn't. > > OK; so for serving multiple concurrent clients ISAPI would sound to me > like the better choice, since it can use threads, or what would be the

Re: [PHP] script timeout

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 4:27 am, Henning Eiben wrote: > I have a small sample-application, that uses smarty for the > presentation > layer. Unfortunately I might encounter script-timeouts (not > necessarily > from smarty, could also be the DB-connection or something). In this > case > I would like t

Re: [PHP] slow performance

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 6:38 am, Tijnema ! wrote: > On 4/25/07, clive <[EMAIL PROTECTED]> wrote: >> >> > Do you know any resource, describing how php works (like the thing >> about >> > compiling opcode, and stuff)? How does php handle simultaneous >> requests? >> > Are there multiple threads spawne

Re: [PHP] Re: PHP & Text Messaging

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 4:46 pm, Daniel Brown wrote: > That's an excellent point, Richard. I just switched providers > sort > of. I went from the right-wing of the Sprint Regime (Sprint PCS) to > the > left-wing (Nextel) on Saturday afternoon. Exact same number --- even > the > same overa

Re: [PHP] Re: PHP & Text Messaging

2007-04-25 Thread Daniel Brown
Same thing I'm going through, Rich, but I'm saving about $60/mo. on the Nextel side, actually. And the signal is better on the iDEN network in northeast Pennsylvania than the PCS network. I just hope I don't EVER need to call CustServ or Tech Support because they (Sprint) are by far the w

Re: [PHP] Result problem

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 4:15 pm, Dan Shirah wrote: > I'm sorry, perhaps I confused everyone by including the print_r. > > My table has 79 records all with a status_code of 'P' that this > "should" be > returning. But instead of all the results returning, all I am getting > back > is row 79. No. A

Re: [PHP] Result problem

2007-04-25 Thread Richard Lynch
Almost for sure, he meant 'extract' where he put 'expand'... On Wed, April 25, 2007 4:42 pm, Daniel Brown wrote: > It looks like it's a combination of what everyone's been > suggesting. > Try this rewritten code: > > $sql ="SELECT * FROM payment_request WHERE status_code = 'P'"; > $re

Re: [PHP] Result problem

2007-04-25 Thread Daniel Brown
That would be correct --- it should be extract($sql); in that code. Like I said earlier (or was it another thread?) I'm going slightly retarded this afternoon. Another 30-60 minutes and I'm hitting happy hour for a beer, where the closest things to a computer screen in the place are the cas

Re: [PHP] querying a database to sort ascending but list non null results first

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 12:54 pm, Tasneem Qadeer wrote: > I hope you will take some time from your busy day to answer my > question. It's actually more of an SQL question, really However, getting the NULL results to be before/after the non-NULL results is fairly easy: select field1, field2, f

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Seth Price
I've created a bug report and moved discussion to the GD bug tracker: http://bugs.libgd.org/?do=details&task_id=76 On Apr 25, 2007, at 1:38 PM, tedd wrote: Yep, I'm calculating the length from the returned bounding box and printing it out. The box seems to randomly expand and shrink depen

Re: [PHP] Re: ${}

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 9:19 am, Man-wai Chang wrote: >> $var1 = "Something " + PHP Notice >> $var2 = "Something Hmmm_that"; > > I wonder whether Smarty's way of specifying variables is based on > this... Smarty came "before" PHP's use of {} in embedded quotes and the aborted attempt to make that t

Re: [PHP] Re: posting variables to parent frame

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 3:29 pm, Zoltán Németh wrote: > 2007. 04. 25, szerda keltezéssel 14.35-kor Al ezt írta: >> Very clever use of iFrame. So clever it doesn't show in your html >> source code. >> >> Looks more like you are using DIV tags, with simple POST values, >> just like I'd have done it

Re: [PHP] Re: how to detect type of image

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 2:51 am, Satyam wrote: > Sorry I'm late to this thread, I don't know if it has been mentioned, > but > most files have a 'magic number' at the begining of the file, which > usually > reads as a couple of letters or more. I think EXE files start with > MZ, gifs > with GIFxx w

Re: [PHP] Re: how to detect type of image

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 7:00 am, Tijnema ! wrote: > On 4/25/07, Satyam <[EMAIL PROTECTED]> wrote: >> Sorry I'm late to this thread, I don't know if it has been >> mentioned, but >> most files have a 'magic number' at the begining of the file, which >> usually >> reads as a couple of letters or more.

RE: [PHP] List

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 2:18 pm, Chris W. Parker wrote: > On Tuesday, April 24, 2007 6:02 PM Richard Lynch > > said: > >> I do not have any problems, but I'm not using Outlook, and never >> will. > > Okay... Hey, at least I gave a suggestion how to debug the problem, unli

Re: [PHP] Server side speech

2007-04-25 Thread Justin Frim
Richard Lynch wrote: If you can compile (or find it compiled) on the exact same OS, you can probably upload the binary and then use 'exec' on your own program. I've had some success doing this on a shared host. You might also be able to convince the webhost to just install Festival for you. I

Re: [PHP] sorting multi array

2007-04-25 Thread Richard Lynch
Search the archives for "multisort array" and you should find this thread a few thousand times... On Tue, April 24, 2007 6:58 pm, Jon Bennett wrote: > hi, > > I have the following array, which I need to sort by quantity... > > Array > ( > [2408] => Array > ( > [name] => Hav

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 1:38 pm, tedd wrote: >>Yep, I'm calculating the length from the returned bounding box and >>printing it out. The box seems to randomly expand and shrink >>depending on the angle. >>~Seth > > ~Seth: > > I think it's your calculation of the bounding box that's throwing you > of

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 3:33 pm, Seth Price wrote: > I downloaded your image, enlarged it, and measured it out in > photoshop. The distance from the center to the left side is 131px, > and center to right side is 129px. Diameter to top is 129px, and to > bottom is 130px. > > While it may not be an o

Re: [PHP] List

2007-04-25 Thread Jochem Maas
Beauford wrote: > Does anyone else have this problem with the list. It seems that every time I > check my email there is one or more messages from the list that royally > screws up Outlook. I usually have to delete all list messages from the > actual server and reboot. It only happens with emails f

Re: [PHP] Re: PHP & Text Messaging

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 5:28 pm, Daniel Brown wrote: > Same thing I'm going through, Rich, but I'm saving about $60/mo. > on the > Nextel side, actually. And the signal is better on the iDEN network > in > northeast Pennsylvania than the PCS network. I just hope I don't EVER > need > to call C

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Seth Price
I've written the problem in C and linked it directly to GD, and the problem still occurs. Though the text is still the *most* random when using the PHP version of the library. For more info, see here: http://bugs.libgd.org/?do=details&task_id=76 I'm not scaling the image, though, I'm rotating

Re: [PHP] Server side speech

2007-04-25 Thread Robert Cummings
On Wed, 2007-04-25 at 16:26 -0500, Richard Lynch wrote: > On Wed, April 25, 2007 3:27 pm, Daniel Brown wrote: > > That's fine if you can find a shared host (as the OP states he's > > using) > > that's willing to install it on their servers. > > Or you have a spare computer in your closet that

Re: [PHP] Server side speech

2007-04-25 Thread Robert Cummings
On Wed, 2007-04-25 at 16:17 -0400, tedd wrote: > At 2:07 PM -0500 4/25/07, Richard Lynch wrote: > >On Wed, April 25, 2007 2:00 pm, tedd wrote: > >> However, server-side "text to speech" is possible by delivering the > >> sound to the browser via EMBED or BGSOUND tags -- an example of this > >> c

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-25 Thread Chris Shiflett
Dotan Cohen wrote: > It would be BBcode if anything. It may be the product of the > lazy, but I feel more secure parsing it than [x]HTML. BBCode is a pretty useless markup format. If you only want to allow / interpret a small subset of HTML, you can use a simple approach like this: http://shiflet

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-25 Thread Dotan Cohen
On 26/04/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > It would be BBcode if anything. It may be the product of the > lazy, but I feel more secure parsing it than [x]HTML. BBCode is a pretty useless markup format. If you only want to allow / interpret a small subset of HTML,

Re: [PHP] List

2007-04-25 Thread Wolf
Command line tool... bork no! UGH, *friggin muttering and more muttering* FIRST go to Start-> Control Panel -> Mail Look at the Data Files Choose to Browse the folder LOOK at the PST size, if it is CLOSE or OVER 2GB, start a new one, Outlook borks itself on a 2GB PST file Then look at the pa

Re: [PHP] List

2007-04-25 Thread Wolf
I wish it was Friday night, though I do have to admit I loved the code to fix the issue... only he'd have to be running Procmail or something on a linux machine before the outlook intake. UGH! Zoltán Németh wrote: 2007. 04. 25, szerda keltezéssel 16.42-kor Daniel Brown ezt írta: It's t

Re: [PHP] Open source web Catalog ?

2007-04-25 Thread Mike Shanley
VirtueMart allows you to turn the shopping cart off. I'm not sure if it's only for Joomla though. :-\ Joey wrote: Hey Guys, Can anyone recommend a good open source catalog program that is NOT a shopping cart, but a simple way for a person to maintain their products, pictures descriptions e

Re: [PHP] Re: [PHP-WIN] Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Richard Lynch wrote: Are there multiple threads spawned? >>> Depends on server API. ISAPI does, fastCGi doesn't. >> OK; so for serving multiple concurrent clients ISAPI would sound to me >> like the better choice, since it can use threads, or what would be the >> advantage of using fastcgi? >

Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Richard Lynch wrote: > On Wed, April 25, 2007 5:48 am, Henning Eiben wrote: >> But as far as I understand, java kinda does the same thing, doesn't >> it? > > Sort of, but not really... > > Java has a single central one giant process architecture. > > PHP has a shared-nothing architecture. > >

[PHP] Re: [PHP-WIN] Re: [PHP] slow performance

2007-04-25 Thread Stanislav Malyshev
OK, I installed FCGI and ran my testsuite. I did get more requests in a timeperiod of 5 minutes, but unfortunatly I also got a lot of errors (HTTP 500). But the performance of successful pages was increased by almost 15%. Maybe you need to configure FastCGI for more processes - 500 could be res

<    1   2