[PHP-DB] Re: PHP 5 Error Handling

2004-09-17 Thread Ognyan Bankov
} $this->response = fgets($this->connection, 1024); } $info = split(" ", $this->response); $this->first = $info[2]; $this->last = $info[3]; } -- Ognyan Bankov [EMAIL PROTECTED] ogre.homelinux.org -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: FULLTEXT and LIKE

2004-07-23 Thread Ognyan Bankov
ATCH() and AGAINST(). B) Create a fulltext index only for the content field and use this kind of select: SELECT * FROM db WHERE author LIKE "%phrase%" OR headline LIKE "%phrase%" OR MATCH(content) AGAINST(phrase); C) None of the above ... is there a better way? Thanks a lot for an

Re: [PHP-DB] Re: How to get PHP to download web contents

2003-07-06 Thread Ognyan Bankov
"Steve B." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Nadim, > It works but not for sites with password window that pops up. I see. That is HTTP Basic Authentication You should use this line: $filename = 'http://someuser:[EMAIL PROTECTED]/'; instead of: $filename = "http://som

[PHP-DB] Re: How to get PHP to download web contents

2003-07-05 Thread Ognyan Bankov
"Steve B." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How would you get PHP to download a file such as a web page and put it in a string? Try this: http://somesite.com?user=someuser&pwd=somepwd";; $handle = fopen ($filename, "r"); $contents = fread ($handle, filesize ($filename)