php-general Digest 16 Aug 2005 02:45:36 -0000 Issue 3627

Topics (messages 220637 through 220668):

Re: one more mysql question
        220637 by: Jochem Maas
        220640 by: Jochem Maas
        220645 by: Shaw, Chris - Accenture
        220646 by: John Nichel
        220647 by: Jim Moseby
        220648 by: Torgny Bjers

Re: WAY OT NOW one more mysql question
        220638 by: John Nichel

Re: 'God' has spoken... :-)
        220639 by: Jochem Maas
        220641 by: John Nichel
        220644 by: Jim Moseby
        220654 by: l0t3k
        220657 by: Miles Thompson

Problem using Metabase
        220642 by: Pablo Gosse
        220643 by: Manuel Lemos

Re: OT one more mysql question
        220649 by: John Nichel

Re: which operating system?
        220650 by: Matthew Weier O'Phinney

PHP Printing Error Help
        220651 by: Chirantan Ghosh
        220652 by: John Nichel
        220653 by: Chirantan Ghosh
        220656 by: John Nichel

Generating Reports
        220655 by: JM

Migrating PHP4 to PHP5 (WAS: 'God' has spoken... :-))
        220658 by: Torgny Bjers

Differences with imap_headerinfo() between PHP 4.3.11 and 4.4.0?
        220659 by: Mike Walsh

preg_split function.
        220660 by: João Cândido de Souza Neto
        220661 by: João Cândido de Souza Neto
        220662 by: John Nichel

mssql 20020429
        220663 by: Daniel Baughman
        220664 by: Daniel Baughman
        220665 by: Daniel Baughman

[Way OFF] Amazing picture of Helios Flight 522
        220666 by: Brian Dunning

Be careful! Look at what this spammer did.
        220667 by: Dotan Cohen

Problem when encoding non-english into UTF-8
        220668 by: Wong HoWang

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        php-general@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
John Nichel wrote:
Jochem Maas wrote:
<snip>

while were not on the subject ....
John I have a question about your wife ...


She's 7 months pregnant, and down right mean at the moment.

been there (http://iamjochem.com/baby) - kind of
- congrats anyhow, and good luck!


oh shit wrong list ;-)


Doesn't seem to matter here, eh?

no no I meant to ask about sand - how do I make a CPU using the stuff?


Allright, now that was totally off-topic and uncalled for. Pistols at Dawn!!!

isnt't it the [n]etiquette that if you demand a duel I get to decide on weapons?
that'll be Wooden Spoons at dawn if you please. ;-)


;)


--- End Message ---
--- Begin Message ---
Sebastian wrote:
they are just grumpy old men i guess..

I'm niether - I believe John Nichel is a little older than I.
he for one has been on this list fielding questions longer than you
have been writing php code sebastian. complete noobs often get some slack,
even with offtopic questions + a gentle nudge - lazy people get a kick in the 
ass.
people who have been asking questions (primarily) for a while (e.g. afan)
will eventually run out of credit and find themselves on the shortend
of a bit John Nichel humor (for instance).

yes humor - at least I thought his comment was funny - which is part of
what makes this list fun to be on.

it is not like you asked a windows question on a linux list.. i've seen stupid html questions here.. yet they get answered.

HyperTextMarkupLanguage

PhpHypertextProcessor

you might see a reason why 'stupid HTML' question are possibly a little
more relevant, generally speaking, than pure SQL syntax questions.


i always try to help when i can and if i cant offer help i dont say anything because that wasnt the way i was raised. it is rude.

rude is lying about 9-11 to the whole world, or invading a country
in order to boost your country's weapons & oil industry, or gang-raping
12yo's (dutch news)

those are rude - maybe a bit of relativity is in order sebastian.


at least if it was too "offtopic" for the list someone could of just nicely said "ask on the mysql list" but that wasn't case.

anyway, consider this a done deal as you already received help.

[EMAIL PROTECTED] wrote:

Hey! Stop it!
I put a question on wrong place. I was "nailed" for it by John. I accepted I was wrong. I apologized.

