Re: [PHP] Unbuffered Query

2007-01-15 Thread Németh Zoltán
I think mysql_data_seek throws this warning also if there is no data in the result object at all, so I would check the result before positioning greets Zoltán Németh 2007. 01. 12, péntek keltezéssel 23.30-kor Richard Lynch ezt írta: I have this process that dumps out database records to static

Re: [PHP] circular dependency between libraries

2007-01-15 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-14 20:47:02 +0100: Roman Neuhauser wrote: I have a circular dependency, and am looking for thoughts on breaking the cycle without (much) redundancy or hard to automate procedures. I'm developing two programs, Testilence, a unit testing library, and Amock

[PHP] xml_parse() error with nbsp; and euro; etc.. How can i fix this?

2007-01-15 Thread Mathijs
Hello there, When i want use parse_xml() and i have entities like nbsp; in it, it gives me a entity error. This because the parser doesn't know the nbsp; entity. Now i saw on the bugs site of php a way to solve this, by using xml_set_external_entity_ref_handler() with

Re: [PHP] xml_parse() error with nbsp; and euro; etc.. How can i fix this?

2007-01-15 Thread Miguel J. Jiménez
El Mon, 15 Jan 2007 12:42:58 +0100 Mathijs [EMAIL PROTECTED] escribió: Hello there, When i want use parse_xml() and i have entities like nbsp; in it, it gives me a entity error. This because the parser doesn't know the nbsp; entity. Now i saw on the bugs site of php a way to solve

Re: [PHP] xml_parse() error with nbsp; and euro; etc.. How can ifix this?

2007-01-15 Thread Mathijs
Miguel J. Jiménez wrote: El Mon, 15 Jan 2007 12:42:58 +0100 Mathijs [EMAIL PROTECTED] escribió: Hello there, When i want use parse_xml() and i have entities like nbsp; in it, it gives me a entity error. This because the parser doesn't know the nbsp; entity. Now i saw on the bugs site of

[PHP] memory allocation problems with fgets

2007-01-15 Thread Maurizio Molina
Hi, I have a script parsing the lines of a (rather large) file: while (!feof($outPluginfh)) { $outPlugin = fgets ($outPluginfh,1024); # process $outPlugin here... } Now, with large files I was running into an memory allocation error (after 16MB of allocation..). It looks that php

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-15 Thread Jürgen Wind
Gert Cuykens wrote: Added db5c29 it includes a new server memory login module some small layout and code modifications. hmm, syntax error: dg.delete()\n dg.js (line 241) do you know the Firebug extension for Firefox? at least you should test your code before upload ;) -- View this

[PHP] Re: colon in coma [was: Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?]

2007-01-15 Thread Jürgen Wind
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-13 18:59:10 -0800: }, //-- offending colon # [EMAIL PROTECTED] / 2007-01-14 04:49:10 +0100: ah ok i am sorry, you can just remove the , (the offending colon) Guyes, what were you doing during your biology classes? ;) -- How

[PHP] Re: XML Parsing simpleXML Arrays Question

2007-01-15 Thread Myron Turner
Richard Luckhurst wrote: Hi List I have taken the advice of a number of people on the list and am back trying to write my XML parser using SimpleXML. I am having a problem and I believe the problem is my lack of understanding of arrays and simpleXML in spite of much google searching and manual

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-15 Thread Gert Cuykens
On 1/15/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: Added db5c29 it includes a new server memory login module some small layout and code modifications. hmm, syntax error: dg.delete()\n dg.js (line 241) do you know the Firebug extension for Firefox? at least you should test

RE: [PHP] Stripslashes

2007-01-15 Thread Beauford
I'm familiar with the .htaccess file and I am told by the hosting company that apache is set up to use it, I've just never used it much - especially for PHP. If this works I'd even like to set an includes file for PHP. Here is the file. # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER*

Re: [PHP] Stripslashes

