[PHP] Re: pg_pconnect() question

2002-07-26 Thread Sukumar .S

Hi,

  This is error is coming to you bcoz you have given IDENT as the 
authentication type in your pg_hba.conf file.  Check out this file,
whether you have enabled IDENT as your auth type. If so configure
appropriately users for IDENT authentication.

   For simplicity and for testing purpose, you can just give trust
for localhost and try whether you are able to connect to postgresql or 
not.

-S. Sukumar


 I am trying to connect to postgre_sql database using
 pg_pconnect(). When I try to run it i get the
 following error
 Warning: Unable to connect to PostgreSQL server: FATAL
 1: IDENT authentication failed for user postgres in
 /var/www/html/test.php on line 3
 connection failed 
 
 Please tell me what might be the reason.
 -Varsha
 
 __
 Do You Yahoo!?
 Yahoo! Health - Feel better, live better
 http://health.yahoo.com
 .
 
 


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




[PHP] Re: $HTTP_SERVER_VARS not accessible in Functions (fwd)

2002-07-22 Thread Sukumar .S



What is your PHP Version ?

Try putting the 

   global $HTTP_SERVER_VARS;
   print_r($HTTP_SERVER_VARS);

in your custom function  and check out what is it printing...

-S. Sukumar


 I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but,
 within a custom function() this array appears empty. In the calling script,
 however, the $HTTP_SERVER_VARS[] array is defined.
 
 I thought this was supposed to be superglobal and available on every
 level? If not, is there another command I can use? I also tried $_SERVER[]
 but this appears to be always empty no matter what level I call it on.
 
 Thanks.
 
 Monty
 
 
 .
 
 



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




Re: [PHP] Help! (How are sessions intended to work?)

2002-01-29 Thread Sukumar S.

Dear Adam,

Are you using 'realm' authentication setup?

with regards
Sukumar .S

On Tue, 29 Jan 2002, Adam wrote:

 Date: Tue, 29 Jan 2002 14:47:42 -0600
 From: Adam [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [PHP] Help! (How are sessions intended to work?)
 
 My Setup Specs
 --
 
 PHP 4.1.1, MySQL 3.23.36,  Apache 1.3.19 with mod_auth_mysql on OpenBSD 
 3.0 (OS).
 
 Issue
 -
 
 Scenerio: User provides user_id and password. user_id and password are 
 checked against the database (MySQL). If authentication is true the a 
 session is started based on thier user_id. If autehentication is false 
 Error 403 is displayed to user.
 
 How do you destroy a session/user authentication so the user can not use 
 the browser back button? I have session_destroy() which seems to work 
 fine (deletes session files in /tmp) but when you press the browser back 
 button the exact session that was supposidly destroied is created again. 
 I've tried using unset() to reset variables but that doesn't seem to 
 work either. Any ideas... please epxplain this to me. I'm total lost why 
 this isn't working. BTW, I'm using cookies. Another question I would 
 have is.. to kill the cookie do I have to use set_cookie to remove the 
 cookie from the users browser or is this also destroied in the 
 session_destroy process? If it is suppose to be why is it not doing so?
 
 
 -- 
 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]
 

--
A real friend is one who walks in when the rest of the world walks out
--


-- 
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] Integer in PHP

2002-01-22 Thread Sukumar S.

Hi,

  Use intval(2.05);

  I hope this will do the needful for you.

with regards,
Sukumar .S


On Mon, 21 Jan 2002, Jerry wrote:

 Date: Mon, 21 Jan 2002 13:35:34 -
 From: Jerry [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [PHP] Integer in PHP
 
 Hi,
 
 I'm new in PHP, coming from JavaScript.
 In JavaScript you had the function parseInt which was really useful.
 For example parseInt(2.05) will return 2...
 
 How can I do that in PHP ?
 
 Thanks.
 
 Jerry
 
 
 
 -- 
 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]
 

--
A real friend is one who walks in when the rest of the world walks out
--


-- 
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] Passing. Which method to use?

2002-01-22 Thread Sukumar S.

Hi,
  I'm using sessions extremely to do that. 