What do you want now? Sebastian wanted to help – in difference to you and John. Even it’s “wrong place”. I guess you would never stop and help to car in trouble on highway because you are IT or “it’s not your department”, ha?

not if it was Dubya's car. although I might swerve to catch him with a big 
puddle
of water ;-). actually I can't fix cars for shit but I have helped complete 
strangers
push their cars to the edge of the road before ... aren't I great ;-)


C’mon… It’s really not place to be sarcastic…

I was having a joke with John - if you took yourself a little less seriously
afan you might have been able to laugh too - besides I grew up in england...
where sarcasm is is part of national curriculum ;-) an art form no less. which
might account for something.




-afan



Jochem Maas wrote:

John Nichel wrote:

Sebastian wrote:




while were not on the subject ....
John I have a question about your wife ...

oh shit wrong list ;-)

no no I meant to ask about sand - how do I make a CPU using the stuff?


take what other say with a grain of salt.. im sure you're using php to pull info from mysql anyway..





And he might be using Apache on Linux like the majority of PHP users. More than likely outputting some HTML and maybe some JavaScript. Probably using a PC too. So what?

the fact is without mysql php would be nowhere where it is today.. its like peanut butter w/o the jelly..





The fact is, without IBM, PHP would be nowhere it is today. Say, here's an idea, let's just make this the "IBM and anything which relates to it" list.

see my reply in the other email.. im sure it will work for you.





I'll be sure to tell everyone on the MySQL list that they can shut it down, since you have it covered over here.






--- End Message ---
--- Begin Message ---
I agree with Sebastian, there is no excuse for being arrogant and rude.
I understand the frustration, but is there any need for some of the replies
people get?

If I can, I will try to help anyone, even if the thread is OT.

C.

-----Original Message-----
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: 15 August 2005 14:42
To: PHP Mailing Lists
Subject: Re: [PHP] one more mysql question


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

This e-mail has been received by the Revenue Internet e-mail service.

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

Sebastian wrote:
> they are just grumpy old men i guess..
> it is not like you asked a windows question on a linux list.. i've seen

> stupid html questions here.. yet they get answered.

Not by me.  They'll get the same response from the 'grumpy old men'

group as this topic did.

> i always try to help when i can and if i cant offer help i dont say

> anything because that wasnt the way i was raised. it is rude.

How nice.

> at least if it was too "offtopic" for the list someone could of just

> nicely said "ask on the mysql list" but that wasn't case.

It was 'too offtopic'...and he's been around long enough to know that he

should ask MySQL questions on the MySQL list.

> anyway, consider this a done deal as you already received help.

You've got my vote for sainthood.

--

John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--

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





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

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

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

--- End Message ---
--- Begin Message ---
Shaw, Chris - Accenture wrote:
I agree with Sebastian, there is no excuse for being arrogant and rude.
I understand the frustration, but is there any need for some of the replies
people get?

Not that you're judging, eh?

If I can, I will try to help anyone, even if the thread is OT.

Great, I'm happy for you. However, do those of us who would like this list to remain a PHP list a favor. Help those with OT questions off list.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Shaw, Chris - Accenture [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 15, 2005 11:49 AM
> To: PHP Mailing Lists
> Subject: RE: [PHP] one more mysql question
> 
> 
> 
> I agree with Sebastian, there is no excuse for being arrogant 
> and rude.
> I understand the frustration, but is there any need for some 
> of the replies
> people get?
> 
> If I can, I will try to help anyone, even if the thread is OT.
> 

There is never any excuse for being rude.  That said, there is considerable
value in keeping this (or any) mailing list ON TOPIC.  There is also
considerable value for the end user to ask questions in relevant forums.
The original poster would likely have gotten enthusiastic and helpful
response from the MySQL list, whereas he got a generally cold response here.
Not because the list members here are rude, but because HE was rude to have
ignored generally known netiquette and posted the question anyway.

JM

--- End Message ---
--- Begin Message ---
Shaw, Chris - Accenture wrote:

>I agree with Sebastian, there is no excuse for being arrogant and rude.
>I understand the frustration, but is there any need for some of the replies
>people get?
>
>If I can, I will try to help anyone, even if the thread is OT.
>
>C.
>

