Re: [PHP] XML Parsing Problem

2002-01-03 Thread Ben Gollmer
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

Re: [PHP] XML Parsing Problem

2002-01-02 Thread Ben Gollmer
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

[PHP] XML Parsing Problem

2001-12-31 Thread Ben Gollmer
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

Re: [PHP] Updating Timestamps

2001-11-26 Thread Ben Gollmer
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

Re: [PHP] Parsing XML

2001-11-13 Thread Ben Gollmer
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,

Re: [PHP] Parsing XML

2001-11-13 Thread Ben Gollmer
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

Re: [PHP] Port Scanner

2001-08-20 Thread Ben Gollmer
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

[PHP] PHP 4.0.6 + GD 2.0.1

2001-06-23 Thread Ben Gollmer
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]

Re: [PHP] Uptime script?

2001-05-16 Thread Ben Gollmer
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:

Re: [PHP] PHP priviledges

2001-05-14 Thread Ben Gollmer
. 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

Re: [PHP] need some ideas here...

2001-05-14 Thread Ben Gollmer
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

Re: [PHP] need some ideas here...

2001-05-14 Thread Ben Gollmer
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

[PHP] PHP 4.0.5 Parse Problems

2001-05-07 Thread Ben Gollmer
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

Re: [PHP] Retrieve item from table at random

2001-02-07 Thread Ben Gollmer
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