编程零基础,开了个微信公众平台,希望使用开发模式调用各种api接口。平台主要是地方服务性质的。希望最终的呈现效果是:1、机器人互动。2、有一个数据库,提供寻物失物的匹配。3、信息检索(比如接入学校教务管理系统查成绩等)。4、信息发布(以推送和网页的双重方式呈现)。
菜鸟一只,不知道描述的对不对。目前困难是看不懂php语言,更无从下手实现希望呈现的效果。求问各位用微信的大神,如何能够学习?在哪学习?一定要从零开始学php语言么?
回复内容:
1、机器人互动我认为你实现不了。当然,调用第三方api除外。
2、有一个数据库,提供寻物失物的匹配
简单,会sql语句就行。
3.教务处管理系统信息检索
需要模拟登陆,因此你首先得把教务处的登陆以及查询成绩的请求过程弄清楚。
你还得了解http了解cookie/session。必要时你还得懂html。正则表达式是必须会的。
这个比较有难度。
4.信息发布
容易,会sql语句就行。
你的困难不是看不懂php,而是你完全不会web编程。
微信公众平台没有推送这一说,要么是你手动向用户群发消息,要么是用户主动拉取消息。
微信公众平台的文档里面有demo。你起码要知道怎么去修改和利用。
安卓先后顺序来:
1.本地搭建个php环境,mysql配好。
2.微信开发不怎么要求懂html,但是整个过程和浏览器请求网页是一样的。(处理接收数据和返回相应数据的过程不一样,但是这两个过程在微信的demo里面已经写得很好了,可以直接用。)可以看w3cschool上面的教程PHP 简介,里面混合了html和php,html部分可以先不去管。如果有C语言基础,入门不难。
3.一定要在本地多练习,学会怎么去接受前台(浏览器)传过来的数据,用php操作数据库,得到结果echo到页面上,如果这个学会了,移植到微信很容易。
4.尝试使用浏览器的network工具(chrome的f12,火狐的firebug里面都有),然后通过它熟悉请求/响应。使用这个玩意可以查看你的浏览器是怎么和服务器进行交互的,web编程必备工具。 本人也在做微信公众号开发,也曾经给大学开发微信查课程表程序,自己也申请了一个微信号,想在2-3线城市做一个微信联盟,肯定不能做成门户网,不知道做成什么样子?不知道怎么去规划?谁有点子 看你的情况,其实你是要利用微信平台搞项目,而不是对技术感兴趣。
没基础从头学,自己写代码,吃力不讨好,典型的为了手段忘了目的。
我的建议是:你把需求示意图画好,数据整理好,到猪八戒网花几百块请人搞下就是。
要吃鸡蛋,何必养母鸡呢? 我觉得互联网给我们带来是的是无地域的协作模式,而不是让个人成为全能神。因此我建议题主先确定好自己的需求,是想走运营,还是想走开发的方向。
我是做微信开发的,做运营的没经验,无法分享好的想法,但我觉得如果要走运营的方向就专心做好运营,直接购买技术好了。
如果是走开发的话倒可以探讨一下。
要学开发,懂一门编程语言是必须的,php,asp,java或者python都可以做微信开发,php相对来说比较容易掌握,开放源码也比较多,建议去学php。学习php的基础推荐中原大学孙仲岳《一周学会PHP》与“一周学会PHP”相关的文章
学会了编程语言以后,开始做微信开发,要尽可能的站在巨人的肩膀上,即利用成熟的框架和开放源代码来快速实现自己的开发需求。国内现在的开源比以前好了很多,微信有weiphp、微擎等开源框架可以用,这些框架都有提供完整的开发文档,以及第三方开发者开发好的插件/模块。
总之,别人做好的不用重复做,直接拿来用,集中精力做自己需要的而别人没做的,毕竟现在技术更新迭代太快了,而且技术的价值是在于运用。 我看微信推出的结合HTML5的开发不错,有很多微信场景都是靠这个完成,可以读这本书:《微信公众平台JSSDK开发实战:公众号与HTML5混合模式揭秘》(席新亮,等)【摘要 书评 试读】 青龙老贼的《微信公众平台从入门到精通》。 这个社会,就是这样,有穷人,就有富人;有长得漂亮的,就有长得丑的;有活得光彩的,就有一般的,不用去比,做自己就好! 学习微信开发,可以加入艾豆微信交流群452207697哦,里面有很多前辈可以学习。

PHP is used to build dynamic websites, and its core functions include: 1. Generate dynamic content and generate web pages in real time by connecting with the database; 2. Process user interaction and form submissions, verify inputs and respond to operations; 3. Manage sessions and user authentication to provide a personalized experience; 4. Optimize performance and follow best practices to improve website efficiency and security.

PHP uses MySQLi and PDO extensions to interact in database operations and server-side logic processing, and processes server-side logic through functions such as session management. 1) Use MySQLi or PDO to connect to the database and execute SQL queries. 2) Handle HTTP requests and user status through session management and other functions. 3) Use transactions to ensure the atomicity of database operations. 4) Prevent SQL injection, use exception handling and closing connections for debugging. 5) Optimize performance through indexing and cache, write highly readable code and perform error handling.

Using preprocessing statements and PDO in PHP can effectively prevent SQL injection attacks. 1) Use PDO to connect to the database and set the error mode. 2) Create preprocessing statements through the prepare method and pass data using placeholders and execute methods. 3) Process query results and ensure the security and performance of the code.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

PHP makes it easy to create interactive web content. 1) Dynamically generate content by embedding HTML and display it in real time based on user input or database data. 2) Process form submission and generate dynamic output to ensure that htmlspecialchars is used to prevent XSS. 3) Use MySQL to create a user registration system, and use password_hash and preprocessing statements to enhance security. Mastering these techniques will improve the efficiency of web development.

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

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

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.