Re: XML doubt
| From: | Geoff Hankerson | Date: | Thu, 05 Sep 2002 12:45:54 +0000 |
| Subject: | Re: XML doubt | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115298@lists.php.net to get a copy of this message | ||
I am not sure, but my best guess is if you are using Apache and Php as a module is that each request will be handled by a seperate child process of Apache.
Perhaps someone can correct me if I am wrong.
Rodrigo Dominguez wrote:
Ok, thank you.... just one more doubt Is it threading safe? For example: At 13:30:10 [Proccess 1] cliente request index.php At 13:30:11 [Proccess 1] index.php is putting the content of the querey into index.xml At 13:30:12 [Proccess 2]a new client request index.php At 13:30:13 [Proccess 2]a new instance of index.php is invoked and it starts to put the content of the query into index.xml, but [Proccess 1] is still working with index.xml What happends? "Geoff Hankerson" <ghank@millerdavis.com> escribió en el mensaje news:3D765AEC.2040701@millerdavis.com...toForgot a step: (1C) make an xslt stylesheet which is basically just a beefed-up html page. Check out devshed.cm xml.com and w3c.org for info on xslt stlyesheets Geoff Hankerson wrote:Rodrigo Dominguez wrote:I don't know how to work with XML... I know that it's a good standard
Ipass information between computer or applications, but I don't know how to separe my data from my presentation on my PHP projects. I always use OOP, I organize all the data in databases and clases, but
thealways have to put some code on my presentation files, like index.php, viewstock.php, and it will be great if I can organize my projects so
knowpresentation can be handled by any designersm, at this time I always have to make the changes on the presentation files because I am the one who
projectabout PHP. Can you give some example about how to separate the data from the presentation using XML and databases? Or can you tell me about a
where I can see it? Thank you.1. Convert sql queries into xml (I'm glad to send a copy of my class if you'd like) basically its: A. Loop over query as you normally would B. Loop through each column in a record for a query and make an xml compatible string like:<record> <fieldname> value </fieldname> </record>2. Then just follow the xslt section of the php manual it's pretty straight forward Give it a shot, if you have trouble send specific questions to the list I and quite a few other will be glad to help