Re: [PHP] Big problem....need help

2003-07-09 Thread Nicolas Costes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le Mercredi 9 Juillet 2003 15:13, phpu a écrit :
 I have a table like this:

 ..
 $sql = SELECT * FROM products, category WHERE
 category.name_category=products.name_category and
 category_id=.$_GET['category_id'] ;


 When i choose the category catg 1 the result is
 Name: aaa
 Name: aaa
 Name: ddd

 As you can see the name aaa appears 2 times insted 1.
 How to make the result look like this:
 Name: aaa
 Name: ddd

Use GROUP BY 

$sql = SELECT * FROM products, category WHERE 
category.name_category=products.name_category and 
category_id=.$_GET['category_id'] GROUP BY products.mark_name;


- -- 
   ,,
  (°   Nicolas Costes
  /|\   IUT de La Roche / Yon
 ( ^ )  Clé publique: http://www.keyserver.net/
  ^ ^   http://www.gnu.org/philosophy/can-you-trust.fr.html


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/DB2GNc2aXy7LuOgRAmE6AKCIeGpWg78san/72M7vbhwJXQKXbQCfVxAJ
OgayWbAh0cOXc5OCdVy2uWs=
=vH6U
-END PGP SIGNATURE-


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



Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Nicolas Costes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le Mardi 17 Juin 2003 17:19, Adam Voigt a écrit :
 If it doesn't have to be automatic, I believe you can open
 an ODBC connection to the MySQL database and use the export
 functionality of Excel. I may be wrong since it's been a
 while since I've done anything with Excel, but it's worth
 a try.

 On Tue, 2003-06-17 at 11:09, Alex Shi wrote:
  Hello,
 
  Does any one out there happend to know a php solution to directly
  (without CSV) transfer an Excell spreadsheet into MySQL table?
  Thanks in advance!

As far as I remember, you may have some trouble with the primary keys, when 
exporting excel tables to MySQL through MyODBC... They seem to be recorded as 
normal fields, not primary key.
Well, i'm not sure ;-)

- -- 
   ,,
  (°   Nicolas Costes
  /|\   IUT de La Roche / Yon
 ( ^ )  Clé publique: http://www.keyserver.net/
  ^ ^   http://www.gnu.org/philosophy/can-you-trust.fr.html


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+7zdyNc2aXy7LuOgRAt3sAJ9HqRuqUQMWWYbhiEtj9tNsEhXGXACfe7zG
rdu7+/CFVLhn18e6+KWhzRc=
=jg3+
-END PGP SIGNATURE-


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



Re: [PHP] 1. april

2003-04-01 Thread Nicolas Costes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le Mardi 1 Avril 2003 12:57, Thomas Richter a écrit :
 check the output of phpinfo(). I prefer php version 4.2.3...

 thomas

Php 4.1.2 = I see nothing strange... 
Oh ! The PHP logo has disappeared, that's all :-(

What shoud we see ?

- -- 
   ,,
  ( °  Nicolas Costes
  /||\IUT de La Roche / Yon
 ( ^ )   Nicolas.Costes AT iut-laroche.univ-nantes.fr
  ^ ^   Clé publique: http://www.keyserver.net/


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+iXTpNc2aXy7LuOgRAilVAKCD7m1mFv+cMSJV2J14tLKwxKCbGwCgmWlB
kYprQrn9NBNlcv39YbRw64g=
=2oxb
-END PGP SIGNATURE-


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



Re: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Nicolas Costes
Le Lundi 2 D¨¦cembre 2002 13:30, [EMAIL PROTECTED] a ¨¦crit :

 Who can tell me the best php-base webmail?
 I want a webmail for my mail server,
 give me a suggest, please!
Joskey Liaus
[EMAIL PROTECTED]

This is a hard question to answer ;-)
I use SquirrelMail (http://www.squirrelmail.org/), Which is quite good...
IlohaMaim (http://ilohamail.org/) Looks quite fine, too.
Have you tried IMP ?

-- 
   ,,
  ( ¡ã  Nicolas Costes
  /||\IUT de La Roche / Yon
 ( ^ )   [EMAIL PROTECTED]
  ^ ^http://luxregina.free.fr

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




[PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Nicolas Costes


Er, ... Well, that mail seemed too long :-)

So my question is : Are there differences between PHP3 and PHP4, in the 
manner of passing variables to a script ???

Thanx for your help ...

-- 
 ( ° Nicolas Costes
 //\\  IUT de La Roche / Yon
/ \/ ) [EMAIL PROTECTED]
`-  http://luxregina.free.fr

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




Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Nicolas Costes

Le Mercredi 29 Mai 2002 16:15, vous avez écrit :
 Not really. You still pass variables through GET, POST, or COOKIE data. How
 you access the value is different based on your configuration and the PHP
 version. It's different for different versions of PHP4, too. Do you have a
 specific question or problem?


Well My first mail ( Submitted form doesn't work) told all the (long) 
story...
But i was too long, i had no answer !

So, shortly, a script that worked for a year now (.php3) is not working 
anymore, since i renamed it (.php) and added 2 PHP4 functions (ob_start, 
ob_end) 
My provider recently upgraded to PHP4.xxx, that's why i decided such a change.

There's a form, four inputs, and when i post the form, the variables are not 
set in the target script (well, the same script :-) 

More (too much) details in my previous mail Submitted form doesn't work .

Thanx

-- 
 ( ° Nicolas Costes
 //\\  IUT de La Roche / Yon
/ \/ ) [EMAIL PROTECTED]
`-  http://luxregina.free.fr

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




Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Nicolas Costes
--



-- 
 ( ° Nicolas Costes
 //\\  IUT de La Roche / Yon
/ \/ ) [EMAIL PROTECTED]
`-  http://luxregina.free.fr

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




Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Nicolas Costes

Le Mercredi 29 Mai 2002 16:55, 1LT John W. Holmes a écrit :
 It's probably your register_globals setting. with it off, you have to use
 the HTTP_*_VARS or _* variables where * is GET, COOKIE, or POST. With it
 on, those are still available, but you also have the form element names
 registered.

 input type=text name=foo

 With register globals on, you have a variable $foo that contains the user
 input. This is probably how you were doing it before. With a new
 installation of PHP4, register_globals defaults to off, however.

I tought about it, but $foo instead $_POST[foo] is still working on another 
.php script, confusing me  What's happening ???



 ---John Holmes...

 - Original Message -
 From: Nicolas Costes [EMAIL PROTECTED]
 To: 1LT John W. Holmes [EMAIL PROTECTED]
 Cc: PHP ((E-mail)) [EMAIL PROTECTED]
 Sent: Wednesday, May 29, 2002 10:32 AM
 Subject: Re: [PHP] php3 / php4 vars - Submitted form doesn't work

  Le Mercredi 29 Mai 2002 16:15, vous avez écrit :
   Not really. You still pass variables through GET, POST, or COOKIE data.

 How

   you access the value is different based on your configuration and the

 PHP

   version. It's different for different versions of PHP4, too. Do you
   have

 a

   specific question or problem?
 
  Well My first mail ( Submitted form doesn't work) told all the (long)
  story...
  But i was too long, i had no answer !
 
  So, shortly, a script that worked for a year now (.php3) is not working
  anymore, since i renamed it (.php) and added 2 PHP4 functions (ob_start,
  ob_end) 
  My provider recently upgraded to PHP4.xxx, that's why i decided such a

 change.

  There's a form, four inputs, and when i post the form, the variables are

 not

  set in the target script (well, the same script :-) 
 
  More (too much) details in my previous mail Submitted form doesn't work

 .

  Thanx
 
  --
   ( ° Nicolas Costes
   //\\  IUT de La Roche / Yon
  / \/ ) [EMAIL PROTECTED]
  `-  http://luxregina.free.fr
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

-- 
 ( ° Nicolas Costes
 //\\  IUT de La Roche / Yon
/ \/ ) [EMAIL PROTECTED]
`-  http://luxregina.free.fr

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




[PHP] Libre !!!!

2002-02-11 Thread Nicolas Costes


Salut, olivier, ca va ???

bon, tiens, une adresse qui m'est arrivé ce matin :

http://interactif.lemonde.fr/article/0,5611,2861-7110-261386-0,FF.html

Dis, une idée pour les cours de Linux que tu donne aux AMI's : Fais leur donc 
installer LFS (Linux From Scratch, http://linuxfromscratch.org )    ;-D

Cela m'a beaucoup appris ... même si c'est un peu par hasard que mes agetty's 
se lancent correctement au démarrage (J'y ai passé un week-end rienque pour 
ca ...) . Résultat, un distro encore plus dépouillée que la slackware, du pur 
martea-burin ... bon, ok, il faut une semaine pour l'installer sur un 
P233MMx, mais bon ...

Sinon, comment va le boulot à la fac ???

@+++

-- 
 ( ° Nicolas Costes
 //\\  IUT de La Roche / Yon
/ \/ ) [EMAIL PROTECTED]
`-  http://luxregina.free.fr

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




Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Nicolas Costes


As already said here, you cannot reverse the md5() function ...
So :

-The user fills a login box (login, password)
-The PHP script 'crypts' this password with md5();
-The already-encrypted password in the database (or the passwd file) is
 
compared with the one provided by the user (and encrypted by PHP) : if they
 
aren't the same ... Bye !!!

And for more security, I use a JavaScript MD5 function to encrypt the 
provided password in the user's browser so it goes already encrypted on the 
net ... Then PHP's just got to compare it with the one in the database !!!


Le Mercredi 30 Janvier 2002 10:51, Jose a écrit :
 I'm making a proyect in php, and I have some doubts about the md5.
 I encript a password with it, but I don't know how to decrypt it again.

 Thanks.


 ---
- --
 Jose Fco. ( [EMAIL PROTECTED] ).
 OLINET, S.L. Teléfono: 952207135 - Fax: 952207600
 Avda. Juan Sebastián Elcano, 39-41. 29017 Málaga.
 ---
- --

-- 
 ( ° Nicolas Costes
 //\\  IUT de La Roche / Yon
/ \/ ) [EMAIL PROTECTED]
`-  http://luxregina.free.fr

-- 
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] How can I decrypt a password I previously coded with m d5()?

2002-01-30 Thread Nicolas Costes


E, well, i forgot where i got it (but it was from here, someone gave me 
the link...) ... I'm going to take a look, be patient.


Le Mercredi 30 Janvier 2002 13:15, Ford, Mike   [LSS] a écrit :
  -Original Message-
  From: Nicolas Costes [mailto:[EMAIL PROTECTED]]
  Sent: 30 January 2002 10:19
 
  And for more security, I use a JavaScript MD5 function to encrypt the
  provided password in the user's browser so it goes already
  encrypted on the
  net ... Then PHP's just got to compare it with the one in the
  database !!!

 Any chance of getting a look at this function, to save reinventing the
 wheel?

 Cheers!

 Mike

 -
 Mike Ford,  Electronic Information Services Adviser,
 Learning Support Services, Learning  Information Services,
 JG125, James Graham Building, Leeds Metropolitan University,
 Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
 Email: [EMAIL PROTECTED]
 Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
 ( ° Nicolas Costes
 //\\  IUT de La Roche / Yon
/ \/ ) [EMAIL PROTECTED]
`-  http://luxregina.free.fr

-- 
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] How can I decrypt a password I previously coded with m d5()?

2002-01-30 Thread Nicolas Costes
); 
c = ii(c, d, a, b, x[i+10], 15, -1051523);
b = ii(b, c, d, a, x[i+ 1], 21, -2054922799); 
a = ii(a, b, c, d, x[i+ 8], 6 ,  1873313359);
d = ii(d, a, b, c, x[i+15], 10, -30611744); 
c = ii(c, d, a, b, x[i+ 6], 15, -1560198380);
b = ii(b, c, d, a, x[i+13], 21,  1309151649); 
a = ii(a, b, c, d, x[i+ 4], 6 , -145523070);
d = ii(d, a, b, c, x[i+11], 10, -1120210379); 
c = ii(c, d, a, b, x[i+ 2], 15,  718787259);
b = ii(b, c, d, a, x[i+ 9], 21, -343485551); 

a = add(a, olda); 
b = add(b, oldb);
c = add(c, oldc); 
d = add(d, oldd);
  } 
  return rhex(a) + rhex(b) + rhex(c) + rhex(d);
} 

--




Le Mercredi 30 Janvier 2002 13:15, Ford, Mike   [LSS] a écrit :
  -Original Message-
  From: Nicolas Costes [mailto:[EMAIL PROTECTED]]
  Sent: 30 January 2002 10:19
 
  And for more security, I use a JavaScript MD5 function to encrypt the
  provided password in the user's browser so it goes already
  encrypted on the
  net ... Then PHP's just got to compare it with the one in the
  database !!!

 Any chance of getting a look at this function, to save reinventing the
 wheel?

 Cheers!

 Mike

 -
 Mike Ford,  Electronic Information Services Adviser,
 Learning Support Services, Learning  Information Services,
 JG125, James Graham Building, Leeds Metropolitan University,
 Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
 Email: [EMAIL PROTECTED]
 Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
 ( ° Nicolas Costes
 //\\  IUT de La Roche / Yon
/ \/ ) [EMAIL PROTECTED]
`-  http://luxregina.free.fr

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




[PHP] GetHostByName

2002-01-16 Thread Nicolas Costes

Hi all !!!

I've made a PHP script which takes IP's of my network (x.x.x.2 - x.x.x.254)
and then uses GetHostByName() to resolv names of the machines if they exist.
(This is in order to check for free IP's and redo my DHCP config)

But this only works for my own machine, because I filled my /etc/hosts with 
it's address and name... PHP (Or Linux) doesn't try to check outside 

What can i do ???
Do I have to lauch any kind of daemon to resolve names ???
Most of my machines are addressed by DHCP.

Note : Same kind of program written with C++ returns  Unknown Host

Thanx,
-- 
 ( ° Nicolas Costes
 //\\  IUT de La Roche / Yon
/ \/ ) [EMAIL PROTECTED]
'-  http://luxregina.free.fr

-- 
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] principiante(beginer)

2002-01-11 Thread Nicolas Costes

Hola !!!
Tienes que ins oh, sorry. ;-))

You need to install MsSQL support for PHP, by getting the right PHP module 
and adding it in your 'php.ini' file  see this file for the exact syntax.

Hasta la vista ...

Le Vendredi 11 Janvier 2002 19:14, vania a écrit :
 quiero conectarme con un servidor sql server 2000
 y hasta ahora no he podido. lo intentado con la funcion
 mssql_connect(server name, user name, contraseña) y en el browser
 recibo el siguiente mensaje
 Fatal error: Call to undefined function: mssql_connect() in
 c:\inetpub\wwwroot\receve\prueba.php

 alguien puede guiarme se lo agradeceria

 ---
- i wanna to connect to sql server 2000 and i can not.
 i try with the function of mssql' s library mssql_connect(server name,
 user name, contraseña) and not have good results

 Do Help me somebody? I need it very much
 thanks for all

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon, poste 8449
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
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] echo problem NEW

2002-01-09 Thread Nicolas Costes

Hellorghh !!!
You'd better do like this :

echo table border='0' cellpadding='0' cellspacing='0' width='639'


Le Mercredi 9 Janvier 2002 13:05, Henning Sprang a écrit :
 Hy,

 universal2001 wrote:
  Hi again!
 
  Thanks for the reply!
 
  I still have another question:
 
 
  so I tired to use (echo) like this:
 
  echo table border=0 cellpadding=0 cellspacing=0 width=639
tr
  tdimg src=img_heading/spacer.gif width=25 height=1
  border=0/td
/tr
tr
  td colspan=11img name=index_r1_c1
  src=img_heading/index_r1_c1.gif width=639 height=5 border=0/td
  tdimg src=img_heading/spacer.gif width=1 height=5
  border=0/td
/tr
tr
  td rowspan=5img name=index_r2_c1
  src=img_heading/index_r2_c1.gif width=25 height=43 border=0/td
  /table;
  but it DOES NOT WORK.
  How do I get way with all of the quotation marks

 1) you can escape each double quote with a backslash,
 the first line of your thing woulkd then look like

 echo table border=\0\ cellpadding=\0\ cellspacing=\0\
 width=\639\

 and so on

 2) if you don't want this by any reason, you can use single quotes to
 mark the text you want to print out like in

 echo 'table width=100%';

 the difference is that with single quotes you will _not_ be able to use
 variable replacement in between the quotes, something like

 ?
 $myvar=100;
 echo table width=\$myvar\;
 ?

 will output

 table width=100%


 while this:

 ?
 $myvar=100;
 echo 'table width=$myvar';
 ?

 will output exactly

 table width=$myvar


 hth,
 henning

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
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] echo problem NEW

2002-01-09 Thread Nicolas Costes


Yes, you're right !!!

some browsers like IE will accept even  blah blah=0, blah blah='0', blah 
blah=0, and some like Opera will only understand :
IE SuxWithTooEasySyntax=1 ;-))

Le Mercredi 9 Janvier 2002 14:17, Henning Sprang a écrit :
 Nicolas Costes wrote:

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
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] Re: PHP vs. ASP

2002-01-09 Thread Nicolas Costes

Well, I don't know ASP, but I fonud that learning PHP was really easy when 
you already know C, C++  And no variables types, pointer, etc ... is 
great !!!

Le Mercredi 9 Janvier 2002 17:01, Dean Ouellette a écrit :
 I am a newbie to programming,  ASP is easier to learn?  I heard PHP was

 At 04:48 PM 1/9/2002 +0100, Robert Klinkenberg wrote:
 Well, I personally prefer PHP over ASP because better support from
 webhosting companies, but ASP has some good points.
 This is especially the case if you can setup the complete hosting
 environment yourself and have some money to spend.
 
 First of all databases. PHP has support for a limited but interesting list
 of databases, especially the support for mysql and postgres is handy for a
 webserver. On the other hand, ASP has good support for most bussiness
 servers (ORACLE MS SQL Server,) with OLE-DB and a lot more databases
 with ODBC.
 
 The development tools. Definately a win for ASP (with vb.net C# and C++
  you have a complete IDE and with Dreamweaver Ultradev you can pretty much
  point and click. SO you can choose whatever tool you like.
 PHP has very limited IDE's.
 
 Price. ASP solutions are mostly build with Windows 2000 Server and MS SQL
 Server or Oracle and an expensive IDE. So it's pretty expensive to build.
 PHP is mostly used with Linux, Apache and MySQL and is a lot cheaper (you
 only need to buy the hardware and the software is virtually free)
 
 Programming language: This is off course a personal taste but with ASP
 (.net) you can use VB/C++/C#. So if you are used to VB or C++ it's a bit
 easier to start with.
 
 Modules. Both have a lot of free tools available. However I personally
  find the PHP modules more usefull. (With the exception of the Crystal
  Report generator in .net, pretty usable reports without a lot of work).
 
 It's a bit easier for a novice to get started with ASP as with PHP, and
  it's pertty easy to make the project look good.
 
 So, if you have the cash and some inexperienced programmers working for
  you ASP is the save bet. If you have a small company, are a student,
  depend on webhosting or are a pretty experienced programmer, PHP might be
  a better choose.
 
 Robert Klinkenberg
 
 --
 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]

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
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] Logo proposal - voting script!

2001-12-17 Thread Nicolas Costes


Arg 

-


Not Found The requested URL /vote/logo.php was not found on this server.


Apache/1.3.22 Server at zoon.se Port 80

--

What's happenin' ??

Le Vendredi 14 Décembre 2001 18:50, Andrew Chase a écrit :
 Hmm, I get a 404 error as of 17:44 GMT.

 I hope that 'Mole' is one of the options on the list... I'm kind of
 inclined to defer to Rasmus on the issue anyway, what with him being the
 guy responsible for creating PHP in the first place. :)

 I'm also keeping in mind that (unless I missed something), there's been no
 indication that any animal mascot would be officially adopted by the
 project. ;)

  -Original Message-
  From: Michael Cronstrom [mailto:[EMAIL PROTECTED]]
  Subject: [PHP] Logo proposal - voting script!
 
  a voting script!
 
  at: http://zoon.se/vote/logo.php

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
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] substr trim functions..

2001-12-14 Thread Nicolas Costes


$pos=strpso($line, );
$last=substr($line, $pos, strlen($line));

http://www.php.net/manual/en/function.substr.php
http://www.php.net/manual/en/function.strpos.php
http://www.php.net/manual/en/function.strlen.php

@+++

Le Vendredi 14 Décembre 2001 17:11, Andras Kende a écrit :
 I trying to convert some full names to last names only like:
 -get the subtext from the end until the space

 joe blue - blue
 bill western - western

 Looked around at php.net docs but im not sure...

 Thanks

 Andras

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

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

2001-12-13 Thread Nicolas Costes


well, I think the ant is a good idea, but :

t's a bunch of people
that have grown PHP into what it is and I think that fits.

that fits too for Linux, and many others  But this idea fits to me .

Le Jeudi 13 Décembre 2001 13:26, Adrian Teasdale a écrit :
 I'd kind of ignored this whole thread thinking it was going on and on, but
 in the end I have to say something :)

 None of the other animals really captured my attention, but having an Ant
 would be quite cool.  Not because of the ant on its own, but it's usually a
 whole bunch of ants that really really do achieve something (just
 remembering all those national geographic programs). It's a bunch of people
 that have grown PHP into what it is and I think that fits.  I'd go for the
 ant myself :)

 Someone put up a voting script !

 Ade

 --- i n o v i c a h o s t i n g . c o m --

 Powerful hosting from www.inovicahosting.com

 

  -Original Message-
  From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]]
  Sent: 13 December 2001 12:05
  To: PHP
  Subject: Re: [PHP] Logo proposal
 
 
  Aunt is more similar very similar to PHP. Very industrious and powerful
  ;)
 
  - Original Message -
  From: PHPGalaxy.com [EMAIL PROTECTED]
  To: Php-General [EMAIL PROTECTED]
  Sent: Thursday, December 13, 2001 1:31 PM
  Subject: Re: [PHP] Logo proposal
 
   Actually I heard it's 50 times it's weight, but I refuse to be
 
  anal about
  it. =)
 
   Who's to say ants dont work just as hard in the winter? We can't se
   em..
 
  unless
 
   it's because they're dormant in the winter, in which case I just made
 
  myself look
 
   INCREDIBLY stupid =)
 
  --
  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]

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
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] Need high bandwidth provider for my Asian community site

2001-12-13 Thread Nicolas Costes


constructive answer, huh ???
:-))

Le Jeudi 13 Décembre 2001 15:31, Andrew Brampton a écrit :
 Well just looking at the source of your HTML, you could save yourself some
 bandwidth by shrinking it a bit.
 For example
 change the br / into br
 place your JavaScript into a .js file
 remove a lot of the new lines
 also remove the tabs.

 Just doing this I changed the file size of a random forum page from
 21090Bytes to 19192Bytes.
 Thats saved you about 10%. That 2GB a month :)

 You could shrink it even more by removing the  around attributes in html
 tags (but that may break some browsers)

 Also if possible you could get the GZip module installed for apache. This
 GZips the pages up, sends them, and then your browser automatically ungzips
 them. This only occurs with browsers that support it. But a quick test
 changed your 20k file into a 3k file. That even more of an improvement for
 a little server side processing. (thats 20GB into 3GB :)). But I guess your
 Host wouldn't like to do this for you unless it was your own dedicated box.

 Hope these suggestions help you some how

 Andrew
 - Original Message -
 From: sunny AT wde [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 13, 2001 1:13 PM
 Subject: Re: [PHP] Need high bandwidth provider for my Asian community site

  I also forgot to ask:
 
  are messageboards really big bandwidth suckers?? I get about 2000
  messages posted a day on my messageboard and I use up nealry 20 gigs
  with that. Is this normal?
 
  My site is - www.barfiCulture.com
 
  thanks
 
  sunny
 
  --- sunny AT wde [EMAIL PROTECTED] wrote:
   Hi all,
  
   I manage an South-Asian community site from the UK (but hosted in
   USA) which is currently wolfing down 20 GB per month and is
   increasing to about 25 very soon as the popularity grows.
  
   I've searched the mailing lists, but couldn't find a good solution.
   How shall I go about increasing bandwidth? Should I go for a
   dedicated boxes? Or does anyone know a host that provides 25-30 a
   month fairly cheaply (its a non-commercial site).
  
   TIA
  
   sunny
  
   __
   Do You Yahoo!?
   Check out Yahoo! Shopping and Yahoo! Auctions for all of
   your unique holiday gifts! Buy at http://shopping.yahoo.com
   or bid at http://auctions.yahoo.com
  
   --
   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]
 
  __
  Do You Yahoo!?
  Check out Yahoo! Shopping and Yahoo! Auctions for all of
  your unique holiday gifts! Buy at http://shopping.yahoo.com
  or bid at http://auctions.yahoo.com
 
  --
  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]

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

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

2001-12-13 Thread Nicolas Costes

If you would like information on the
performance results I might be able to round up some of the data.

er, ... YEs, we'd like  !!!
;-)

Le Jeudi 13 Décembre 2001 18:45, Jim Lucas a écrit :
 the site that I design for has converted all of the echo; print()  and
 any other printing function of php into a simple breakout into HTML.

 ie:
 ?
 for($i=0;$i10;$i++)
 {
 ?We have done ?=$i? loop.?
 }
 ?

 We have done performance testing on most everything that can be done out
 put and include()/require() stuff.  If you would like information on the
 performance results I might be able to round up some of the data. It is
 faster and cleaner.

 Jim Lucas
 www.bend.com


 - Original Message -
 From: René Fournier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 9:05 AM
 Subject: [PHP] Performance


 Is it true that mixing HTML and PHP--switching back and forth with
 ?php ?  tags--slows down performance? (I'm using PHP4.) Is it better
 to echo output than to drop out of PHP mode?

 And concerning database connections, my ISP asks that I always close a
 MySQL connection with a mysql_close()--which I can understand. But I'm
 curious, if I have to make, say, 10 SELECTs throughout a page (in the
 header, body, and footer), is it perhaps faster to use the mysql_close()
 at the very end of the page (in the bottom of the footer.inc)? In other
 words, is there any disadvantage performance-wise (or stability reason)
 to open and immediately thereafter close mysql connections?

 Can anyone recommend an article or two on coding techniques for
 improving PHP and MySQL performance? I don't wan to spend the rest of my
 life optimizing my php code, but if I knew a few basic rules about its
 performance characteristics, I might be able to make better decisions
 when coding. Thanks.

 ...Rene

 ---
 René Fournier,
 [EMAIL PROTECTED]

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

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

2001-12-13 Thread Nicolas Costes


A good way to avoid HEADER errors too


Le Jeudi 13 Décembre 2001 19:14, René Fournier a écrit :
 That certainly makes sense on one level, but I think it really comes
 down to the question, what is more compute intensive--echoing the HTML
 while in PHP mode, or context-switching to HTML and back again to PHP?
 (It could be that the difference, if any, is negligible--but I'd like to
 at least know BEFORE I write 100 million lines of otherwise perfect
 code :-)

 ...Rene

 On Thursday, December 13, 2001, at 10:26  AM, Nathan Cassano wrote:
  I have always assumed straight html was faster than function output. My
  logic being that quoted output requires more parsing than straight
  html. But they may be the same speed after a simple optimization pass.
 
  -Original Message-
  From: René Fournier [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 13, 2001 9:05 AM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: [PHP] Performance
 
 
  Is it true that mixing HTML and PHP--switching back and forth with
  ?php ?  tags--slows down performance? (I'm using PHP4.) Is it better
  to echo output than to drop out of PHP mode?
 
 
  --
  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]

 ---
 René Fournier
 [EMAIL PROTECTED]

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

--
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] Test message.

2001-12-12 Thread Nicolas Costes


$query=SELECT * FROM messages WHERE subject='Test message.' AND body LIKE 
'%return TRUE%' ;


Le Mercredi 12 Décembre 2001 13:28, Dave Brotherstone a écrit :
 return TRUE;

  -Original Message-
  From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
  Sent: 10 December 2001 11:06
  To: [EMAIL PROTECTED]
  Subject: [PHP] Test message.
 
 
  Test
 
 
  --
  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]

-- 
( °Nicolas Costes,
/ | \   IUT de La Roche / Yon
( ^ )   [EMAIL PROTECTED]
 -http://luxregina.free.fr

--
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] a piece of PHP history

2001-12-12 Thread Nicolas Costes


Interesting ... Did he think about generating such  a movement ???

Le Mercredi 12 Décembre 2001 15:38, Monte Ohrt a écrit :
 Google now has 20 years worth of newsgroup archives. Here is a link to
 what is probably the first PHP post by Rasmus.

 http://groups.google.com/groups?q=%22Personal+Home+Page%22+author:Rasmus+au
thor:Lerdorfhl=enscoring=das_drrb=bas_mind=17as_minm=5as_miny=1981as_
maxd=12as_maxm=12as_maxy=1995rnum=2selm=3r7pgp%24aa1%40ionews.io.org

-- 
 ( * Nicolas Costes,
 //\\  IUT de La Roche / Yon
( \/ ) [EMAIL PROTECTED]
http://luxregina.free.fr

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




[PHP] c++ help

2001-10-23 Thread nicolas costes

Hello, this is out of topic but I need some URLs of good C/C++
tutorials/exemples sites ...
I really think some of you are former C programmers :)
If it is , well, I'm lokking for a good manner to get the IPs of my machine,
particularly the one used to get on the internet !!! (something like  #
ifconfig | grep inet | cut -d: -f2| cut -d  -f1  ...)
thanx ...

[when I've finished with my C program, I get back to PHP :-)]


(°-Nayco.
//\[EMAIL PROTECTED]
v_/_http://nayco.free.fr


-- 
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] validating form data...

2001-10-22 Thread nicolas costes

hellorghh !!!

I think that :

if ((email_is_valid($Email))  ($Name != )  ($Message != )){
   do stuff ...
 }

...should be better . (, not and)


Toke Herkild [EMAIL PROTECTED] a écrit dans le message news:
[EMAIL PROTECTED]
 I've made a script which ought to validate if there is data in the fields
or
 not... but it doesn't seem to work...

 the validation is following:
 if ((email_is_valid($Email)) and ($Name != ) and ($Message != )){
   do stuff ...
 }

 But even if I submit an empty form it executes do stuf...
 I have tried to put an empty space into the $Name and $Message test but
that
 doesn't seem to do any difference either...



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



(°-Nayco.
//\[EMAIL PROTECTED]
v_/_http://nayco.free.fr


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




[PHP] CheckBoxes and Arrays

2001-09-12 Thread nicolas costes

have you tried : 

Input Type=\CheckBox\ Name=\ChkBox[]\ Value=\$row-ID\

-- 


(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


Ryan Stephens [EMAIL PROTECTED] a écrit dans le message : 
[EMAIL PROTECTED]
 Im trying to output a list of options, each with a checkbox named ChkBox
 and with a value of the ID number from the database. This is no prob.
 The thing is, i want to be able to select some of those checkboxes (any
 number, in combination) and delete the information from the database that is
 associated with the ID for that CheckBox.
 
 Example of input tag:
 --
 echo TDInput Type=\CheckBox\ Name=\ChkBox\ Value=\$row-ID\\n;
 ---
 
 Now i thought that if i selected say items 1, 2, 3 from the list (and there
 IDs are 1, 2, 3) then When i submit the form a comma delimited string would
 be created (an array even not sure what it is).
 
 How would i loop through this list and break it apart so i can delete each
 record from the database that was selected.
 
 Ryan
 
 
 
 -- 
 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]
 



[PHP] JavaScript MD5()

2001-09-11 Thread nicolas costes

Hellorgh, all !!!
Does anyone knows if there is a way to MD5-encode strings with JavaScript ?

I use MD5() to encode passwords then insert them in my account database,
and when a user logs in, i do MD5($password_provided_by_form) to compare it
with the one stored in the DB.
Ok, fine, I cannot see the users's passwords but when they log in, everyone
can sniff it !!!

That's why i'd like to encode passwords at client-side a Javascript
MD5() function should be fine, but i think it doesn't exists  and I
can't use (and i don't know how to ;~p ) SSL, https: 

Someone's got any solution 

Thanx,


(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


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




[PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread nicolas costes

maybe one day, PHP will implement user defined tags 
this could be an idea, if this is prooved to be useful.



(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr

ORIGINAL MESSAGE-

Yep this is not bad!
 html
 Hello, showusername/.  Your last login was showlastlogin/.p
 /html

and now using PHP's short tags, you can make it even prettier:

 html
 Hello, ?=showusername()?.  Your last login was ?=showlastlogin()?.p
 /html

Right?

Dr. Evil [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 It seems to me that one of the problems with PHP is that you have to
 include code in your HTML pages.  Even with the cleanest design, you
 end up with HTML that looks like this:

 html
 Hello, ?php showusername(); ?.  Your last login was ?php
 showlastlogin(); ?.p
 /html

 This is ok, but it seems to me that java taglibs provide a more
 elegant way to do the same things:

 html
 Hello, showusername/.  Your last login was showlastlogin/.p
 /html

 This lets the backend stuff be completely separated from the html
 design part of things.  What do people think of this?  I'm just now
 learning JSP so I'm thinking about the differences between PHP and
 JSP.

 In general, both are powerful ways of creating dynamic websites, but
 they have different characteristics and are better for different
 things.  I'm learning java but I will continue to use both, depending
 on the task.



-- 
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] Re: [PHP-DEV] Anagram Type Puzzle

2001-09-10 Thread nicolas costes

html
body
?php

 $tab=array(a=26,b=25,c=24,d=23,
e=22,f=21,g=20,h=19,
i=18,j=17,k=16,l=15,
m=14,n=13,o=12,p=11,
q=10,r=9,s=8,t=7,
u=6,v=5,w=4,x=3,
y=2,z=1);


 $fid=fopen(testfile.txt,r);

 $line_num=0;
 while (!feof($fid))
   {
   $line_num++;
   file://echo ligne : $line_num\nbr\n;
   $line = strtolower(fgets($fid,4096));
   file://echo contenu de la ligne : $line\nbr\n;
   $words= explode( ,$line);
   while (list($foo,$word)=each($words))
  {
  $word_value=0;
  for ($car=0;$carstrlen($word);$car++)
{
file://echo lettre : $word[$car] - \t;
if ($letter_value=$tab[$word[$car]])
 $word_value+=$letter_value;
}
   file://echo mot : $word; ;
   file://echo valeur : $word_value\nbr\n;
   if ($word_value==100)
echo the word b$word/b on line $line_value of
the input file has a value of $word_value.br\n;
   }
   }
 echo br\nfont color=\red\If nothing appears above, no word with
a value of 100 was found !!!\n;

?
/body
/html


(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


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