useful.
Matt.
-Original Message-
From: Ben Gollmer [mailto:[EMAIL PROTECTED]]
Sent: 02 January 2002 23:16
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] XML Parsing Problem
Ok, I can understand the predefined entity replacement. But why does it
break the string up
parsed you end up with amp; which will
display correctly in most HTML browsers.
Note that amp; is a usually a predefined entity in XML and so will be
replaced with .
HTH
Matt.
-Original Message-
From: Ben Gollmer [mailto:[EMAIL PROTECTED]]
Sent: 01 January 2002 00:23
To: [EMAIL
Hi all -
I'm experimenting with PHP's XML parser for an application that maps XML
tags to MySQL database fields.
As a test for my parsing program, I've been grabbing XML from the
Slashdot news feed (http://www.slashdot.org/slashdot.xml) and inserting
it into a database. This is very simple
The easiest way is to use an SQL query like this;
update your_table set timestamp_field=null;
This sets the timestamp to the current time automagically. You can of
course add a where clause and so on to this query.
Ben
On Monday, November 26, 2001, at 09:27 PM, cosmin laslau wrote:
I'm
Do something like this:
function parseXML($xmlFile)
{
$theParser = xml_parser_create();
xml_set_element_handler($theParser, startElementHandler,
endElementHandler);
//parse your XML here
return $attributeArray;
}
function startElementHandler($theParser,
Oops, forgot a line:
On Tuesday, November 13, 2001, at 08:58 PM, Ben Gollmer wrote:
Do something like this:
function parseXML($xmlFile)
{
global $attributeArray;
$theParser = xml_parser_create();
xml_set_element_handler($theParser, startElementHandler
Make sure you pass fsockopen() the optional timeout parameter, and that
the timeout is less than the maximum script execution time.
See http://www.php.net/manual/en/function.fsockopen.php
Ben
On Monday, August 20, 2001, at 12:49 PM, brian ellis wrote:
When I use the fsockopen command onto
goes kablooey.
TIA,
Ben Gollmer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Uptime.exe is available on the WinNT / Win2k resource kit. You can also
download it here:
http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.
asp
On NT, you need at least Service Pack 4 to run it.
Ben
On Wednesday, May 16, 2001, at 01:55 PM, Ryan Christensen wrote:
.
I'm by no means a security expert - this email merely reflects the
results of experimentation on my own boxen. If anyone has any
suggestions on how to improve this situation, please post 'em!
Ben Gollmer
On Monday, May 14, 2001, at 01:09 PM, bd wrote:
Hello,
I have similar concerns
raw SMTP commands.
This would require some reading of the relevant mail RFCs...but is
definitely feasible.
Ben Gollmer
On Monday, May 14, 2001, at 07:04 PM, Christian Dechery wrote:
My free-web-hosting (www.f2s.com) does not allow PHP to send emails...
I've tried everything... the mail
On Monday, May 14, 2001, at 10:00 PM, Chris Adams wrote:
On 14 May 2001 19:04:43 -0700, Ben Gollmer [EMAIL PROTECTED] wrote:
If you have an account on a remote host, you can always do something
like this:
?php
include(http://www.remotehost.com/~myaccount/mailfunction.inc
to 4.0.4pl1.
Is this a bug, or some change in PHP that is causing it to ignore
alternative (non-UNIX) line endings? If there is a problem with PHP, I
want to make sure everyone is aware of it so it can be fixed in 4.0.6.
Ben Gollmer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
I've got a better way yet:
select RAND() as rand_col, column_name from table_name order by rand_col
Only one query for randomized results, no PHP/Perl/etc. You can of course
add the 'limit 1' on the end to get one row back. I use this method a lot -
my main server is running 3.22.32 but my
14 matches
Mail list logo