Re: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-17 Thread Lupus Michaelis
Ashley Sheridan a écrit : Hi Cameron, As far as I can tell, you have an error in your syntax. You're using a - (hyphen) character in the first match, but Regex uses this to define a range of characters. That's not valuable if hyphen is the last character of the range set. -- Mickaël Wolf

[PHP] Regarding threads...

2008-08-17 Thread Nagalakshmi Parameswaran
Hello friends, hope we all know about threads in java.. Like that, can we use that in php?... Thanks in advance -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-17 Thread Simcha Younger
Hi You did not put a question mark in your character class ([\/\w\.-] and instead you put it together with the session id. The expression looks for a sequence without which is not followed by the next expression --- ?PHPSESSID\=2u0cca. If it would count the last `p` of `.php` then the next

RE: [PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-17 Thread Warren Vail
A textarea is a simple editor, I am assuming you want something better than that, or you wouldn't have looked further. Have you heard the expression (there is no free lunch), it applies here. Strictly speaking, a textarea is a wysiwyg editor, (what you see is what you get) you just don't see or ge

Re: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-17 Thread Cameron B. Prince
Hi Ash, > As far as I can tell, you have an error in your syntax. You're using a - > (hyphen) character in the first match, but Regex uses this to define a > range of characters. It seems that if you don't escape it, the whole > thing behaves a little strangely. For example, using your URL as the

Re: [PHP] undefine variable

2008-08-17 Thread Michael S. Dunsavage
On Sun, 2008-08-17 at 22:26 +0100, Ashley Sheridan wrote: > Hi Michael, > > It seems that you are trying to use the $selected_state variable in the > code, but it hasn't been declared yet. To test if a variable exists, you > can use the isset() function. > > Also, there is a quick way of writing

Re: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-17 Thread Ashley Sheridan
Hi Cameron, As far as I can tell, you have an error in your syntax. You're using a - (hyphen) character in the first match, but Regex uses this to define a range of characters. It seems that if you don't escape it, the whole thing behaves a little strangely. For example, using your URL as the sour

[PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-17 Thread Cameron B. Prince
Hello, I¹ve run into a problem with a regex and need help determining if this is my mistake or a bug. The regex is for inserting a SID into every link in the buffer before it¹s flushed, but only when each link doesn¹t already have a SID. An example of the code is here: $buffer = preg_replace('/

RE: [PHP] Breaking a line in two

2008-08-17 Thread Warren Vail
You might want to consider wordwrap(), which will count out to the length you specify. If the next character is not a blank, it will back up to the first available blank and insert the break character you choose at that point (inplace of the blank), "" is a valid option, and it will continue doing

[PHP] Re: Breaking a line in two

2008-08-17 Thread Lupus Michaelis
Ron Piggott a écrit : This is 23 characters long. I want added after the 12th character, following the first space: I guess you want to use wordwrap and nl2br . -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP Gener

Re: [PHP] Breaking a line in two

2008-08-17 Thread Ashley Sheridan
Hi Ron, This should do the trick: ', $pos, 0); ?> Ash www.ashleysheridan.co.uk --- Begin Message --- Is there a way to add midway through a string, following the first available space? Example: The cat jumped up high. This is 23 characters long. I want added after the 12th character,

[PHP] Breaking a line in two

2008-08-17 Thread Ron Piggott
Is there a way to add midway through a string, following the first available space? Example: The cat jumped up high. This is 23 characters long. I want added after the 12th character, following the first space: The cat jumped up high. would be the desired output. Ron -- PHP General

Re: [PHP] undefine variable

2008-08-17 Thread Ashley Sheridan
Hi Michael, It seems that you are trying to use the $selected_state variable in the code, but it hasn't been declared yet. To test if a variable exists, you can use the isset() function. Also, there is a quick way of writing your if/else check on one line. Here's the changes: foreach($state_list

[PHP] undefine variable

2008-08-17 Thread Michael S. Dunsavage
I'm having a problem running a form script. It used to work before, but now when I submit the form an error pops up and it won't write to the database: This is the error: [Sun Aug 17 16:46:54 2008] [error] [client 127.0.0.2] PHP Notice: Undefined variable: selected_state in /srv/www/htdocs/djto

Re: [PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-17 Thread mike
On 8/17/08, AmirBehzad Eslami <[EMAIL PROTECTED]> wrote: > Dear list, > > I'm looking for a light weight WYSIWYG HTML Editor to allow > users to send private messages to each other in a forum application. > > FCKEditor is too complex and very huge for my purposes. I want a > simple editor. What do

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-17 Thread Ashley Sheridan
Any chance of putting a link to this .js file online so that we can have a look at it? Without that, there's very little anyone can do for you. Ash www.ashleysheridan.co.uk --- Begin Message --- After I took Chris's advice and go to the .js file directly like http://locahost/myfunctions.js, I se

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-17 Thread googling1000
After I took Chris's advice and go to the .js file directly like http://locahost/myfunctions.js, I see the machine that is giving me a hard time says that there's a error in the javascript code. But, I took a look and the code seems fine to me. -- View this message in context: http://www.nabb

Re: [PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-17 Thread Eric Butera
On Sun, Aug 17, 2008 at 8:33 AM, AmirBehzad Eslami <[EMAIL PROTECTED]> wrote: > Dear list, > > I'm looking for a light weight WYSIWYG HTML Editor to allow > users to send private messages to each other in a forum application. > > FCKEditor is too complex and very huge for my purposes. I want a > si

Re: [PHP] Licensing

2008-08-17 Thread Richard Heyes
> No offense, but you asked for pointers. None taken. I may know how to code a reasonable webpage, but selling it when it's done is something else... :-) > I can tell you're a programmer and not a marketer. Exactly. :-) > While your license makes sense to you, the typical person will come away

RE: [PHP] How to submit form via PHP

2008-08-17 Thread tedd
At 2:39 PM -0400 8/15/08, Robert Cummings wrote: On Fri, 2008-08-15 at 13:30 -0500, Jay Blanchard wrote: > Your form tag needs an action statement No it doesn't... without an action statement it will submit to the same URL in which it was presented. Cheers, Rob. Rob: There you go again -- I

Re: [PHP] Licensing

2008-08-17 Thread tedd
At 3:34 PM +0100 8/16/08, Richard Heyes wrote: Hi, Don't think me a money grabbing bast (well, I guess I am...) but I'd just like to know if you've got any input on trying to get people to cough up some readies in return for the mounds of free code I give away. I've updated my licensing page jus

Re: [PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-17 Thread Ashley Sheridan
I've always found FCKEditor to be pretty handy. There is an option to set it to a simple mode, giving only the bold, italic, underlined and link buttons, and this is extendable to include only the buttons you need. It's an absolute doddle to implement in a web app as well; I've used it for several

[PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-17 Thread AmirBehzad Eslami
Dear list, I'm looking for a light weight WYSIWYG HTML Editor to allow users to send private messages to each other in a forum application. FCKEditor is too complex and very huge for my purposes. I want a simple editor. What do you recommend? Thanks in advance -- Kind regards, -behzad -- PHP

Re: [PHP] Re: SOAP - return a list of items

2008-08-17 Thread Luke
why use soap for this? I just use a javascript array for this kind of thing... 2008/8/13 Dan Joseph <[EMAIL PROTECTED]> > Maybe more info will help: > > Here is what I have so far for the WSDL... > > > > > > > > > > > >

Re: [PHP] If Column Exists

2008-08-17 Thread Luke
There is IF EXISTS for tables, is there the same thing for columns in the table like IF EXISTS column IN TABLE table ? Just an idea 2008/8/13 VamVan <[EMAIL PROTECTED]> > Interesting. Thanks guys!! > > On Wed, Aug 13, 2008 at 1:32 AM, Robin Vickery <[EMAIL PROTECTED]> wrote: > > > 2008/8/12 Vam