php-general Digest 15 Aug 2005 13:42:04 -0000 Issue 3626

2005-08-15 Thread php-general-digest-help

php-general Digest 15 Aug 2005 13:42:04 - Issue 3626

Topics (messages 220620 through 220636):

Re: Large forms to Mysql table...
220620 by: Miles Thompson

?  PHP in XML document
220621 by: Labunski
220625 by: Torgny Bjers
220627 by: Satyam
220628 by: Torgny Bjers
220631 by: Satyam

which operating system?
220622 by: Sebastian
220624 by: mikespook
220626 by: Torgny Bjers
220629 by: Jochem Maas

Re: header redirect not working
220623 by: Chris Shiflett

wsdl cache?
220630 by: Victor Alvarez

Re: one more mysql question
220632 by: John Nichel
220636 by: John Nichel

Re: PHP User Group in San Francisco
220633 by: John Nichel

Re: PHP and Active Directory
220634 by: Rory Browne

Re: 'God' has spoken... :-)
220635 by: John Nichel

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


--
---BeginMessage---

At 10:33 PM 8/14/2005, mikespook wrote:

Like this: $str = print_r($_POST, true);

then insert $str into db.

It`s easy way~~right?

Andras Kende [EMAIL PROTECTED]
??:[EMAIL PROTECTED]
Hello,



I have a html page with 70+ form fields some like 40 fields are only used
for entering quantity numbers…



Is it a good idea to put this 50 fields of the form fields into a single
text mysql field?



Somehow process it with php before, put inside of some kind of xml
structure?



Just don’t want to do Mysql table with 70 fields…



One of the advantages of relational databases is that you do not have to 
know the structure of the data.


Why break that? Why subject yourself, and the developer who follows you and 
has to maintain your code, to parsing hell?
Why do you not want to do a MySQL  table with 70 fields? MySQL is designed 
for this sort of thing.


Given the tone of these comments, your database design may be questionable. 
Is a lot of data in a given table redundant; and if so the design likely 
needs work.


Regards - Miles Thompson
---End Message---
---BeginMessage---
Hello,

Is it possible to write some PHP code lines in the XML document?

e.g. I want to add ?php require_once(read_database.php); ? to the xml 
document, but
I don't know the right syntax to do this.

Btw, I need this, cause I'm trying to make CMS system for Flash page.

Thanks a lot!
Roman 
---End Message---
---BeginMessage---
Labunski wrote:

Hello,

Is it possible to write some PHP code lines in the XML document?

e.g. I want to add ?php require_once(read_database.php); ? to the xml 
document, but
I don't know the right syntax to do this.

Btw, I need this, cause I'm trying to make CMS system for Flash page.


The easiest way to do this in Flash is to call a PHP script instead of
an XML file in Flash, that way you can render the XML document however
you want with PHP and load data directly from the database into XML or
whatever you wish. So, replace the XML filename for your PHP script, and
that way you should be able to add querystrings and whatnot too.

Regards,
Torgny
---End Message---
---BeginMessage---
Whatever starts with ? immediatly followed by an identifier is called a 
Processing Instruction, which ends with a ?   XML doesn't care what is 
within those tags, as long as it doesn't contain a ?

Satyam



Labunski [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hello,

 Is it possible to write some PHP code lines in the XML document?

 e.g. I want to add ?php require_once(read_database.php); ? to the xml 
 document, but
 I don't know the right syntax to do this.

 Btw, I need this, cause I'm trying to make CMS system for Flash page.

 Thanks a lot!
 Roman 
---End Message---
---BeginMessage---
Well, in this case, XML would care, since you'd be using a  or  inside
a tag, so, in order for that to work, if what he meant was that he
wanted to store PHP code directly inside the XML document, and not
actually EXECUTE code INSIDE the XML file, he would have to use
![CDATA[bla]] syntax around the PHP code for it not to break the XML file.

So, in this case that would be:
root
data![CDATA[?php require_once(read_database.php); ?]]/data
/root

Which works fine as long as he doesn't have ]] somewhere in the code. :)

Satyam wrote:

Whatever starts with ? immediatly followed by an identifier is called a 
Processing Instruction, which ends with a ?   XML doesn't care what is 
within those tags, as long as it doesn't contain a ?

Satyam



Labunski [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
  

Hello,

Is it possible to write some PHP code lines in the XML document?

e.g. I want to add ?php require_once(read_database.php); ? to the xml 
document, but
I don't know the right syntax to do this.

Btw, I need this, cause I'm trying to make CMS system for 

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

2005-08-15 Thread php-general-digest-help

php-general Digest 16 Aug 2005 02:45:36 - 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


--
---BeginMessage---

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

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 

[PHP] Re: which operating system?

2005-08-15 Thread mikespook
debian is my choice~
but usually, we use freebsd in our corp.

high traffic I think distribution system is best way~
only php not enough~

Sebastian [EMAIL PROTECTED] 
??:[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.

 thanks.



 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.338 / Virus Database: 267.10.8/71 - Release Date: 8/12/2005 

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



Re: [PHP] ? PHP in XML document

2005-08-15 Thread Torgny Bjers
Labunski wrote:

Hello,

Is it possible to write some PHP code lines in the XML document?

e.g. I want to add ?php require_once(read_database.php); ? to the xml 
document, but
I don't know the right syntax to do this.

Btw, I need this, cause I'm trying to make CMS system for Flash page.


The easiest way to do this in Flash is to call a PHP script instead of
an XML file in Flash, that way you can render the XML document however
you want with PHP and load data directly from the database into XML or
whatever you wish. So, replace the XML filename for your PHP script, and
that way you should be able to add querystrings and whatnot too.

Regards,
Torgny

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



Re: [PHP] which operating system?

2005-08-15 Thread Torgny Bjers
Sebastian wrote:

 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


I can recommend CentOS. We've been running it for some time now on
several of our hosting machines with Plesk setups. But, as far as that
goes, it doesn't make a lick of difference if you're running Debian,
CentOS, or another flavor, as long as you've got a 2.6 kernel and a
decently optimized setup for your PHP sites. The 2.6 kernel makes a lot
of difference when it comes to scaling Apache. With the 2.4 kernel our
Apache 2.0 was somewhat sensitive to DOS attacks, mostly on the memory
side, but with 2.6 and grsec it runs like a dream.

Regards,
Torgny

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



[PHP] Re: ? PHP in XML document

2005-08-15 Thread Satyam
Whatever starts with ? immediatly followed by an identifier is called a 
Processing Instruction, which ends with a ?   XML doesn't care what is 
within those tags, as long as it doesn't contain a ?

Satyam



Labunski [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hello,

 Is it possible to write some PHP code lines in the XML document?

 e.g. I want to add ?php require_once(read_database.php); ? to the xml 
 document, but
 I don't know the right syntax to do this.

 Btw, I need this, cause I'm trying to make CMS system for Flash page.

 Thanks a lot!
 Roman 

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



Re: [PHP] Re: ? PHP in XML document

2005-08-15 Thread Torgny Bjers
Well, in this case, XML would care, since you'd be using a  or  inside
a tag, so, in order for that to work, if what he meant was that he
wanted to store PHP code directly inside the XML document, and not
actually EXECUTE code INSIDE the XML file, he would have to use
![CDATA[bla]] syntax around the PHP code for it not to break the XML file.

So, in this case that would be:
root
data![CDATA[?php require_once(read_database.php); ?]]/data
/root

Which works fine as long as he doesn't have ]] somewhere in the code. :)

Satyam wrote:

Whatever starts with ? immediatly followed by an identifier is called a 
Processing Instruction, which ends with a ?   XML doesn't care what is 
within those tags, as long as it doesn't contain a ?

Satyam



Labunski [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
  

Hello,

Is it possible to write some PHP code lines in the XML document?

e.g. I want to add ?php require_once(read_database.php); ? to the xml 
document, but
I don't know the right syntax to do this.

Btw, I need this, cause I'm trying to make CMS system for Flash page.

Thanks a lot!
Roman 



  


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



Re: [PHP] which operating system?

2005-08-15 Thread Jochem Maas

Sebastian wrote:
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 


yahoo not big enough??


difference in what distro you run php on?


if you can remember as long ago as 24 hours you might remember
the mini tutorial by Rasmus - IN REPLY TO _YOUR_ 'FEAR' POST.

was that not enough?



sorry these may sound like stupid questions but i mostly used redhat 
since i started using php and thought i'd try something different.


thanks.





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



[PHP] wsdl cache?

2005-08-15 Thread Victor Alvarez
Hello,
 I am experiencing a lot of difficulties working with Apache 5.0.4 and wsdl. I 
can publish a wsdl and work with it, but as soon as I want to add a new method 
to the wsdl, I have to change the directory to be able to use it. In some way, 
Apache kept the information for the wsdl and I am not able to update it! Could 
anybody explain me why and how could I avoid this problem?

Thanks.
Kind Regards,
 Victor.

Re: [PHP] Re: ? PHP in XML document

2005-08-15 Thread Satyam
I went googling for XML validators and tried your sample in both forms, as 
you sugest with CDATA and my way:

 root
data?php require_once(read_database.php); ?/data
 /root

Both are valid.  The relevant paragraph can be found in:

http://www.w3.org/TR/2004/REC-xml-20040204/#sec-pi

Notice that while ?php is a valid start tag the shorthand ? is not since 
it is missing what the standard calls the Processing Instruction Target, or 
PITarget, for short.   This PITarget is the application that is supposed to 
understand this PI.  The XML standard says nothing about the contents and 
syntax of whatever is within the PI tags, only that it cannot contain a ?

Satyam


Torgny Bjers [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Well, in this case, XML would care, since you'd be using a  or  inside
 a tag, so, in order for that to work, if what he meant was that he
 wanted to store PHP code directly inside the XML document, and not
 actually EXECUTE code INSIDE the XML file, he would have to use
 ![CDATA[bla]] syntax around the PHP code for it not to break the XML 
 file.

 So, in this case that would be:
 root
data![CDATA[?php require_once(read_database.php); ?]]/data
 /root

 Which works fine as long as he doesn't have ]] somewhere in the code. :)

 Satyam wrote:

Whatever starts with ? immediatly followed by an identifier is called a
Processing Instruction, which ends with a ?   XML doesn't care what is
within those tags, as long as it doesn't contain a ?

Satyam



Labunski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]


Hello,

Is it possible to write some PHP code lines in the XML document?

e.g. I want to add ?php require_once(read_database.php); ? to the xml
document, but
I don't know the right syntax to do this.

Btw, I need this, cause I'm trying to make CMS system for Flash page.

Thanks a lot!
Roman




 

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



Re: [PHP] one more mysql question

2005-08-15 Thread John Nichel

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.


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


;)

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



Re: [PHP] PHP User Group in San Francisco

2005-08-15 Thread John Nichel

Catenare LLC wrote:

Are there any PHP user groups currently meeting in San Francisco?


http://www.phpusergroups.org/groups.phtml?country=United+Statesmenu=groups

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



Re: [PHP] PHP and Active Directory

2005-08-15 Thread Rory Browne
On 8/11/05, xfedex [EMAIL PROTECTED] wrote:
  My non-sense answers pointed you to the LDAP functions for use with
  Active Directory. That is very constructive until you ask for something
  more specific.
 
 Jay,
 
 I was specting something like:
 
 Yes, i have php to authenticate against AD, and i can say that is
 easy/hard. I make it work using LDAP (http://www.php.net/ldap)
 
 or something like that.
 
 Instead, WE lost time figuring out what would be a smart question or a
 non-asked answer.
 Really, is so hard to understand my original question??
 
 Please, dont answer unless you sometime get it working (PHP + AD).
 
 (and sorry again for my ugly english)

No need to apologise for your english. It is perfectly understandable.
What you should apologise for however is your attitude. We don't
appreciate being told when to and when not to send a mail to our
mailing list.

You don't own this mailing list, and while I grant that neither
myself, Jay, nor John own this list either, we'd appreciate if you
would show a bit of respect when you send a message to it.

If you don't have time to read the manual, and show don't some
evidence that you have made some attempt to answer your own question
or find the answer yourself, then we begin to think that you want to
be spoon fed.

We don't like spoon feeding people. If you want to be spoonfed buy a
support contract.




 
 Saludos!
 pancarne.
 
 --
 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



Re: [PHP] 'God' has spoken... :-)

2005-08-15 Thread John Nichel

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).


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



Re: [PHP] one more mysql question

2005-08-15 Thread John Nichel

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



Re: [PHP] one more mysql question

2005-08-15 Thread Jochem Maas

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. ;-)



;)



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



Re: [PHP] WAY OT NOW one more mysql question

2005-08-15 Thread John Nichel

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]

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



Re: [PHP] 'God' has spoken... :-)

2005-08-15 Thread Jochem Maas

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 ;-)





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



Re: [PHP] one more mysql question

2005-08-15 Thread Jochem Maas

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.











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



Re: [PHP] 'God' has spoken... :-)

2005-08-15 Thread John Nichel

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]

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



[PHP] Problem using Metabase

2005-08-15 Thread Pablo Gosse
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 

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



[PHP] Re: Problem using Metabase

2005-08-15 Thread Manuel Lemos

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

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



RE: [PHP] 'God' has spoken... :-)

2005-08-15 Thread Jim Moseby
 
 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

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



RE: [PHP] one more mysql question

2005-08-15 Thread Shaw, Chris - Accenture

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

*

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



Re: [PHP] one more mysql question

2005-08-15 Thread John Nichel

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]

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



RE: [PHP] one more mysql question

2005-08-15 Thread Jim Moseby
 -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

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



Re: [PHP] one more mysql question

2005-08-15 Thread Torgny Bjers
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

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



Re: [PHP] OT one more mysql question

2005-08-15 Thread John Nichel

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



Odo we really want to venture out onto USENET?  *L*

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



[PHP] Re: which operating system?

2005-08-15 Thread Matthew Weier O'Phinney
* 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/

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



[PHP] PHP Printing Error Help

2005-08-15 Thread Chirantan Ghosh
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


Re: [PHP] PHP Printing Error Help

2005-08-15 Thread John Nichel

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]

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



Re: [PHP] PHP Printing Error Help

2005-08-15 Thread Chirantan Ghosh

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




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



Re: [PHP] 'God' has spoken... :-)

2005-08-15 Thread l0t3k
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 ;-)

 

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



[PHP] Generating Reports

2005-08-15 Thread JM
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.

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



Re: [PHP] PHP Printing Error Help

2005-08-15 Thread John Nichel

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]

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



RE: [PHP] 'God' has spoken... :-)

2005-08-15 Thread Miles Thompson

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

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



[PHP] Migrating PHP4 to PHP5 (WAS: 'God' has spoken... :-))

2005-08-15 Thread Torgny Bjers
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

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



[PHP] Differences with imap_headerinfo() between PHP 4.3.11 and 4.4.0?

2005-08-15 Thread Mike Walsh
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

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



[PHP] preg_split function.

2005-08-15 Thread João Cândido de Souza Neto
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.

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



[PHP] preg_split function.

2005-08-15 Thread João Cândido de Souza Neto
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.

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



Re: [PHP] preg_split function.

2005-08-15 Thread John Nichel

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]

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



[PHP] mssql 20020429

2005-08-15 Thread Daniel Baughman

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



RE: [PHP] mssql 20020429

2005-08-15 Thread Daniel Baughman

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



RE: [PHP] mssql 20020429

2005-08-15 Thread Daniel Baughman

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

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



[PHP] [Way OFF] Amazing picture of Helios Flight 522

2005-08-15 Thread Brian Dunning

http://www.briandunning.com/helios.shtml

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

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



[PHP] Be careful! Look at what this spammer did.

2005-08-15 Thread Dotan Cohen
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

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



[PHP] Problem when encoding non-english into UTF-8

2005-08-15 Thread Wong HoWang
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! 

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



[PHP] RE: Problem using Metabase

2005-08-15 Thread Pablo Gosse
[snip]
 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');
[/snip]

Thanks, Manuel.  I tried what you suggested but it didn't work.  The server 
this project is housed on is an IIS server running PHP 4.4.0.

I installed the metabase package on a linux server, and was able to connect to 
a postgres database with no troubles at all.

It must be something in our PHP configuration that's causing the problem, but 
I'm pretty sure we have a cache extension installed.  This PHP install was done 
rather quickly, unless there's a cache extension installed by default (which 
there is not as far as I understand, but I could be wrong ...) we likely didn't 
install one.

Thanks,

Pablo

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



Re: [PHP] Problem when encoding non-english into UTF-8

2005-08-15 Thread Jasper Bryant-Greene

Wong HoWang wrote:

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?


From the manual [1]:

utf8_encode -- Encodes an ISO-8859-1 string to UTF-8

You're using the wrong tool for the job. Take a look at the iconv 
extension[2].


Jasper

[1] http://www.php.net/utf8_encode
[2] http://www.php.net/iconv

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



RE: [PHP] RE: Problem using Metabase

2005-08-15 Thread Pablo Gosse
[snip]
It must be something in our PHP configuration that's causing the
problem, but I'm pretty sure we have a cache extension installed.  This
PHP install was done rather quickly, unless there's a cache extension
installed by default (which there is not as far as I understand, but I
could be wrong ...) we likely didn't install one.
[/snip]

Sorry, I meant to say that we likely DO NOT have a cache extension
installed.

Can anyone think of any other reason why the order in which the class
files are loaded would be changed on one server to the next?

Cheers and TIA,

Pablo

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



Re: [PHP] one more mysql question

2005-08-15 Thread Esteamedpw
 
In a message dated 8/13/2005 6:33:16 P.M. Central Standard Time,  
[EMAIL PROTECTED] writes:

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?


lol... I thought that was pretty funny too? I would have laughed if it were  
directed at me... ahhh well... 
 
- Clint


Re: [PHP] Be careful! Look at what this spammer did.

2005-08-15 Thread Esteamedpw
Yeah, I had this happen to me a while back... glad some of the biggest have  
been caught lately =)
 
 
 Original 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