On that note I think we can agree to disagree on various topics and
leave the beating of dead horses to another list, perhaps alt.flame or
something? :P

--- End Message ---
--- Begin Message ---
Jochem Maas wrote:
</snip>
She's 7 months pregnant, and down right mean at the moment.


been there (http://iamjochem.com/baby) - kind of
- congrats anyhow, and good luck!
</snip>

Number 3 coming up here. At 37, I wasn't supposed to become a father again. ;)

<snip>
Allright, now that was totally off-topic and uncalled for. Pistols at Dawn!!!


isnt't it the [n]etiquette that if you demand a duel I get to decide on weapons?
that'll be Wooden Spoons at dawn if you please. ;-)

Yeah, but if you notice, Dawn is captialized in my post...meaning we need to shoot Dawn (my neighbor), as she's just needs to be shot. ;)

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
John Nichel wrote:
Matthew Weier O'Phinney wrote:

* Sebastian <[EMAIL PROTECTED]> :

<snip>

anyway, i think i will be with php4 for a long time to come.



Please tell the list why -- what does PHP4 offer over PHP5 for you? I
honestly want to know, and I'm sure there are others who would be
interested to see why people are not making the switch.

</snip>

I'm (we're) still using PHP4. Mainly because there's been no reason for us to upgrade. ie, we're not doing anything that requires PHP5 (and if there is no feature in PHP6 that we have to have, we won't be upgrading to that either).

my gut feeling is that php4 will remain on most large hosting systems for now,
... that php 5 is for people who enjoy the bleeding edge just a little and what 
to play/use
newer functionality... by the time php6 comes out and has stabilized the majors
will be more interested in moving direct to 6 from 4. pyschologically its also
in line with the way the linux kernel is numbered - i.e. 2.x where x is even
indicates a 'truely' stable/production release.

that said php5 is in my mind a great improvement - I really enjoy the new
OO functionality and speed increase bue to object referencing - that said I
have most of my code aimed specifically at php5.

the biggest gain in php6 will be transparent unicode support - that is awesome,
 a really big plus - I'm crap at encoding et al and would really love it if
php could handle all those funny characters without me having to think about it
too much (and without having to using mb_string or iconv) - I run a couple of 
multi-lingual
sites - right now I just pray every night that nobody asks me to implement 
japanese,
or something, there ;-)



--- End Message ---
--- Begin Message ---
Jochem Maas wrote:
John Nichel wrote:
<snip>
I'm (we're) still using PHP4. Mainly because there's been no reason for us to upgrade. ie, we're not doing anything that requires PHP5 (and if there is no feature in PHP6 that we have to have, we won't be upgrading to that either).


my gut feeling is that php4 will remain on most large hosting systems for now, ... that php 5 is for people who enjoy the bleeding edge just a little and what to play/use newer functionality... by the time php6 comes out and has stabilized the majors will be more interested in moving direct to 6 from 4. pyschologically its also in line with the way the linux kernel is numbered - i.e. 2.x where x is even
indicates a 'truely' stable/production release.
</snip>

The thing that is probably going to push us from 4 to 5 or 6 will be MySQL. We just hired a new CEO here who is very into advancing our backend (to describe how much of a cluster-f**k it is would take twenty emails). One of our moves in the next year or so will be moving from MySQL 4.0 to 4.1 or greater.

<snip>
the biggest gain in php6 will be transparent unicode support - that is awesome,
 a really big plus - I'm crap at encoding et al and would really love it if
php could handle all those funny characters without me having to think about it too much (and without having to using mb_string or iconv) - I run a couple of multi-lingual sites - right now I just pray every night that nobody asks me to implement japanese,
or something, there ;-)
</snip>

Yeah, that will probably be a big gain for us in the future too. The tiny bit of encoding we do is just merely a pain right now, but when we branch out to selling to the rest of Europe (we just sell to the UK and Canada outside of the US right now), the unicode support will come in real handy.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
> 
> I'm (we're) still using PHP4.  Mainly because there's been no 
> reason for 
> us to upgrade. ie, we're not doing anything that requires 
> PHP5 (and if 
> there is no feature in PHP6 that we have to have, we won't be 
> upgrading 
> to that either).

