search
HomeBackend DevelopmentPHP Tutorial没有CSS和JavaScript的基础,如何学好PHP?求指教

没有CSS和JavaScript的基础,怎么学好PHP?求指教。
我没有学过CSS和JavaScript,但是想学好PHP,却不知道从什么方向入手,希望高手指教一下我这个菜鸟。。。

------解决方案--------------------

探讨

可是我看PHP视频,里面有关于这两方面的视频哎,我是菜鸟,懂得不多,多多包涵哈

------解决方案--------------------
只有一个一个的来,会php不会js的话会受很大限制的....
------解决方案--------------------
PHP必备工具:
PHP手册
JavaScript手册
HTML手册
Mysql手册
CSS手册
看懂、会用上面的实例,基本上就ok了
------解决方案--------------------
php 和 css javascript 没什么关系
会点也没什么不好

所有 html 开发工具都等产生很好的 css javascript 代码,不一定自己去写
常见的图象处理工具都可以依据你划分好的切片,生成 html css javascript 代码

所以作为 php 的入门者,完全没有必要同时学习 css javascript

php 网站的开发是很简单的
1、自己或请人做好供人看的界面
2、找一个模板引擎,按其规则将界面中需要动态变化的部分替换成模板变量
3、书写 php 代码,向模板变量提供数据

------解决方案--------------------
不会html/css怎么写网站,学PHP的都是为了写网站的,你也很难不学HTML/CSS就能独立的学PHP,学了也白学,你不知道需要什么,所以PHP在你手里永远都是一门语言,而不会由语言引申出去更多的内容去学习。

JS也必须会,JS和PHP都是语言,HTML/CSS也是语言,但当它们相互作用的时候,你丢掉任何一个都是瘸腿,它们都不难,难的是你最终搞懂他们,搞懂他们的关系,并且想做什么事都有章可循,而不是这不会那不会,我就会PHP,等于不会。
------解决方案--------------------
newnew明白你的意思滴,是的、从学习的角度来说是没大多关系的。
你不会css与js也没阻碍你学习php。
如果真心是想做这一块、css、js还是要学的。

虽然表面看、不会css与js不会影响写php,但是会了就更好的。
熟悉css也就会更熟悉htmlDom、这样使用php就会更明白前端需要表现些什么、或能更好的提供数据。
js也一样,有些时候一些逻辑js前端就能简单完成,如有一个select需要一个默认值用js就很简单一个value赋值完成,而不需再去改动php、还基本的、等等。

所以总得来说css、js还是要学些的


楼上几位说的也对~~~ 


------解决方案--------------------
如果你已经下定了决心要学习了,接下来就应该选择一本好教程。站长并不推荐看国内的计算机教材,内容平平不说,而且 很多是过时的,倒不是贬低国内的计算机水平,只是滥竽充数的实在太多,想找一本好书太难。我看的教材是《PHP与Mysql web开发》原书第四版【之前还看过一本不入眼的教材就不推荐了】,俗称“PHP圣经”,这两个名字你任意百度一个都可以搜 到,建议到网上购买,书店里的太贵。如果你之前没有学习过html,css和javascript,我建议大家先去找这方面的教材看, html和基础javascript都很简单,不需要害怕。我学习的过程是:html->css->javascript->php+mysql。 我个人的经验,光看书本你不会学到太多,因为编程是要在实际写代码的过程中才会深刻体会到理论。书上的内容可以给 你先在脑海中对php是怎么一回事形成一个大概的印象,有一些内容你可能一时无法理解消化。当你没看完一小节的时候,就盖 上书,凭着映像在电脑上把看的内容敲出来,看自己得到的结果是否和书上的一致。如果不一致,找出问题。当时我学的时候 遇到过很多问题,有时找了一天也找不到原因。网上那学人也挺坑爹的,随便给你个解决方法就完事了。如果实在不知道原因 的话,就跳过去,继续往后看,但是要把不懂的地方做一下记号,当我们进行到下一步的时候逐一解决。

由于个人的接受方式不一样,所以不存在符合所有人的视频教。我先是看了php100的视频教程(100多集),讲的比较浅,不 怎么细,用来入门是不错的择。如果想要看讲的细讲的深的可以去看后盾网的视频。当然也可以去看lamp兄弟连的教程,建议 大家下载看,不要图快,要有耐性,我当初1天看2集,两个月看完的。记住每当看完一集视频以后一定要自己去动手去敲代码, 一可以加深印象,二可以验证结果。写完代码后把文件保存好,以后还有用的。下载看最大的好处就是,一时走神了没注意可 以退回去继续看,哈哈!在看视频教程的时候,留心注意自己看书时遇到的问题,因为视频教程往往都配有代码讲 解,所以应该能够为你解决一部分在看书时遗留下来的问题。
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
The Continued Use of PHP: Reasons for Its EnduranceThe Continued Use of PHP: Reasons for Its EnduranceApr 19, 2025 am 12:23 AM

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python: Exploring Their Similarities and DifferencesPHP and Python: Exploring Their Similarities and DifferencesApr 19, 2025 am 12:21 AM

PHP and Python are both high-level programming languages ​​that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP and Python: Different Paradigms ExplainedPHP and Python: Different Paradigms ExplainedApr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP and Python: A Deep Dive into Their HistoryPHP and Python: A Deep Dive into Their HistoryApr 18, 2025 am 12:25 AM

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

Choosing Between PHP and Python: A GuideChoosing Between PHP and Python: A GuideApr 18, 2025 am 12:24 AM

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP and Frameworks: Modernizing the LanguagePHP and Frameworks: Modernizing the LanguageApr 18, 2025 am 12:14 AM

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHP's Impact: Web Development and BeyondPHP's Impact: Web Development and BeyondApr 18, 2025 am 12:10 AM

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

How does PHP type hinting work, including scalar types, return types, union types, and nullable types?How does PHP type hinting work, including scalar types, return types, union types, and nullable types?Apr 17, 2025 am 12:25 AM

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values ​​and handle functions that may return null values.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools