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