Re: [PHP] More php Questions about PHP 4.3.4 (cli)

2004-03-11 Thread Marcelo Pereira Fonseca da Silva
The ocilogon() function should have in third parameter
something like

$db=(DESCRIPTION=
 (ADDRESS_LIST=
   (ADDRESS=(PROTOCOL=TCP)
 (HOST=HOST_HERE)(PORT=PORT_HERE)
   )
 )
  
(CONNECT_DATA=(SERVICE_NAME=DATABASE_NAME_HERE))
 );

and two variables must be able on script..
putenv(ORACLE_HOME=/path/to/oracle);
and ORACLE_SID
putenv(ORACLE_SID, ORACLE_SID_HERE);

hope that helps

--Marcelo






--- Martin McCormick [EMAIL PROTECTED]
escreveu:  I installed the FreeBSD port of php4.3.4.
 In order
 to query a
 remote database server running Oracle8I, I am
 supposed to use oci
 commands.  I have a test script that one would think
 should do nothing
 except briefly connect to the remote server:
 #!/usr/local/bin/php
 ?
 //Login to SQL
 $numero= ocilogon(application, password,
 servername);
 
   Instead, I get:
 
 Fatal error: Call to undefined function:  ocilogon()
 in /usr/home/martin/tmp/vm on line 8
 
   There is a user configuration box to set up when
 building the
 port.  I do not disturb the default flags, but also
 selected the mssql
 support as well as mysql support.  I also selected
 Oracle support, but
 that turns out to be for Oracle versions up to 7. 
 If you have Oracle7
 or higher, you should use the oci8 support.  There
 is no oci8
 selection in the user configuration box, so it isn't
 like I forgot it.
 
   Any ideas as to why php gives me this fatal error?
 
   Our queries to the mssql server do work, but I am
 having no
 luck at all establishing communication with the
 Oracle8I server which
 runs on a Windows platform.
 
   Is there a good oci command to use to prove that I
 have
 established communication with the server?
 
   As always, thanks for any constructive ideas.  This
 is kind of
 a border-line question between whether it should be
 in this list or
 the FreeBSD-questions mailing list, but it is also a
 bit specialized,
 and maybe someone will recognize the problem.
 
 Martin McCormick WB5AGZ  Stillwater, OK 
 OSU Information Technology Division Network
 Operations Group
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
  

__

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] The page cannot be displayed

2001-04-24 Thread Marcelo Pereira

Hi All,

I'm in troubles when I access Horde using win32 clients. This is a aplications built 
in PHP.
I can see (and fill) the form ``horde/imp/login.php'' but when it calls for 
``redirect.php'' (this file is at same folder that login.php) then I receive the 
famous ``this page cannot be displayed''.
I've read the php documentation but I dont think this is the problem..

Using unix clients the things goes very well...

What did I go wrong ??

See ya,

Marcelo Pereira
Unicamp - Brazil



[PHP] Reauthenticate

2001-04-17 Thread Marcelo Pereira

Hi All,

I'm in trouble to authenticate each user (using a database).
When the user sucesfully login on your area the php script send a cookie,
and every php script reads this cookie. So when the user log ou the php
script expires the cookie and then the user cannot bookmark the page and
turn back.. but, if the user clicks the 'logout' button, I expire the
cookie e show the main screen, but, by other side, if the user click at
'back button' then he can see the page... I would like to:

- Each page look for the cookie, even if the back button is pressed.
- If the cookie isn't there, then a 'expires page' is showed

Which is the better way to do it ???

Thanks in advance,

Marcelo Pereira
Programmer


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Field

2001-04-17 Thread Marcelo Pereira

Hi,

How about enclose the parameters with quotes ???

See ya,

Marcelo Pereira
Programmer

- Original Message -
From: Mike [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 17, 2001 10:17 AM
Subject: [PHP] Form Field


 Im trying to pass a form variable to anouther page with the following:
  input type="radio" value=?php echo ('1'.$row[0][0]); ? name="R1"?php
 echo ($row[0][0]); ?

 Everything works fine if there are no spaces(Buffalo) but if there are
 spaces ( San Francisco) I only get the first word.I've never had this
 problem before and I dont know what I did.Any suggestions?
 Thanks
 Mike P
 [EMAIL PROTECTED]




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] libphp3.so

2001-04-02 Thread Marcelo Pereira

Hi all,

I'm having trouble when installing PHP3-3.0.18.
I've done:

tar xzvf php3-3.0.18.tar.gz
cd php3-3.0.18
./configure --with-pgsql
./make
./make install

Then, in the INSTALL file says to add the follow line at /etc/httpd/conf/httpd.conf

LoadMoldulemodules/libphp3.so

But, I dunno where is this (libphp3.so) file... and I also don't know where is the 
mod_php3.so file.
What did I do wrong ???


Thanks in advance,

Marcelo Pereira
Programmer




[PHP] Instalation

2001-04-02 Thread Marcelo Pereira

Hi,

Why can't I found neither LIBPHP3.SO nor MOD_PHP3.SO ???

Thanks

Marcelo Pereira
Programmer



[PHP] PHP3 - Instalation

2001-04-02 Thread Marcelo Pereira

Hi all [again],

I'm becoming crazy installing PHP3 on my system I had already been using PHP but 
with no postgresql support, now I need it and I done:

get php3-3.0.18.tar.gz
untared it
./configure --with-pgsql
./make
./make install

The INSTALL file says to add
-LoadModules libphp3modules/libpgp3.so
WHERE is this file ???

I could NOT get it running,

Is there anyone here that could, for the love of god, help me to install it with pgsql 
support on my system ???

Thanks, really thanks, in advance,

Marcelo Pereira
Programmer



[PHP] WebCam and PHP

2001-03-23 Thread Marcelo Pereira

Hi All,

How can I show images, captured by a webcamp, in my website using PHP ???

Thanks,

Marcelo Pereira





[PHP] PHP Book

2001-03-12 Thread Marcelo Pereira

Hi all,

I am new at PHP and I realize that the pdf format of the PHP Book by Bruce Momjian at 
http://www.php.net has been removed from there and now there is only the html format 
(I guess I arrived very late to get the pdf format).

Has anybody downloaded the pdf file of this book when the link was active ??? 
I really would like to get it.

Thanks in advance,

Marcelo Pereira
Unicamp - Brasil



[PHP] PHP PostgreSQL

2001-03-04 Thread Marcelo Pereira

Hi, All.

I have to build a web site and I was
studying postgreSQL, but, whether I am
quite wrong or this database does not
support Foreign Key.

Does anyone use postgreSQL and know
how handle Foreign Keys ???

Thanks,

Marcelo Pereira
Computer Programmer


__
O BOL é Top10 no iBest! Vote já para torná-lo Top3!
http://www.bol.com.br/ibest.html





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]