RE: [PHP] Adding text before last paragraph

2007-08-27 Thread Brian Rue
h, the replacement string gets inserted at the matched position. I hope that made at least a little bit of sense :) If you're doing 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. -

Re: [PHP] Adding text before last paragraph

2007-08-27 Thread Brian Rue
o hear any comments 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="Firs

[PHP] Re: CURL receiving content data

2007-08-24 Thread Brian Rue
ally helpful for me; give 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

[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: 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) would be appropriat

[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] 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

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.

[PHP] mysql_query() problem

2001-12-16 Thread Brian Rue
"'"; $result = mysql_query($query,$conn); if (mysql_num_rows($result) != 0) { //*this is the line that returns the error* return true; } else { return false; } } I've checked that the connection works, and that the query is what it should be, and the query works when I t

Re: [PHP] MySQL problem...

2001-04-25 Thread Brian Rue
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 [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 26, 2001 10:28 AM > To: [

[PHP] MySQL problem...

2001-04-25 Thread Brian Rue
etting a result back from 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]