OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 30 May 2005 22:04:30 -0000 Issue 3484

php-general-digest-helplists.php.net
Date: Mon May 30 2005 - 17:04:30 CDT


php-general Digest 30 May 2005 22:04:30 -0000 Issue 3484

Topics (messages 215979 through 216009):

Re: Dummy question about gettion "select option" choosen
        215979 by: Satyam
        215990 by: Kim Madsen
        215993 by: M. Sokolewicz

Re: Can't Get PHP to work
        215980 by: Shaw, Chris - Accenture

Returned mail: see transcript for details
        215981 by: Bounced mail
        216009 by: Bounced mail

reporting software
        215982 by: Angelo Zanetti

Re: novice: how to run .sql script from php?
        215983 by: tony yau

delivery failed
        215984 by: The Post Office

Re: Free penetration test
        215985 by: Manuel Lemos
        215988 by: Kim Madsen
        215992 by: Murray . PlanetThoughtful
        215998 by: Ryan A
        215999 by: Manuel Lemos
        216000 by: Ryan A

Re: Stopping users to see uploaded files
        215986 by: Kim Madsen

Re: browse childnodes but not recursively
        215987 by: Victor Spĺng Arthursson

Re: Warning: filemtime() (errno=75 - Value too large for defined data type)
        215989 by: Kim Madsen

Re: Replacing 2 strings
        215991 by: W Luke
        215994 by: Murray . PlanetThoughtful
        215996 by: Brian V Bonini
        215997 by: Murray . PlanetThoughtful
        216001 by: Brian V Bonini
        216002 by: W Luke
        216004 by: Murray . PlanetThoughtful
        216007 by: Brian V Bonini
        216008 by: W Luke

Japanese with UTF-8 and mysql
        215995 by: Mark Sargent

Re: Same sessions / different domains
        216003 by: Marek Kilimajer

Code Check
        216005 by: janbro

Re: Dummy question about knowing marked checkboxes
        216006 by: info.globalissa.com

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


Add the 'value' argument to the <option> tag.

<option value=1>1</option>

""Mário Gamito"" <liststuxdoit.com> wrote in message
news:429A4818.7010504tuxdoit.com...
> Hi,
>
> Thank you all who have helped me in the checkbox's question.
>
> This is an area to which i'm very fresh in PHP.
>
> I now have this code in a form:
> ---------------------------
> <select name="interesse[]">
> <option>1</option>
> <option>2</option>
> <option>3</option>
> (etc...)
> </select>
> --------------------------
>
> My question is, how can i, in the action code, retrieve the option
> choosen by the user ?
>
> My most apologies for yet another dummy question, but i google and
> google, and i always end up seeing examples fulls of complexity, when i
> want is such a simple thing.
>
> Thanking you in advance.
>
> Warm Regards,
> Mário Gamito

attached mail follows:


> -----Original Message-----
> From: Jochem Maas [mailto:jochemiamjochem.com]
> Sent: Monday, May 30, 2005 10:28 AM
> To: Mário Gamito

