Search found 7 matches
- Mon Jul 17, 2006 10:45 am
- Forum: PHP - Theory and Design
- Topic: Speed issues with a central xml file storing site settings
- Replies: 11
- Views: 2259
Ah, I get it now.. That's a pretty nice feature. Thanks for explaining this to me. I doub I'll see any noteworthy effect using this as of now but I think it's a really nice habit to have - One day I really might gonna need it or expand upon it and it really dosn't add much more of a hassle or comple...
- Mon Jul 17, 2006 8:38 am
- Forum: PHP - Theory and Design
- Topic: Speed issues with a central xml file storing site settings
- Replies: 11
- Views: 2259
CPU time and memory resources .. a PHP based config file would take practically no time to parse .. 0.001 seconds maybe. An XML file would take maybe 0.02 seconds. 20 times slower. On a site with 5 concurrent users that's nothing to worry about .. but on a site with 5000 concurrent users it's a muc...
- Sun Jul 16, 2006 5:33 pm
- Forum: PHP - Theory and Design
- Topic: Speed issues with a central xml file storing site settings
- Replies: 11
- Views: 2259
No, they really aren't. Parsing an XML file takes a lot of resources and a lot of time. Storing config info in a PHP file as constants is a lot faster. If you want it to be easy to edit, store as XML. If you want it to be fast, store as PHP. A lot of time and resources in what measure? The page wou...
- Sun Jul 16, 2006 9:37 am
- Forum: PHP - Theory and Design
- Topic: Speed issues with a central xml file storing site settings
- Replies: 11
- Views: 2259
- Sun Jul 16, 2006 8:36 am
- Forum: PHP - Theory and Design
- Topic: Speed issues with a central xml file storing site settings
- Replies: 11
- Views: 2259
Speed issues with a central xml file storing site settings
Hey all I'm currently working on a CMS project and I've begun considering to have a config.xml file to store various settings for every page as well as global settings. A very simplified example: <webconfig> <global> <database> <name>MyDatabaseName</name> <user>root</user> <password>Password1</passw...
- Sun Jul 02, 2006 8:06 am
- Forum: PHP - Code
- Topic: Add values to nodes in an XML file
- Replies: 3
- Views: 237
- Sat Jul 01, 2006 7:18 pm
- Forum: PHP - Code
- Topic: Add values to nodes in an XML file
- Replies: 3
- Views: 237
Add values to nodes in an XML file
Hey guys, trying to learn how to use XML with php and while there's lots of information in how to parse and (re)write a xml file, I cannot find information that explains how to search up a child node, adding a new value to it. Small example: <webconfig> <newsperpage>10</newsperpage> </webconfig> I g...