[PHP] best way for PHP page

2008-01-01 Thread Alain Roger
Hi, i would like to improve my coding quality when i use PHP code and for that i would request your help. in my web developer experience, i have to confess that i've never succeeded in spliting PHP code from HTML code. i mean that all my web pages consist of PHP code mixed with HTML code (for

[PHP] menu andfolder question

2008-01-05 Thread Alain Roger
Hi, Serveral web sites have a menu and when you pass your mouse over a link, the browser statusbar only shows the folder where is located the file link, not the complete address including the file link. i mean if you take web site : http://www.zend.com/en/ when you pass your mouse cursor over

Re: [PHP] menu andfolder question

2008-01-05 Thread Alain Roger
/a/div; thanks for help. A. On Jan 5, 2008 12:29 PM, chris smith [EMAIL PROTECTED] wrote: On Jan 5, 2008 10:23 PM, Alain Roger [EMAIL PROTECTED] wrote: Hi, Serveral web sites have a menu and when you pass your mouse over a link, the browser statusbar only shows the folder where

Re: [PHP] menu andfolder question

2008-01-05 Thread Alain Roger
this is how i solved my issue :-) On Jan 5, 2008 4:28 PM, jeffry s [EMAIL PROTECTED] wrote: On Jan 5, 2008 7:36 PM, Alain Roger [EMAIL PROTECTED] wrote: ok, maybe i did not write my question well. i already used it because i setup the DirectoryIndex to index.php, index.html my

[PHP] website tree

2008-01-05 Thread Alain Roger
Hi, let's imaging we have the following thing : www.mywebsite.com/company/index.php www.mywebsite.com/company/profile.php www.mywebsite.com/services/index.php how can i detect in which address am i ? for example how to retrieve www.mywebsite.com/services or www.mywebsite.com/company -- Alain

[PHP] avoid server folder reading

2008-01-19 Thread Alain Roger
Hi, I would like to know how to avoid (using PHP code) any user to read the content of my website folder ? as my website is hosted by and external company, i do not have access to apache conf file. thanks a lot, -- Alain Windows XP SP2 PostgreSQL 8.2.4 / MS

Re: [PHP] avoid server folder reading

2008-01-19 Thread Alain Roger
I should be able to setup a .htaccess file. On Jan 19, 2008 7:17 PM, Jochem Maas [EMAIL PROTECTED] wrote: Alain Roger schreef: Hi, I would like to know how to avoid (using PHP code) any user to read the content of my website folder ? what exactly are you trying to avoid being read

Re: [PHP] avoid server folder reading

2008-01-19 Thread Alain Roger
PROTECTED] wrote: On Sat, January 19, 2008 11:57 am, Alain Roger wrote: I would like to know how to avoid (using PHP code) any user to read the content of my website folder ? as my website is hosted by and external company, i do not have access to apache conf file. You're not making a lot

Re: [PHP] avoid server folder reading

2008-01-20 Thread Alain Roger
this is what i already did before asking :-) On Jan 19, 2008 7:53 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 19, 2008 1:46 PM, Alain Roger [EMAIL PROTECTED] wrote: Sorry if my post was not clear... in fact i would like to hide the contant of my webfolders and avoid user to see

[PHP] flash with PHP

2008-02-03 Thread Alain Roger
Hi, i would like to have a flash menu in my PHP website. this is no problem. My problem is how to exchange data between PHP andFlash (in both direction). i found a lot of posts on this theme, but nothing with really works under ActionScript 3 and PHP. does anyone already solved such topic ?

Re: [PHP] flash with PHP

2008-02-03 Thread Alain Roger
this is right under actionscript 2.0... i'm working under actionscript 3.0 :-) On Feb 3, 2008 7:28 PM, Casey [EMAIL PROTECTED] wrote: On Feb 3, 2008, at 12:23 AM, Alain Roger [EMAIL PROTECTED] wrote: Hi, i would like to have a flash menu in my PHP website. this is no problem. My

Re: [PHP] Flash menu

2008-02-23 Thread Alain Roger
Sorry to tell you that but i've tested my flash menu on Linux Mandriva and Redhat without any problem... :-) On Sat, Feb 23, 2008 at 10:14 AM, Børge Holen [EMAIL PROTECTED] wrote: On Saturday 23 February 2008 09:46:24 Alain Roger wrote: Hi, i have a problem with my animated web flash menu

