php-general Digest 15 Mar 2006 04:11:21 -0000 Issue 4016

2006-03-14 Thread php-general-digest-help
php-general Digest 15 Mar 2006 04:11:21 - Issue 4016 Topics (messages 231897 through 231921): Execute a shell command using thttpd-php 231897 by: Nelson Carreira 231914 by: Chris Is this password protection script secure? 231898 by: IG 231900 by: Anthony

[PHP] Re: Convert all named entities into numeric character references

2006-03-14 Thread Jacob Friis Saxberg
Thanks, I could also use Tidy and make it do the convert. Jacob On 3/9/06, Robin Vickery [EMAIL PROTECTED] wrote: On 06/03/06, Jacob Friis Saxberg [EMAIL PROTECTED] wrote: Does anyone know of a Php funtion that can do this: http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html

[PHP] Automatic authentication using browser's certificate

2006-03-14 Thread DeMZed
Hi all, I would like to setup a login authentication based on users' certificates bundled into the customer's browser. I've added a valid SSL Certificate in my browser, signed with a third-party CA, and I would like that the user connected to my website would be automatically authenticated if

Re: [PHP] array_search and multi-dimensional arrays

2006-03-14 Thread List Manager
jonathan wrote: I'd like to return the first key value in the following array such that England would return 1 rather than 3 which is the second key value. Any help would be greatly appreciated. $c[1][]=Vietnam; $c[1][]=China; $c[1][]=Thailand; $c[1][]=England; $c[2][]=USA; $c[2][]=Japan;

Re: [PHP] Editing an existing pdf?

2006-03-14 Thread Meron
It worked fine and does fill well except when it comes to the downloading of the file. I tried to provide a hyperlink so that the fdf will be downloaded as a filled pdf when the link is clicked in internet exploreer. I also make sure that this particular file type is downloaded with acrobat

Re: [PHP] array_search and multi-dimensional arrays

2006-03-14 Thread M. Sokolewicz
List Manager wrote: jonathan wrote: I'd like to return the first key value in the following array such that England would return 1 rather than 3 which is the second key value. Any help would be greatly appreciated. $c[1][]=Vietnam; $c[1][]=China; $c[1][]=Thailand; $c[1][]=England;

[PHP] Hostname Filtering

2006-03-14 Thread Dan
I have a few PHP scripts where I log hit to a page i.e. IP and hostname via a look up. What I want to do is create essentially a blacklist to prevent bots and other hosts and IP from being logged and skewing my stats. My local IP/host and the MSN and Googlebot hits should not be in my

[PHP] Execute a shell command using thttpd-php

2006-03-14 Thread Nelson Carreira
Hello, I'm quite new to PHP language and although I got into it pretty fast I'm having some trouble executing system commands using php. I'm using thttpd-php_2.21b-2_mipsel in a Linksys router and I can only execute system commands like ls and cd from the PHP. I tried using the different

[PHP] Is this password protection script secure?

2006-03-14 Thread IG
Hello. I got a password protected login script of t'internet a while back and have implemented it. I just want to make sure it is secure. I am aware that the password is stored directly in the database and I don't think this is a good thing. If the following could be looked at to see if

Re: [PHP] Is this password protection script secure?

2006-03-14 Thread Anthony Ettinger
On 3/14/06, IG [EMAIL PROTECTED] wrote: Hello. I got a password protected login script of t'internet a while back and have implemented it. I just want to make sure it is secure. I am aware that the password is stored directly in the database and I don't think this is a good thing. If the

RE: [PHP] Hidding HTML Input Elements values approach

2006-03-14 Thread pedro mpa
-Mensagem original- De: David Dorward So the value attribute contains an encrypted representation of the country name ... which is transmitted in clear text right next to it? If you want encryption, why not just use SSL? The value attribute contains an encrypted value of a row id

Re: [PHP] setcookie security concerns

2006-03-14 Thread Gerry Danen
Which someone could do this, is another question I have. The user? He's do something to his own computer, no? Gerry On 3/14/06, tedd [EMAIL PROTECTED] wrote: Hi: I've been using a php style switcher allowing users to change css. The code follows: Within the head tags. link

Re: [PHP] Is this password protection script secure?

2006-03-14 Thread Gerry Danen
On 3/14/06, IG [EMAIL PROTECTED] wrote: Hello. I got a password protected login script of t'internet a while back and have implemented it. I just want to make sure it is secure. I am aware that the password is stored directly in the database and I don't think this is a good thing. If the

Re: [PHP] Hostname Filtering

2006-03-14 Thread Philip Hallstrom
I have a few PHP scripts where I log hit to a page i.e. IP and hostname via a look up. What I want to do is create essentially a blacklist to prevent bots and other hosts and IP from being logged and skewing my stats. My local IP/host and the MSN and Googlebot hits should not be in my stats

Re: [PHP] Is this password protection script secure?

2006-03-14 Thread Robin Vickery
On 14/03/06, IG [EMAIL PROTECTED] wrote: Hello. I got a password protected login script of t'internet a while back and have implemented it. I just want to make sure it is secure. It's not. 1. It only works with register_globals turned on. Not a good idea - register_globals has been off by

Re: [PHP] setcookie security concerns

2006-03-14 Thread Chris Shiflett
tedd wrote: link rel=stylesheet type=text/css media=screen href=?php echo (!$thestyle)?'style1':$thestyle ?.css It's not entirely clear from this example, but am I correct in assuming that $thestyle is the same as $_COOKIE['thestyle'] in this case? In other words, are you relying on