> > I now have this code in a form:
> > ---------------------------
> > <select name="interesse[]">
> > <option>1</option>
> > <option>2</option>
> > <option>3</option>
> > (etc...)
> > </select>
>
> if the form containing this element is posted then the following will
> so you what exactly is posted:
>
> var_dump( $_POST['interesse'] );
>
> which should show you an array of one or more items, which either
> come from many form elements named 'interesse[]' OR from a single
> element named 'interesse[]' where that element is multiselect
> (in which case the definition should be something like:
>
> <select name="interesse[]" multiple>
>
> or
>
> <select name="interesse[]" multiple="multiple">

I haven´t tried it but do You think that the multiple would work without a value in the option tag?

<option>3</option>

Should be

<option value="3">3</option>

--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper

attached mail follows:


Kim Madsen wrote:
>>-----Original Message-----
>>From: Jochem Maas [mailto:jochemiamjochem.com]
>>Sent: Monday, May 30, 2005 10:28 AM
>>To: Mário Gamito
>
>
>
>>>I now have this code in a form:
>>>---------------------------
>>><select name="interesse[]">
>>><option>1</option>
>>><option>2</option>
>>><option>3</option>
>>>(etc...)
>>></select>
>>
>>if the form containing this element is posted then the following will
>>so you what exactly is posted:
>>
>>var_dump( $_POST['interesse'] );
>>
>>which should show you an array of one or more items, which either
>>come from many form elements named 'interesse[]' OR from a single
>>element named 'interesse[]' where that element is multiselect
>>(in which case the definition should be something like:
>>
>> <select name="interesse[]" multiple>
>>
>>or
>>
>> <select name="interesse[]" multiple="multiple">
>
>
> I haven´t tried it but do You think that the multiple would work without a value in the option tag?
>
> <option>3</option>
>
> Should be
>
> <option value="3">3</option>
>
>
> --
> Med venlig hilsen / best regards
> ComX Networks A/S
> Kim Madsen
> Systemudvikler/Systemdeveloper
it *might* work, but it *should not* work.

attached mail follows:


Morning,

Check the extension path in the php.ini file in your c:\winnt directory.
I can remember that I had to change that when setting up php5 because the
directory was c:\php\extension and the path in the php.ini was c:\php\ext.

hth

C.

-----Original Message-----
From: Subscriber [mailto:subscribednewbiehangout.com]
Sent: 30 May 2005 00:30
To: php-generallists.php.net
Subject: [PHP] Can't Get PHP to work

Hi,

I sure hope someone here can help me. I spent the entire day yesterday
and most of the evening setting up a webserver on my Windows 2000 Pro
system.

I've got PHP 5.04, MySQL 4.1.12, ActivePerl 5.8.6, Java Runtime
Environment, Tomcat 5.5.9, ZendOptimizer 2.5.10, MyODBC 3.5.11 and
phpMyAdmin 2.6.2 all installed.

 From what I can tell, all is working well except PHP and phpMyAdmin.

I added PHP to my path like this:

C:\Perl\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:
\php;C:\Apache2\bin;C:\mysql\bin;C:\php\dlls;C:\Program
Files\Common Files\Ulead Systems\MPEG;"C:\Program Files\Zone
Labs\ZoneAlarm\MailFrontier"

I've got a copy of php.ini in both my c:/php directory and in
c://winnt. I've listed my user directory as c:/apache/apache2/htdocs
and I've placed phpmyadmin in htdocs.

But when I try to view a php page I get an error or page cannot be
displayed. On a couple of occassions I viewed the raw php data in my
browser.

Also, when I try to add a php extension using "LoadModule" in my
httd.conf file I get an error loading Apache telling me that "the file
cannot be found" (but I've verified it exists - like php5apache.dll and
php5ts.dll).

Can someone please help me figure out where I'm screwing up at?

Thanks in advance!

Edited to say I'm getting Closer!!!

Now when I go to
[url=http://localhost/phpmyadmin]http://localhost/phpmyadmin[/url] I get
the following info:

cannot load mysqli extension;
please check PHP configuration
[u]Documentation[/u]

And the documentation says:
[b][1.20] I receive the error "cannot load MySQL extension, please check
PHP Configuration". [/b]To connect to a MySQL server, PHP needs a set of
MySQL functions called "MySQL extension". This extension may be part of
the PHP distribution (compiled-in), otherwise it needs to be loaded
dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin
tried to load the extension but failed.

Usually, the problem is solved by installing a software package called
"PHP-MySQL" or something similar.

I have tried using both mysql and mysqli in config.inc.php (phpmyadmin
config file) and either way I get the same error message. And in
php.ini I have enabled the following extensions:

extension=php_mysql.dll
extension=php_mysqli.dll

************************

This message has been delivered to the Internet by the Revenue Internet e-mail service

*************************

attached mail follows:


ALERT!

This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner scans all outbound e-mail attachments. If a virus, worm, or other security threat is found, Road Runner cleans or deletes the infected attachments as necessary, but continues to send the original message content to the recipient. Further information on this initiative can be found at http://help.rr.com/faqs/e_mgsp.html.
Please be advised that Road Runner does not contact the original sender of the e-mail as part of the scanning process. Road Runner recommends that if the sender is known to you, you contact them directly and advise them of their issue. If you do not know the sender, we advise you to forward this message in its entirety (including full headers) to the Road Runner Abuse Department, at abuserr.com.

The original message was received at Mon, 30 May 2005 05:03:30 -0400
from lists.php.net [18.124.8.44]

----- The following addresses had permanent fatal errors -----
php-generallists.php.net

attached mail follows:


ALERT!

This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner scans all outbound e-mail attachments. If a virus, worm, or other security threat is found, Road Runner cleans or deletes the infected attachments as necessary, but continues to send the original message content to the recipient. Further information on this initiative can be found at http://help.rr.com/faqs/e_mgsp.html.
Please be advised that Road Runner does not contact the original sender of the e-mail as part of the scanning process. Road Runner recommends that if the sender is known to you, you contact them directly and advise them of their issue. If you do not know the sender, we advise you to forward this message in its entirety (including full headers) to the Road Runner Abuse Department, at abuserr.com.

The original message was received at Mon, 30 May 2005 17:49:12 -0400
from lists.php.net [222.88.21.194]

----- The following addresses had permanent fatal errors -----
php-generallists.php.net

----- Transcript of session follows -----
... while talking to 36.204.113.174:
554 <php-generallists.php.net>... Mail quota exceeded
554 <php-generallists.php.net>... Service unavailable

attached mail follows:


HI guys,

Do any of you use any really good reporting software? Preferably PHP or
open source reporting tool that will allow dynamic generation of
charts/graphs, also with drill down and roll up functionality. Please
also list software that you have used and you would not recommend,
basically what you've used and your experiences and recommendations.

thanks in advance
Angelo

-- 52

attached mail follows:


at the depth of execQuery(), an in-house function, it has already selected a
database, (default for the project).
my apologise for saying "problem with using mysql_query( ...)", it was my
misunderstanding of this
in-house function. Now I can run the script with "Create database ..." in
the script.

yes file_get_contents('installation.sql') was much better :)

the problem is that not all the client site will have phpMyAdmin,

now the problem has been reduced to just get rid of all comment/non-sql
fluff and do
execQuery(file_get_contents('installation.sql'))

thanks everyone.

""M. Sokolewicz"" <tularisphp.net> wrote in message
news:D8.51.02217.03F2A924pb1.pair.com...
> tony yau wrote:
> > I realised that there is a fundamental problem with using mysql_query(
...)
> > to run a .sql script to setup a database, and that was the database
needs to
> > be there in the first place for php to connect to! also there was a lot
of
> > comment lines in the script that was causing problem. ... so I gave up
> > trying to parse the file.
> >
> > instead I did this
> > 1) create the database with phpmyadmin etc
> > 2) remove (by hand) all comment lines from the .sql file
> > and then include the file
> >
> > ob_start();
> > include 'installation.sql';
> > $contents = ob_get_contents();
> > ob_end_clean();
> this is *very* overTheTop; why not just do:
> $contents = file_get_contents('installation.sql');
> ???
> > execQuery($contents);
> >
> > not very good but does the job.
> > thanks for all the help
> >
> > tony yau
> >
> > "Rory Browne" <rory.brownegmail.com> wrote in message
> > news:fa07888a05052708047a67ac54mail.gmail.com...
> > I'm assuming that the .sql file consists of a list of MySQL queries,
> > that when performed sequentially will set up your system.
> >
> > That being the case, the perfered way ot install the thing is to do a
> > 'mysql [host/username/password parameters] < file.sql'.
> >
> > I believe you can also run file.sql scripts using phpMyAdmin.
> >
> > If you were to define a mysql_run_script() function, it would look a
> > bit like the following:
> >
> > <?pseudo_code
> >
> > function mysql_run_script($file){
> >
> > $sql = file_get_contents($file);
> >
> > $queries = split_sql_into_individual_sql_queries($sql);
> >
> > foreach($queries as $query){
> > mysql_query($query);
> > }
> >
> > }
> >
> > ?>
> >
> > Come to think of it, you could turn the above pseudo code into valid
> > php code, by defining the split_sql_into_individual_sql_queries()
> > function. This would involve splitting by ';', taking into account the
> > possibility that ';' may occur in the middle of a string.
> >
> > Check out the code for phpmyadmin, or phpbb(db backup/recover
> > feature), for a better idea.
> >
> > On 5/27/05, tony yau <tony.yauemigen.co.uk> wrote:
> >
> >>Hi All,
> >>
> >> I got this .sql script that setup the whole db schema, I can run
> >>mysql.exe to run on my pc but when it goes to a hosting company's server
I
> >>don't have that command!
> >>
> >> So I tried to include("setup.sql") into a string and send that as
one
> >>long sql query. BUT I need to get rid of all the comment lines first in
> >
> > the
> >
> >>script!!
> >>
> >> can someone give me a better idea of doing this.
> >> (there must be an equivalent php function like
> >>mysql_run_script("setup.sql"))
> >>
> >>
> >>thanks
> >>--
> >>Tony Yau
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>

attached mail follows:


The original message was included as attachment

attached mail follows:


Hello,

on 05/27/2005 11:50 PM Ryan A said the following:
>>>I have requested the free test several times and it was very useful
>>>because it brought my attention to aspects that I was not considering,
>>>some related to PHP in specific and other related to Internet in
> general.
>>>fair enough, you could have given him the link the the page directly
>>>_without_
>>>your affiliate add on code, but since you did tack your aff code on, I
>>think
>>>you should have mentioned it
>>That would be irrelevant because nothing changes for the anybody that
>>follows the link with or without the aff code. The service is still free
>>and the service is the same.
>
> Not really, the service is still the same... true,
> but what happens if he decides to buy one more scan (49$) from that site or
> decides to buy a 1 month scanning option ($119) or 1 year scanning ($899)?
> Does a little birdie get 35% (recurring) of that?

Read my phrase again: nothing changes for anybody that follows the link,
whether or not anybody gains from any referrals.

That means that if a person that follows the link that I suggested buys
$1000 worth of services or goods, he would still pay $1000 if the link
did not contain my referral id.

I am sure that you that it happens that way, but the way you are putting
you are confusing other people reading the thread by making them believe
that the price would be different if I were to get any commissions. That
is false. The price and the service are the same for any user.

> ---------
> If I am acting with malice as you suggest just because I did not mention
> that the URL contained my affiliate id, what would you say about the PHP
> group that lists a pile of books in Amazon linked with their affiliate
> id but they do not mention that fact anywhere in their pages?
>
> http://www.php.net/books.php
> ----------
> Ummm..... this is whats written on the page:
> "If you buy the book using the links on this page, you are helping to
> support PHP development! "
> Lucky for me, English is my mother tongue but I think even if it was'nt and
> my IQ was quite a bit lower
> I would still the idea that if I buy a book using one of those links the
> site was gaining from it.
> Why? because they are being open,decent AND honest about it, see the
> "If you buy the book using the links .....you are helping to support...."
> parts?

You are not being serious and you are only acting with bias against me,
as nowhere in that page it says that when you use those links, the PHP
Group (I suppose) may earn 15% on commissions of books sold for their
referrals to Amazon.

If I just go in that page or some other page that lists PHP books, pick
the ISBN a book of Rasmus Lerdorf (the creator of PHP) and buy it
directly in Amazon or somewhere else, I am sure I will be helping PHP
development somehow, but the PHP Group would not get a cent for the
referral.

Still, the links in those pages use the PHP Group Amazon affiliate ID,
like the link I suggested before includes my affiliate ID. The books
page omits the actual way it "helps PHP development" and the affiliate
ID are hidden in HTML, unlike my message that was in plain text (I do
not post in HTML ever).

For me, of course there is nothing wrong on the PHP Group help
themselves making money with referrals. My point is that it is pretty
common to not distract people with the details of who gets what with
referrals because it does not change anything for who follows a link
with our without the referral id. The price and the service is the same.

What matters is who wants free help can get free help even if that help
provides some benefit to the person that is providing it. If a person
that gets free help does not like that whoever provides the help
benefits from that too, that person is just being ungrateful and so does
not deserve to be helped.

> Nobody is pointing fingers at you because you want to make money, EVERYONE

That is all you did!

>>>you challenged my credibility by distorting the facts. Of course
>>>that bugs me because for 8 years I have been participating in PHP
>>>mailing lists helping people leading to solutions to the problems that
>>>they pose, and your attitude is misleading people into believing that I
>>>am not helping them.
>
> Cool, just one question..... everytime you "help" someone are you helping
> yourself
> too like the way you tried to help Andy?
>
> Have you noticed some of the guys here who unselfishly answer something
> like:
> "I see what the problem is, use this code instead <code here> and replace
> this <code here>
> and try reading about this function here <url here>"
>
> Now, _thats_ unselfishly helping someone...no gain for the helper except
> that warm feeling
> and a clear concience....maybe even a good nights sleep.
>

Don't be ridiculous! Everybody gains something when he helps somebody on
these lists. Sometimes people just feel good for being helpful (think
for instance of Richard Lynch), other times people actually gain
reputation and are contracted to provide paid jobs (think for instance
of Chris Shifflet), some may even gain money indirectly from commission
referrals (think of the PHP Group with the books page), etc.. You can
think of me of anybody that may benefit of helping in any of the cases
(although currently I am not for hire for any jobs).

Therefore, there is not really such thing of being "unselfish" here.
Everybody gains some satisfaction for being helpful here. You would be
fooling yourself if you believe otherwise.

My point above is that I dedicate full time to the PHP community
professionally. Maybe you don't know what I do exactly for a living (I
will let you figure it out as your home work), but all my time is taken
with all the PHP related projects that I work on and at least hundreds
of thousands of users benefit.

But I cannot dedicate full time to PHP projects unless it provides means
to sustain myself and my family. So, if I come here and spend quite some
time to help others, I need to justify to myself that time that I have
to take for my regular (paid) work. That does not happen often, but if I
posted a link with an affiliate id, is because I am (vaguely) justifying
the time that I spent doing it. I am not hiding that, nor I am not
ashamed because it is not a crime, by the contrary, I am helping
somebody providing exactly the information that he asked, regardless if
doing it that way I will ever benefit from it.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

attached mail follows:


> -----Original Message-----
> From: Rasmus Lerdorf [mailto:rasmuslerdorf.com]
> Sent: Saturday, May 28, 2005 3:48 PM
> To: Ryan A
> Cc: php
> Subject: Re: [PHP] Re: Free penetration test
>
> Ryan A wrote:
> > That is extremly generious of you as I didnt really think you would have
> the
> > time considering the
> > amount of projects,books etc you are involved with (yep, I read your CV
> on
> > your site :-D ), but
> > I would like to take you up on your offer as I am sure to learn
> something
> > from it...only problem is,
> > the site I have just made is mostly in Swedish...I can give you a "star
> > account" (Star accounts are the
> > paid accounts) for you to login and test the site, but do you think you
> > could still test it since its mostly
> > in Swedish?
>
> Ja, jeg tror jeg kan klare det. Sproget er ret ligegyldigt, jeg checker
> bare for XSS problemer med et automatisk tool jeg har skrevet. Sĺ det
> er heller ikke sĺ meget arbejde.

*LOL* Nice comeback Rasmus

For those who doesn´t know, Rasmus is danish, and the language is in many ways and words similar to Swedish (Sweden and denmark are neighbour countries)

Well, Ryan probably didn´t know this, but that made his posting somewhat funny :-)

--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper

ComX Networks A/S
Naverland 31, 2
DK-2600 Glostrup
Denmark
Phone: +45 70 25 74 74
Fax: +45 70 25 73 74
Web: www.comx.dk
E-mail: kmcomx.dk

attached mail follows:


> For me, of course there is nothing wrong on the PHP Group help
> themselves making money with referrals. My point is that it is pretty
> common to not distract people with the details of who gets what with
> referrals because it does not change anything for who follows a link
> with our without the referral id. The price and the service is the same.
>
>
> What matters is who wants free help can get free help even if that help
> provides some benefit to the person that is providing it. If a person
> that gets free help does not like that whoever provides the help
> benefits from that too, that person is just being ungrateful and so does
> not deserve to be helped.

Sweet Mamma, are we *still* arguing about this?

Manuel (and whomever else): in general it is A Very Good Idea to declare
whenever you have a commercial interest in a solution you provide in a forum
such as this one.

The problem, whether you agree or not, is that others will ask themselves,
"Did Manuel (or whomever) supply this link because it is the best solution
he (or she) knows of to my problem, or because it is the only one from which
he (or she) can earn money?"

It boils down to a question of motive: are you trying to help, or to use the
forum as a method of earning extra income, or both?

I tend to think the best of people -- I assume you offered the link in good
faith, and you've said as much in posts since. That doesn't negate the fact
that the appropriate place to explain your commercial affiliation is at the
point where you originally supply such a link. It isn't hard. A simple
paragraph similar to the following would be more than adequate:

"Please note: I have an affiliation relationship with this site. I picked it
because it was the best I found when I was looking for solutions to the same
problem you're asking about, and share it with you for the very same
reason."

See? Easy, and no-one questions your motives.

To everyone else: many if not most of us take direct commercial benefit from
being involved in this forum. I know I do. I ask questions about problems I
can't solve on my own. I follow and keep track of solutions to other
people's problems that seem innovative and better formulated than my own
methods of dealing with those problems. I keep my general skills sharpened
by helping people solve problems in areas where my skills are relatively
strong. It would be naďve of me not to admit that this has a direct impact
on my earning potential.

As a group of professionals and semi-professionals (and even those amongst
us who are simply learning or developing PHP skills out of general
interest), it should be enough to say: "Hey, that wasn't the best way to
handle this. In future, you'd probably cause less aggravation by doing the
following..." And then move on. The person doesn't have to agree. You've
done your part for peace-as-we-know-it in the PHP forum.

If that simply isn't good enough for you in situations such as these, if you
have to argue with Manuel (or whomever) until we've all but forgotten what
the original freaking question was that began the holy war, then can I make
a suggestion? If you happen to be a professional or semi-professional PHP
programmer, you might want to think about tagging any and all posts you make
to this forum about problems you're having with: "I earn money from PHP
programming. If you help me with this problem it will have a commercial
benefit to me."

And, really, wouldn't that be ridiculous?

So, seriously, let's move on. At least until the next time someone posts an
affiliation link without declaring their commercial interest, and then we
can all look forward to having this argument again.

Regards,

Murray

attached mail follows:


Hi,

This is getting pretty irritating because by now even a stone would have
understood what
I was trying to say...so either you are playing dumb or you just dont want
to understand,
that said, this is my last response as I have much better things to do than
say the same thing
over and over.......and over and over etc again.

> > Not really, the service is still the same... true,
> > but what happens if he decides to buy one more scan (49$) from that site
> or
> > decides to buy a 1 month scanning option ($119) or 1 year scanning
> ($899)?
> > Does a little birdie get 35% (recurring) of that?

**
Read my phrase again: nothing changes for anybody that follows the link,
whether or not anybody gains from any referrals.

That means that if a person that follows the link that I suggested buys
$1000 worth of services or goods, he would still pay $1000 if the link
did not contain my referral id.
**
Thats how affilate systems work, they dont "add" your commision to their
products,
they give you a kind of "brokers fee"....but you already know that of
course.
When you say "nothing changes for anybody that follows the link" thats a
half truth as
you would profit if he actually buys something as i have said over and over
and.....again.

**
but the way you are putting
you are confusing other people reading the thread by making them believe
that the price would be different if I were to get any commissions.
**
Never said that, all I said (and i'm repeating for the damn 10th time(at
least)) that
you should just mention that the link you send contains your affiliate code
and you gain
something if they buy.

