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
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
Please can some body help me to install InnovaStudio WUSISWYG as a Joomla
Mambot !
Thanks
Nejeoui
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
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
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?
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
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
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
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
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:
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
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.
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.
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
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
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,
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
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
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
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
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 (
22 matches
Mail list logo