I don't see the problem with this, unless it will be more difficult to
upgrade from PHP4 to PHP6, than from PHP5 to PHP6.  What I mean is, will
upgrading to 5 now make the upgrade to 6 (or 7, or 9, or 11) easier in the
future.  So 5 has no features that I need right now.  6 probably doesn't
either. But when PHP11 comes out and I must have it, will I be able to
easily upgrade from 4?  Will I expend less time/effort/risk making each
upgrade as it is released that I would making a 5 version jump?  Maybe its
worth the time and effort to upgrade even if I don't need the features in
the new release, just to make it easier to upgrade to the next one(s) down
the line.

Not only that, but as time goes by, community support (this list for
instance) for 4 will likely diminish as others move on to later releases.
Not only will the die-hard PHP4 users find it harder to get answers to their
questions, but their answers to others will become less relevant to
newer-version users.

Just my .02

JM

--- End Message ---
--- Begin Message ---
not only encoding support, but internationalized date/time/number formatting 
support (including spellout), collation, breakiteration and transliteration. 
in many respects we'll be on par with Java I18N support. To see what will be 
available, see

http://icu.sourceforge.net/userguide/

and look at the topics on the left


l0t3k

"Jochem Maas" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>
> the biggest gain in php6 will be transparent unicode support - that is 
> awesome,
>  a really big plus - I'm crap at encoding et al and would really love it 
> if
> php could handle all those funny characters without me having to think 
> about it
> too much (and without having to using mb_string or iconv) - I run a couple 
> of multi-lingual
> sites - right now I just pray every night that nobody asks me to implement 
> japanese,
> or something, there ;-)
>
>> 

--- End Message ---
--- Begin Message ---
At 11:59 AM 8/15/2005, Jim Moseby wrote:
>
> I'm (we're) still using PHP4.  Mainly because there's been no
> reason for
> us to upgrade. ie, we're not doing anything that requires
> PHP5 (and if
> there is no feature in PHP6 that we have to have, we won't be
> upgrading
> to that either).

I don't see the problem with this, unless it will be more difficult to
upgrade from PHP4 to PHP6, than from PHP5 to PHP6.  What I mean is, will
upgrading to 5 now make the upgrade to 6 (or 7, or 9, or 11) easier in the
future.  So 5 has no features that I need right now.  6 probably doesn't
either. But when PHP11 comes out and I must have it, will I be able to
easily upgrade from 4?  Will I expend less time/effort/risk making each
upgrade as it is released that I would making a 5 version jump?  Maybe its
worth the time and effort to upgrade even if I don't need the features in
the new release, just to make it easier to upgrade to the next one(s) down
the line.

Not only that, but as time goes by, community support (this list for
instance) for 4 will likely diminish as others move on to later releases.
Not only will the die-hard PHP4 users find it harder to get answers to their
questions, but their answers to others will become less relevant to
newer-version users.

Just my .02

JM

A good parallel is what happened with Visual FoxPro and with PageMaker.

When VFP 3 came out it broke the mould of FoxPro development, and it was a huge leap to adjust; product was not really mature and VFP 5 was great. VFP6 was even better - but a leap from 3 to 6 was almost impossible because so much had been changed in the interface and feature set. At least MSFT is doing it properly now, and announcing that VFP10 will be it, then no more.

PageMaker was worse, but it's so long ago now that my memory's faulty. I think it was around PM3 or PM4 that the file format changed; if you had the earlier version, PM4 and later could not read the older files, you had to obtain a crippled version of PM3, which could only open the old version and save in the new, and then work on those files in the newer version. Of course a lot of stuff got busted.

And of course, there is Visual Basic - where development stopped at version 6 and a new .NET language, labelled "Visual Basic" was introduced. So much stuff in VB 6 was broken that moving the code to the .NET language named Visual Basic is well nigh impossible.