>what would you say about the PHP group that lists a pile of books in Amazon
linked with their affiliate
> id but they do not mention that fact anywhere in their pages?
http://www.php.net/books.php
--------------
> Ummm..... this is whats written on the page:
 "If you buy the book using the links on this page, you are helping to
support PHP development! "
> Lucky for me, English is my mother tongue but I think even if it was'nt
and my IQ was quite a bit lower
> I would still the idea that if I buy a book using one of those links the
site was gaining from it.

***
You are not being serious and you are only acting with bias against me, as
nowhere in that page it says
that when you use those links, the PHP Group (I suppose) may earn 15% on
commissions of books sold
for their referrals to Amazon.
***
Bias against you? You nuts or something?
They dont have to say how much they are getting, they just mentioned that
they gain from it (the decent thing)
Maybe you could have written; "clicking the link might help me pay my
bills"...or is even that too much for you?

***
My point is that it is pretty common to not distract people with the details
of who gets what with referrals because
it does not change anything for who follows a link with our without the
referral id. The price and the service is the same.
***
First, you are not "distracting" anybody, you are simply being honest and
showing the person you are helping them
but you are also "conntected" with the site and may have a different motive
for helping them...let them judge.

***
What matters is who wants free help can get free help even if that help
provides some benefit to the person that is providing it. If a person
that gets free help does not like that whoever provides the help
benefits from that too, that person is just being ungrateful and so does
not deserve to be helped.
***
Arrrgh, that just sounds so wrong I wont even go there.

***
Don't be ridiculous! Everybody gains something when he helps somebody on
these lists. Sometimes people just feel good for being helpful (think
for instance of Richard Lynch), other times people actually gain
reputation and are contracted to provide paid jobs (think for instance
of Chris Shifflet), some may even gain money indirectly from commission
referrals (think of the PHP Group with the books page), etc..
***
Fair enough...and people like me gain knowledge and tips from reading other
peoples posts.
As for people who gain indirect commission referrals...which is what this is
all about... let me
put it in a way that might help you understand the whole point of this
side-discussion:
T H E Y S A Y T H E Y A R E C O N N E C T E D W I T H T H E S I T E
in some way...or that they are gaining from the referral (like in the php
books link)

***
but all my time is taken
with all the PHP related projects that I work on and at least hundreds
of thousands of users benefit.
***
(no comment)
:-)

End of discussion from my side, if you want to continue to argue about the
above please write
to yourself (both what I would say and your answer), but what I do suggest
is you take some time
off and do some thinking... we are not all out to "get you"...look into the
words 'paranoid' and
'megalomaniac'

Have a nice day.

Regards,
Ryan A

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.3.0 - Release Date: 5/30/2005

attached mail follows:


Hello,

on 05/30/2005 02:21 PM Ryan A said the following:
>>>Not really, the service is still the same... true,
>>>but what happens if he decides to buy one more scan (49$) from that site
>>or
>>>decides to buy a 1 month scanning option ($119) or 1 year scanning
>>($899)?
>>>Does a little birdie get 35% (recurring) of that?
>
> **
> Read my phrase again: nothing changes for anybody that follows the link,
> whether or not anybody gains from any referrals.
>
> That means that if a person that follows the link that I suggested buys
> $1000 worth of services or goods, he would still pay $1000 if the link
> did not contain my referral id.
> **
> Thats how affilate systems work, they dont "add" your commision to their
> products,
> they give you a kind of "brokers fee"....but you already know that of
> course.
> When you say "nothing changes for anybody that follows the link" thats a
> half truth as
> you would profit if he actually buys something as i have said over and over
> and.....again.

Right, that just confirms what I said. The fact that I could profit or
not does not change anything for whoever follows that link because
anything that I may gain will not be taken from a loss caused to whoever
follows the link.

> **
> but the way you are putting
> you are confusing other people reading the thread by making them believe
> that the price would be different if I were to get any commissions.
> **
> Never said that, all I said (and i'm repeating for the damn 10th time(at
> least)) that
> you should just mention that the link you send contains your affiliate code
> and you gain
> something if they buy.

No, I don't agree. As I said many times it would be irrelevant because
it would not change anything in the price or the service that was suggested.

>>what would you say about the PHP group that lists a pile of books in Amazon
> linked with their affiliate
>>id but they do not mention that fact anywhere in their pages?
> http://www.php.net/books.php
> --------------
>>Ummm..... this is whats written on the page:
> "If you buy the book using the links on this page, you are helping to
> support PHP development! "
>>Lucky for me, English is my mother tongue but I think even if it was'nt
> and my IQ was quite a bit lower
>>I would still the idea that if I buy a book using one of those links the
> site was gaining from it.
>
> ***
> You are not being serious and you are only acting with bias against me, as
> nowhere in that page it says
> that when you use those links, the PHP Group (I suppose) may earn 15% on
> commissions of books sold
> for their referrals to Amazon.
> ***
> Bias against you? You nuts or something?

You started attacking my reputation and you are still insulting calling
me dishonest, paranoid and megalomaniac. Until you cease your attacks I
feel I have the right to defend myself.

> They dont have to say how much they are getting, they just mentioned that
> they gain from it (the decent thing)

That is false. They do not mention they gain commissions from books sold.

I also did not say I gain commissions from referrals, still you insist
that I should be "crucified" for not have done that, while the same
omission in the PHP books page is acceptable for you. Therefore, your
bias against me is proven.

> Maybe you could have written; "clicking the link might help me pay my
> bills"...or is even that too much for you?

As I said and explained many times, that is irrelevant and distracting
for the users that may follow my suggestion.

> ***
> My point is that it is pretty common to not distract people with the details
> of who gets what with referrals because
> it does not change anything for who follows a link with our without the
> referral id. The price and the service is the same.
> ***
> First, you are not "distracting" anybody, you are simply being honest and
> showing the person you are helping them

I am honest because I explained that when I was asked. Your claim that I
am not being honest otherwise, constitutes a direct insult to me.