2007-01-15 Thread Curt Zirzow
On 1/14/07, Beauford [EMAIL PROTECTED] wrote: I guess I'm just doing something wrong, 'cause that doesn't work either - nor do the hundreds of other snippets I've used. Here's the scenario. I have a form - after they submit the form it shows what they have entered, this is where I get the \.

[PHP] FW: Eregi question

2007-01-15 Thread Beauford
Hi, Hopefully this is my last question so I can put this site to bed. Is there a good article that explains how to do the patterns for eregi. I have read tons of articles, but none really explains what everything means. Like why some things have square brackets and some have round, what does

Re: [PHP] Stripslashes

2007-01-15 Thread Curt Zirzow
On 1/15/07, Beauford [EMAIL PROTECTED] wrote: I'm familiar with the .htaccess file and I am told by the hosting company that apache is set up to use it, I've just never used it much - especially for PHP. If this works I'd even like to set an includes file for PHP. Here is the file. #

Re: [PHP] FW: Eregi question

2007-01-15 Thread Curt Zirzow
On 1/15/07, Beauford [EMAIL PROTECTED] wrote: Hi, Hopefully this is my last question so I can put this site to bed. Is there a good article that explains how to do the patterns for eregi. Honestly i hope it isn't the last question. As far as eregi articles that really has been dead since

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-15 Thread Jürgen Wind
Gert Cuykens wrote: On 1/15/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: Added db5c29 it includes a new server memory login module some small layout and code modifications. hmm, syntax error: dg.delete()\n dg.js (line 241) do you know the Firebug extension for

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-15 Thread Curt Zirzow
On 1/15/07, Gert Cuykens [EMAIL PROTECTED] wrote: On 1/15/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: Added db5c29 it includes a new server memory login module some small layout and code modifications. hmm, syntax error: dg.delete()\n dg.js (line 241) do you know

[PHP] I lied, another question / problem

