Advice for a "beginner" using PHP with MySQL
Hello All,
I'm a Sysadmin. I've been a sysadmin for about 6 years now. I manage various systems that include httpd, DNS, ftp, LDAP, Samba, MySQL/Postgers, etc. And not only do I do the systems, I'm also the network guy (I guess the company saves money that way ;)) that manages all the cisco devices and such. I've been wanting to start learning PHP...but not only PHP, I would (eventually) want to get into writting web applications with a database backend... As a sysadmin I write various scripts to automate tasks, so I'm familiar with "if" statements, loops, traps, etc. So I'm no stranger to the concept of programming. I just want to get more in depth. Are there any books/resources that any of you can recommend? I am really interested in PHP with MySQL.... I found this book at Barnes and Noble...seemed good...and Amazon has some good reviews... http://www.amazon.com/Head-First-MySQL-Lynn-Beighley/dp/0596006306/ref=cm_cr_pr_product_top Have any of you read this book? Any help/advice/thoughts/suggestions would be appreciated. Thanks, -C |
Hi,
I'm no PHP expert but I did get a connection going with a DB and have made my PHP script OOP, or at least I think it is ;) Here is a sample of what I did to get you started... PHP Code:
PHP Code:
|
Quote:
The best thing to do is have a project and learn PHP/MySQL while putting it together. I started with an idea for a website and tinkered with it until I got it right. PHP has well documented man pages at php.net. I will say that it is important to understand basic database design though. I don't know what to recommend for that. |
As books go I liked the earlier edition of PHP and MySQL Web Development
|
Definitely worth bookmarking the relevant online docs:
http://dev.mysql.com/doc/refman/5.0/en/ http://www.php.net/manual/en/ |
Quote:
Thanks to all for the references :D -C |
Here is an additional beginners question. I am reading this thread because I Googeled "using PHP with MySQL" with the idea of looking for resources to do just that. I may however be putting the cart before the horse. What I want to do is create database systems on both Linux and Windows platforms and use a web browser as the "front end" to access the data. What I'm really looking for is a replacement for Microsoft Access. I want to create applications for churches and other non profit organizations. These applications do not necessarily need to have access via the Internet rather simply over the LAN.
Having said that am I looking at the wrong language for the purpose? Is PHP flexible enough to make a complete client side application for a database used in an office situation? It seems as though C or C++ is the language more oriented for these tasks but it also looks like a much steeper learning curve and work to create the end product entirely in either language. I'm not looking to make a living do this but would be interested in what the people who do are using for the job. |
Quote:
Web based is client-only...the web server handles interaction with the database, and uses a browser to present it to any user, any platform, providing the browser does things correctly (which leaves out IE :) ). In that case, PHP is ideal...I've developed several apps using it, and it's VERY robust, and hooks in with several different flavors of database (MySQL, Postgres, Oracle..). You could easily have a web and database server on the same box, if you didn't need to serve up thousands of users at once, and weren't pounding the database. And please start your own thread for questions, rather than hijacking someone elses.... |
To answer your specific question:
Quote:
Is what you are proposing reasonable? I would say yes, PHP is fairly easy to learn and setting up a client server style architecture via an Intranet is much quicker than having to do it all yourself. MySQL is a good choice of database, there are lots of tutorials out there to help with learning to set that up. From the front end perspective are there any alternative choices? Certainly, they come down (I would say) into three groups.
|
All times are GMT -5. The time now is 12:05 AM. |