> ***
> Don't be ridiculous! Everybody gains something when he helps somebody on
> these lists. Sometimes people just feel good for being helpful (think
> for instance of Richard Lynch), other times people actually gain
> reputation and are contracted to provide paid jobs (think for instance
> of Chris Shifflet), some may even gain money indirectly from commission
> referrals (think of the PHP Group with the books page), etc..
> ***
> Fair enough...and people like me gain knowledge and tips from reading other
> peoples posts.
> As for people who gain indirect commission referrals...which is what this is
> all about... let me
> put it in a way that might help you understand the whole point of this
> side-discussion:
> T H E Y S A Y T H E Y A R E C O N N E C T E D W I T H T H E S I T E
> in some way...or that they are gaining from the referral (like in the php
> books link)

Go a look in the PHP books and tell me where it is mentioned explicitly
that the PHP Group is connected to Amazon and other stores. Can't find
that mention? My point is proven.

> End of discussion from my side, if you want to continue to argue about the
> above please write
> to yourself (both what I would say and your answer), but what I do suggest
> is you take some time
> off and do some thinking... we are not all out to "get you"...look into the
> words 'paranoid' and
> 'megalomaniac'

I regret to notice that you continue to be rude insisting on your
personal attacks just because I do not agree with you.

For me, a person that needs to resort to personal insult just to push
his arguments is somebody that already realized that he has no
reasonable points to defend but does not want to admit it.

I also do not have anything else to add to this thread as I would be
just repeating myself. The difference between you and me is that I tried
to explain my points and why I disagree with you without resorting to
personal insult.

BTW, what do you call to a person that throws stones to another and then
runs away to not face the consequences?! (Don't answer, that is a
rethorical question)

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

attached mail follows:


>BTW, what do you call to a person that throws stones to another and then
>runs away to not face the consequences?!

Fine, I'll play your game a little longer...but offlist as I think the list
has had enough of this,
I'm also a bit busy now so expect a reply from me after a few hours.

Regards,
Ryan

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.3.0 - Release Date: 5/30/2005

attached mail follows:


> -----Original Message-----
> From: symbulos [mailto:partnerssymbulos.com]
> Sent: Friday, May 27, 2005 6:50 PM
> To: php-generallists.php.net
> Subject: RE: [PHP] Stopping users to see uploaded files
>
> Thanks everybody for all the useful suggestions.
>
> > That way´s just fine. You could upload directly to the dir outside
> > webscope if You like?
>
> How do we do that?
>
> Thanks in advance.

Well, I´ve got NO clue how the setup is on the server, where You are running the scripts. Let´s say You have Your own server or has a directory, mostly called public_html, where You upload files then it should be piece of cake. Current Setup:

~user/public_html // containing all your php files

Add a new dir: ~user/tmp (or upload)

And have the uploaded files uploaded into that dir (don´t forget permissions)

--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper

attached mail follows:


28 maj 2005 kl. 19.32 skrev Jared Williams:

> childNodes contains the textnodes too, in this case the whitespace
> between each of <element>.
>
>
>> So, to put it in short words; how do I do to browse the
>> content of the element id="5" withuot doing it recursively? I
>> want to receive a list when I call childNodes (or equivalent)
>> that gives me the elements with id 51-56, and a length of 6.
>>
>>
>
> for($child = $elements->item(0)->firstChild; $child; $child =
> $child->nextSibling)
> if ($child->nodeType == XML_ELEMENT_NODE)
> echo $child->getAttribute('id'), "\n";

Thanks for the answer!

It doesn't really work in my case, since I'm trying to create a
recursive function according the following:

1. I perform a search using xPath and get a search result as a
DOMNodeList.

2. This list I send to a function that takes it as input, and whats
function is to create a multidimensional array.

3. Foreach item in the list I check if it has any children.

4. If so, I do the recursive call, with the list of children as input.

So far so good, but when I come to the second loop, when the input is
the list from the childNodes, everything stops working...

Sincerely

Victor

attached mail follows:


MIME-Version: 1.0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 30 May 2005 15:27:12 +0200
Message-ID: <15653CE98281AD4FBD7F70BCEE3666E535A164comxexch01.comx.local>
From: "Kim Madsen" <kmcomx.dk>
To: <php-generallists.php.net>
Subject: RE: [PHP] Warning: filemtime() (errno=75 - Value too large for defined data type)

> -----Original Message-----
> From: Andrew Brampton [mailto:andrewbramp.freeserve.co.uk]
> Sent: Sunday, May 29, 2005 7:36 PM

> Hi,
> I'm receiving the following warning:
>=20
> Warning: filemtime(): Stat failed for master.log (errno=3D75 - Value =
too
> large
> for defined data type) in test.php on line 5
>=20
> when I do the following line of code:
> filemtime ('master.log');
>=20
> The file in question is over 2GB, but I'm not interested in its size, =
I
> just want to know the time it was last modified.

2 gigs? Ever considered rotating the logfile?

> I presume filemtime is just doing a stat which is failing when it =
tries to
> read the size field. Whatever the cause filemtime is returning false =
and
> displaying that warning.
>=20
> Does anyone know a work around for this warning (which does not =
involve
> shelling out a command line app)?

Rotate the logfile for instance once a month, Tar it up and move it to a =
proper place

> My code was working fine until the file reached 2GB.

> P.S I'm running PHP 4.3.10-13 on a Debian distro.

On some older systems there=B4s a 2gb limit: =
http://archives.neohapsis.com/archives/sf/forensics/2002-q2/0031.html

"Let me guess. The file is >2GB? If so, this is simply because your
file utilities are not compiled with large file (64 bit) support.
Here are some notes I have on fixing things for Linux:

Updates to Red Hat 7.1 system required to deal with large (>2GB)
partition image files with The Coroner's Toolkit and TCTutils/autopsy."

I think that=B4s the problem. Rotating the logfile is a nice and simple =
solution.

--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper

attached mail follows:


On 30/05/05, Brian V Bonini <b-boninicox.net> wrote:
> On Sun, 2005-05-29 at 12:22, W Luke wrote:
> > Hi,
> >
> > I have some text in a file which, when it's dumped to a var, needs to
> > be replaced. In its raw form, it looks like this: <^JIM_JONES> and I
> > need to remove the <^_ and > characters and have it read "Jim-Jones"
> >
> > It's nestled in amongst a load of other text - I'm fopen'ing a file
> > and reading it line by line - the text-to-replace is just in a var
> > named $text1

