|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 15 Aug 2005 13:42:04 -0000 Issue 3626
php-general-digest-help
lists.php.net
Date: Mon Aug 15 2005 - 08:42:04 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 15 Aug 2005 13:42:04 -0000 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:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
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"" <andras
kende.com>
>??????:CE.18.33075.AECAEF24
pb1.pair.com...
>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
attached mail follows:
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
attached mail follows:
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
attached mail follows:
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"" <romans
skulme.lv> wrote in message
news:31.DD.33075.C2700034
pb1.pair.com...
> 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
attached mail follows:
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"" <romans
skulme.lv> wrote in message
>news:31.DD.33075.C2700034
pb1.pair.com...
>
>
>>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
>>
>>
>
>
>
attached mail follows:
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" <torgny
xorcode.com> wrote in message
news:430056C7.80600
xorcode.com...
> 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"" <romans
skulme.lv> wrote in message
>>news:31.DD.33075.C2700034
pb1.pair.com...
>>
>>
>>>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
>>>
>>>
>>
>>
>>
attached mail follows:
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
attached mail follows:
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" <sebastian
broadbandgaming.net>
??????:430019DB.3060309
broadbandgaming.net...
>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
attached mail follows:
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
attached mail follows:
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.
>
>
>
attached mail follows:
Pablo Gosse wrote:
> However, and this is even stranger to me, if I add the following after
> the call to header()
>
> die('foo');
>
> the page redirects to the correct url.
>
> I remove die('foo'); and it redirects to itself again.
That makes it sound like there is another call to header() somewhere
that overwrites your Location header. Try using something like
LiveHTTPHeaders to see exactly what your 302 response looks like. You
can also grep through your source for header.
Hope that helps.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
attached mail follows:
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.
attached mail follows:
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
john
kegworks.com
attached mail follows:
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
john
kegworks.com
attached mail follows:
Catenare LLC wrote:
> Are there any PHP user groups currently meeting in San Francisco?
http://www.phpusergroups.org/groups.phtml?country=United+States&menu=groups
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john
kegworks.com
attached mail follows:
On 8/11/05, xfedex <xfedex
gmail.com> 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
>
>
attached mail follows:
Matthew Weier O'Phinney wrote:
> * Sebastian <sebastian
broadbandgaming.net> :
<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
john
kegworks.com
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]