Re: [PHP] Mysql Select

2003-02-09 Thread Nicola Delbono
SELECT DISTINCT(gallery.design) FROM gallery : > >I want to limit to 1 the same names returned from the query like: [CUT] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ODBC looping on Linux

2002-05-23 Thread Nicola Delbono
re UPDATE to free the resources. odbc_free_result doesn't seem to work.. Thank you all Nicola Delbono /// Il notiziario dei notiziari http://www.notiziarioweb.it/ /// www.smscitta.com

Re: [PHP] Security of PHP code

2001-07-04 Thread Delbono
Yes, I supposed there could be that eventuality... I supposed or hoped that wasn't a valid path. > /usr/local/apache/htdocs/../../../../etc/passwd as path.. I'm not very practice of paths... actually > On Wed, 4 Jul 2001, Steve Werby wrote: > > > "Jon Haworth" <[EMAIL PROTECTED]> wrote

Re: [PHP] Security of PHP code

2001-07-04 Thread Delbono
maybe one could be $allowed_path ) { die("not allowed!"); } else { show_source($file); } ?> - Original Message - From: "Hankley, Chip" <[EMAIL PROTECTED]> To: "PHP Mailingliste" <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 5:45 PM Subject: RE: [PHP] Security of PHP code > O

Re: [PHP] Security of PHP code

2001-07-04 Thread Delbono
would be really silly if http://www.php.net/source.php?url=/index.php - Original Message - From: "Tim Taubert" <[EMAIL PROTECTED]> To: "PHP Mailingliste" <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 5:27 PM Subject: RE: [PHP] Security of PHP code > found 2 other servers

Re: [PHP] emalloc / erealloc problem (was: help with custom session handler)

2001-07-01 Thread Delbono
I had the same problem whenever retrieving data from MSSQL using ODBC from a NULL field. To "solve" the problem I had to add a character asd default to that field. I added a dot. descr nvarchar default '.' . (the sql sintax here is not the correct one.) - Original Message - Fr

Re: [PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Delbono
Try this: $r = trim($rowData[3]); if ( !empty( $r ) ) { $tdStr.= trim($rowData[3]); } I tokk a look at the manual: 1. Note: empty() is a language construct. so: !empty is like to say !if or !while : so it's wrong- 2. Note that this is meaningless when used on anything which isn't a varia

Re: [PHP] Week Number

2001-06-30 Thread Delbono
You can use Date_Calc class http://www.phpinsider.com/php/code/Date_Calc/ - Original Message - From: "Don Read" <[EMAIL PROTECTED]> To: "Matt "TrollBoy" Wiseman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 29, 2001 10:19 PM Subject: RE: [PHP] Week Number > > On 2

Re: [PHP] Function

2001-06-29 Thread Delbono
you can use array_walk array_walk (PHP 3>= 3.0.3, PHP 4 >= 4.0b1) array_walk -- Apply a user function to every member of an array Description int array_walk (array arr, string func, mixed userdata) - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc:

Re: [PHP] Adding a line of text to every page PHP spits out

2001-06-28 Thread Delbono
you can use auto_prepend - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Wednesday, June 27, 2001 9:51 PM Subject: [PHP] Adding a line of text to every page PHP spits out Hello, I want to have a DOC Type ate the top of ev

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-28 Thread Delbono
Hello, I had the same problem: So I tried stripslashes.. But Queries do break if unslashed ' or " are present. and furthermore, there are many other problems .. So I created a function called "entities".. Let's imagine a user made an input of name: Simon "The Snake" surname:O'Con

Re: [PHP] log out method

2001-06-21 Thread Delbono
Hello, I tried to use BCC in may mail()  but it doesn't work.     Server is Win2k     Also CC has problems ...   If I send to:   To:  [EMAIL PROTECTED]   CC:  [EMAIL PROTECTED]     Then if I download my mails, I can see:   CC:  [EMAIL PROTECTED]   but the CC is not delivered (also on valid ema

[PHP] user tool to > admin groups, subgroups, and users.

2001-05-04 Thread Delbono
Is there any? I need to create a tool for creating administering users like this. user1, user2, user3, etc.. Under user1 there are subuserA, subuserB, subuserC, etc.. Under subuserA there are many other users... it's like a piramyd. Does anyone know any link about such a tool? Thanks Ni

Re: [PHP] sorting multi-dimensional arrays

2001-04-14 Thread Delbono
hh, no, maybe the samplecode I posted it's not your case, sorry... > I have a question about sorting multidimensional arrays. Here is my problem: > > I have an 2-d array: > $joke[1][rating]=10; > $joke[2][rating]=20; > $joke[3][rating]=15; > > > I would like to sort the jokes into an

Re: [PHP] sorting multi-dimensional arrays

2001-04-14 Thread Delbono
Try this (it should work): while(list($k, $v) = each($myarray)){ $myarray[$k] = (int) $v; } arsort($myarray); reset($myarray); while(list($k, $v) = each($myarray)){ echo $k, ' == ', $v, "\n; } For better comprehension look at this post: >Hey guys.. > >I have this array that looks like thi

Re: [PHP] Building an array from a URL

2001-04-04 Thread Delbono
I think the function parse_str does exactly what you want. http://www.php.net/manual/en/function.parse-str.php - Original Message - From: "Knut H. Hassel Nielsen" <[EMAIL PROTECTED]> To: "Mike Gifford" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 04, 2001 6:12

Re: [PHP] send a mail

2001-02-21 Thread Delbono
To me, the SMTP in php.ini is wrongly configured. Secondo me è settato male l'SMTP nel php ini. Ciao > Hi, I am new of php > > I have a file: send.php3 > > c:\type f:/http/php/send.php3 > mail("[EMAIL PROTECTED]", "Subject test", "test text"); > ?> > c:\ > > when I get the page from my web serv

Re: [PHP] Maximum execution time

2001-01-23 Thread Delbono
put this line set_time_limit(500) ; at the beginning of your script if you want to enlarge execution time for 500 seconds. - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 23, 2001 4:48 PM Subject: [PHP] Maximum execution time

[PHP] R: [PHP] Can a PHP program recieve an e-mail and write it to a file???

2001-01-18 Thread Delbono
It depends on your MAIL SERVER (and on your OS.) For Linux I think SendMail can forward mails to an external program For WinNT I know POSTOFFICE allows this. But PostOffice is commercially released not for free. In this case the mails are redirected to the program via STDIN Bye N. -Messa