Re: FW: [PHP] fwrite() Append Files

2008-06-27 Thread Stijn Verholen
Hey Alice, Are you sure you can do this with vanilla flavor PHP ? Your professor could be mistaking on this particular assignment. Maybe some kind of webservice could do the trick. ASP.net is really good at handling file I/O. Kind regards, Stijn Chris Scott wrote: Please post the code, I'm

Re: [PHP] REGEX: grouping of alternative patterns [SOLVED]

2007-10-30 Thread Stijn Verholen
Robin Vickery schreef: [snip] Because each of your subpatterns can match an empty string, the lefthand subpattern always matches and the righthand subpattern might as well not be there. Indeed they do, i did not realise that. The simplest solution, if you don't want to completely rethink yo

[PHP] REGEX: grouping of alternative patterns

2007-10-30 Thread Stijn Verholen
Hey list, I'm having problems with grouped alternative patterns. The regex I would like to use, is the following: /\s*(`?.+`?)\s*int\s*(\(([0-9]+)\))?\s*(unsigned)?\s*(((auto_increment)?\s*(primary\s*key)?)|((not\s*null)?\s*(default\s*(`.*`|[0-9]*)?)?))\s*/i It matches this statement: `id` INT

Re: [PHP] DOMDocument -> loadHTML() cuts off html input

2007-08-08 Thread Stijn Verholen
a normal user who has NO CLUE how to use the keyboard to navigate quickly within the list... On Wed, August 1, 2007 3:54 am, Stijn Verholen wrote: Hey List, In my application, I am loading html content into a DOMDocument using loadHTML(). The DOMDocument is validated, then the element with

[PHP] [possible re-post] [Fwd: DOMDocument -> loadHTML() cuts off html input]

2007-08-01 Thread Stijn Verholen
as to why this behaviour is occurring and how to fix it ? Further information available if needed. Thanks in advance, Stijn -- metastable Stijn Verholen Camille Huysmanslaan 114, bus 2 B-2020 ANTWERPEN +32 (0)3 707 08 08 +32 (0)473 47 62 88 [EMAIL PROTECTED] http://www.metastable.

[PHP] DOMDocument -> loadHTML() cuts off html input

2007-08-01 Thread Stijn Verholen
Hey List, In my application, I am loading html content into a DOMDocument using loadHTML(). The DOMDocument is validated, then the element with a certain ID tag is extracted and loaded into a node in the main DOMDocument, which is then presented as html with saveHTML(). This works fine and h