The problem with PHP 5 is that the ISP's have to be so conservative. There's no tagging mechanism which says "process these files with PHP5, use PHP 4 for everything else."

So, based on experience, better to move early than later. I suspect a jump from PHP4 to PHP6 will be huge -- the problem is to move the ISPs.

Regards - Miles

--- End Message ---
--- Begin Message ---
Hi, folks.  I've recently decided to use Manuel's Metabase instead of
ADOdb as ADOdb doesn't support transactions for MS Access, however I'm
getting the following error when running the sample code:

Fatal error: Class metabase_manager_odbc_class: Cannot inherit from
undefined class metabase_manager_database_class in
C:\Inetpub\wwwroot\etrakFE\classes\metabase\metabase_odbc.php on line 13

Obviously this means that the metabase_manager_odbc_class is being
defined before metabase_manager_database_class, thus throwing an error,
but the problem is I'm not calling this manually, and have used the
sample code exactly as it is in the manual.

Here's my code:

require("classes/metabase/metabase_database.php");
require("classes/metabase/metabase_interface.php");

$error=MetabaseSetupDatabaseObject(array("Type"=>"odbc-msaccess",
"IncludePath"=>"classes/metabase"), $db);

if($error!="") {
        echo "Database setup error: $error\n";
        exit;
}

$db->SetDatabase("etrakADB");

Does anyone have any idea why I might be getting this error?  As I said
I'm using the sample code exactly as it is in the tutorial, and am not
calling the metabase_manager_odbc_class myself.

Cheers and TIA,

Pablo 

--- End Message ---
--- Begin Message ---
Hello,

on 08/15/2005 11:32 AM Pablo Gosse said the following:
Hi, folks.  I've recently decided to use Manuel's Metabase instead of
ADOdb as ADOdb doesn't support transactions for MS Access, however I'm
getting the following error when running the sample code:

Fatal error: Class metabase_manager_odbc_class: Cannot inherit from
undefined class metabase_manager_database_class in
C:\Inetpub\wwwroot\etrakFE\classes\metabase\metabase_odbc.php on line 13

Obviously this means that the metabase_manager_odbc_class is being
defined before metabase_manager_database_class, thus throwing an error,
but the problem is I'm not calling this manually, and have used the
sample code exactly as it is in the manual.

Here's my code:

require("classes/metabase/metabase_database.php");
require("classes/metabase/metabase_interface.php");

$error=MetabaseSetupDatabaseObject(array("Type"=>"odbc-msaccess",
"IncludePath"=>"classes/metabase"), $db);

if($error!="") {
        echo "Database setup error: $error\n";
        exit;
}

$db->SetDatabase("etrakADB");

I tried that code here with PHP 4.3.11 and it works perfectly.

Which version of PHP are you using?

Are you using any PHP cache extension like APC or another?

Metabase loads the class files by the right order but it is possible that a buggy caching extension may be causing that problem.

You may also try loading the classes as workaround right after the includes you make in your script:

require('classes/metabase/metabase_odbc.php');
require('classes/metabase/metabase_odbc_msaccess.php');
require('classes/metabase/manager_odbc.php');
require('classes/metabase/manager_odbc_msaccess.php');

--

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

--- End Message ---
--- Begin Message ---
Torgny Bjers wrote:
Shaw, Chris - Accenture wrote:


I agree with Sebastian, there is no excuse for being arrogant and rude.
I understand the frustration, but is there any need for some of the replies
people get?

If I can, I will try to help anyone, even if the thread is OT.

C.



On that note I think we can agree to disagree on various topics and
leave the beating of dead horses to another list, perhaps alt.flame or
something? :P


Ohhhh....do we really want to venture out onto USENET?  *L*

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
* Sebastian <[EMAIL PROTECTED]>:
> I will be building a new server and wondering what would be a good 
> choice for php/mysql/apache other than redhat.
>
> I was thinking either Debian or CentOS. can anyone share their thoughts 
> on them for php environment?
>
> does anyone use them on high traffic php sites? or is there not a 
> difference in what distro you run php on?
>
> sorry these may sound like stupid questions but i mostly used redhat 
> since i started using php and thought i'd try something different.

