Re: [PHP] XML Parsing Problem

2002-01-03 Thread Ben Gollmer
our can be very 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

Re: [PHP] XML Parsing Problem

2002-01-02 Thread Ben Gollmer
actually two ampersands.. you have & followed by > amp; - > this is so that once it has been parsed you end up with & which will > display correctly in most HTML browsers. > > Note that & is a usually a predefined entity in XML and so will be > replaced with "&a

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

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 us

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, &q

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, $the

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 a

[PHP] PHP 4.0.6 + GD 2.0.1

2001-06-23 Thread Ben Gollmer
configure, but make still 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] 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: >> >> > include("http://www.r

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

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

Re: [PHP] PHP priviledges

2001-05-14 Thread Ben Gollmer
to just reading the files. Also, starting so many instances of Apache seems unnecessarily resource-intensive. 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

[PHP] PHP 4.0.5 Parse Problems

2001-05-06 Thread Ben Gollmer
w, PHP 4.0.5 isn't a must-have upgrade, so I went back 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 --

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 tes

Re: [PHP] zend ide & debugger

2001-01-23 Thread Ben Gollmer
I second that. The IDE+Debugger combo really looks great, esp. because of the debug support being AWOL in PHP4. I'm a little worried about the IDE being written in java tho...I hope its not as slow/memory hungry/crash happy as the other java + JRE apps I've used... Too bad there's not an eval