[PHP-DB] Login session - browser/computer? problem

2003-06-12 Thread Dewi Wahyuni
My boss can't seem to login at all through his laptop to my website. The login process is as follows: from the index.php the person login goes to handler/login.php which checks with the databae, if the user is authorized then put a session variable called loginid and redirect the website to a

Re: [PHP-DB] Login session - browser/computer? problem

2003-06-12 Thread Becoming Digital
If it works for everyone else but not your boss, guess where the problem is? His security settings probably have something to do with it. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Dewi Wahyuni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP-DB] HELP, Still not be able to connect to MySQL

2003-06-12 Thread nabil
GUYS help me please. 1- mysql server in on my own machine.. 2- my machine IP is 192.168.0.1 3- when i tired to connect as localhost, i managed to query. 4- if i tried to to connect using my IP i got no database found... 5- i tried to use mysql_error() ... and it is not an authentication problem as

[PHP-DB] PHP Paging

2003-06-12 Thread F-A-W®
Hi all, I have some data that need to be shown in pages. How can I do paging in PHP? Any code snippet or links are welcome. Thanks FAW - Do you Yahoo!? Free online calendar with sync to Outlook(TM).

Re: [PHP-DB] HELP, Still not be able to connect to MySQL

2003-06-12 Thread Doug Thompson
Your IP users have no permissions. (Hint: N = No) How is this a PHP problem? (Hint: It is all over the mysql list archives.) Doug On Thu, 12 Jun 2003 13:35:21 +0300, nabil wrote: GUYS help me please. 1- mysql server in on my own machine.. 2- my machine IP is 192.168.0.1 3- when i tired to

RE: [PHP-DB] PHP Paging

2003-06-12 Thread Hutchins, Richard
Go to www.phpclasses.org and do a search for paging. I just did and the search turns up over 50 PHP classes that will handle paging in any number of ways. -Original Message- From: F-A-W. [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 7:20 AM To: [EMAIL PROTECTED] Subject:

Re: [PHP-DB] PHP Paging

2003-06-12 Thread Becoming Digital
How can I do paging in PHP? Search the list archives or use one of the paginating classes in the repository. This came up just last week. http://marc.theaimsgroup.com/?l=php-dbw=2r=1s=pagingq=b Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: F-A-W®

[PHP-DB] Postgres BYTEA HOWTO? COMO?

2003-06-12 Thread Quique NoTeLoDigo
Hello, I am using Postgres and I want to put a binary file into a table. I have the table yet, with a bytea field (binary data) But i don't know how to do the INSERTs and the SELECTs, with PHP Could someone help me? Thanks!

Re: [PHP-DB] Re: MySQL, PHP, and XML

2003-06-12 Thread Hardik Doshi
Hi Manuel, Do you have any references for generating XML files from any of the persistent database? Thanks Hardik --- Manuel Lemos [EMAIL PROTECTED] wrote: Hello, On 06/11/2003 11:53 PM, [EMAIL PROTECTED] wrote: Is there an automatic way to insert an XML file into a MySQL DB through

[PHP-DB] hiding db password

2003-06-12 Thread Sallee, Helen
Hi, I'm new to PHP and need to know how I can completely hide Oracle database password used in OCILogon call. Since all .php pages can be read by www user, if the userid and password are coded in the .php page, they anyone can fopen this file and view the contents (right?) - this presents a

Re: [PHP-DB] hiding db password

2003-06-12 Thread Christophe Casalegno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le Jeudi 12 Juin 2003 16:31, Sallee, Helen a écrit : Hi, I'm new to PHP and need to know how I can completely hide Oracle database password used in OCILogon call. Since all .php pages can be read by www user, if the userid and password are coded

Re: [PHP-DB] hiding db password

2003-06-12 Thread mike karthauser
on 12/6/03 3:31 pm, Sallee, Helen at [EMAIL PROTECTED] wrote: ?php putenv(TWO_TASK=ORCL2); putenv(ORACLE_HOME=/u01/home/oracle/product/9.2.0); $conn = OCILogon(USER1,USER1PASS); $query = OCIParse($conn,select * from state); OCIExecute($query); ? Thank you Use an include file buried

Re: [PHP-DB] hiding db password

2003-06-12 Thread Christophe Casalegno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le Jeudi 12 Juin 2003 16:38, mike karthauser a écrit : Then you should be able to do: Include/path/to/pass.inc.php; snip $conn = OCILogon($user,$pass); Which is more secure. I prefer user require_once mort than include for security reasons.

Re: [PHP-DB] hiding db password

2003-06-12 Thread CPT John W. Holmes
?php putenv(TWO_TASK=ORCL2); putenv(ORACLE_HOME=/u01/home/oracle/product/9.2.0); $conn = OCILogon(USER1,USER1PASS); $query = OCIParse($conn,select * from state); OCIExecute($query); ? Thank you Use an include file buried below your site root with $user=USER1;

Re: [PHP-DB] hiding db password

2003-06-12 Thread mike karthauser
on 12/6/03 3:48 pm, CPT John W. Holmes at [EMAIL PROTECTED] wrote: From a web server perspective, though, this is safer because if the web server ever broke and started serving PHP pages as plain text (been there, done that), then at least no one can get to your include file through your web

Re: [PHP-DB] hiding db password

2003-06-12 Thread Brent Baisley
I place all my access info in it's own directory that is not directly accessible via the web. I usually place this on the same level as the CGI directory, which is also not directly accessible. Typically this is one level up from your site directory. If the php module breaks, then includes and

[PHP-DB] Re: [PHP] Headers in body - what am I doing wrong???

2003-06-12 Thread -{ Rene Brehmer }-
At 22:48 11-06-2003, you wrote: You are already pretty far in determining the problem. Indeed the border between the header and content of a mail is an empty line. What if i just give a hint? Look closely: $from = \$name\ $address\r\n; $headers .= From: .$from.\r\n; See ? Yup ... too many

[PHP-DB] Problem with 4.3.2

2003-06-12 Thread Ryan Jameson (USA)
When I change over to 4.3.2 I get this message from phpinfo(); The operating system cannot run %1. ... any ideas? Thanks... Ryan Ryan Jameson Software Development Services Manager International Bible Society -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP-DB] RE: Problem with 4.3.2