Use an OS that either doesn't have an end-of-life for support, or which
can be upgraded to a new version without breaking everything.

I've used Redhat and Fedora, but will never use them for production
servers again -- after a couple years getting out-of-date, it becomes
next to impossible to find packages for them, and upgrading to a new
version almost always requires an attended install, and usually down
time.

Debian and Gentoo are very nice in that you can upgrade packages as they
become available, usually with no issues. You might also want to look
into one of the BSDs, as the ports system many of them employ also
allows seamless upgrades in most situations.

-- 
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/

--- End Message ---
--- Begin Message ---
Hi Guys,

I am new to PHP coding but that is no excuse for the mess I am making here.

The ideal page for my needs is:
http://www.primarywave.com/BrokerOutpost_Contact.php
(Simple form in PHP where all form values are mailed)

I could not make the CHECK BOX work in PHP page so tried in this HTM page.
I prints out part of the PHP code itself.
http://www.primarywave.com/BrokerOutpost_Contact.htm

Can anyone PLEASE tell me "where" I am making a buffoon of myself?

I am a designer who is trying to understand  the language so do pardon my 
ignorance.

Thanks,
C

--- End Message ---
--- Begin Message ---
Chirantan Ghosh wrote:
Hi Guys,

I am new to PHP coding but that is no excuse for the mess I am making here.

The ideal page for my needs is:
http://www.primarywave.com/BrokerOutpost_Contact.php
(Simple form in PHP where all form values are mailed)

I could not make the CHECK BOX work in PHP page so tried in this HTM page.
I prints out part of the PHP code itself.
http://www.primarywave.com/BrokerOutpost_Contact.htm

What isn't working with the check boxes? How are you retrieving the values upon processing the form?

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Ho John,

I put each check box with name & tried to get the values as I get of Name, etc. Somehow it didn't send that info so, now I tried to get the info of the whole TABLE named "InterestedNumber"(which contains all check boxes)

<?
//////after all  codes////
$mailBody .= "Full Name:       $name\n";
...
$mailBody .= "Company Info:  $Company Info\n";
$mailBody .= "Interested Numbers:  $InterestedNumber\n";
$mailBody .= "Interested Area:  $InterestedArea\n";
$mailBody .= "Comments:  $comments\n\n\n";
$mailBody .= "$todaytime";

/////// THIS is where I put in  the check box////

How ever the main problem for me is "Interested Numbers: $InterestedNumber\n"; part where I have no clue what "\n" stands for OR why is it repeated in the "Comments" section.

The page is http://www.primarywave.com/BrokerOutpost_Contact.htm you can see the source code if you like.

Thanks a lot for the input,
C


----- Original Message ----- From: "John Nichel" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Sent: Monday, August 15, 2005 12:31 PM
Subject: Re: [PHP] PHP Printing Error Help


Chirantan Ghosh wrote:
Hi Guys,

I am new to PHP coding but that is no excuse for the mess I am making here.

The ideal page for my needs is:
http://www.primarywave.com/BrokerOutpost_Contact.php
(Simple form in PHP where all form values are mailed)

I could not make the CHECK BOX work in PHP page so tried in this HTM page.
It prints out part of the PHP code itself.
http://www.primarywave.com/BrokerOutpost_Contact.htm

What isn't working with the check boxes? How are you retrieving the values upon processing the form?

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



--- End Message ---
--- Begin Message ---
Chirantan Ghosh wrote:
Ho John,

I put each check box with name & tried to get the values as I get of Name, etc. Somehow it didn't send that info so, now I tried to get the info of the whole TABLE named "InterestedNumber"(which contains all check boxes)

<?
//////after all  codes////
$mailBody .= "Full Name:       $name\n";
...
$mailBody .= "Company Info:  $Company Info\n";
$mailBody .= "Interested Numbers:  $InterestedNumber\n";
$mailBody .= "Interested Area:  $InterestedArea\n";
$mailBody .= "Comments:  $comments\n\n\n";
$mailBody .= "$todaytime";

/////// THIS is where I put in  the check box////

