Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-23 Thread Per Jessen
Chris wrote: [snip] > will not hit the first cache because the fields are different. > http://dev.mysql.com/doc/refman/4.1/en/query-cache-how.html All very true, but when a busy website with 100 hits/interval has 25 duplicate queries, that 24% saved per interval. My only point was - when you're

[PHP] Players Table

2007-09-23 Thread Karl james
Team, I am trying to start this up. Just not sure if I am doing this correctly or not. Can you please advise? I am sure you all have seen my post from before. Have, I created the players table right? Players Id_Number ( int ) First_Name ( varchar32 ) Last_Name ( varchar3

Re: [PHP] Getting PHP CLI on machine without compiling or changing the other part of the system

2007-09-23 Thread Robert Cummings
On Mon, 2007-09-24 at 11:05 +1000, Chris wrote: > Peter Lauri wrote: > > Hi, > > > > In a current project we have developed a piece of software that run > > independently and that only requires php5 as a CLI component. > > > > Now we want to use this software on other machines, and the only requi

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-23 Thread Chris
Per Jessen wrote: Stut wrote: Indeed, but only if you're making a lot of repetitive queries to the database. Which is typically what a busy website does :-) The query cache only works if you give it exactly the same query. That is: select blah from table where id=1; if it changes to se

Re: [PHP] Font size of text that will be written using php pack function

2007-09-23 Thread Chris
rdpweb wrote: Hi All I am just converting the data from database to excel format.For that i am using pack function of php . But i want some data to be in bold like Employee Name = ABC http://pear.php.net/package/Spreadsheet_Excel_Writer It has support for doing this. -- Postgresql & php tutor

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread Chris
magoo wrote: Hi NG! I wanna output several kinds of ascii files. Two things are bothering me right now: 1. I don`t get the PHP starttag (tags. Is there anything I can to to get all of it? 2. How can I stop the browser to render HTML output, in order to get plain ascii? $string = file_get_c

Re: [PHP] Getting PHP CLI on machine without compiling or changing the other part of the system

2007-09-23 Thread Chris
Peter Lauri wrote: Hi, In a current project we have developed a piece of software that run independently and that only requires php5 as a CLI component. Now we want to use this software on other machines, and the only requirement it that the machine has php5 installed. Fine for now, but

Re: [PHP] Interesting Rails Vs. PHP article

2007-09-23 Thread Guillaume Theoret
That's actually a very good article and while I don't agree with some of it (most notably #6, the I love SQL.. I find a good ORM layer to be a life saver should you ever need to make database structure changes without having all your apps collapse all over themselves), I certainly agree with the ma

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread lists
> > Yes, that is a little better. Thanks for that! > But now all the PHP is removed. Is there some other header to send, in > order > to get PHP in my output? > Could you send the code you are having? If you are doing it properly all should be shown, it will not remove anything. The file() don't p

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread magoo
"Peter Lauri" wrote: Your array that you get from the file() will contain the I wanna output several kinds of ascii files. Two things are bothering me right now: 1. I don`t get the PHP starttag ( Weird thing: I acually get my PHP echoed, but I get two HTML doctypes (the same one...). -- Kin

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread magoo
"Peter Lauri" wrote: Your array that you get from the file() will contain the I wanna output several kinds of ascii files. Two things are bothering me right now: 1. I don`t get the PHP starttag ( Weird thing: I acually get my PHP echoed, but I get two HTML doctypes (the same one...). -- Kin

Re: [PHP] Interesting Rails Vs. PHP article

2007-09-23 Thread Robert Cummings
On Sun, 2007-09-23 at 18:02 +0100, Colin Guthrie wrote: > Thought ppl here may be interested in this: > http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html > > Originally linked from /.: > http://developers.slashdot.org/article.pl?sid=07/09/23/1249235 It's funny, eve

[PHP] Interesting Rails Vs. PHP article

2007-09-23 Thread Colin Guthrie
Thought ppl here may be interested in this: http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html Originally linked from /.: http://developers.slashdot.org/article.pl?sid=07/09/23/1249235 Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread magoo
"Peter Lauri" wrote: Your array that you get from the file() will contain the Hi NG! I wanna output several kinds of ascii files. Two things are bothering me right now: 1. I don`t get the PHP starttag ( Yes, that is a little better. Thanks for that! But now all the PHP is removed. Is there so

RE: [PHP] file() ignores PHP tags

2007-09-23 Thread Peter Lauri
Oh, and by the way, remember that the array that file() returns also will contain the newline. Add the flag FILE_IGNORE_NEW_LINES if you don't want them. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free > --

RE: [PHP] file() ignores PHP tags

2007-09-23 Thread Peter Lauri
Your array that you get from the file() will contain the -Original Message- > From: magoo [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 23, 2007 3:52 PM > To: php-general@lists.php.net > Subject: [PHP] file() ignores PHP tags > > Hi NG! > > I wanna output several kinds of ascii fil

RE: [PHP] str_replace oddity

2007-09-23 Thread Peter Lauri
No, turn Magic Quotes off :) Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 23, 2007 3:10 AM > To:

[PHP] file() ignores PHP tags

2007-09-23 Thread magoo
Hi NG! I wanna output several kinds of ascii files. Two things are bothering me right now: 1. I don`t get the PHP starttag (Is there anything I can to to get all of it? 2. How can I stop the browser to render HTML output, in order to get plain ascii? Cheers! -- Kind regards, magoo -- PH

[PHP] Getting PHP CLI on machine without compiling or changing the other part of the system

2007-09-23 Thread Peter Lauri
Hi, In a current project we have developed a piece of software that run independently and that only requires php5 as a CLI component. Now we want to use this software on other machines, and the only requirement it that the machine has php5 installed. Fine for now, but then we have started t

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-23 Thread Per Jessen
Stut wrote: > Indeed, but only if you're making a lot of repetitive queries to the > database. Which is typically what a busy website does :-) > However, since the OP wants to reduce the number of > connections to the database, query caching may reduce the time each > connection is held for it

[PHP] Install InnovaStudio as a joomla Mambot

2007-09-23 Thread abderrazzak nejeoui
Please can some body help me to install InnovaStudio WUSISWYG as a Joomla Mambot ! Thanks Nejeoui