Alain Barbu wrote:
> Hi,
>
> Is there any free ODBC Driver for ORACLE 9i to use with PHP, APACHE, LINUX
> ?
>
> Regards
> Alain
The Oracle Client software includes a perfectly good ODBC driver. If you
install the client it will be included.
--
Dave Smith
[EMAIL PROTECT
Chris,
I'm assuming you're running this thing on *nix.
Session variables are stored on the file system. PHP writes them out to
/tmp, where it subsequently reads them upon request. The question is:
How good at caching is your DB? If it can cache common select queries,
then you are probably bett
Perhaps pg_last_oid() will help:
http://www.php.net/manual/en/function.pg-last-oid.php
--Dave
Dave wrote:
Hi everyone, I am new to the forum.
I am using PHP and PostgreSQL.
After I insert into a table "Task" who's primary key is a serial type (auto
sequence number) I would like to immediately
I am currently serializing some PHP objects and storing them in MySQL.
When I pull them out of MySQL, I unserialize them and use them. Some of
these objects contain PHP code inside of arrays. I'd like to execute
that PHP code rather than display it. Any ideas how to accomplish this?
(btw: I'd l
How about:
$my_array = array(); // clears the whole array (and makes a new one)
Or:
$my_array[$i] = null; // clears a single entry in the array at index $i
--Dave
karthikeyan wrote:
How to clear an array?
i used unset. But it destroys the array property of the variablke itself. I just need t
One thing I do with Postgres that I'm not sure MySQL supports is
Kerberos5 authentication. This way, a user logs in (and they have a user
account on the DB) and I use their remote user name and their Kerberos
ticket to authenticate them to the DB. That works without having to
store a password a
Try grouping your WHERE clauses with parentheses like so:
select * FROM OrderTable WHERE ( submitted=1 AND
dateinserted>='1036386000' AND dateinserted<='1036502796' AND
order_status='Shipped' ) OR order_status='Not Shipped'
I can never remember whether SQL is left-to-right, right-to-left, or
som
hoenster wrote:
>On 9 Oct 2002 at 17:48, Dave Smith wrote:
>
>
>
>>I agree that it is always good practice to use good design even for
>>small projects, because they almost invariably turn into large projects
>>if you don't. ;)
>>
>>This has be
I agree that it is always good practice to use good design even for
small projects, because they almost invariably turn into large projects if
you don't. ;)
This has been some great info. I appreciate it. Can someone explain what
the purpose of a template engine is and possibly draw up a simpl
Folks,
I've just learned a bit about Java Beans and how they are useful in
separating content from style. They let you do XSLT'ish stuff in your HTML
to grab data while not bogging down your HTML with database-related
function calls. I've heard this setup referred to as "templates" and
"3-tie
Try single-quotes instead of double (' instead of "). Could be an
interpolation issue.
--Dave
On Thu, 26 Sep 2002, Hutchins, Richard wrote:
> Can somebody tell me what I might be doing wrong in the code below? I'm
> trying to use a function to perform an often-used db query and return the
> re
Go to www.php.net and type in the name of your database (mysql,
postgres, oracle, mssql) in the search box. That will give you a list of
all the functions available. Getting a blob is generally the same as
getting any other data type. Here's the paradigm:
1. connect to the database
2. execute
Jeffrey is right, but here's an easier way:
$sql = "UPDATE $table SET pages = '$PHP_SELF' WHERE session = '$holy_cow'";
Be sure you use double-quotes to build the string (so that all variables get
interpolated) and single-quotes within. Any non-numeric value has to be quoted for an
SQL stateme
Howdy. I'm working on a PHP-based alternative to GQ, and it is coming
along very nicely thanks to PHP's genius. I have run into an obstacle,
though, and that is getting LDAP schema. I'd like to use the ldap_search()
function or some alternative to capture the schema for an LDAP server so I
ca
14 matches
Mail list logo