2003-06-12 Thread Ryan Jameson (USA)
More info... I only get that message in ISAPI mode. :-\ Ryan -Original Message- From: Ryan Jameson (USA) Sent: Thursday, June 12, 2003 11:10 AM To: [EMAIL PROTECTED] Subject: Problem with 4.3.2 When I change over to 4.3.2 I get this message from phpinfo(); The operating system

RE: [PHP-DB] hiding db password

2003-06-12 Thread Sallee, Helen
Thank you all for your suggestions. I created a hidden file one level above my root directory with significant owner/group permissions that it would be extremely difficult to detect. Looks and works great. Thanks. Helen Sallee VIS Database Administrator -Original Message- From:

Re: [PHP-DB] PHP Paging

2003-06-12 Thread Cory Hicks
FAW, I would look at PEAR and then run, don't walkand get the DB_Pager It smokes anything else I have tried... Cory On Thu, 2003-06-12 at 06:19, F-A-W wrote: Hi all, I have some data that need to be shown in pages. How can I do paging in PHP? Any code snippet or links

Re: [PHP-DB] PHP Paging

2003-06-12 Thread Pierre-Alain Joye
On 12 Jun 2003 16:01:01 -0500 Cory Hicks [EMAIL PROTECTED] wrote: FAW, I would look at PEAR and then run, don't walkand get the DB_Pager It smokes anything else I have tried... little tutorial on: http://www.pearfr.org/index.php/en/article/db_pager hth pierre -- PHP

RE: [PHP-DB] PHP Paging

2003-06-12 Thread Sallee, Helen
If you are on UNIX, you could just use a cgi script and use sendmail command. Helen Sallee VIS Database Administrator http://village.gtedc.gte.com/dataman/ (972) 453-7680 [EMAIL PROTECTED] -Original Message- From: Cory Hicks [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:01

Re: [PHP-DB] PHP Paging

2003-06-12 Thread Pierre-Alain Joye
On Thu, 12 Jun 2003 16:45:00 -0500 Sallee, Helen [EMAIL PROTECTED] wrote: If you are on UNIX, you could just use a cgi script and use sendmail command. paging datas (Page 1 fo 3 1 2 3 ), not send a msg to a pager :) pierre -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

[PHP-DB] How can I get the number of entries retrieved by a SELECT - FROM

2003-06-12 Thread ed anderson
Dell 4500, mem 1g, disk 45g, mhz 2g, Mysql-3.23.54a-linux-i686, PHP-4.30, httpd_2.0.44 1. How do I trap or collect or save the digit 3 generated the mysql SELECT COUNT(*) statement below? 2. The PHP SELECT FROM below (before snip) listed the expected data. Is there a way to get the

Re: [PHP-DB] How can I get the number of entries retrieved by aSELECT - FROM

2003-06-12 Thread Becoming Digital
The PHP SELECT FROM below (before snip) listed the expected data. Is there a way to get the digit 3 into a PHP variable $data = mysql_result($result,1,name)); How do I trap or collect or save the digit 3 generated the mysql SELECT COUNT(*) statement below? Same as above. Store it in a PHP