Re: [PHP] Is this password protection script secure?

2006-03-14 Thread Satyam
- Original Message - From: Anthony Ettinger [EMAIL PROTECTED] You should encrypt the password in the database, with a one-way hash, then you simply compare what's in your db to what the login form submits. That way if you get hacked, or your admin goes postal, you won't have people's

RE: [PHP] Hidding HTML Input Elements values approach

2006-03-14 Thread David Dorward
pedro mpa wrote: So the value attribute contains an encrypted representation of the country name ... which is transmitted in clear text right next to it? If you want encryption, why not just use SSL? The value attribute contains an encrypted value of a row id in the database table for

[PHP] PHP/Oracle : bug with accent...

2006-03-14 Thread David BERCOT
Hi, I have a big problem with my Debian server (Apache 2, PHP 5, Oracle Instant Client). I've modified the environment variable NLS_LANG and, with SQL*Plus, everything is ok ! But, in a PHP page, I can't insert a value with accent (ex: Irène). I can read data with accent, but not inserting !!! I

Re: [PHP] Is this password protection script secure?

2006-03-14 Thread Oscar Gosdinski
Instead of using a hash if the password string, i prefer to save the following in the password field of my user's table: md5($user . $password) There are some md5 databases around that can be used to get the cleartext password from the hash if your database is compromised, if you use this method

[PHP] Creating forms dynamically

2006-03-14 Thread Paul Goepfert
Hi all, I have been working on a page where I have a form. I currently have the form in an else block with no access to it if I need to redisplay the form incase of errors. To be more specific I want to redisplay the page with the errors displayed. I would like to have the form coded once. It

[PHP] Re: Creating forms dynamically

2006-03-14 Thread Paul Goepfert
Class validation { //functions } if(isset($submit)) { //calls to validation code } else { //display webpage } On 3/14/06, Paul Goepfert [EMAIL PROTECTED] wrote: Hi all, I have been working on a page where I have a form. I currently have the form in an else block with no access to it if

[PHP] Re: Printing library in PHP ?

2006-03-14 Thread robert mena
Hi Manuel, I am trying to print from the client side. The client will be windows. Thanks. On 3/13/06, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, on 03/13/2006 09:44 AM robert mena said the following: I am currently migrating an application originally written with Delphi to PHP.

Re: [PHP] Execute a shell command using thttpd-php

2006-03-14 Thread Chris
Nelson Carreira wrote: Hello, I'm quite new to PHP language and although I got into it pretty fast I'm having some trouble executing system commands using php. I'm using thttpd-php_2.21b-2_mipsel in a Linksys router and I can only execute system commands like ls and cd from the PHP. I tried

Re: [PHP] setcookie security concerns

2006-03-14 Thread tedd
tedd wrote: link rel=stylesheet type=text/css media=screen href=?php echo (!$thestyle)?'style1':$thestyle ?.css It's not entirely clear from this example, but am I correct in assuming that $thestyle is the same as $_COOKIE['thestyle'] in this case? In other words, are you relying on

Re: [PHP] array_search and multi-dimensional arrays

2006-03-14 Thread List Manager
M. Sokolewicz wrote: List Manager wrote: jonathan wrote: I'd like to return the first key value in the following array such that England would return 1 rather than 3 which is the second key value. Any help would be greatly appreciated. $c[1][]=Vietnam; $c[1][]=China; $c[1][]=Thailand;

[PHP] Re: Printing library in PHP ?

2006-03-14 Thread Bogdan Ribic
This is more of an HTML question than it has to do with PHP, and you sound like a noobie :) Only useful info I can give you is to use THEAD in tables to hold headers, browsers put that row first on every page when breaking large table on several pages. Boban. robert mena wrote: For

Re: [PHP] Printing library in PHP ?

2006-03-14 Thread Steve Brown
I am currently migrating an application originally written with Delphi to PHP. Everything is going fine except the printing of the reports that does not produce the same visual result (i.e does not look the same or has some aligmment issues). We generate all of our printed reports using FPDF

[PHP] moving data from mssql to mysql on linux

2006-03-14 Thread blackwater dev
I have a project where I need to connect to a remote SQL Server and move data from their to my localy MySQL server. On the remote SQL Server, I only have access to a few views but need to get their data and move it to my local MySQL db. What is the best way to do this? I have freetds compiled

Re: [PHP] moving data from mssql to mysql on linux

2006-03-14 Thread Philip Hallstrom
I have a project where I need to connect to a remote SQL Server and move data from their to my localy MySQL server. On the remote SQL Server, I only have access to a few views but need to get their data and move it to my local MySQL db. What is the best way to do this? I have freetds compiled

Re: [PHP] Creating forms dynamically

2006-03-14 Thread Chris
Paul Goepfert wrote: Hi all, I have been working on a page where I have a form. I currently have the form in an else block with no access to it if I need to redisplay the form incase of errors. To be more specific I want to redisplay the page with the errors displayed. I would like to have the

Re: [PHP] display array problem

2006-03-14 Thread Chris
Mark wrote: Can anyone help me with this problem please! the code below shows a football fixture for the entire season , round 1-22 but this takes up to much space on the webpage (very long page). Is it possible to display one round at a time so its automatic. At the moment- each week the