I want to learn PHP and CSS from scratch

episodic

Lifer
Feb 7, 2004
11,088
2
81
Any coding skills I might have once had are gone. What is the single best resource for learning these two things from scratch - inside and out. Don't want to waste my time.

Thanks!
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,284
3,905
75
Well, those are two very different things. CSS is styles, not a real programming language. It's also rapidly evolving. I learned by restyling sites with Stylish, especially this one. To work with CSS, you need at least the basics of HTML, and its associated DOM. JavaScript would be nice, but you can frequently get by without it.

PHP is a real programming language. It's fairly old and stable. If you like learning from books (I don't) there's probably an O'Reilly book for you. I don't know which one, though.

And then there's all the other stuff in the LAMP ecosystem.

  • Linux is frequently useful to know, but not essential.
  • Apache is frequently the system that runs your PHP pages, but unless you want to be a sysadmin you can probably set it and forget it.
  • MySQL...do you speak it? Or any other variant of Structured Query Language? It's not absolutely necessary to use a database with PHP, but it's strongly encouraged. I've used flat files sometimes, but that doesn't scale at all.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
> I've used flat files sometimes, but that doesn't scale at all.

Not only does it not scale for one server, but it means you can't use multiple cloud servers (Amazon, Azure, etc.) since each will have its own separate local storage. It's best to use a database from the beginning instead of re-writing things later.

Also with flat files you have to come up with some locking and retry scheme for file updates since multiple web requests could be trying to update it at the same time. A real database helps with that.
 
Last edited:

Childs

Lifer
Jul 9, 2000
11,450
7
81
Udemy has some free courses on both:

PHP
CSS

Maybe pick one with the most positive reviews, then it should get you to the point where you can target areas of interest.
 

MrDudeMan

Lifer
Jan 15, 2001
15,069
92
91
> I've used flat files sometimes, but that doesn't scale at all.

Not only does it not scale for one server, but it means you can't use multiple cloud servers (Amazon, Azure, etc.) since each will have its own separate local storage. It's best to use a database from the beginning instead of re-writing things later.

Also with flat files you have to come up with some locking and retry scheme for file updates since multiple web requests could be trying to update it at the same time. A real database helps with that.

These are great points in general and I'll admit databases are usually always my first choice, but flat files have their uses. I rarely use them because databases are so awesome and, even if you don't need a full fledged server, you can still use something like SQLite.

One advantage of flat files is they are human readable and they can be easily edited manually if necessary. Using a structured format, e.g. XML, significantly simplifies parsing and makes manual interaction a breeze.

How big is the data and what is the data type? Anything can be put in a database, but I find that media sometimes makes more sense as a discrete file. It all depends.
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
PHP is not the best choice these days. Do you need to learn PHP or would any serverside language work for you?
 

Aldon

Senior member
Nov 21, 2013
449
0
0
It's fine to prefer Ruby, Servlets or some kind framework over PHP, although there is no dispute over the most popular server-side language, which is PHP. In addition there are thousands of communities backing PHP.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |