[PHP] DateTime... What else ?

2008-04-17 Thread David BERCOT
Hi, I've got a problem with DateTime. I have a short code which gives an error : CODE $date = new DateTime(date(d/m/Y)); $date-modify(-1 month); $mois_en_cours1 = $date-format(Y-m); $date-modify(-1 month); $mois_en_cours2 = $date-format(Y-m); $date-modify(-1 month); $mois_en_cours3 =

Re: [PHP] DateTime... What else ?

2008-04-17 Thread David BERCOT
Hi again, Le Thu, 17 Apr 2008 21:10:44 +1200, Simon Welsh [EMAIL PROTECTED] a écrit : On 17/04/2008, at 9:05, David BERCOT wrote: Hi, I've got a problem with DateTime. I have a short code which gives an error : CODE $date = new DateTime(date(d/m/Y)); $date-modify(-1 month

Re: [PHP] DateTime... What else ?

2008-04-17 Thread David BERCOT
Le Thu, 17 Apr 2008 10:19:10 +0100, Stut [EMAIL PROTECTED] a écrit : On 17 Apr 2008, at 10:05, David BERCOT wrote: I've got a problem with DateTime. I have a short code which gives an error : CODE $date = new DateTime(date(d/m/Y)); $date-modify(-1 month); $mois_en_cours1 = $date

Re: [PHP] [Linux] PHP and SQL Server

2007-05-22 Thread David BERCOT
Hi Mike, And thank you for your help... Le Mon, 21 May 2007 13:21:35 -0400, Mike Smith [EMAIL PROTECTED] a écrit : On 5/21/07, David BERCOT [EMAIL PROTECTED] wrote: Hi Mike, Le Mon, 21 May 2007 10:24:52 -0400, Mike Smith [EMAIL PROTECTED] a écrit : David, Is MSDE running

Re: [PHP] [Linux] PHP and SQL Server

2007-05-22 Thread David BERCOT
Le Tue, 22 May 2007 14:18:31 +0200, Tijnema [EMAIL PROTECTED] a écrit : On 5/22/07, David BERCOT [EMAIL PROTECTED] wrote: Hi Mike, And thank you for your help... Le Mon, 21 May 2007 13:21:35 -0400, Mike Smith [EMAIL PROTECTED] a écrit : On 5/21/07, David BERCOT [EMAIL PROTECTED

[PHP] [Linux] PHP and SQL Server

2007-05-21 Thread David BERCOT
Hi, I'd like to connect to SQL Server (it is MSDE from SQL Server 2000) from PHP. My system is Debian. I've installed FreeTDS and some dependencies... Here is my /etc/freetds/freetds.conf : [global] # TDS protocol version tds version = 4.2 [etemptation] host = 10.21.2.203

Re: [PHP] Environment variables...

2007-03-15 Thread David BERCOT
(and how ;-)) to put variables in the php.ini ? Thank you very much. David. On Wed, March 14, 2007 9:32 am, David BERCOT wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put

Re: [PHP] Environment variables...

2007-03-15 Thread David BERCOT
Everything is OK !!! Thank you very much. David. Le Thu, 15 Mar 2007 13:39:33 -, Edward Kay [EMAIL PROTECTED] a écrit : Yes, great... Now, I have another problem ;-) In Debian, everything is ok. I put my variable in /etc/apache2/httpd.conf. But on RedHat, I don't know which file

[PHP] Environment variables...

2007-03-14 Thread David BERCOT
Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible,

Re: [PHP] Environment variables...

2007-03-14 Thread David BERCOT
Le Wed, 14 Mar 2007 15:40:28 +0100, Tijnema ! [EMAIL PROTECTED] a écrit : On 3/14/07, David BERCOT [EMAIL PROTECTED] wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put

Re: [PHP] Environment variables...

2007-03-14 Thread David BERCOT
... David. On Mar 14, 2007, at 9:32 AM, David BERCOT wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc

[PHP] [JS question] : I want to block onChange event in Firefox...

2006-06-30 Thread David BERCOT
Hi, I am blocked on this problem since so a long time that I prefer asking here my question... I'd like, if the data isn't correct, that the user stay in the input zone. Everything is ok with IE but not with Firefox. Here is my code : // Validation des données. function demarrage_controles() {

Re: [PHP] [JS question] : I want to block onChange event in Firefox...

2006-06-30 Thread David BERCOT
N F David BERCOT a écrit : Hi, I am blocked on this problem since so a long time that I prefer asking here my question... I'd like, if the data isn't correct, that the user stay in the input zone. Everything is ok with IE but not with Firefox. Here is my code : // Validation des

[PHP] Bug Apache/PHP/Oracle on Debian

2006-04-06 Thread David BERCOT
Hi, I have a server with Apache 2, PHP 5.1.1 and Oracle Instant Client 10.2.0.1. As I have a little bug [http://bugs.php.net/bug.php?id=29779], I've tried the solution (in oci8.c) and recompiled ! But then, everything was broken. So, I get the source of PHP 5.1.2 and recompiled again. Everything

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

2006-03-15 Thread David BERCOT
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

[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] [HS] IDE PHP on Linux...

2006-02-14 Thread David BERCOT
Hi, Finally, I discovered that I need to have PHP and Apache on my computer in order than Eclipse may give me auto-complete... No you don't. Eclipse does code completion out-of-the-box w/out installing additional software. Check your Preferences. If I check 'Preferences', then 'PHP

[PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread David BERCOT
Hi, I'm looking for a good IDE on Linux to code my php files... I'd like auto-completion (in php and html) and a file explorer... I've tested Eclipse (with PHP Eclipse) and Komodo but I couldn't have auto-completion on php commands !!! Do you have any idea ? Thank you very much. David.

RE: [PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread David BERCOT
Finally, I discovered that I need to have PHP and Apache on my computer in order than Eclipse may give me auto-complete... I'll install them tomorrow !!! Thank you. David. Le lundi 13 février 2006 à 15:42 -0600, Jay Blanchard a écrit : [snip] I'm looking for a good IDE on Linux to code my php

Re: [PHP] SQL request on DBase file...

2006-02-11 Thread David BERCOT
Hi, I have to rewrite an application from ASP. In this application, I receive DBase files which may be saved into Oracle. In ASP, I used a generic driver and I made SQL requests on these files. It is possible with PHP on Linux ? Do you have some examples ? Thank you very much. David.

[PHP] SQL request on DBase file...

2006-02-10 Thread David BERCOT
Hi, I have to rewrite an application from ASP. In this application, I receive DBase files which may be saved into Oracle. In ASP, I used a generic driver and I made SQL requests on these files. It is possible with PHP on Linux ? Do you have some examples ? Thank you very much. David.

RE: [PHP] SQL in XML [was PHP and DBase...]

2006-02-01 Thread David BERCOT
But, finally, I wonder if I shouldn't use XML files instead ? Is it possible, directly, to make a SQL request on a XML file ? How much data are you storing and how fast do you need it? If you're doing heavy database type queries, then just use mySQL. Yes, I use Oracle for my real data

[PHP] PHP and DBase...

2006-01-31 Thread David BERCOT
Hi, I'd like to connect to DBase files (.dbf) in order to do SQL requests. Do you know if it is possible ? If yes, do you have an example ? I'm working on Debian with PHP5. Thank you very much. David. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] SQL in XML [was PHP and DBase...]

2006-01-31 Thread David BERCOT
Hi, I'd like to connect to DBase files (.dbf) in order to do SQL requests. Do you know if it is possible ? If yes, do you have an example ? I'm working on Debian with PHP5. Thank you very much. David. Blind? http://de.php.net/dbase OK. I should have made such a search

Re: [PHP] SQL in XML [was PHP and DBase...]

2006-01-31 Thread David BERCOT
Hi, I'd like to connect to DBase files (.dbf) in order to do SQL requests. Do you know if it is possible ? If yes, do you have an example ? I'm working on Debian with PHP5. Thank you very much. David. Blind? http://de.php.net/dbase OK. I should

Re: [PHP] Re: Managing sessions...

2006-01-23 Thread David BERCOT
Hi, OK. I have many answers about managing sessions and I thank everyone. The best solution seems to be the inclusion of a file... But, I have just another question about all the options I have to put in this file... Is it necessary to do all of this (sorry for my commentaries which are in

[PHP] New identification after an error...

2006-01-20 Thread David BERCOT
Hi, I use this program to force a user to authenticate : if (!isset($_SERVER[PHP_AUTH_USER])) { header(WWW-Authenticate: Basic realm=\Intranet SDSED\); header(HTTP/1.1 401 Unauthorized); } Everything is ok except a detail : if the user makes a mistake (for example, a bad

Re: [PHP] New identification after an error...

2006-01-20 Thread David BERCOT
David BERCOT wrote: I've tried : $_SERVER[PHP_AUTH_USER] = NULL; without succes... http://www.php.net/unset e.g. unset($_SERVER['PHP_AUTH_USER']); It might, however, be better practice to used an authorisation state variable, or something similar, i.e. if (! $auth

[PHP] Managing sessions...

2006-01-20 Thread David BERCOT
Hi again, Ok, it's probably not the first time you have a question about sessions with PHP ;-) I've tried to read mails, documentation, searching on Internet but, finally, I think everything is not clear !!! First of all, I understand that, if session.auto_start is not on '1', I have to write

[PHP] PHP and LDAP...

2006-01-17 Thread David BERCOT
Hi, I'm new on this list and with PHP. But I am a old web developer (with ASP). I'm looking for verifying a username/password in Active Directory with a LDAP request... I have this error : Warning: ldap_search() [function.ldap-search]: Search: Operations error in /var/www/ldap.html on line 69 I

Re: [PHP] PHP and LDAP...

2006-01-17 Thread David BERCOT
have different domains and, so, different servers... Thank you very much for this help ! David. Ade David BERCOT wrote: Hi, I'm new on this list and with PHP. But I am a old web developer (with ASP). I'm looking for verifying a username/password in Active Directory with a LDAP