[PHP-DB] Re: boolean values in postgresql

2005-02-21 Thread Mike Morris
On 21 Feb 2005 at 20:54, Bret Hughes said about "boolean values in postgresql": > Question: Assuming the above assumption is correct, what is the most > efficient way to define a column that will take only two values who's > values will evaluate as intended in php? How about a CHAR(1) with "Y"/"

[PHP-DB] boolean values in postgresql

2005-02-21 Thread Bret Hughes
I am adding some functionality to a php/postgres based system and have a value that I want to be a boolean. digging around the pg doc I see the boolean datatype. Cool I say. So I happily alter the table and add the boolean column notify all is good until I retrieve it using pg_fetch_object and

Re: [PHP-DB] fread()

2005-02-21 Thread Edoardo Serra
At 11.12 21/02/2005, you wrote: Hi All, I'd just like to know if it is possible to use fread to read the html content of a serverside coded pageas in something like this: In theory yes, but if you want to read the html content after php processing you should use: $filename = "http://localhos

Re: [PHP-DB] preg_replace and database

2005-02-21 Thread Petar Nedyalkov
On Sunday 20 February 2005 00:52, Özgür Odabasi wrote: > hi all, > > I have trouble with preg_replace and querying database, > my code is below, > > include("h/h.php"); > > function getImgAttributes($id){ > $dsn = array( > 'phptype' => "mysql", > 'hostspec' => "localhost", > 'databas

Re: [PHP-DB] fread()

2005-02-21 Thread Petar Nedyalkov
On Monday 21 February 2005 12:12, Yemi Obembe wrote: > Hi All, > I'd just like to know if it is possible to use fread to read the html > content of a serverside coded pageas in something like this: try highlight_file(); > > $filename = "/usr/local/something.php"; > $handle = fopen($filename,

Re: [PHP-DB] fread()

2005-02-21 Thread anirudh dutt
u'll get actual the _contents_ of the file, not the 'html content'. so even if it's a .php, u'll get it's source...it wouldn't be parsed by the webserver. it'd be like "cat /usr/local/something.php" (as long as the web server running ur script has read access to the file). if it's not a local file

[PHP-DB] fread()

2005-02-21 Thread Yemi Obembe
Hi All, I'd just like to know if it is possible to use fread to read the html content of a serverside coded pageas in something like this: - A passion till tomorrow, Opeyemi Obembe | ng.clawz.com - D