[PHP] Re: Using File to count number of lines

2005-08-04 Thread Brandon Ryan
Are you running this php code in windows, where a line break is made up of a carriage return and a line feed? The file was probably created on unix/linux where the line break is just a line feed. If you try to read this file in windows, it will think everything is on one line. You either have

Re: [PHP] Right syntax for max value??

2005-06-14 Thread Brandon Ryan
I would do $getnewstitle = SELECT newstitle FROM `news` ORDER BY news_id DESC LIMIT 1; This sorts the records by news_id and the limit 1 only returns the first record. On 6/14/05, twistednetadmin [EMAIL PROTECTED] wrote: I am making a table at my homepage that automatically collects the

Re: [PHP] Updating an open page with PHP

2005-06-14 Thread Brandon Ryan
No, not necessarily... Javascript actions on the main page, including form submits or timers can load a new page in the hidden IFRAME. The new page in the IFRAME could be a php page, that generates new javascript code which is then run when the page in the IFRAME is loaded. The javascript code

Re: [PHP] Problem With System Call

2005-05-19 Thread Brandon Ryan
I think what Kim is asking is, on your copy of RedHat Fedora Core 3, is are the SELinux security features enabled? On 5/19/05, Michael Stearne [EMAIL PROTECTED] wrote: No. It's RedHat Fedora Core 3. Michael On 5/19/05, Kim Madsen [EMAIL PROTECTED] wrote: -Original Message-

Re: [PHP] regex question

2005-05-16 Thread Brandon Ryan
Try (for example if character was A) ... ([^A]|^)A([^A]|$) This matches four cases: A is at beginning of string and there is another letter after it, A has a letter before it and a letter after it, A is at end of string and there is a letter before it, or A is the only character in the string.

Re: [PHP] php works in IE not Firefox?

2005-05-13 Thread Brandon Ryan
It makes no difference what browser you are using... that site seems to be down even with IE. On 5/13/05, Jim Moseby [EMAIL PROTECTED] wrote: I get the same message with firefox and IE: There seems to be a problem with the MySQL server, sorry for the inconvenience JM -Original

Re: [PHP] base64_encode in URLs

2005-05-11 Thread Brandon Ryan
Joe, this may be a little off topic, but most modern email clients wont show images in HTML unless the user clicks to show images manually. This could fool your automatic counting and email verification. On 5/11/05, Joe Harman [EMAIL PROTECTED] wrote: HA... Thanks for your thoughts... I am

Re: [PHP] Carriage Return problem!

2005-04-12 Thread Brandon Ryan
Make sure there are no extra characters (including linefeeds) after the closing ? in your php source file. Brandon Ryan On 12 Apr 2005 19:42:17 -, Dipesh Khakhkhar [EMAIL PROTECTED] wrote: Hi, I am using php to generate and xml output file from another xml file using xsl