Robert P. J. Day wrote:
i realize it sounds trivial but the online info is annoyingly
recursive. there's mime_content_type(), but it's officially
deprecated.
On the manual page there is a reference to the Fileinfo PECL extension:
http://php/manual/en/ref.fileinfo.php
--
Per Jessen,
On 17/03/10 18:59, Tommy Pham wrote:
On Wed, Mar 17, 2010 at 11:01 AM, Rene Veermanrene7...@gmail.com wrote:
hmm.. seems easier to me to push a filetree of .php's with?= through
the str_replace(), than it is to get all the?= writers to comply
with your wishes, which may not apply to their
On Thu, 2010-03-18 at 19:21 +0800, I am on the top of the world!
Borlange University wrote:
sounds good, i havnt checked out it with cvs format.
thanks
On Tue, Mar 16, 2010 at 8:15 PM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Tue, 2010-03-16 at 20:16
On Thu, 2010-03-18 at 12:56 +0100, Jochen Schultz wrote:
Microsoft managed to basterdise this format
a bit as well, and lets you use tabs, spaces and all sorts of other
characters to delimit data fields. Someone obviously didn't mention to
them that the file type is 'comma separated
Microsoft managed to basterdise this format
a bit as well, and lets you use tabs, spaces and all sorts of other
characters to delimit data fields. Someone obviously didn't mention to
them that the file type is 'comma separated values'!
Or maybe it is because someone told them, that there is
On Thu, Mar 18, 2010 at 11:35:33AM +, Ashley Sheridan wrote:
snip
The .csv format is just a plain text format, so you won't get formatting
or formulas in your 'sheets' (csv is also a sheetless format) but it's
been used for years by many systems for data.
A lot of database systems
At 5:18 PM -0700 3/17/10, Tommy Pham wrote:
-snip-
Below is how I'd do the db structure:
tbl_survey_questions:
questionId = int / uid your call
languageId = int / uid / char your call if you intend to I18n it ;)
question = varchar length is your requirement
PK questionId + languageId
AFAIK, there is no real standard out there for CSV file definition and
since Microsoft and many others (me too btw) use other chars for field
separation in so called CSV files, i think it is a good way to deal with
it and let it be how it is (actually i have to look into every CSV file
that is
2010/3/18 Pete Ford p...@justcroft.com:
On 17/03/10 18:59, Tommy Pham wrote:
On Wed, Mar 17, 2010 at 11:01 AM, Rene Veermanrene7...@gmail.com wrote:
hmm.. seems easier to me to push a filetree of .php's with?= through
the str_replace(), than it is to get all the?= writers to comply
with
At 9:34 AM + 3/18/10, Pete Ford wrote:
I do tend to use ?php for blocks of code - so I guess I'm in the
middle camp here.
Whoa, that's even worse -- make a choice and stick with it -- IMO.
I'm all for consistency and have often found myself redoing dozens of
scripts because I changed
At 4:11 PM +0100 3/18/10, Jan G.B. wrote:
I agree.
And I believe the persons ranting about short open tags are just like
some religious people. It's almost like a war between
Linux/Windows/Mac, IE/FF or ASP/PHP.
Also, people love to recommend things that others recommended before.
It mustn't
Hi,
I am wanting to protect some pages by requiring a user to log in to
access them. I'd prefer this be as simple as possible, and without
requiring a database.
So for example when a user goes to www.domain.com/example.php they'll
get a page prompting for their log in credentials, and only after
At 11:35 AM + 3/18/10, Ashley Sheridan wrote:
The .csv format is just a plain text format, so you won't get formatting
or formulas in your 'sheets' (csv is also a sheetless format) but it's
been used for years by many systems for data.
A lot of database systems will let you import csv files
At 8:52 AM +0100 3/18/10, Per Jessen wrote:
Robert P. J. Day wrote:
i realize it sounds trivial but the online info is annoyingly
recursive. there's mime_content_type(), but it's officially
deprecated.
On the manual page there is a reference to the Fileinfo PECL extension:
On Thu, 2010-03-18 at 11:40 -0400, David Mehler wrote:
Hi,
I am wanting to protect some pages by requiring a user to log in to
access them. I'd prefer this be as simple as possible, and without
requiring a database.
So for example when a user goes to www.domain.com/example.php they'll
get a
tedd wrote:
At 8:52 AM +0100 3/18/10, Per Jessen wrote:
Robert P. J. Day wrote:
i realize it sounds trivial but the online info is annoyingly
recursive. there's mime_content_type(), but it's officially
deprecated.
On the manual page there is a reference to the Fileinfo PECL
On Thu, Mar 18, 2010 at 11:42 AM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Thu, 2010-03-18 at 11:40 -0400, David Mehler wrote:
Hi,
I am wanting to protect some pages by requiring a user to log in to
access them. I'd prefer this be as simple as possible, and without
requiring
On Thu, Mar 18, 2010 at 8:40 AM, tedd tedd.sperl...@gmail.com wrote:
At 11:35 AM + 3/18/10, Ashley Sheridan wrote:
The .csv format is just a plain text format, so you won't get formatting
or formulas in your 'sheets' (csv is also a sheetless format) but it's
been used for years by many
On Thu, Mar 18, 2010 at 08:57:00AM -0700, Tommy Pham wrote:
snip
Personally, I find working with fixed widths is best. The text file
might be larger but I don't have worry about escaping any type of
characters ;)
I find this impossible, since I never know the largest width of all the
Paul M Foster wrote:
I process a lot of CSV files, and what I typically see is that Excel
will enclose fields which might contain commas in quotes. This gets
messy. So I finally wrote a C utility which parses the file and yields
tab-delimited records without the quotes.
Paul
And fgetcsv()
On Thu, 2010-03-18 at 12:12 -0400, Paul M Foster wrote:
On Thu, Mar 18, 2010 at 08:57:00AM -0700, Tommy Pham wrote:
snip
Personally, I find working with fixed widths is best. The text file
might be larger but I don't have worry about escaping any type of
characters ;)
I find
2010/3/18 tedd tedd.sperl...@gmail.com:
Calling it ranting or religious unjustly demeans the discussion and is
inflammatory.
In all of this, I've simply said it's your choice.
What I said was:
*persons ranting about short open tags* *are just like some religious people
*
I did not address
On Thu, Mar 18, 2010 at 09:16:30AM -0700, Mattias Thorslund wrote:
Paul M Foster wrote:
I process a lot of CSV files, and what I typically see is that Excel
will enclose fields which might contain commas in quotes. This gets
messy. So I finally wrote a C utility which parses the file and
On Thu, 2010-03-18 at 17:32 +0100, Jan G.B. wrote:
2010/3/18 tedd tedd.sperl...@gmail.com:
Calling it ranting or religious unjustly demeans the discussion and is
inflammatory.
In all of this, I've simply said it's your choice.
What I said was:
*persons ranting about short open tags*
On Thu, Mar 18, 2010 at 04:15:33PM +, Ashley Sheridan wrote:
On Thu, 2010-03-18 at 12:12 -0400, Paul M Foster wrote:
On Thu, Mar 18, 2010 at 08:57:00AM -0700, Tommy Pham wrote:
snip
Personally, I find working with fixed widths is best. The text file
might
2010/3/18 Ashley Sheridan a...@ashleysheridan.co.uk
Technically, PHP isn't embedded in any language; it's the other way around.
XML and PHP are used together more often than you might realise. Consider
Ajax and RSS, which are becoming more and more popular. Also, there are
sites out there
On Thu, 2010-03-18 at 17:57 +0100, Jan G.B. wrote:
Sure - XML is often used and served. But in general, a web server only
parses PHP-Files (ie. .+\.php\d?) unless you configure your server to
parse any file or .xml files. So the XML ? is not a problem at all
for the interpreter.
I wasn't
On Thu, 2010-03-18 at 12:57 -0400, Paul M Foster wrote:
On Thu, Mar 18, 2010 at 04:15:33PM +, Ashley Sheridan wrote:
On Thu, 2010-03-18 at 12:12 -0400, Paul M Foster wrote:
On Thu, Mar 18, 2010 at 08:57:00AM -0700, Tommy Pham wrote:
snip
Personally, I
On Thu, 2010-03-18 at 18:09 +0100, Jan G.B. wrote:
2010/3/18 Ashley Sheridan a...@ashleysheridan.co.uk
I'd rather have short tags turned off than remember each time that I have
to keep breaking up the and ?php before I output it in-case the parser
gets confused.
You don't need to
I've been trying to read the contents from a particular URL into a
string in PHP, and can't get it to work. any help.
Thanks
--
If there is a way, I will find one...***
If there is none, I will make one...***
madunix **
--
PHP General Mailing List
On Fri, 2010-03-19 at 00:03 +0200, madunix wrote:
I've been trying to read the contents from a particular URL into a
string in PHP, and can't get it to work. any help.
Thanks
--
If there is a way, I will find one...***
If there is none, I will make one...***
madunix
On Thu, Mar 18, 2010 at 6:03 PM, madunix madu...@gmail.com wrote:
I've been trying to read the contents from a particular URL into a
string in PHP, and can't get it to work. any help.
Thanks
--
If there is a way, I will find one...***
If there is none, I will make one...***
trying http://us3.php.net/manual/en/function.fsockopen.php
do you a piece of code that read parts pages.
On Fri, Mar 19, 2010 at 12:00 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Fri, 2010-03-19 at 00:03 +0200, madunix wrote:
I've been trying to read the contents from a
On Fri, 2010-03-19 at 00:11 +0200, madunix wrote:
trying http://us3.php.net/manual/en/function.fsockopen.php
do you a piece of code that read parts pages.
On Fri, Mar 19, 2010 at 12:00 AM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Fri, 2010-03-19 at 00:03
On Thu, Mar 18, 2010 at 6:08 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Fri, 2010-03-19 at 00:11 +0200, madunix wrote:
trying http://us3.php.net/manual/en/function.fsockopen.php
do you a piece of code that read parts pages.
On Fri, Mar 19, 2010 at 12:00 AM, Ashley
okay ..it works now i use
?php
$data=file_get_contents(http://www.my.com;);
echo $data;
?
On Fri, Mar 19, 2010 at 12:32 AM, Adam Richardson simples...@gmail.com wrote:
On Thu, Mar 18, 2010 at 6:08 PM, Ashley Sheridan a...@ashleysheridan.co.uk
wrote:
On Fri, 2010-03-19 at 00:11 +0200, madunix
On 3/18/2010 9:36 PM, php-general-h...@lists.php.net wrote:
Hi! This is the ezmlm program. I'm managing the
php-general@lists.php.net mailing list.
I'm working for my owner, who can be reached
at php-general-ow...@lists.php.net.
To confirm that you would like
bmorga...@gmail.com
added to
37 matches
Mail list logo