> Someone much more clever that I can probably come up with something much
> cleaner and efficient but.... This works...

Thanks Brian, that worked a treat. Altered it slightly, but
essentially it was just what I needed.

Lifesaver, thanks.
--
Will The Corridor of Uncertainty http://www.cricket.mailliw.com/
 - Sanity is a madness put to good use -

attached mail follows:


> Someone much more clever that I can probably come up with something much
> cleaner and efficient but.... This works...

Definitely not more clever and arguably not more efficient, but a different
way of handling this might be:

<?

function replace($string){
  $string = preg_replace("/(<|\^|>)/", "",$string);
  $string = str_replace("_", " ", $string);
  $string = ucwords(strtolower($string));
  $string = str_replace(" ", "-", $string);
  return $string;
}

echo replace("<^JIM_JONES>");

?>

Regards,

Murray

attached mail follows:


On Mon, 2005-05-30 at 11:13, Murray PlanetThoughtful wrote:
> > Someone much more clever that I can probably come up with something much
> > cleaner and efficient but.... This works...
>
> Definitely not more clever and arguably not more efficient, but a different
> way of handling this might be:
>
> <?
>
> function replace($string){
> $string = preg_replace("/(<|\^|>)/", "",$string);
> $string = str_replace("_", " ", $string);
> $string = ucwords(strtolower($string));
> $string = str_replace(" ", "-", $string);
> return $string;
> }
>
> echo replace("<^JIM_JONES>");
>
> ?>

AHHH! ucwords(); I probably looked right at it a million times.. I knew
there had to be something to do that....

--

s/:-[(/]/:-)/g

Brian GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

attached mail follows:


> AHHH! ucwords(); I probably looked right at it a million times.. I knew
> there had to be something to do that....

Lol, I know that feeling well!

One thing, btw, looking at the solution you provided. Once you'd
preg_split()ed the string into component words, you could have simply
applied strtoupper() directly to the first character of each word in your
foreach loop.

As an example:

<?
  $string = "this";
  $string{0} = strtoupper($string{0});
  echo $string; // should return value of "This"
?>

Just thought it was worth mentioning.

Regards,

Murray

attached mail follows:


On Mon, 2005-05-30 at 12:58, Murray PlanetThoughtful wrote:
> <?
> $string = "this";
> $string{0} = strtoupper($string{0});
> echo $string; // should return value of "This"
> ?>

I knew you could access but I didn't realize your could assign/replace
specific chars like that, i.e. $string{x} =

I can usually work through the logic but am not familiar enough with PHP
to know what's available to work with....

--

s/:-[(/]/:-)/g

Brian GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

attached mail follows:


On 30/05/05, Brian V Bonini <b-boninicox.net> wrote:
> On Mon, 2005-05-30 at 11:13, Murray PlanetThoughtful wrote:
> > > Someone much more clever that I can probably come up with something much
> > > cleaner and efficient but.... This works...
> >
> > Definitely not more clever and arguably not more efficient, but a different
> > way of handling this might be:
> >
> > <?
> >
> > function replace($string){
> > $string = preg_replace("/(<|\^|>)/", "",$string);
> > $string = str_replace("_", " ", $string);
> > $string = ucwords(strtolower($string));
> > $string = str_replace(" ", "-", $string);
> > return $string;
> > }
> >
> > echo replace("<^JIM_JONES>");
> >
> > ?>
>
> AHHH! ucwords(); I probably looked right at it a million times.. I knew
> there had to be something to do that....

This is a great help, thanks to both. One question I have though.
How do I just leave the formatting "as is"? In the loop you gave me,
Brian...:

       foreach($pieces as $char) {
               $first_letter[] = $char{0};
               $remainder[] = strtolower(substr($char, 1));
       }

       $result = array_merge($first_letter, $remainder);
       list($frstltr,$lstltr,$frstwrd,$lstwrd) = $result;
       $string = $frstltr . $frstwrd . " v " . $lstltr . $lstwrd;
                                                                      
        return $string;
                                                                               }

I can't see how I can disregard strtolower without disrupting the rest
of the function! My problem is $string contains a whole load of text,
the formatting of which needs to be retained...

--
Will The Corridor of Uncertainty http://www.cricket.mailliw.com/
 - Sanity is a madness put to good use -

attached mail follows:


> This is a great help, thanks to both. One question I have though.
> How do I just leave the formatting "as is"? In the loop you gave me,
> Brian...:

[snippage]
 
> I can't see how I can disregard strtolower without disrupting the rest
> of the function! My problem is $string contains a whole load of text,
> the formatting of which needs to be retained...

Hmmm. Methinks your problem is a little more complex than originally
presented.

Can you give us a pseudo-example of what the string might actually contain?
I think both Brian and I took your original message to mean that your string
would ONLY contain a value like "<^JIM_JONES>", but from this message I get
the sense that the value you're trying to target may be buried in a string
with other text on either side?

Again, an example that is as close to your real-world needs as possible
would be very helpful.

Regards,

Murray

attached mail follows:


On Mon, 2005-05-30 at 15:24, Murray PlanetThoughtful wrote:
> > This is a great help, thanks to both. One question I have though.
> > How do I just leave the formatting "as is"? In the loop you gave me,
> > Brian...:
>
> [snippage]
>
> > I can't see how I can disregard strtolower without disrupting the rest
> > of the function! My problem is $string contains a whole load of text,
> > the formatting of which needs to be retained...
>
> Hmmm. Methinks your problem is a little more complex than originally
> presented.
>
> Can you give us a pseudo-example of what the string might actually contain?
> I think both Brian and I took your original message to mean that your string
> would ONLY contain a value like "<^JIM_JONES>", but from this message I get
> the sense that the value you're trying to target may be buried in a string
> with other text on either side?
>
> Again, an example that is as close to your real-world needs as possible
> would be very helpful.

The original request was: "the text-to-replace is just in a var named
$text1".

