[PHP] Structure of maintainable websites

2007-10-08 Thread Matheus Degiovani

Hello,

I'm currently maintaining a website (I developed myself) for the 
Intranet of a public school. Among the usual things (news, login system, 
online grading) the web interface is also used for controlling the 
server it resides on (which includes a few simple tasks such as 
verifying the UPS load, adding users, editing a few conf files) and also 
it is used for (actually, the main purpose of it) 
enabling/restricting/disabling internet access to each of our computer labs.


The system started quite small (since it had to be built fast), but is 
starting to grow to incorporate new features. Currently, each function 
of the system is built in a different php file. It doesn't use any 
template system, though all shared functions are stored in several files 
in a /lib directory and imported in an as-needed basis. Some of the 
libraries are third party, so some are strictly funcional, others are 
Object-Oriented.


I have worked with a few CMSs in the past, indeed I even wrote plugins 
for some, so I have *some* idea of application design in PHP. However, 
I'd like a few pointers on how to make a good, solid infrastructure for 
my code (possibly a complete redesign) which allows it to be easily 
maintained by future analists. Would using Smarty be the best solution, 
in this case? Personally, I wouldn't like to tie the system with any 
existing CMS.


So, my question is: are there any good practices that I should be aware 
of or example websites I can study, that will give me the knowledge I 
need? I'm not looking for references on general software design 
approaches, but practical information on how to apply them to PHP websites.


Thanks,
Matheus Degiovani.

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



Re: [PHP] Exchanging Data among processes

2005-04-06 Thread Matheus Degiovani
Hello Richard,
Shared Memory.
http://php.net/shmop
Not for the faint of heart. :-)
Oooh... this seems sweet... :)
Thanks a lot!
Cya.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Exchanging Data among processes

2005-04-04 Thread Matheus Degiovani
Hello,
How can I exchange data among processes (i.e. two or more users 
accessing a php webpage)? The two usual ways would be using either a 
database or file, so I was wondering if there is another, more fast 
(with reduced latency) for different pages being processed to exchange 
information.

In other words: how (if) can I make a chat program that doesn't use 
files or databases to exchange information between users.

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


Re: [PHP] Exchanging Data among processes

2005-04-04 Thread Matheus Degiovani
Hello Chris,
Matheus,
 As a start I would check out using sockets:
 http://uk.php.net/sockets
Did some experiments, and it seems this would work great. Thanks a lot! :)
The only problem is that not all (if not almost all) hosting services 
disable sockets...

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


Re: [PHP] Exchanging Data among processes

2005-04-04 Thread Matheus Degiovani
Hello Satyam,
Perhaps a memory based database?
http://dev.mysql.com/doc/mysql/en/memory-storage-engine.html
Might not be supported by all ISPs, though.
Nice tip! Thanks! :)
Cya.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php