tomjac — 2014-08-14T10:52:31-04:00 — #1
I have some noobs questions about Design of a php-website.
A php-website, what file-format accepts? .PSD File format?
I saw these : http://www.peopleperhour.com/hourlie/design-and-build-a-super-sleek-joomla-website/160066?ref=search and http://www.peopleperhour.com/hourlie/design-and-develop-a-complete-responsive-wordpress-website/158765?ref=search,
but i do not want my page to be in Joombla, Drupal or Wordpress. I want to make it in Php and i am confused about the Web design.
Can someone explain me what file-format does a php-website accept ? And give me more information about the web design?
cpradio — 2014-08-14T12:48:37-04:00 — #2
You need to buy a book. Any book regarding PHP.
PHP is a Server Side Processor, the file extension for it is .php. Joomla, Drupal and Wordpress are ALL built using PHP. They are simply CMS frameworks built using PHP.
PHP is a server side language, so it isn't a website software out of the box, you have to write a LOT of code to get to that point. Joomla, Drupal and Wordpress ease that burden by having that code already built and you simply create a template to use for your site.
droopsnoot — 2014-08-14T13:27:21-04:00 — #3
The design and appearance of the site will be done with HTML and CSS as with any site, your PHP code will be used to handle interaction with the user, and with any database(s) that your site may use. You mentioned that you have already read one PHP book and I am surprised that it didn't address this point, though it's not one that I have seen.
websitemedia — 2014-08-15T12:54:33-04:00 — #4
on the other hand, a dynamic website will require php. Say your visitor wants to search & sort from highest value to lowest or search & sort alphabetically, this will require php. If you do not want to sort or massage any of the data then no need for php. example of dynamic sites are ebay, amazon where you can search and then list from highest to lowest.
stevenhu — 2014-08-15T18:18:52-04:00 — #5
<p>Today's date is: Friday, August 15, 2014</p>
Unfortunately, you'd have to change the date by hand if you wanted to keep it up to date every day!
But with PHP, you could do it this way (with your page ending in .php and not .html):
<p>Today's date is: <?php echo date("F j, Y"); ?></p>
Then PHP will keep updating the date automatically each time the page is accessed.
PHP is also good for grabbing the contents of a database, writing it as HTML, then displaying it on the screen.
One difference between PHP and HTML: if the page is all in HTML/CSS, then the page goes straight from the server to the browser as is, because HTML is the browser's natural language. But if it is in PHP, the page goes to the server first to run the PHP script (such as the date code above is changed into a real date in HTML code), changed to HTML, then sent to the browser.
I hope this helps you a little bit. If you haven't done any programming yourself, then you can expect a long period of time learning before getting a website up and running. But if you use the services of the company you linked to, you can get the site up quickly and spend your time learning to use that site.
tomjac — 2014-08-18T11:57:31-04:00 — #6
Which Book do you recommend sir ?
cpradio — 2014-08-18T12:01:29-04:00 — #7
You will want to remove courses/screencasts from the right hand filter, but the following books are good starting points:
If you just want to learn PHP:
Jump Start PHP
If you want the book to guide you through a project from beginning to end:
PHP & MySQL: Novice To Ninja, 5th Edition
Build Your Own Database Driven Web Site Using PHP & MySQL, 4th Edition
tomjac — 2014-08-18T12:07:04-04:00 — #8
Yes. I have read this Book, but, it's a noob book. It covers the basics. Not too much things.
So, the first page, can only be in HTML or CSS? The first page can't be in PHP?
tomjac — 2014-08-18T12:11:17-04:00 — #9
MySQL is just too old. Why i should spent my time on mysql queries? Do you believe that is necessary to learn Mysql? And why?
PDO looks better.
Thanks for the response!
tomjac — 2014-08-18T12:22:42-04:00 — #10
I can say that was the most hq response !!! I am really glad.
Which Php Book do you recommend sir ? And which book do you recommend for HTML/CSS?
cpradio — 2014-08-18T12:26:00-04:00 — #11
Please buy a book (or borrow one from a library). PDO is not a database. It is a Library for interacting with databases. So it interacts with MySQL, Postgres, etc.
tomjac — 2014-08-18T12:28:14-04:00 — #12
How does it interact? Everyone say to move from Mysql to Mysqli because it's too old and most people say that PDO is better than MySQL.
mittineague — 2014-08-18T12:32:05-04:00 — #13
Don't confuse the (deprecated) PHP mysql functions with MySQL the database.
cpradio — 2014-08-18T12:35:49-04:00 — #14
Okay, in PHP you have multiple ways of connecting to a MySQL database. There are functions that start with mysql_, there are functions that start with mysqli_, then there is PDO.
All of these are built in methods for connecting to a database (primarily MySQL, but PDO can connect to more than just MySQL). PDO is a library you use to connect to your database. It purposely gives you SQL Injection protection (if you use prepared statements) and can enforce types for the parameters to your queries.
That is why everyone is pushing for new beginners to learn PDO instead of the outdated mysql_* and mysqli_* functions.
tomjac — 2014-08-18T12:36:45-04:00 — #15
What's the difference sir ? Someone should know MySQL to use mysql functions. Mysql functions are relevant with MySQL. The logic tells that.
Which are your arguments to support this oppinion ?
Thank you for your response!!
cpradio — 2014-08-18T12:42:51-04:00 — #16
The mysql_* functions are no longer being maintained and will eventually be removed from a future PHP version. That leaves mysqli_* and PDO. As to which one you use, use the chart to help you decide. If there are things mysqli_* supports that PDO doesn't and you need them... use mysqli.
mittineague — 2014-08-18T12:44:43-04:00 — #17
The PHP mysql functions work with the MySQL database
The PHP mysqli (improved) functions work with the MySQL database
PHP's PDO works with the MySQL database, and other databases too
So no problem using MySQL, just that at the least you should be using the mysqli functions, or better yet, PDO
NOT the deprecated mysql functions.
tomjac — 2014-08-18T12:49:47-04:00 — #18
So, why did you support on your previous messages that i should learn MySQL and not PDO? Of course PDO is a library and not a language. But it covers all things such as MySQL. RIght ?
tomjac — 2014-08-18T12:55:17-04:00 — #19
You did not support your opinion "Don't confuse the (deprecated) PHP mysql functions with MySQL the database." . At least, i did not understand your previous post sir.
- I have the opinion, that PDO works as it has with PHP , and it does not need to work with MySQL. Correct or not ?
- How can i see which are the the deprecated mysql functions ?
- Do you believe that PDO is better than Mysqli ?
cpradio — 2014-08-18T13:14:37-04:00 — #20
Okay, now you are just trolling or not bothering to follow any of the links I've provided :nono:
PDO does not "cover" anything. It is a library used to connect to certain databases. MySQL is a database. So yes, PDO does and can connect to MySQL. PDO can and does connect to Postgres, SQLite, etc. The books I referenced, DO NOT use the mysql_* functions in PHP. They use mysqli_* or PDO. So it won't teach you something you don't need to know.
Please STOP confusing mysql_* functions with MySQL the database. They are entirely separate entities.
- Wrong (partially). PDO can connect to other databases, such as Postgres or SQLite, but it also connects with the database MySQL
- Search php.net (it is amazing the documentation they provide). Also, try clicking on a link that I've provided you. It also shows this information.
- No and No to the reverse of your question. One is not better than the other. If you click on the link I provided previously, you'll see some features solely exist in mysqli that are not fully supported by PDO (yet). So you may need to use mysqli instead of PDO if you run into a situation that isn't fully supported by PDO.
Please read the information we are giving you.
next page →