I read that to mean you'd already extracted "<^JIM_JONES>" into $text1

<?php

function replace($string, $search)
{
        $string = strstr($string, $search)
        $string = preg_replace("/(<|\^|>)/", "",$string);
        $string = str_replace("_", " ", $string);
        $string = ucwords(strtolower($string));
        $string = str_replace(" ", "-", $string);
        return $string;
                                                                                }

$text = 'My name is <^JIM_JONES> and I like ice cream';
$search_string = '<^JIM_JONES>';
echo replace($text, $search_string);

?>

--

s/:-[(/]/:-)/g

Brian GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

attached mail follows:


On 30/05/05, Brian V Bonini <b-boninicox.net> wrote:

[...]

> > Again, an example that is as close to your real-world needs as possible
> > would be very helpful.
>
> The original request was: "the text-to-replace is just in a var named
> $text1".
>
> I read that to mean you'd already extracted "<^JIM_JONES>" into $text1

Sorry - my mistake/fault. $text1 always begins with <^JIM_JONES> by
is followed by various other stuff:

<^JIM_JONES> Leicester, 1720. Oxford, 1800 CONFIRMED: meeting at 19.10

And I'd like it to read, simply, JIM JONES: (I think having the name
in Caps would be best for now) and leave the rest of the text
unaltered:

JIM JONES: Leicester, 1720. Oxford, 1800 CONFIRMED: meeting at 19.10

Things like "Leicester" need to be capitalised, and CONFIRMED needs to
be in caps, so...hope this explains things a bit better. And if
you're both too busy, no problem!

Thanks,
--
Will The Corridor of Uncertainty http://www.cricket.mailliw.com/
 - Sanity is a madness put to good use -

attached mail follows:


Hi All,

I have my settings in php.ini set for UTF-8, and the encoding for the
mysql database table's column that is using Japanese to UTF-8. Now, if I
view the data stored in that column in phpmyadmin, via say, firefox, it
displays in UTF-8, but, if I pull the code from the database and display
it in a UTF-8 set page, it is just ? marks, although static J text
displays fine...any thoughts on this..? Driving me nutz. Cheers.

Mark Sargent.

attached mail follows:


mbneto wrote:
> Hi Richard,
>
> The setcookie manual and the cookie specification tells otherwise.
>
> bool setcookie ( string name [, string value [, int expire [, string
> path [, string domain [, bool secure]]]]] )

the domain parameter is restricted to third level domains (or 4 for top
level domains like .co.uk). From domain.net, you can set domain to
secure.domain.net, but not to anotherdomain.com.

>
> In fact one of the tricks people use is to create a cookie with the
> right values in order to bypass the site's security.

They use curl or edit the browser's cookie file

>
> On 5/14/05, Richard Lynch <ceol-i-e.com> wrote:
>
>>On Sat, May 14, 2005 4:45 am, mbneto said:
>>
>>>They are in the same machine. My major concern is with security and
>>>the hability to make sure if a user logs in, or adds something to a
>>>"shopping cart" in one domain it will be available to the other
>>>domain.
>>>
>>>Can I set call setCookie twice with the same variable name but
>>>different domain ? I could set the sessionid and call session_start
>>>with the propagated id when/if a user crosses from one domain to
>>>another.
>>
>>No, you can't call setcookie with a domain name AT ALL.
>>
>>If you could, what would stop you from setting Cookies for *my* site? Or
>>msn.com? Or Sothebys.com? Then you could just take all their customers'
>>money, and not need to worry about your own shopping cart.
>>
>>If you want to transfer Cookies from two domains you control, it's up to
>>you to do that with your own hack.
>>
>>It would make a lot more sense to just put all the shopping on one domain,
>>or have different carts for two domains.
>>
>>It's more than a little odd to have the same cart on two sites from a user
>>perspective... Something that's likely to confuse customers, and make
>>them think your site is insecure if you can't even keep your shopping cart
>>confined to one site.
>>
>>--
>>Like Music?
>>http://l-i-e.com/artists.htm
>>
>>

attached mail follows:


Hi List, I don't know where else to look. I've got PHP 5.0.0 and MySQL
4.1.3. (on Windwows XP with Apache 2.0.50)

Here is my Code: the Query with the delete is not executed and I don't
know why. If I copy it into the MySQL Command line like it is here,
everything works fine. I have another example with a more simple delete
which works (same syntax)

If I replace the delete with the insert statement it works.

What 'am I doing wrong here?

> public function DeleteOldFails (){
> $conClas=$this->con();
> $con=$conClas->mysqlConnect ();
>
> $query = "DELETE FROM LoginTracker WHERE (UNIX_TIMESTAMP(CURRENT_TIMESTAMP) - UNIX_TIMESTAMP(DateAttack)) > 3600;";
> // $query ="INSERT INTO LoginTracker (IPAttack, User) VALUES ('127.0.0.1','user')";
> echo "$con<br>Diesen Auf ERFOLG TESTEN! LÖSCHT ER WAS ER SOLL? <br>$query<br>";
> print $con->query($query);
> $con->query("OPTIMIZE TABLE LoginTracker ");
>
> $this->discon ($conClas, $con);
> }

thx
janbro

attached mail follows:


The name property currrently set as the value of name='interesses' ... should be different for each different checkbox. Then you test for the value of 'on' or 'off'. If the checkbox is checked then the default value will be 'on'.

In your code you have set values but those are not strictly necessary because if no value is declared then 'on' or 'off' are used. Perhaps you may consider using the values Alojamento, Artesanato and Eventos for the names instead like this?

Example:
Alojamento <input name='alojamento' type='checkbox'>
Artesanato <input name='artesanato' type='checkbox'>
Eventos <input name='eventos' type='checkbox'>

Here's a basic checkbox article which may help:

http://www.globalissa.com/articles/articleCheckbox.php

Rob
http://www.globalissa.com

===
with reference to:
snip
My dummy question, for which i apologise once more is: after submitting the form, how can i know which chekboxes were checked ?

Thanking you in advance.

Warm Regards,
Mário Gamito