How ever the main problem for me is "Interested Numbers: $InterestedNumber\n"; part where I have no clue what "\n" stands for OR why is it repeated in the "Comments" section.

The page is http://www.primarywave.com/BrokerOutpost_Contact.htm you can see the source code if you like.

Thanks a lot for the input,
C

The "\n" is just a new line.

Your checkboxes are all named things like "1-877-HOMECASH" and "1-877-APPLY NOW", so '$InterestedNumber' isn't going to have any of their values.

You probably want to move into the relm of array's. For each one of your checkboxes, you can do this...

<input type="checkbox" name="InterestedNumber[]" value="1-877-HOMECASH">
<input type="checkbox" name="InterestedNumber[]" value="1-877-APPLY NOW">

So on, and so forth. By naming them in this way, it will pass the value to your form processor as a numerical array of all the selected items. When you want to process it, just loop thru the array.

http://us2.php.net/manual/en/language.types.array.php

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Hi all,
I'm wondering what report generators or routines are out there. I've
not found anything worthwhile yet. What do you all use?

I have a couple sql database tables I'm outputting into a tabular
format. I'd like to find a system. My biggest issue is that some
reports go off the screen and truncate at print time.

--- End Message ---
--- Begin Message ---
Miles Thompson wrote:

> The problem with PHP 5 is that the ISP's have to be so conservative.
> There's no tagging mechanism which says "process these files with
> PHP5, use PHP 4 for everything else."


That would be so wonderful. Just to be able to set what PHP .so to use
based on <VirtualHost/> or <Directory/> in Apache would be bliss. Under
Windows it's easier, of course, since you have specific configurations
for each virtual host in IIS.

I've tried running the CGI version of PHP5 on a PHP4 system, and of
course it works, but it's slower than molasses in January.

> So, based on experience, better to move early than later. I suspect a
> jump from PHP4 to PHP6 will be huge -- the problem is to move the ISPs.


A lot of ISPs run some form of enterprise Linux, or it could be just a
control panel, that is dependent on the RPM version of PHP, which in
most cases is still stuck arond 4.3.x somewhere, except in those cases
where the ISP has taken the law in their own hands and compiled PHP from
scratch, overwriting the RPM version, and hoping that this will not
break anything too seriously when the control panel tries to upgrade
itself the next time. ;)

Others use scripts that are encoded with either IonCube or Zend, and are
thus forced to stay with PHP4 since their software vendor hasn't made
the leap yet. For instance, when encoding with Zend Encoder for PHP4,
you can get some pretty nasty errors when running under PHP5.

If the software vendors could make the leap RIGHT NOW and convert their
godforsaken software to PHP5 and release two versions since there'll
hardly be any difference in the code, we'd be a long way already. It's
all mostly related to the encoder in these cases, for instance Zend.

That's the way we do it with one of the applications I've written, it's
shipped both as PHP4 and PHP5 Zend encoded, as well as IonCube encoded.

Warm Regards,
Torgny

--- End Message ---
--- Begin Message ---
I have an application which uses imap_headerinfo() to query an NNTP server
and display some information as part of a web application.  I am seeing a
difference between 4.3.11 and 4.4.0 when the e-mail address in the article
contains a spam block.

I get the following notice:

Notice: (null)(): Unterminated mailbox: [EMAIL PROTECTED] (errflg=3)
in Unknown on line 0
Notice: (null)(): Must use comma to separate addresses:
somedomain(dot.dot)com> (errflg=3) in Unknown on line 0

I am unable to suppress the notice either with error_reporting() or the @
operator.

Anyone else seeing anything similar?  Any idea how to suppress the Notice?
The oddly formed e-mail address isn't something I use so I don't really care
how it is formatted but the IMAP library seems care enough to generate the
notices.

Thanks,

Mike

--

Mike Walsh - mike_walsh at mindspring dot com

--- End Message ---
--- Begin Message ---
I´m using the webmiau webmail system in a server with freebsd and php 4.4.0
but it´s not working.

When i try to start the webmail server i get the error bellow:

 Fatal error: Call to undefined function: preg_split() in
/usr/local/www/data-dist/webmail/smarty/Smarty.class.php on line 1609

Anyone can help me about this?

Thanks.
João Cândido.

--- End Message ---
--- Begin Message ---
I´m using the webmiau webmail system in a server with freebsd and php 4.4.0
but it´s not working.

When i try to start the webmail server i get the error bellow:

 Fatal error: Call to undefined function: preg_split() in
/usr/local/www/data-dist/webmail/smarty/Smarty.class.php on line 1609

Anyone can help me about this?

Thanks.
João Cândido.

--- End Message ---
--- Begin Message ---
João Cândido de Souza Neto wrote:
I´m using the webmiau webmail system in a server with freebsd and php 4.4.0
but it´s not working.

When i try to start the webmail server i get the error bellow:

 Fatal error: Call to undefined function: preg_split() in
/usr/local/www/data-dist/webmail/smarty/Smarty.class.php on line 1609

Anyone can help me about this?

Make a phpinfo page, and load it thru your browser...

<?php

phpinfo();

?>

Look for "PCRE (Perl Compatible Regular Expressions) Support".

If it's not there, or not enabled, you won't be able to use those functions.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Hey guys,

I'm looking for the php_mssql.dll with api version: 20020429

Does anyone know where I can translate that to a version release in order to
find the release with that version dll or something?

Or have a resource for finding modules based on API version?


Regards,
Dan

--- End Message ---
--- Begin Message ---
Never mind I found it. It was 4.2.1

But... now I get IIS complaining the CGI module hasn't returned a full set
of headers :(

-----Original Message-----
From: Daniel Baughman [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 15, 2005 2:58 PM
To: php-general@lists.php.net
Subject: [PHP] mssql 20020429


Hey guys,

I'm looking for the php_mssql.dll with api version: 20020429

Does anyone know where I can translate that to a version release in order to
find the release with that version dll or something?

Or have a resource for finding modules based on API version?


Regards,
Dan

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

--- End Message ---
--- Begin Message ---
The mssql_connect function with api# 20020429 does not do name resolution
via the system get host by name??

Maybe that one of the reasons they upgraded

-----Original Message-----
From: Daniel Baughman [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 15, 2005 3:02 PM
To: 'Daniel Baughman'; php-general@lists.php.net
Subject: RE: [PHP] mssql 20020429


Never mind I found it. It was 4.2.1

But... now I get IIS complaining the CGI module hasn't returned a full set
of headers :(

-----Original Message-----
From: Daniel Baughman [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 15, 2005 2:58 PM
To: php-general@lists.php.net
Subject: [PHP] mssql 20020429


Hey guys,

I'm looking for the php_mssql.dll with api version: 20020429

Does anyone know where I can translate that to a version release in order to
find the release with that version dll or something?

Or have a resource for finding modules based on API version?


Regards,
Dan

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

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

--- End Message ---
--- Begin Message ---
http://www.briandunning.com/helios.shtml

Sorry this is WAY OFF TOPIC, but it's a pretty darn scary picture.

--- End Message ---
--- Begin Message ---
I have a form that my visitors can email me from. Some jerk is trying
to fool the mail() function into sending his spam, and I got this
today:
<start asshole code>
[EMAIL PROTECTED]
Content-Type: multipart/mixed; boundary=\"===============0110030565==\"
MIME-Version: 1.0
Subject: 7510b460
To: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

This is a multi-part message in MIME format.

--===============0110030565==
Content-Type: text/plain; charset=\"us-ascii\"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

blrt
--===============0110030565==--
</start asshole code>

I just updated the code to stop this. I think that if anybody else has
a form that goes to the mail() function, they should learn from this
email and put up some code to block it.

Dotan Cohen
http://lyricslist.com/lyrics/artist_albums/367/n_sync.php
N Sync Song Lyrics

--- End Message ---
--- Begin Message ---
Dear all,

When I try to encode non-english char. such as big5 to UTF-8 with 
utf8_encode(), it always generate a wrong result, which is not readable. 
What can I do?

Please help! 

--- End Message ---

Reply via email to