php-windows Digest 4 Mar 2002 12:25:16 -0000 Issue 1028
Topics (messages 12426 through 12429):
Re: Warning: Undefined variable
12426 by: crizz
Re: Counter in PHP and System Variables
12427 by: Matt Hillebrand
PHP - INGRES II Functions
12428 by: Ismini Tsichli
oracle + php + apache +w2k
12429 by: quebe
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
God, I thought no one will tell me! Thanks a lot Mike ;)
"Mike Flynn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Duh, just let him know the proper setting:
>
> error_reporting = E_ALL & ~E_NOTICE
>
> That will keep everything but minor warnings. That's what most people
use.
>
> -Mike
>
> At 07:40 PM 3/2/02 -0800, alain samoun wrote:
> >Crizz:
> >Obviously you don't want to do that at this point - No error reporting
for a
> >novice - can be challenging...
> >Show us your script and we may be able to help. (Sorry I did not see your
> >previous post(s)...)
> >A+
> >Alain
>
--- End Message ---
--- Begin Message ---
You can use the PHP variable $HTTP_USER_AGENT or you can use javascript's
navigator.appName and navigator.appVersion.
To create a hit counter, use a database table (named pages?) with a column
called hits. Every time the page loads, do:
mysql_query("update pages set hits=hits+1 where id='$id'");
$result = mysql_query("select hits from pages where id='$id'");
list($hits) = mysql_fetch_array($result);
You could have the $id embedded in your page, or you could set up something
more dynamic.
Matt Hillebrand
-----Original Message-----
From: Wayne Hinch [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 5:57 AM
To: PHP Windows
Subject: [PHP-WIN] Counter in PHP and System Variables
Hi,
I'm currently doing an assignment at university.
Is it possible that a hit counter can be created using php if so how can
this be done?
Lastly how can I show the what browser the client is using in their
browser?
Cheers
Wayne
--- End Message ---
--- Begin Message ---
Hi!
Has anyone used the INGRES II functions in PHP for Windows?
PHP and Apache crash when I activate "extension=php_ingres.dll" in php.ini, I think
there might be a problem with php_ingres.dll file.
Hope someone can help me out.
Ismini.
--- End Message ---
--- Begin Message ---
Hi
when I'm trying to connect to my oracle db with
<?php
dl("php_oci8.dll");---------------------------- I've put this because i
though that could help
print "<HTML><PRE>";
$db = "authors";
$c1 = ocilogon("pawel","pawel",$db);
function select_data($conn)
{ $stmt = ociparse($conn,"select * from pawel.authors");
ociexecute($stmt,OCI_DEFAULT);
echo $conn."----selecting\n\n";
while (ocifetch($stmt)){
echo ociresult($stmt,"au_fname")." ";
echo ociresult($stmt,"au_lname")." ";
echo ociresult($stmt,"title")."\n";
}
echo $conn."----done\n\n";
}
select_data($c1);
ocilogoff($c1);
print "</PRE></HTML>";
?>
I've an errors like :
"Warning: Unable to load dynamic library 'c:/php/php_oci8.dll' "
and :
"Fatal error: Call to undefined function: ocilogon() in ...".
In my php.ini I've enabled the extension=php_oci8.dll and
extension_dir=c:\php
The file php_oci8.dll I've put to the path c:\php; c:\php\extension;
c:\winnt\system32
can someone help me?
best regards - Pawel
--- End Message ---