php-general Digest 24 Sep 2007 03:27:43 -0000 Issue 5035

2007-09-23 Thread php-general-digest-help
php-general Digest 24 Sep 2007 03:27:43 - Issue 5035 Topics (messages 262388 through 262404): file() ignores PHP tags 262388 by: magoo 262390 by: Peter Lauri 262391 by: Peter Lauri 262392 by: magoo 262395 by: magoo 262396 by: magoo

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-23 Thread Jeff Cohan
Thank you, all who replied. This helps me understand. I might give a try to the workarounds some suggested. Great newsgroup. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

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

[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 (?php) in my output, but the ending 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?

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

RE: [PHP] file() ignores PHP tags

2007-09-23 Thread Peter Lauri
Your array that you get from the file() will contain the ?php tag, but you will not see it in your browser as it is parsed as html. header(Content-type: text/plain); ontop of your script will output plain text. Hope it helps. Best regards, Peter Lauri www.dwsasia.com - company web site

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 magoo
Peter Lauri wrote: Your array that you get from the file() will contain the ?php tag, but you will not see it in your browser as it is parsed as html. header(Content-type: text/plain); ontop of your script will output plain text. Hope it helps. Hi NG! I wanna output several kinds of ascii

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

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, every

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 ?php tag, but you will not see it in your browser as it is parsed as html. header(Content-type: text/plain); ontop of your script will output plain text. Hope it helps. I wanna output several kinds of ascii files.

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 ?php tag, but you will not see it in your browser as it is parsed as html. header(Content-type: text/plain); ontop of your script will output plain text. Hope it helps. I wanna output several kinds of ascii files.

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 parse

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

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,

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 (?php) in my output, but the ending 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

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

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

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 requirement it

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