Re: [PHP] Can't find oci.h
In mail.php.general, Donahue, Peter <[EMAIL PROTECTED]> wrote: > I'm building Php (4.3.3) on Solaris and am including oci8 support. > Configure works fine. When I try to build, I get an error on the compilation > of ext/oci8/oci8.c - it can't find oci.h, and then I get tons of errors, > I suppose all stemming from this. Little late, I know - tho I just got it working myself (only to have to reformat and drop from Redhat9 to 7.3, so I can use Oracle 8.1.7 client instead of 9 - compat, etc :( ) You need to reinstall the Oracle client - but this time use the full Administrative Install. Then when you get to check the installed components look through and check "Oracle Call Interface". Install will go as before and this time you'll find an oci.h lurking in an obscure directory: find . -name oci.h -print should let you know where it is. Hope this helps. Paul. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Oracle - Win32
In mail.php.general, imran <[EMAIL PROTECTED]> wrote: [snip] > format like such: php_xxx. For Oracle DD, you'll need php_oracle.dll. Take > the oracle dll. Only use the oracle dll if you are using oracle 7 client libs. If you are using Oracle 8+ then you want the oci8 dll. Do not copy the php_oracle.dll and do not enable that extension in php.ini > THAT's it! > Save the php.ini. > > Now you can call Oracle functions You also have to ensure that you have installed the Oracle Client Library software. All php does is to convert the oracle calls to oracle's api and gets the Oracle client lib to do the work. Without this, you won't get too far. You can download the oracle client libs at otn.oracle.com (create a free account). Hope this helps. Paul. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] opening utf-8 files - chinese mb characters
In mail.php.general, Merlin Morgenstern wrote: > Hello everybody, > > I am having some trouble with utf-8 encoding. The html file containes > chinese characters and looks ok, when opened in a browser. > > Now I want to extract some text from the file. In order to do this I do: > > $handle = fopen($file, "r"); > $contents = fread($handle, filesize($file)); > > echo $contents; > > The chinese characters are gone by then. They show up as questinomarks > or wired characters. To fix it I tried to add: > > $contents = utf8_decode($contents); You don't want this. > header("Content-Type: text/html; charset=utf-8"); You do want this. > But still... no luck :-( > > Has somebody an idea why?? Try it with just the Content-Type: header addition. header('Content-Type: text/html; charset=UTF-8'); Regards, PG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Double results??
In mail.php.general, Dan Shirah <[EMAIL PROTECTED]> wrote: > $name_result = ifx_query ($name_query, $connect_id); > while ($name = ifx_fetch_row($name_result)) { > $party_name = TRIM($name['caa44240004']); > print_r($name); > } > > print_r($name) will return: > John > John > Mary > Mary > Cindy > Cindy I don't know anything about the Informix functions, but in other database types fetch_row can return "doubly indexed" entries. e.g. array( 0 => 'John', 'name' => 'John', ) I would suggest you use var_dump() or var_export() to get a better idea of what is in $name - you might find if this is the case that your code is not necessarily wrong because you are getting the right number of rows. Note it is hard to tell from your code - because your code would run print_r() for every loop - but that isn't what your suggested output is. Regards, PG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php