[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

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. > >

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: 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: ${}

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] 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] 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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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: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 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: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

[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 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

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: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] 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] 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] 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] 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] 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: 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] 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] 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] 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] 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] 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] 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: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 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] 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] 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] Re: posting variables to parent frame

2007-04-25 Thread Zoltán Németh
2007. 04. 25, szerda keltezéssel 17.05-kor Lori Lay ezt írta: > Zoltán Németh wrote: > > > >> Incidentally, "" is an error for html. > >> > > > > can you tell me why is an error > > > > greets > > Zoltán Németh > > > > > > > is xhtml. It's not an error in xhtml, but might confuse old

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

2007-04-25 Thread Justin Frim
Dotan Cohen wrote: I currently an using htmlencode, so < and > show as expected. I do expect the math faculty to use those symbols :). Then you're already protected from XSS attacks, no HTML filters necessary. Easy as pi. ;-) (ok, that one was lame) -- PHP General Mailing List (http://

Re: [PHP] Result problem

2007-04-25 Thread Dan Shirah
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. On 4/25/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, Apr

Re: [PHP] Result problem

2007-04-25 Thread Daniel Brown
Just a first glance, Dan, but try this: $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_record = mssql_fetch_array($result_record)) { echo $row_record['id'];

Re: [PHP] Result problem

2007-04-25 Thread Zoltán Németh
2007. 04. 25, szerda keltezéssel 17.03-kor Dan Shirah ezt írta: > Okay, print_r($result_record) for the query result. $result_record is a resource identifier. you are not interested in that too, I think... ;) if you want all records, then stuff them into an array and use that: while ($row_record

Re: [PHP] Result problem

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 3:56 pm, 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(

Re: [PHP] Result problem

2007-04-25 Thread Lori Lay
Dan Shirah wrote: Okay, print_r($result_record) for the query result. But I still don't know why it's only returning the last record of the query instead of all the results. Because it's a cursor and you're not resetting the position. You can't print the entire result set this way - you ha

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

2007-04-25 Thread Lori Lay
Zoltán Németh wrote: Incidentally, "" is an error for html. can you tell me why is an error greets Zoltán Németh is xhtml. It's not an error in xhtml, but might confuse older browsers. I tried it, even with a strict HTML 4.01 doctype and didn't get any errors, but who kno

Re: [PHP] Result problem

2007-04-25 Thread Dan Shirah
Okay, print_r($result_record) for the query result. But I still don't know why it's only returning the last record of the query instead of all the results. On 4/25/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: 2007. 04. 25, szerda keltezéssel 16.56-kor Dan Shirah ezt írta: > Any ideas why my qu

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

2007-04-25 Thread tedd
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. If you used a browser that could see generated html (like FireFox), then you will see it -- try it. It's good to know about tools like that. Looks more like you are using DIV

Re: [PHP] Result problem

2007-04-25 Thread Zoltán Németh
2007. 04. 25, szerda keltezéssel 16.56-kor Dan Shirah ezt írta: > 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_erro

Re: [PHP] List

2007-04-25 Thread Zoltán Németh
2007. 04. 25, szerda keltezéssel 16.42-kor Daniel Brown ezt írta: > It's those new Microsoft filters that crash on or block out anything > mentioning open source. Try running the following code prior to the mail > getting to your inbox like so: > > > Heh. I'm getting a little loopy

[PHP] Result problem

2007-04-25 Thread Dan Shirah
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_record = mssql_fetch_arr

Re: [PHP] List

2007-04-25 Thread Daniel Brown
It's those new Microsoft filters that crash on or block out anything mentioning open source. Try running the following code prior to the mail getting to your inbox like so: Heh. I'm getting a little loopy already it it Friday yet?!? ;-P On 4/25/07, Justin Frim <[EMAIL PROTECTE

Re: [PHP] List

2007-04-25 Thread Justin Frim
Have you considered using something other than Outlook? 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 ac

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

2007-04-25 Thread Seth Price
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 obvious ellipse, it's enough to throw off my calculat

Re: [PHP] Server side speech

2007-04-25 Thread Daniel Brown
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 -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8

Re: [PHP] Server side speech

2007-04-25 Thread Daniel Brown
No, that's one of my servers. In all honesty, though, a dedicated server or VPS is so cheap nowadays that it's almost not worth going with a shared host anymore for any "real" programming. Because if you pay for your own server (this one is less than $60 per month) and administer it yourself

Re: [PHP] Server side speech

2007-04-25 Thread Brad Bonkoski
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. I guess I am just thinking the alternative is creating your own package and using that, which again would force an external entity for the system to su

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

2007-04-25 Thread Zoltán Németh
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. > > Incidentally, "" is an error for html. can you tell

Re: [PHP] Server side speech

2007-04-25 Thread Daniel Brown
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. On 4/25/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: >Tedd, > >On all of the *nix boxes I use (and have used) I've had to install > Festival man

Re: [PHP] Server side speech

2007-04-25 Thread Brad Bonkoski
Daniel Brown wrote: Tedd, On all of the *nix boxes I use (and have used) I've had to install Festival manually, so I would definitely not say that it's commonly found on there especially for a server configuration. But it IS commonly available, so why not just make it a prerequisite

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

2007-04-25 Thread Jim Lucas
give this a shot items and notes {$title}"; } echo"  {$id} - {$content} - {$timestamp} - {$notes} - ". "{$link}"; }//while ?> This should do the trick -- Enjoy, Jim Lucas Different eyes see different things. Different hearts beat on different strings.

Re: [PHP] Server side speech

2007-04-25 Thread Daniel Brown
Tedd, On all of the *nix boxes I use (and have used) I've had to install Festival manually, so I would definitely not say that it's commonly found on there especially for a server configuration. On 4/25/07, tedd <[EMAIL PROTECTED]> wrote: At 2:07 PM -0500 4/25/07, Richard Lynch wro

Re: [PHP] Server side speech

2007-04-25 Thread tedd
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 can be seen here: I have run "Festival" server side via PHP to

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

2007-04-25 Thread Dotan Cohen
On 25/04/07, Justin Frim <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > On 25/04/07, Justin Frim <[EMAIL PROTECTED]> wrote: > >> I'm assuming then you want the data to be able to contain _some_ mark-up >> considered to be safe? >> > > Not at this stage, no. Maybe if the users ask for it, but no

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

2007-04-25 Thread Justin Frim
Dotan Cohen wrote: On 25/04/07, Justin Frim <[EMAIL PROTECTED]> wrote: I'm assuming then you want the data to be able to contain _some_ mark-up considered to be safe? Not at this stage, no. Maybe if the users ask for it, but not now in the beginning. The universe's best engineer, Scotty, on

Re: [PHP] Server side speech

2007-04-25 Thread Robert Cummings
Ditto on Festival. I've used it in the past as a trigger on MUD text to vocalize messages sent by players. Cheers, Rob. On Wed, 2007-04-25 at 15:08 -0400, Daniel Brown wrote: > I had actually done something almost exactly like this as an experiment > a few months back at http://isawit.com/tt

RE: [PHP] List

2007-04-25 Thread Chris W. Parker
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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Server side speech

2007-04-25 Thread Daniel Brown
I had actually done something almost exactly like this as an experiment a few months back at http://isawit.com/tts/login.php. The audio download portion may no longer work, though I can't remember if I removed the code from that specific server or not. It was just for my own fun and edifi

Re: [PHP] Server side speech

2007-04-25 Thread Richard Lynch
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 > can be seen here: I have run "Festival" server side via PHP to generate audio snippets of spoken word. All you

[PHP] Server side speech

2007-04-25 Thread tedd
Hi gang: Most "text to speech" techniques concentrate on making the browser or desktop application do the translation of web text to speech. For example, there are several listed here: http://www.oatsoft.org/Software/listing/Repository However, server-side "text to speech" is possible by del

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

2007-04-25 Thread tedd
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 off -- maybe round off errors -- I don't know. However, I

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

2007-04-25 Thread Al
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. Incidentally, "" is an error for html. tedd wrote: At 11:12 AM -0400 4/24/07, Al wrote: Provide an example of an iFrame

[PHP] printing a one-to-many relationship

2007-04-25 Thread Thufir
There's a one-to-many relationship between px_items.id and contacts.id, and I want a printout of some data from each. I want to print out the query results px_items.id field once and once only, but the contacts.notes field many times, as there could be many entries. Right now it prints out each r

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

2007-04-25 Thread Thufir
When I print out my list of apartments, everything after , which is grabbed via is suddenly blue. So, the first few are fine, have black text, after that it's all blue. Do I put some html in the loop to

Re: [PHP] TrueType font changes size when rotated? (the plot thickens)

2007-04-25 Thread Seth Price
So I've rewritten my script in C. You can find the source here: http://leopold.sage.wisc.edu/testing/gd_ft_ang.c This script links directly to GD and produces a still different output. On my home system, the output image is correct and the length 89 px. On the web server, the output image is

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

2007-04-25 Thread Seth Price
I'm using Safari for Mac also. What are the numbers after 'Hello world' coming out for you? ~Seth On Apr 25, 2007, at 11:05 AM, tedd wrote: At 10:26 PM -0500 4/24/07, Seth Price wrote: Hi all! I've been programming GD and PHP for a while, but I haven't done much with font drawing. I'm tryin

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

2007-04-25 Thread tedd
At 10:26 PM -0500 4/24/07, Seth Price wrote: Hi all! I've been programming GD and PHP for a while, but I haven't done much with font drawing. I'm trying to layout and draw text, but the text actually changes size and shape depending on the angle it's drawn at. This is making it extremely difficul

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

2007-04-25 Thread Henning Eiben
Stanislav Malyshev wrote: >> OK, so I will give that a try. As far as I understand, I basically just >> have to replace the association of ".php" to "php5isapi.dll" with >> "php-cgi.exe"; and then set the global path to include my php-folder, >> right? > > No, that probably would make it CGI, whi

[PHP] Open source web Catalog ?

2007-04-25 Thread Joey
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 etc? Thanks! Joey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] List

2007-04-25 Thread Philip Thompson
On Apr 25, 2007, at 8:21 AM, tedd wrote: At 1:53 PM -0400 4/24/07, 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 message

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

2007-04-25 Thread tedd
At 6:25 AM -0700 4/25/07, 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. I usuall use the method below, however am concerned for browsers that do not support javascript.

  1   2   >