Re: [PHP] Adding text before last paragraph

2007-08-27 Thread Brian Rue
on that regex's efficiency. -Brian Rue Dotan Cohen wrote: On 27/08/07, Richard Lynch [EMAIL PROTECTED] wrote: On Sun, August 26, 2007 3:41 pm, Dotan Cohen wrote: I have a string with some HTML paragraphs, like so: $text=pFirst paragraph/p\npMore text/p\npSome more text/p\npEnd of story/p

RE: [PHP] Adding text before last paragraph

2007-08-27 Thread Brian Rue
a lot of regex work, I would strongly recommend reading the book Mastering Regular Expressions by Jeffrey Friedl... it's very well written and very helpful. -Brian -Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 3:45 PM To: Brian Rue Cc: php

[PHP] Re: CURL receiving content data

2007-08-24 Thread Brian Rue
it a try if you haven't already. Good luck... -Brian Rue Bruce Steinback wrote: Hi all, First thanks to the people that corrected my dumb mistake on XML parsing a few weeks ago, and let's hope that this is as dumb. I've got a mashup that when contacted attempts to gather feed info

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Brian Rue
In this case $_POST would be the appropriate array, since your form is using the POST method: form method=post Goltsios Theodore wrote: I thought I just did a comment and suggested that it is a lame solution to use $_REQUEST plus I did not know witch of the two method (POST or GET)

[PHP] symlinks

2003-07-03 Thread Brian Rue
Hi, I need to link a url like this: www.mysite.com/?id=5 to a folder like this: www.mysite.com/5 (so that I can access it from the subdomain 5.mysite.com) I'm assuming that symlinks are the best way to do this, but I really don't know how to do it. Any help is greatly appreciated. Thanks

Re: [PHP] Counting Views on records in DB!

2001-12-21 Thread Brian Rue
Add a column to your messages table called views. Whenever you read the message (SELECT message FROM messages_table WHERE messageid='id';), increment the column for that row (UPDATE messages_table SET views = views + 1 WHERE messageid='id';). - Original Message - From: Thomas Edison Jr.

Re: [PHP] Beginner question?

2001-12-21 Thread Brian Rue
Can anyone show me how to split() each line and parse to see if $user exists? // get contents of a file into a string $filename = ./users.txt; $fd = fopen ($filename, r); $contents = fread ($fd, filesize ($filename)); fclose ($fd); // seperate the string into an array of lines $linebreak = \n;

[PHP] mysql_query() problem

2001-12-16 Thread Brian Rue
it into the terminal. Any ideas? Thanks, Brian Rue -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] MySQL problem...

2001-04-25 Thread Brian Rue
MySQL... and it keeps trying to get it. Any help? Thanks, Brian Rue -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] MySQL problem...

2001-04-25 Thread Brian Rue
s:[EMAIL PROTECTED]... some code would be nice to have a look at :) Other than that, check table names, database names, also your result lines, I've found i get that error by not calling a result or calling the incorrect table/database Peter -Original Message- From: Brian Rue [mailt