with regards
Sukumar .S
On Tue, 22 Jan 2002, Floyd Baker wrote:

 Date: Tue, 22 Jan 2002 01:17:18 -0500
 From: Floyd Baker [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [PHP] Passing.  Which method to use?  
 
 
 Hi once again.
 
 What's the consensus on the best way to pass arrays from page to page?
 
 By serializing?  But I think it's not recommended?
 
 By writing then reading to a text file?  Maybe?
 
 By inputting to and pulling from db records?  Possibilities?  
 
 Any other?  
 
 Thanks in advance.
 
 Floyd
 
 
 --
 
 
 -- 
 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]
 

--
A real friend is one who walks in when the rest of the world walks out
--


-- 
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] PHP Security - view source code

2002-01-21 Thread Sukumar S.

Dear all,

  One more measure thing to stop getting the source code with .inc 
is to deny the files which has inc extension in Apache httpd.conf itself
with DIRECTORY configuration.

with regards,
Sukumar .S

On Thu, 17 Jan 2002, Radu Filip wrote:

 Date: Thu, 17 Jan 2002 02:10:01 +0200 (EET)
 From: Radu Filip [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Security - view source code
 
 On Thu, 17 Jan 2002, [EMAIL PROTECTED] wrote:
 
  I've seen a number of sites for example that didn't have the .inc extension 
registered,
  include() doesn't care about that, but if your includes are under the document 
root of your
  website  (that happens a lot too, i don't know why ?) and you specify the exact 
name of
  the include in your browser (or worse, the directory is browsable from the web), 
the webserver
  will default to text/plain content and display the source. Bad thing since 
includes usually contain
  passwords and stuff.
 
 I agree with this, since I saw such mistakes wit my own eyes. IMHO, the
 best way to avoid this kind of problems is to:
 
 (1) avoid using .inc files; use .php files like for normal script
 (2) turn Indexes directive to off by default per website
 (3) make directories 711 instead of 755
 (4) develop an organized php scripts structure outside DocumentRoot and
 place the files that you will eventually include in an include
 sudirectory within that structure
 (5) review changes all the time, check your weblogs and be vigillent :-)
 
 Ave,
   Socrate
 
 -- 
 Radu Filip
Network Administrator @ Technical University of Iasi
 [EMAIL PROTECTED] Information Technology and Communication Center
 http://socrate.tuiasi.ro/  [EMAIL PROTECTED] | http://ccti.tuiasi.ro/
 
 
 -- 
 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]
 

--
A real friend is one who walks in when the rest of the world walks out
--


-- 
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] PHP-JavaScript

2002-01-21 Thread Sukumar S.


 You can store the data which is in JS to PHP when submiting the page.

From the Web Page which has the form, include some hidden type variables
in the html form. On submit call the JS function and store the JS Data
into the WEB form hidden variable and then submit it. so that your php
application which process the form would get the values. I think i
understood the question well...

with regards,
Sukumar .S

On Mon, 21 Jan 2002, Tim Ward wrote:

 Date: Mon, 21 Jan 2002 10:20:31 -
 From: Tim Ward [EMAIL PROTECTED]
 To: [iso-8859-1] Mårten Andersson [EMAIL PROTECTED],
  Richard Crawford [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] PHP-JavaScript
 
 Or get the JS to rewrite a query string in a link, but personally I wouldn't
 rely on JS that far.
 
 Tim
 www.chessish.com http://www.chessish.com 
 
   --
   From:  Richard Crawford [SMTP:[EMAIL PROTECTED]]
   Sent:  20 January 2002 23:32
   To:  Mårten Andersson
   Cc:  [EMAIL PROTECTED]
   Subject:  Re: [PHP] PHP-JavaScript
 
   In a word... No.
 
   Well...
 
   No.
 
 
   Mårten Andersson wrote:
 
Is it posible to get values from javascript to PHP? Without having
 to 
post the variables..

Thanks //Mårten

_
Chatta med vänner online, prova MSN Messenger:
 http://messenger.msn.se


 
 
 
   -- 
   Sliante,
   Richard S. Crawford
 
   mailto:[EMAIL PROTECTED] 
   http://www.mossroot.com
   AIM:  Buffalo2K   ICQ: 11646404  Yahoo!: rscrawford
   MSN:  [EMAIL PROTECTED]
 
   It is only with the heart that we see rightly; what is essential is
 
   invisible to the eye.  --Antoine de Saint Exupery
 
   Push the button, Max!
 
   
 
 --
 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]
 

--
A real friend is one who walks in when the rest of the world walks out
--


--
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]