2007-01-15 Thread Beauford
I have file which I use for validating which includes the following function: function invalidchar($strvalue) { if(!ereg(^[[:alpha:][:space:]\'-.]*$, $strvalue)) { return *; } } Here is the problem. If I don't use the function, like below, there is no

Re: [PHP] FW: Eregi question

2007-01-15 Thread Børge Holen
On Monday 15 January 2007 20:59, Curt Zirzow wrote: On 1/15/07, Beauford [EMAIL PROTECTED] wrote: Hi, Hopefully this is my last question so I can put this site to bed. Is there a good article that explains how to do the patterns for eregi. Honestly i hope it isn't the last question.

[PHP] Going back with multiple submits to the same page

2007-01-15 Thread Otto Wyss
When values are entered on one of my page I submit the result back to the same page (form action=same_page). Unfortunately each submit adds an entry into the history, so history back doesn't work in a single step. Yet if the count of submits were known I could use goto(n). What's the best way

[PHP] DNS lookup w/ php

2007-01-15 Thread Russell Jones
If I wanted to determine whether a domain has set up mx records, how could I accomplish this with PHP?

RE: [PHP] DNS lookup w/ php

2007-01-15 Thread Jay Blanchard
[snip] If I wanted to determine whether a domain has set up mx records, how could I accomplish this with PHP? [/snip] RTFM http://us3.php.net/manual/en/function.dns-get-mx.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Going back with multiple submits to the same page

2007-01-15 Thread Paul Novitski
At 1/15/2007 01:52 PM, Otto Wyss wrote: When values are entered on one of my page I submit the result back to the same page (form action=same_page). Unfortunately each submit adds an entry into the history, so history back doesn't work in a single step. Yet if the count of submits were known I

Re: [PHP] I lied, another question / problem

2007-01-15 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500: I have file which I use for validating which includes the following function: function invalidchar($strvalue) { if(!ereg(^[[:alpha:][:space:]\'-.]*$, $strvalue)) { That regexp matches if $strvalue consists of zero or more ocurrences of

Re: [PHP] memory allocation problems with fgets

2007-01-15 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-15 16:43:50 +: Hi, I have a script parsing the lines of a (rather large) file: while (!feof($outPluginfh)) { $outPlugin = fgets ($outPluginfh,1024); # process $outPlugin here... } Now, with large files I was running into an memory

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
-Original Message- From: Roman Neuhauser [mailto:[EMAIL PROTECTED] Sent: January 15, 2007 7:09 PM To: Beauford Cc: PHP Subject: Re: [PHP] I lied, another question / problem # [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500: I have file which I use for validating which includes

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-15 Thread Gert Cuykens
On 1/15/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: On 1/15/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: Added db5c29 it includes a new server memory login module some small layout and code modifications. hmm, syntax error: dg.delete()\n dg.js

Re: [PHP] I lied, another question / problem

2007-01-15 Thread 'Roman Neuhauser'
# [EMAIL PROTECTED] / 2007-01-15 18:33:31 -0500: From: Roman Neuhauser [mailto:[EMAIL PROTECTED] # [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500: I have file which I use for validating which includes the following function: function invalidchar($strvalue) {

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
-Original Message- From: Roman Neuhauser [mailto:[EMAIL PROTECTED] Sent: January 15, 2007 7:09 PM To: Beauford Cc: PHP Subject: Re: [PHP] I lied, another question / problem # [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500: I have file which I use for validating which includes

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
-Original Message- From: 'Roman Neuhauser' [mailto:[EMAIL PROTECTED] Sent: January 15, 2007 7:53 PM To: Beauford Cc: 'PHP' Subject: Re: [PHP] I lied, another question / problem # [EMAIL PROTECTED] / 2007-01-15 18:33:31 -0500: From: Roman Neuhauser [mailto:[EMAIL PROTECTED]

[PHP] Hash/checksum for an image?

2007-01-15 Thread Brian Dunning
I want to make sure that a jpg uploaded by the user is unique. I was thinking about storing a hash code for each image in its MySQL record (got a db record for each uploaded image already). Is there an easy way to generate such a string? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Hash/checksum for an image?

2007-01-15 Thread Chris
Brian Dunning wrote: I want to make sure that a jpg uploaded by the user is unique. I was thinking about storing a hash code for each image in its MySQL record (got a db record for each uploaded image already). Is there an easy way to generate such a string? an md5 should suffice.

[PHP] Podcast XML files

2007-01-15 Thread Skip Evans
Hey all, I've been working on this site dealing with Podcasts, something I haven't worked on before, but I am slowing getting the feel for how this works. One of the first bugs I needed to deal with was the fact that probably 40% of the podcasts put in the in the database and then streamed

[PHP] Mailing list combined with PHP based forum

2007-01-15 Thread Dave M G
PHP Users, I'm creating a PHP based forum, and what I'd like to do is have it work so that people can view and read the information via email, just like a mailing list. Yahoo! Groups does this, so I know this sort of thing is possible in principle. But so far as I can tell, open source

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
Does anyone have any idea to this problem? All the code is in the emails I have written to the list. I have temporarily solved the problem by writing my own function not using any pregs, eregs, or any other regs and it works perfectly. It's probably not considered good programming, but it works

Re: [PHP] Mailing list combined with PHP based forum

2007-01-15 Thread Larry Garfield
The closest I know of to that would be to use Drupal[1] with the Organic Groups[2] module and the og2list[3] module. You also need an MTA, of course. Disclaimer: I've not actually set up such a system. I've just seen it discussed as a reasonable facsimile. See the Drupal Groups[4] site for

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
My apologies, but I am just so frustrated right now. It seems my function doesn't work either (if that's even the problem, which at this time I just don't know). Somehow my variable is still getting a value, and I have no idea how. Even if I don't return anything it still gets a value. Basically

[PHP] Bug? (_ENV in PHP v5.2.0)

2007-01-15 Thread Eli
Hi, System: Win32 PHP 5.2.0 Apache 2.0.54 (PHP in CGI mode) CGI vars are not automatically loaded into $_ENV global array. Only when calling getenv('var'), just then the variable appears in $_ENV. Besides, it seems that the env vars are loaded automatically into