[PHP] string effect

2008-02-29 Thread Alain Roger
Hi, since a long time now, i see that some paragraphs of text are cut off and the additional text is replaced by 3 dots. e.g: this is the original long text but without any sense and also stupid effect desired : this is the original long text... this is usually used for title articles or some

[PHP] send form by email with image spam controler

2008-03-08 Thread Alain Roger
Hi, i would like to allow web site users to fill a form when they request information. the purpose is to have something standardized and later on to archive all those request into database. to avoid spammer, i was thinking to use a code image which change to each page refresh in order to be sure

[PHP] SMTP

2008-03-09 Thread Alain Roger
Hi, i know that this is not necessary the best forum for that, but i need to get a real feedback and i guess you already faced the same issue as mine. basically, i develop php web application on windows XP platform. So i have apache 2.24 installed and PHP 5.2.4. now i would like to test if my

Re: [PHP] SMTP

2008-03-10 Thread Alain Roger
for authentication). A. On Sun, Mar 9, 2008 at 10:16 PM, Ray Hauge [EMAIL PROTECTED] wrote: Alain Roger wrote: Hi, i know that this is not necessary the best forum for that, but i need to get a real feedback and i guess you already faced the same issue as mine. basically, i develop php web application

Re: [PHP] SMTP

2008-03-10 Thread Alain Roger
Hi Ray, we tested it with telnet and it seems that it works... but my mail client does not receive it. :-( php mail function just tells me that email can not be delivered. here is the function: if (mail($to, $subject, $body)) { echo(pMessage successfully sent!/p); } else

Re: [PHP] SMTP

2008-03-10 Thread Alain Roger
Ok, thanks for info, i've downloaded the MailEnable SW for free and i was able to check that my PHP mail function really send correctly emails :-) thanks a lot, A. On Mon, Mar 10, 2008 at 3:33 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Sun, Mar 9, 2008 at 4:38 PM, Alain Roger [EMAIL

[PHP] mail function and headers

2008-03-12 Thread Alain Roger
Hi, i'm playing a little bit with the mail function from PHP 5.2.4 and email headers. here is a snippet of my code: $headers = 'From: '.$email. .$fromname. \r\n.'Reply-To:'.$email.\r\n.'X-Mailer: PHP/' . phpversion(); if (mail($to, $subject, $body,$headers)) { ... } where: $fromname =

Re: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
ok i will try... what about UTF-8 to ensure unicode ? my website and especially the form which will send this email, will be filled in by several nationalities... spanish, english, french, slovak, german,,... so isn't it easier to set up utf-8 ? A. On Wed, Mar 12, 2008 at 4:11 PM, spacemarc

Fwd: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
ok i will try... what about UTF-8 to ensure unicode ? my website and especially the form which will send this email, will be filled in by several nationalities... spanish, english, french, slovak, german,,... so isn't it easier to set up utf-8 ? A. On Wed, Mar 12, 2008 at 4:11 PM, spacemarc

Re: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
ok, so this is what i got and it is still remaining... :-( Received: from serdev ([127.0.0.1]) by home.com with MailEnable ESMTP; Wed, 12 Mar 2008 16:40:18 +0100 Date: Wed, 12 Mar 2008 16:40:18 +0100 Subject: subject 3 To: [EMAIL PROTECTED] From: raf, news [EMAIL PROTECTED] Reply-To: [EMAIL

Re: [PHP] mail function and headers

2008-03-13 Thread Alain Roger
Hi Chris, interesting thing, but i get the following error message : *Warning*: mail() [function.mailhttp://test4.rogtek.com/common/function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in */test4/common/sendmail.php* on line *119* how can i solve this by

Re: [PHP] mail function and headers

2008-03-13 Thread Alain Roger
PROTECTED] wrote: Alain Roger wrote: Hi Chris, interesting thing, but i get the following error message : *Warning*: mail() [function.mail http://test4.rogtek.com/common/function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in */test4/common

[PHP] efficient log system

2007-06-12 Thread Alain Roger
Hi, I would like to create a log system to keep a trace of all users' actions (log-in, remove, change or update data, and so on...). What should i do or to what should i take care to not have problem ? I was thinking to create a folder on my server where log files will be stored, but what is

[PHP] import Excel file into PostgreSQL

2007-08-06 Thread Alain Roger
HI, I would like to know the best and fastest way how to import some colums contents from Excel file to PostgreSQL database. how can i do that ? I mean some columns of Excel should be imported into a particular table and some others into another table. thanks for any suggestion. -- Alain

[PHP] multiple data to insert to database

2007-08-10 Thread Alain Roger
Hi, I would like to know what is the best way and fastest to insert into PostgreSQL around 25.000 records (extracted from CSV file). Should i use the standard pg_exec($dbconn, insert into...); for each record ? thanks a lot, -- Alain Windows XP SP2

Re: [PHP] Import XLS file with UTF-8

2007-08-10 Thread Alain Roger
, no ? Al. On 8/10/07, Stut [EMAIL PROTECTED] wrote: Alain Roger wrote: Hi, So now i know how to import the content of the CSV file to database, however, before to import to database i do a simple test. in fact, i display in my browser all content of my CSV file. unfortunately, not all

[PHP] Import XLS file with UTF-8

2007-08-10 Thread Alain Roger
Hi, So now i know how to import the content of the CSV file to database, however, before to import to database i do a simple test. in fact, i display in my browser all content of my CSV file. unfortunately, not all characters are displayed correctly. in PHP page include meta

[PHP] phpinfo does not display openssl module

2007-08-10 Thread Alain Roger
Hi i've reinstalled the complete server and i use apache module to load openSSL. However, if i uncomment in PHP.INI the extension=php_openssl.dll, it still does not appear on screen when i use phpinfo() function. i've tried also to uncomment some other extension and they also are not displayed

[PHP] php.ini of PHP 5.2.3

2007-08-11 Thread Alain Roger
Hi, I have a stupid problem. At work i installed the PHP 5.2.1 and it works fine. i uncomment extension = php_opensll and i see that extension is activated because phpinfo show me information about such extension. However, at homw i've just installed PHP 5.2.3 and i did the same as at work but

Re: [PHP] php.ini of PHP 5.2.3

2007-08-11 Thread Alain Roger
] wrote: Alain Roger wrote: I have a stupid problem. At work i installed the PHP 5.2.1 and it works fine. i uncomment extension = php_opensll and i see that extension is activated because phpinfo show me information about such extension. However, at homw i've just installed PHP 5.2.3 and i

[PHP] convert (windows-1250) to (utf-8)

2007-08-11 Thread Alain Roger
Hi, I import a csv file (which includes characters from windows-1250 charset) to postgreSQL database which is in UTF-8. How can i convert windows-1250 to utf-8 charset ? thanks a lot, -- Alain Windows XP SP2 PostgreSQL 8.2.3 Apache 2.2.4 PHP 5.2.3

Re: [PHP] convert (windows-1250) to (utf-8)

2007-08-12 Thread Alain Roger
and why not : $out = iconv('windows-1250','UTF-8', $in); ??? Alain On 8/12/07, brian [EMAIL PROTECTED] wrote: Alain Roger wrote: Hi, I import a csv file (which includes characters from windows-1250 charset) to postgreSQL database which is in UTF-8. How can i convert windows-1250

[PHP] PostgreSQL and select nextval

2007-08-12 Thread Alain Roger
Hi, I'm getting an error message when i run the following SQL request : $sql = INSERT INTO tmp_importedxls (rec_id, publisher) VALUES (SELECT nextval('tmp_importedxls_rec_id_seq'),'$pb'); Error in SQL query: ERROR: syntax error at or near SELECT LINE 2: VALUES (SELECT

Re: [PHP] convert (windows-1250) to (utf-8)

2007-08-12 Thread Alain Roger
I've tested it and it works well. i got some issue when i used ISO-8859-2. Al On 8/12/07, Tijnema [EMAIL PROTECTED] wrote: On 8/12/07, Alain Roger [EMAIL PROTECTED] wrote: and why not : $out = iconv('windows-1250','UTF-8', $in); ??? Alain Did you test if that works? I doubt

[PHP] very strange behavior.... incomplete query performed

2007-08-12 Thread Alain Roger
Hi, I'm still working on importing CSV file content (20.000 records) to database PostgreSQL. when i run the query, once i stored into my table 5218 records, another time 5231 another time 4713 and so on every time the amount of records imported to DB is different. Do you have any idea from

Re: [PHP] very strange behavior.... incomplete query performed

2007-08-14 Thread Alain Roger
[EMAIL PROTECTED] wrote: Are you using E_ALL? Any error messages? My first suspect is you are hitting php.ini time_limit setting, or possibly the memory_limit. On Sun, August 12, 2007 7:09 am, Alain Roger wrote: Hi, I'm still working on importing CSV file content (20.000 records

Re: [PHP] php.ini of PHP 5.2.3

2007-08-14 Thread Alain Roger
the error log shows something about openssl but doesn't say what openssl is missing, and folks think it's still missing openssl itself, when it's really missing libeay. On Sat, August 11, 2007 6:02 am, Alain Roger wrote: I've discovered that when i type php -m, openssl is already loaded

[PHP] LDAP

2007-08-21 Thread Alain Roger
Hi, I have a stupid issue with ldap_connect. i've reinstalled PHP, postgreSQL and restore my data (web files) after reinstalling my PC. now, when i try : $ds = ldap_connect($ldaphost, $ldapport) or die(Could not connect to $ldaphost); nothing works. i wrote before error_reporting(E_ALL); in

Re: [PHP] Re: LDAP

2007-08-21 Thread Alain Roger
I found what was the problem :-( in PHP.ini the Temp directory was not setup the same. i do not know what is the link with LDAP module, but since i updated php.ini, it works correctly. Alain On 8/21/07, Colin Guthrie [EMAIL PROTECTED] wrote: Alain Roger wrote: Hi, I have a stupid issue

Re: [PHP] LDAP

2007-08-22 Thread Alain Roger
Hi, Have you tried in the php.ini to setup error_reporting to E_ALL and display error messages (display_errors = On) ? I had a similar problem 2 days ago and it was due to another mistake in my PHP code. But i did not get any error message or more precisely, i did not get any WARNING message.

[PHP] active directory and PHP

2006-08-17 Thread Alain Roger
Hi, I'm new to PHP, so sorry if my question looks like stupid. I have a web application which use authorization and authentication process to log-in. I would like to know if it exists a way to synchronize the authentication with our Active Directory domain ? Something like a single side-on. In

[PHP] postgreSQl and images

2006-11-04 Thread Alain Roger
Hi, I create a table with some large object (ref: OID) to store some images. When my PHP will display some data, it will also display the images stored as OID. However, i've read that before i must restore the image by exporting them to local (on server) file. isn't it easier in this case, to

[PHP] Pear

2006-11-04 Thread Alain Roger
Hi, I would like to know if a lot of people use the PEAR system (packages + core) to their web sites ? One of my colleague uses it for company internal usage, but i wonder if my web hoster will allow me to use and install it...because i have only a webftp access to my business web site...

[PHP] phpPgAdmin

2006-11-04 Thread Alain Roger
Hi, Is there a way via PhpPgAdmin to export/import the whole database info (structure, schema, tables, index, sequences, data...) ? Because i developed my database on local server and now i want to import to my web hoster server... and i do not want to recreate everything manually :-( thx,

[PHP] Issue when inserting Slovak characters in database via PHP code

2006-11-04 Thread Alain Roger
Hi, Sorry to cross post this mail but i'm not able to know from where comes my issue. I have a postgreSQL database in UNICODE (UTF-8 in v8.1.4 and UNICODE in v8.0.1). Via my web application i type a sentence in Slovak language and it is stored into DB without any slovak characters. Instead of

[PHP] Authentification and LDAP (SSO / Single Sign-On)

2006-11-07 Thread Alain Roger
Hi, I'm currently developing a PHP application as intranet tool for our company. I would like to make users connect to this tool with an authentification window where they can enter their domain login and password. via LDAP and Apache module mod_auth_ldap, i would like to check this user login

[PHP] OpenLDAP

2006-11-07 Thread Alain Roger
Hi, where can i find OpenLDAPftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/files already compiled ? i've downloaded the tar file, but i do not have a compiler with me... :-*( thx, Alain

[PHP] OpenLDAP

2006-11-07 Thread Alain Roger
Hi, I want to authenticate user by checking with our LDAP their login and password. For that, i need before to : 1- download LDAP client librairies OpenLDAP or Bind9 2- compile those librairies 3- Compile PHP with option == --with-ldap 4- Setup php.ini by removing semi-colon in front of ==

[PHP] access to DB and security

2006-11-08 Thread Alain Roger
Hi, My web hoster gave me a login and password with which i can connect to DB, perform some actions as DB owner / superuser just for my DB. If i use this login + password to connect and perform some actions from my web pages, everybody can hack my DB and do what they want. My web hoster will

Re: [PHP] access to DB and security

2006-11-08 Thread Alain Roger
is return to your PHP files (accessible on web). did i understood well ? Al. On 11/8/06, Satyam [EMAIL PROTECTED] wrote: - Original Message - From: Alain Roger [EMAIL PROTECTED] Hi, My web hoster gave me a login and password with which i can connect to DB, perform some actions

[PHP] Zend

2006-11-09 Thread Alain Roger
Hi, For my work, i bought Zend studio 5.2 and for sure when i installed it, it modified the path for the PHP.INI file to its local version. after checking the content of the php.ini file from Zend distribution, it seems to be a different version than the one from official PHP. I would like to

[PHP] php.ini

2006-11-09 Thread Alain Roger
Hi, everytime i install PHP, my php.ini must be installed in C:\windows\ folder. How can i do to force system to read php.ini file from C:\PHP\ folder only ? thanks. Alain

[PHP] path

2006-11-10 Thread Alain Roger
Hi, How can i get the path in which a PHP file is running ? for example, user clicking on a link opened page action.php file. this php file is located as C:\webserver\mywebsite\php\test\action.php how can i get this path (C:\webserver\mywebsite\php\test\)? thx. Al.

[PHP] PEAR and MDB2

2006-11-11 Thread Alain Roger
Hi, As i'm new to PEAR world, i try to understand how does it work. for that i took the MDB2 and try to use it with PostgreSQL. here is a basic sample extract from PEAR help file and only modified. require_once 'Pear/MDB2.php'; $dsn = 'pgsql://login:[EMAIL PROTECTED]'; $mdb2 =

[PHP] Re: MDB2 simple test

2006-11-11 Thread Alain Roger
that everything is correct. Al. On 11/11/06, Mark Wiesemann [EMAIL PROTECTED] wrote: Alain Roger wrote: I have a main_includes.php which include_once/require_once all needed things like MDB2.php or setpath for /pear folder Okay, but remember that the PEAR dir needs to in the include_path. Otherwise

[PHP] Fwd: MDB2 simple test

2006-11-11 Thread Alain Roger
-- Forwarded message -- From: Alain Roger [EMAIL PROTECTED] Date: Nov 11, 2006 12:26 PM Subject: Re: MDB2 simple test To: Mark Wiesemann [EMAIL PROTECTED] I have a main_includes.php which include_once/require_once all needed things like MDB2.php or setpath for /pear folder

[PHP] Re: MDB2 simple test

2006-11-11 Thread Alain Roger
on his server. in folder : F:\My documents\Development\Website\Immense\Pear, i have all standard PEAR folder installation files... e.g. PEAR.PHP, MDB2.PHP, and relative subfolders. Al. On 11/11/06, Alain Roger [EMAIL PROTECTED] wrote: Mark, this is my main_includes.php file : ?php $path

[PHP] MDB2 and PostgreSQL

2006-11-11 Thread Alain Roger
Hi, I'm still working on the issue with MDB2. i've checked the $mdb2 object and i discover that method doQuery does not exist when i write $mdb2- So it seems that MDB2.php does not pickup the datasource package pgsql.php. Therefore i would like to know if the following folder struture is

[PHP] convert postgres date to PHP

2006-11-11 Thread Alain Roger
Hi, in my database PosgreSQL i have stored some date in the following format : -MM-DD HH:MM:SS this is a real TimeStamp without time zone field format. Under PHP i would like to display this field as text with the following format DD.MM. How can i do that ? i was thinking to do :

[PHP] Re: convert postgres date to PHP

2006-11-11 Thread Alain Roger
. strtotime() http://www.php.net/manual/en/function.strtotime.php - tul P.S. RTFM! Alain Roger wrote: Hi, in my database PosgreSQL i have stored some date in the following format : -MM-DD HH:MM:SS this is a real TimeStamp without time zone field format. Under PHP i would like

[PHP] PEAR, MDB2 and MDB2_Driver_pgsql

2006-11-11 Thread Alain Roger
Hi, So i solved my problem with Pager, MDB2...therefore thanks a lot to everybody for your support. I have nevertheless still 1 question to which i need help. I would like to understand how MDB2_Driver_pgsql and MDB2 class are linked to each other ? i was thinking that the first one is derived

Re: [PHP] PEAR and MDB2

2006-11-12 Thread Alain Roger
so when i have this code : $options = array('debug' = 2, 'portability' = MDB2_PORTABILITY_ALL, ); $query = 'SELECT * from sp_u_001(\'all\')'; $db2 = new MDB2_Driver_pgsql(); $db2-connect($dsn);

[PHP] PEAR::MDB2 andquery

2006-11-12 Thread Alain Roger
Hi, I'm still wondering how are linked MDB2 class and MDB2_Driver_pgsql class. when i analyze the code of DB.php and pgsql.php, it's clear that DB.phpcheck a class based on phptype and therefore include the pgsql.php file. But i did not find something similar in MDB2.php. i would like to

Fwd: [PHP] PEAR and MDB2

2006-11-12 Thread Alain Roger
but the problem is before: $mdb2 = MDB2::connect($dsn); if (PEAR::isError($mdb2)) { die($mdb2-getMessage().brbr.$db2-getUserinfo()); } generate a : MDB2 Error: not found connect: [Error message: extension pgsql is not compiled

Re: [PHP] PEAR and MDB2

2006-11-12 Thread Alain Roger
it does not matter, query or exec produce the same error message : Error connection : MDB2 Error: not found connect: [Error message: extension pgsql is not compiled into PHP] :-( On 11/12/06, Roman Neuhauser [EMAIL PROTECTED] wrote: # [EMAIL PROTECTED] / 2006-11-12 09:46:34 +0100: so

[PHP] Re: PEAR::MDB2 andquery

2006-11-12 Thread Alain Roger
is that i can use pgsql without PEAR on my web pages without problem. So i will investigate more, the PEAR::loadExtension($this-phptype) function because there is the mistake. Alain On 11/12/06, Alain Roger [EMAIL PROTECTED] wrote: Hi, I'm still wondering how are linked MDB2 class

[PHP] MDB2 : never ending story

2006-11-13 Thread Alain Roger
Dear all, i still got the same error when i run this code : == Call to a member function fetchRow() on a non-object on line while (( so it seems that package MDB2_Driver_pgsql is not loaded or something is wrong... i'm really lost...4 days that i work on it without any solution...

Re: [PHP] MDB2 : never ending story

2006-11-13 Thread Alain Roger
And therefore how do you want to get the result set ? nothing is solved now... i still need a fetchrow or fetchOne On 11/13/06, Paul Scott [EMAIL PROTECTED] wrote: On Mon, 2006-11-13 at 17:49 +0100, Alain Roger wrote: Dear all, i still got the same error when i run this code : == Call

[PHP] Scrolling text

2006-11-13 Thread Alain Roger
Hi, I would like to have a scrolling text (as banner) on our website. I tried Marquee which work very well but since i use a table and allocate 100% to marquee, if the content of a row (tr content) is greater than 100% or the table width, internet explorer automatically write the message on

[PHP] security question

2006-11-22 Thread Alain Roger
Hi, Now that i finished the client side of the web application i would like to improve the security of my administration side of this web application. My web hoster support a shared SSL protocol, however i would like to do more than simply use the SSL... I've heard that cookies and sessions can

Re: [PHP] LDAP password question

2006-11-30 Thread Alain Roger
Hi Ray, the question is for which reason you need to know something about the pwd ? to log on ? if yes, it's not needed. I personally did like that : 1. with login + pwd given by user, i try to bind. 2. if bind works, it means that user login+pwd are equal to AD login+pwd. 3. if error during

[PHP] How to be sure to use SSL

2006-12-02 Thread Alain Roger
Hi, I would like to know how can i be sure to make customer use the SSL all the time. all the time in my PHP code, i write links as relative links, so without HTTPS. I was thinking to check everything if the port is the SSL port (default : 443), but it does not mean that protocol is HTTPS. So,

[PHP] Security and methods

2006-12-02 Thread Alain Roger
Hi, After reading the documentation about security from phpsec.org, i see that 2 schools exist (dispatch method or include method). I do not see any huge difference between them. I would like to know what is the most suitable method to centralize security in 1 single file. thx. Alain

[PHP] alternative method

2006-12-02 Thread Alain Roger
Hi, Based on phpsec.org documentation it is written (between lines) that GET and POST methods are still used but they are not the most secured (except if we take care for that). So, i would like to know which other methods are more secured that those 2. thx. Alain

[PHP] security and .htaccess

2006-12-02 Thread Alain Roger
Hi, I'm working on .htaccess file for improving security. Based on documentation from PHPSEC.org, we should be able to store DB_USER login and DB_PASS password in some secret-stuff (for example) file, which should be located outside root of web document root. (for example in some /path_to_secret

Re: [PHP] How to be sure to use SSL

2006-12-02 Thread Alain Roger
: On Sat, December 2, 2006 2:17 am, Alain Roger wrote: I would like to know how can i be sure to make customer use the SSL all the time. all the time in my PHP code, i write links as relative links, so without HTTPS. I was thinking to check everything if the port is the SSL port (default

Re: [PHP] Security and methods

2006-12-02 Thread Alain Roger
for me. Alain On 12/2/06, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, December 2, 2006 9:47 am, Alain Roger wrote: After reading the documentation about security from phpsec.org, i see that 2 schools exist (dispatch method or include method). I do not see any huge difference between them

[PHP] optimilize web page loading

2008-03-26 Thread Alain Roger
Hi, i would like to know if there is a way to know how long does a web page need to be loaded into browser ? this is interesting fact for me, as i will optimilize my PHP code in order to reduce this time to minimum. i was thinking to use some timestamp but as it will be in PHP, it mean that it

[PHP] convert a string to integer

2008-03-28 Thread Alain Roger
Hi, i know this topic is obvious but i have a strange behavior and i'm getting crazy. my stored procedure returns me a string. string can be an email or a message error = '-1', '-2', '-3' when i check if the string contains only digit, i use ctype_digit(mystring) but any way it returns me

Re: [PHP] convert a string to integer

2008-03-28 Thread Alain Roger
thx a lot... i completly skipped this one...i don't know why :-( now it works On Fri, Mar 28, 2008 at 8:55 AM, Simon Welsh [EMAIL PROTECTED] wrote: On 28/03/2008, at 8:48, Alain Roger wrote: Hi, i know this topic is obvious but i have a strange behavior and i'm getting crazy. my

[PHP] page content duration

2008-03-29 Thread Alain Roger
Hi, i have a strange behavior on my web page. i have a form where users can enter their email address to subscribe to newsletter. if user already exists the page inform him and allow him to go back thanks a button. clicking on this button, load another page (initial page with the form for

[PHP] auto generated PDF

2008-03-30 Thread Alain Roger
Hi, i want to implement on my web portal electronic invoicing system. basically data will be stored into PostgreSQL DB. I would like to know if someone already have experiences with such feature or where could i find some tutorials or help about this topic. Concretly, user will buy some

[PHP] newsletter administration

2008-04-10 Thread Alain Roger
Hi, I need to do a little CMS for managing Newsletter for 1 of my customers. as i never worked on such thing in the past, i would be glad to have your feedback. basically, web site users are registered into DB. my customer would like to send them a newsletter to promote new products and

[PHP] standard format for Web portal administration side

2008-04-12 Thread Alain Roger
Hi, I've seen several web portal and their dedicated administration side. some of those administration (portal) are according to w3c standard (1024 px large), but most of them use the full screen width. therefore i would like to know if there is a standard size (width / height) for web portal

[PHP] module access rights

2008-04-17 Thread Alain Roger
Hi, i face now a little issue regarding how end user can access to some modules of my web portal. Let imagine we have several modules (let say: mod1, mod 2, mod3) and 2 users (usr1, usr2). i would like to use a simple way how to established access rights for each user to grant/forbidden access to

[PHP] module access rights

2008-04-19 Thread Alain Roger
Hi, i'm very surprised... i did not get any answer to my previous post. is it because it is good way to do it or because nobody knows ? thx. Al. --- Hi, i face now a little issue regarding how end user can access to some modules of my web portal. Let imagine we

[PHP] AJAX and PHP

2008-04-21 Thread Alain Roger
Hi, i'm playing around with AJAX and PHP to create something like a small desktop application. basically the first step is to log in the system. for that i have a log-in form where users can choose the interface language. here is my problem : when the log-in form runs, it is in English. user can

Re: [PHP] AJAX and PHP

2008-04-21 Thread Alain Roger
, 2008 at 9:55 AM, Thijs Lensselink [EMAIL PROTECTED] wrote: Quoting Alain Roger [EMAIL PROTECTED]: Hi, i'm playing around with AJAX and PHP to create something like a small desktop application. basically the first step is to log in the system. for that i have a log-in form where users

Re: [PHP] AJAX and PHP

2008-04-21 Thread Alain Roger
now ? On Mon, Apr 21, 2008 at 11:40 AM, Thijs Lensselink [EMAIL PROTECTED] wrote: Quoting Alain Roger [EMAIL PROTECTED]: you understood right. basically my problem is that the layout avoid it. here is something like my layout : div#0 div#1Lanague (label) : img flag img arrow

[PHP] php, ajax and international application

2008-04-21 Thread Alain Roger
Hi, Till now, i'm used to have a php file (for each language) to store all text labels for my international application. i tried with Ajax to improve it but it seems not so flexible at it promised. my purpose was to limit the transfer data and especially to not load too much the server with not

[PHP] first e-shop

2008-07-05 Thread Alain Roger
Hi, I need to create an e-shop in PHP. this is for me the first time that i need to do that and i think the way how to approach such topic is different that creating a simple corporate web site. Here are the standard features that i need to implement: - home page including latest article/news,

[PHP] E-Shop system

2008-08-02 Thread Alain Roger
Hi, i'm currently analyzing an e-shop system. i understand how to display products and so on, however i still have some question marks on the following topics: 1. what is the best way for showing product image ? - to store them in DB or onto filesystem as simple image files ? - each product

[PHP] PHP page completly blank

2008-08-03 Thread Alain Roger
Hi, i reinstalled on my computer (Win XP) PHP 5.2.4 (but the same happens with 5.2.6). when i run an index.php page or any other php page which works well before, now i get a blank page result on my browser without any error message. even if only HTML code is inside the PHP page nothing is

[PHP] dynamic extension

2008-08-03 Thread Alain Roger
Hi, i do not see anymore the dynamic extension part in php.ini file, under PHP 5.2.6. is it normal ? thx -- Alain Windows XP SP2 PostgreSQL 8.2.4 / MS SQL server 2005 Apache 2.2.4 PHP 5.2.4 C# 2005-2008

Re: [PHP] PHP page completly blank

2008-08-03 Thread Alain Roger
that the file libpq.dll is not available (whereas it is)... plus some other librairies (dll) files. On 8/3/08, Daniel Brown [EMAIL PROTECTED] wrote: On Sun, Aug 3, 2008 at 3:54 AM, Alain Roger [EMAIL PROTECTED] wrote: when under command line i run php -v i get a lot of error messages, like

[PHP] php.ini and pgsql extension issue

2008-08-03 Thread Alain Roger
Hi, i found and solved an interesting issue under PHP 5.2.6. when i use the standard installation file under windows XP (php-5.2.6-win32-installer.msi), i get several error message in apache error.log file, something like : PHP Warning: PHP Startup: Unable to load dynamic library

[PHP] News reader

2008-08-10 Thread Alain Roger
Hi, i tried to configure Thunderbird to read and post news on PHP.net forums. I'm able to read messages but not to post some. Does anyone already succeed in it ? Do to security reasons at work, personal email usage is strictly forbidden now so i'm not able to use gmail, yahoo or hotmail anymore.

Re: [PHP] Re: News reader

2008-08-10 Thread Alain Roger
this is what i've done even at home but sending message fails everytime. even if my SMTP server is well configured :-( On Sun, Aug 10, 2008 at 8:33 PM, Al [EMAIL PROTECTED] wrote: Alain Roger wrote: Hi, i tried to configure Thunderbird to read and post news on PHP.net forums. I'm able

  1   2   3   >