Re: [PHP] Re: unable to unset reference

2008-02-20 Thread Zoltán Németh
2008. 02. 19, kedd keltezéssel 13.39-kor Shawn McKenzie ezt írta: Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. As it can't

Re: [PHP] More than one values returned?

2008-02-20 Thread Jim Lucas
Nick Stinemates wrote: Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: On Monday 18 February 2008, Nick Stinemates wrote: I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or

Re: [PHP] System errno in PHP

2008-02-20 Thread Michal Maras
Hello Nick I have read http://php.net/fopen from top to bottom, but I could not find how to get system error number. With set_error_handler I can get string for example fopen(hmc_configuration.cfg) [function.fopenhttp://ds63450.mspr.detemobil.de/%7Emmaras/HMC/function.fopen]: failed to open

Re: [PHP] Converting tab delimited file to CSV

2008-02-20 Thread Graham Cossey
On Feb 20, 2008 3:05 AM, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, February 18, 2008 12:08 pm, Graham Cossey wrote: proceed accordingly... My biggest gripe with tab delimited files is that they are quite a bit bigger than comma delimited files so I may have to split the large files I

Re: [PHP] unable to unset reference

2008-02-20 Thread Sylvain R.
Chris [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. I doubt

Re: [PHP] System errno in PHP

2008-02-20 Thread Stut
Michal Maras wrote: I have read http://php.net/fopen from top to bottom, but I could not find how to get system error number. With set_error_handler I can get string for example fopen(hmc_configuration.cfg) [function.fopenhttp://ds63450.mspr.detemobil.de/%7Emmaras/HMC/function.fopen]: failed

Re: [PHP] Converting tab delimited file to CSV

2008-02-20 Thread Graham Cossey
I have a suspision the files I receive are in unicode which is causing the problems. How can I categorically determine if a file uses unicode? Am I correct in believing PHP4 doesn't work with unicode files? -- Graham -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] base url and SEF

2008-02-20 Thread Eric Boo
Hi all, I'm currently parsing the variable $_SERVER['PHP_SELF'] to get the base url of a site. Example: http://www.example.com/~eric/program/index.php?option=abc What I'm interested in getting is http://www.example.com/~eric/program/;, which I am able to get currently. Questions 1) Are there

Re: [PHP] System errno in PHP

2008-02-20 Thread Michal Maras
Hi Hmm.. I know I can check such sings as if file exists or has right permission before fopen. But it does not mean that file will still exists with right permission a moment later when fopen will be issued. And I can't check everything. I can't image how to check whether file is locked, or if

RES: [PHP] Thread Safety

2008-02-20 Thread Thiago Pojda
Tom, That did not do it either. I'm sure I'm missing something stupid, just can't find out what. PHPInfo: System Linux debian 2.6.18-4-486 #1 Mon Mar 26 16:39:10 UTC 2007 i686 Build Date Feb 20 2008 05:43:08 Configure Command './configure'

Re: [PHP] unable to unset reference

2008-02-20 Thread Stut
Sylvain R. wrote: Chris [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory

RES: [PHP] Help on running external command

2008-02-20 Thread Thiago Pojda
You're using single quotes (') and therefore variables within will not be resolved. try either: exec(su - vpopmail -c \/var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/\ . $username); exec('su - vpopmail -c /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/' . $username');

Re: [PHP] Help on running external command

2008-02-20 Thread Hiep Nguyen
On Wed, 20 Feb 2008, Mário Gamito wrote: Hi, I need to run an eternal command from a PHP page. My code is: $username= 'lixo'; $username = 'lixo'; exec('su - vpopmail -c /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/ . $username'); try: exec('su - vpopmail -c

Re: [PHP] Help on running external command

2008-02-20 Thread Zoltán Németh
2008. 02. 20, szerda keltezéssel 14.31-kor Mário Gamito ezt írta: Hi, I need to run an eternal command from a PHP page. My code is: $username= 'lixo'; $username = 'lixo'; exec('su - vpopmail -c /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/ . $username'); But I

Re: [PHP] Converting tab delimited file to CSV

2008-02-20 Thread Andrew Ballard
On Feb 20, 2008 3:54 AM, Graham Cossey [EMAIL PROTECTED] wrote: If it's any help the data I'm getting comes out of a third party Cognos environment. The data opened into Textpad looks like this : Column One Column Two Column ThreeColumn Four Column Five Column Six

[PHP] Help on running external command

2008-02-20 Thread Mário Gamito
Hi, I need to run an eternal command from a PHP page. My code is: $username= 'lixo'; $username = 'lixo'; exec('su - vpopmail -c /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/ . $username'); But I get the error: /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/: Not

Re: [PHP] More than one values returned?

2008-02-20 Thread Nathan Nobbe
On Wed, Feb 20, 2008 at 1:38 AM, Robert Cummings [EMAIL PROTECTED] wrote: Actually, using foreach on an array has less overhead than an iterator on an object. yes they are; see my experiment results here, http://nathan.moxune.com/arrayVsArrayIteratorReport.php and i hear what youre saying

Re: [PHP] base url and SEF

2008-02-20 Thread tedd
At 8:14 PM +0800 2/20/08, Eric Boo wrote: Hi all, I'm currently parsing the variable $_SERVER['PHP_SELF'] to get the base url of a site. Example: http://www.example.com/~eric/program/index.php?option=abc What I'm interested in getting is http://www.example.com/~eric/program/;, which I am able

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Daniel Brown
On Feb 20, 2008 9:59 AM, Mário Gamito [EMAIL PROTECTED] wrote: Of course the code is: $username = 'lixo'; exec(su -c - vpopmail \/var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/\$username); Oh, yes, of course it is! That still doesn't mean that Apache has the right

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Mário Gamito
Hi, Thank you for your answers. I got it working with: //$username = 'lixo'; exec(su -c - vpopmail \/var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/\$username); Now, if I run it from the shell, it creates the directory. From a page on the web server it doesn't. Directory

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Mário Gamito
Of course the code is: $username = 'lixo'; exec(su -c - vpopmail \/var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/\$username); Mário Gamito wrote: Hi, Thank you for your answers. I got it working with: //$username = 'lixo'; exec(su -c - vpopmail \/var/qmail/bin/maildirmake

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Daniel Brown
On Feb 20, 2008 9:52 AM, Mário Gamito [EMAIL PROTECTED] wrote: Now, if I run it from the shell, it creates the directory. From a page on the web server it doesn't. Chances are, the user as which the HTTP server (probably Apache) is running does not have permission to write/create in that

Re: [PHP] More than one values returned?

2008-02-20 Thread Nathan Nobbe
On Mon, Feb 18, 2008 at 9:06 PM, Nick Stinemates [EMAIL PROTECTED] wrote: Thats a good example, and a good reason for passing values by Reference instead of by Value. I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of

Re: [PHP] base url and SEF

2008-02-20 Thread Daniel Brown
On Feb 20, 2008 7:14 AM, Eric Boo [EMAIL PROTECTED] wrote: Hi all, I'm currently parsing the variable $_SERVER['PHP_SELF'] to get the base url of a site. [snip!] Questions 1) Are there security implications in using $_SERVER['PHP_SELF'], and if so, how do I mitigate it? 2) Is using this

Re: [PHP] More than one values returned?

2008-02-20 Thread tedd
At 9:24 PM -0800 2/19/08, Nick Stinemates wrote: Not once did I knock By Reference value passing or pointers. I said, simply, returning an array of objects was usually an indication of poor design. And the difference between a variable, an object, an array, and a pointer is? Look, they all

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Mário Gamito
Hi, ? $username = lixo; exec('su -c - vpopmail /var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/'.$username.'',$ret,$err); echo pre /\n; print_r($ret); echo /pre\n; echo isset($err) ? Error: .$err : null; ? No output at all and I have display_errors = On in php.ini Still no

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Daniel Brown
On Feb 20, 2008 10:30 AM, Mário Gamito [EMAIL PROTECTED] wrote: Please keep the replies on-list, Mario. It helps others out, and ensures that you'll get better advice from a larger group of talented people. ? $username = lixo; exec('su -c - vpopmail /var/qmail/bin/maildirmake

Re: [PHP] unable to unset reference

2008-02-20 Thread Sylvain R.
Stut [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Sylvain R. wrote: Chris [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in

Re: [PHP] Session destruction problem

2008-02-20 Thread tedd
At 2:45 PM -0800 2/19/08, Adil Drissi wrote: Hi, Below you'll find my code. I think now that the problem is in my algorithm, because the is created anytime the page is refreshed. But i don't know how to check if the client was logged out or it is a real new connexion to the page. As you will

Re: [PHP] www. not working

2008-02-20 Thread Daniel Brown
On Feb 19, 2008 10:42 PM, Larry Garfield [EMAIL PROTECTED] wrote: On Tuesday 19 February 2008, Daniel Brown wrote: On Feb 19, 2008 4:43 AM, Christoph [EMAIL PROTECTED] wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records

Re: [PHP] More than one values returned?

2008-02-20 Thread Nick Stinemates
Jim Lucas wrote: Nick Stinemates wrote: Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: On Monday 18 February 2008, Nick Stinemates wrote: I have found, however, that if I ever need to return /multiple/ values, it's usually because of

Re: [PHP] Protected ZIP file with password

2008-02-20 Thread Daniel Brown
On Feb 19, 2008 9:52 PM, Richard Lynch [EMAIL PROTECTED] wrote: For ultimate geekiness, you can install a custom PHP extension I wrote to print out the error message matching 127: http://l-i-e.com/perror :-) Hmm that could come in handy. I'm going to take advantage of your generosity

Re: [PHP] www. not working

2008-02-20 Thread Stut
Daniel Brown wrote: Jocularity aside, DNS was invented in 1983 (shortly after TCP/IP), whereas the WorldWide Web was first invented in 1990. However, if 1989 actually. you remember ENQUIRE (on ARPANET), which was created by Tom Berners-Lee (I had to look up his name, I couldn't remember

Re: [PHP] www. not working

2008-02-20 Thread Richard Heyes
A form of the web existing long before that depending on your definition of the web. To me it's a way for people to share information. That would cover the BBS world which pre-dates LANs by some distance. Spider webs have existed for many a year... -- Richard Heyes

Re: [PHP] www. not working

2008-02-20 Thread Stut
Richard Heyes wrote: A form of the web existing long before that depending on your definition of the web. To me it's a way for people to share information. That would cover the BBS world which pre-dates LANs by some distance. Spider webs have existed for many a year... Yeah, but when was

Re: [PHP] www. not working

2008-02-20 Thread Daniel Brown
On Feb 20, 2008 12:07 PM, Stut [EMAIL PROTECTED] wrote: Richard Heyes wrote: A form of the web existing long before that depending on your definition of the web. To me it's a way for people to share information. That would cover the BBS world which pre-dates LANs by some distance.

Re: [PHP] More than one values returned?

2008-02-20 Thread Nick Stinemates
Nathan Nobbe wrote: On Mon, Feb 18, 2008 at 9:06 PM, Nick Stinemates [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thats a good example, and a good reason for passing values by Reference instead of by Value. I have found, however, that if I ever need to return

Re: [PHP] www. not working

2008-02-20 Thread Jason Pruim
On Feb 20, 2008, at 11:41 AM, Daniel Brown wrote: On Feb 19, 2008 10:42 PM, Larry Garfield [EMAIL PROTECTED] wrote: On Tuesday 19 February 2008, Daniel Brown wrote: On Feb 19, 2008 4:43 AM, Christoph [EMAIL PROTECTED] wrote: Don't do that. Some sites may or may not use www. for whatever

Re: [PHP] www. not working

2008-02-20 Thread Daniel Brown
On Feb 20, 2008 11:47 AM, Stut [EMAIL PROTECTED] wrote: Daniel Brown wrote: Jocularity aside, DNS was invented in 1983 (shortly after TCP/IP), whereas the WorldWide Web was first invented in 1990. However, if 1989 actually. Without putting too much issue into semantics, it wasn't

Re: [PHP] www. not working

2008-02-20 Thread Nathan Rixham
Jason Pruim wrote: On Feb 20, 2008, at 11:41 AM, Daniel Brown wrote: On Feb 19, 2008 10:42 PM, Larry Garfield [EMAIL PROTECTED] wrote: On Tuesday 19 February 2008, Daniel Brown wrote: On Feb 19, 2008 4:43 AM, Christoph [EMAIL PROTECTED] wrote: Don't do that. Some sites may or may not use

Re: [PHP] More than one values returned?

2008-02-20 Thread Jim Lucas
Nick Stinemates wrote: Jim Lucas wrote: Nick Stinemates wrote: Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: On Monday 18 February 2008, Nick Stinemates wrote: I have found, however, that if I ever need to return /multiple/ values,

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-20 Thread Warren Vail
There are lots out there and the free ones like PHP Nuke (perhaps the grand daddy of em all) have all suffered from security issues. The price is free (http://www.phpnuke.org), but the risk is that because hackers can get the same free source, they can identify weeknesses and exploit them, making

Re: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-20 Thread Nathan Nobbe
On Tue, Feb 19, 2008 at 9:41 PM, TS [EMAIL PROTECTED] wrote: Hello everyone. I'm not sure what the budget is but, obviously inexpensive would be nice. Someone turned me on to PHPfox. Yet I don't have any others to compare it to. If you all would be so kind as to put a shout out and vote on

Re: [PHP] www. not working

2008-02-20 Thread Robert Cummings
On Wed, 2008-02-20 at 17:07 +, Stut wrote: Richard Heyes wrote: A form of the web existing long before that depending on your definition of the web. To me it's a way for people to share information. That would cover the BBS world which pre-dates LANs by some distance. Spider

Re: [PHP] Php warning message

2008-02-20 Thread Jason Pruim
On Feb 20, 2008, at 4:29 PM, Yuval Schwartz wrote: Hello and thank you, Another question, I get a message: *Warning*: feof(): supplied argument is not a valid stream resource in * /home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52* ** And I've tried troubleshooting for a while;

Re: [PHP] Php warning message

2008-02-20 Thread Greg Bowser
*$boardFile = MessageBoard.txt; $boardFileHandle = fopen($boardFile,r); for ($counter = 1; !feof($boardFileHandle); $counter += 1) { $colorLine = fgets(boardFilehandle); if ($counter % 2 == 0) { echo font color='00ff00'$colorline/font; } else { echo $colorline; } }

[PHP] Php warning message

2008-02-20 Thread Yuval Schwartz
Hello and thank you, Another question, I get a message: *Warning*: feof(): supplied argument is not a valid stream resource in * /home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52* ** And I've tried troubleshooting for a while; I'm pretty sure I'm opening the file handle correctly and

RE: [PHP] Php warning message

2008-02-20 Thread Andrés Robinet
-Original Message- From: Jason Pruim [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 4:39 PM To: Yuval Schwartz Cc: php-general@lists.php.net Subject: Re: [PHP] Php warning message On Feb 20, 2008, at 4:29 PM, Yuval Schwartz wrote: Hello and thank you,

Re: [PHP] unable to unset reference

2008-02-20 Thread Chris
I don't mean unset($this) is the best wy to allow an object to destroy itself. I just say we miss something to auto destroy objects. We could also think about a magic method like __destroy(). An object that destroys itself is a really bad idea from an architectural point of view. I, as a

Re: [PHP] Php warning message

2008-02-20 Thread Chris
I may be showing my ignorance here... But on your if ($counter % 2 ==0) line what does the % do? Was that possibly a typo? % is the modulus operator, so basically that will alternate between a line having a font tag and not having a font tag. http://www.php.net/operators.arithmetic --

Re: [PHP] Converting tab delimited file to CSV

2008-02-20 Thread Graham Cossey
On Wed, Feb 20, 2008 at 9:50 PM, Chris [EMAIL PROTECTED] wrote: Back to my 'original' problem/question, if I '$f = fopen($file, r)' and 'while ($data = fgets($f))' on the above first format and do a $data = str_replace(\t,,,$data); the resulting file looks like the second example

Re: [PHP] Php warning message

2008-02-20 Thread Daniel Brown
On Wed, Feb 20, 2008 at 4:38 PM, Jason Pruim [EMAIL PROTECTED] wrote: I may be showing my ignorance here... But on your if ($counter % 2 ==0) line what does the % do? Was that possibly a typo? If the line is divisible by 2. Also, it might be good to point out what line 52 is :)

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Chris
Daniel Brown wrote: On Feb 20, 2008 10:30 AM, Mário Gamito [EMAIL PROTECTED] wrote: Please keep the replies on-list, Mario. It helps others out, and ensures that you'll get better advice from a larger group of talented people. ? $username = lixo; exec('su -c - vpopmail

Re: [PHP] Converting tab delimited file to CSV

2008-02-20 Thread Chris
Back to my 'original' problem/question, if I '$f = fopen($file, r)' and 'while ($data = fgets($f))' on the above first format and do a $data = str_replace(\t,,,$data); the resulting file looks like the second example above when opened into Textpad but will not open into separate columns when

Re: [PHP] Php warning message

2008-02-20 Thread tedd
At 11:29 PM +0200 2/20/08, Yuval Schwartz wrote: Hello and thank you, Here is my code if you're interested (it's so that I color every 2nd line in the text): Try something like this instead. In your html: tr class=row?php echo($j++ 1 );? In your css: .row0 {

Re: [PHP] Php warning message

2008-02-20 Thread Casey
On Feb 20, 2008, at 1:29 PM, Yuval Schwartz [EMAIL PROTECTED] wrote: Hello and thank you, Another question, I get a message: *Warning*: feof(): supplied argument is not a valid stream resource in * /home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52* ** And I've tried

[PHP] Re: Php warning message

2008-02-20 Thread Shawn McKenzie
Yuval Schwartz wrote: Hello and thank you, Another question, I get a message: *Warning*: feof(): supplied argument is not a valid stream resource in * /home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52* ** And I've tried troubleshooting for a while; I'm pretty sure I'm opening

[PHP] Re: [PHP-DEV] string operators for assigning class constants

2008-02-20 Thread Jochem Maas
this is a php generals type of question. Sebastian schreef: hi, why isn't it possible to assign class constants like this: class test { const DIR='dirname'.DIRECTORY_SEPARATOR.'anotherdirname'.DIRECTORY_SEPARATOR; } is there some performance issue? classes are defined at

Re: [PHP] Php warning message

2008-02-20 Thread Jochem Maas
Yuval Schwartz schreef: Hello and thank you, Another question, I get a message: *Warning*: feof(): supplied argument is not a valid stream resource in * /home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52* ** And I've tried troubleshooting for a while; I'm pretty sure I'm opening the

Re: [PHP] Session destruction problem

2008-02-20 Thread Adil Drissi
thank you tedd, I understood what you explained to me last time. I was wondering if there is another method to prevent that. Thanks --- tedd [EMAIL PROTECTED] wrote: At 2:45 PM -0800 2/19/08, Adil Drissi wrote: Hi, Below you'll find my code. I think now that the problem is in my

Re: [PHP] Sending SMS via PHP

2008-02-20 Thread johnlin
Let me try and answer your questions. Do you need to receive SMS? If you need to receive SMS, you will need to host your own GSM device or modem so that people can send you SMS. If not, you can just use internet SMS gateways like clickatell to do the work, and post to them by HTTP, XML or

Re: [PHP] Sending SMS via PHP

2008-02-20 Thread Nick Stinemates
johnlin wrote: Let me try and answer your questions. Do you need to receive SMS? If you need to receive SMS, you will need to host your own GSM device or modem so that people can send you SMS. If not, you can just use internet SMS gateways like clickatell to do the work, and post to them by

Re: [PHP] Sending SMS via PHP

2008-02-20 Thread Leonard Burton
HI, The vast majority of carriers have a free to use email to sms gateway for their clients phones. There is a list of each carriers format for the email address. Have someone select the carrier in the form when entering the phone number then you have it sent to the email as specified by the

Re: [PHP] Sending SMS via PHP

2008-02-20 Thread Paul Scott
On Wed, 2008-02-20 at 21:01 -0800, Nick Stinemates wrote: Do you need to receive SMS? If you need to receive SMS, you will need to host your own GSM device or modem so that people can send you SMS. If not, you can just use internet SMS gateways like clickatell to do the work, and post

[PHP] fail on preg_match_all

2008-02-20 Thread Hamilton Turner
Does anyone know why a server would simply fail on this line? $num = preg_match_all($regex, $theData, $match, PREG_SET_ORDER); if i know the file handle is valid (i grabbed it using 'or die'), and the regex is valid hamy -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] fail on preg_match_all

2008-02-20 Thread Chris
Hamilton Turner wrote: Does anyone know why a server would simply fail on this line? $num = preg_match_all($regex, $theData, $match, PREG_SET_ORDER); if i know the file handle is valid (i grabbed it using 'or die'), and the regex is valid What file handle? preg_match doesn't work on

Re: [PHP] fail on preg_match_all

2008-02-20 Thread Jim Lucas
Hamilton Turner wrote: Does anyone know why a server would simply fail on this line? $num = preg_match_all($regex, $theData, $match, PREG_SET_ORDER); if i know the file handle is valid (i grabbed it using 'or die'), and the regex is valid hamy Wow, what a lack of information! If I was

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-20 Thread TS
Hey party people. I have to say I’m a little surprised no hooting and hollering on this topic. I don’t think I heard a single positive comment which worries me. I’m jealous of myspace and facebook too but, someone has to have good news for one of these not so mainstream community appz. W3RD

Re: [PHP] fail on preg_match_all

2008-02-20 Thread Paul Scott
On Wed, 2008-02-20 at 23:34 -0600, Hamilton Turner wrote: if i know the file handle is valid (i grabbed it using 'or die'), and ^ This is probably your problem, you are trying to match on a resource handle, not a string or something. Check out

Re: [PHP] fail on preg_match_all

2008-02-20 Thread Hamilton Turner
Just a follow-up on this, the problem was 'Fatal error: Allowed memory size of 8388608 bytes exhausted' After some nice help, I found that this is actually a common problem with intense regexes in php. Quick fix is using ini_set() to increase your memory_limit to something massive, like