Questions about new php students (closed at 100% on weekends)

Source: Internet
Author: User
Questions about new users learning php (closed at 100% on weekends) Question 1: interface problems
My understanding: some specifications of the interface definition, the classes that implement the interface must comply with these specifications.
How can I make other companies call interfaces in the project?
When do I use interfaces?


Reply to discussion (solution)

The interface defines explicit incoming and outgoing parameters.
As long as you implement the interface, the outside world can communicate with you through this interface.
If your system is not an open system, but you want to provide some services, you should use interfaces.

Interfaces (APIs) on the network are now popular with REST

Problem 1: Resolved
Question 2: Some companies need to be familiar with linux
I have installed linux on a virtual machine. I want to install apache + php + mysql on linux.
Currently, I only know how to download their. gz packages and decompress them on ssh.
Some of the. gz packages cannot be found on the official website. they are not old versions.
Is there a convenient installation method?

Linux does not seem to have an integrated package. it can only be installed one by one.

The official website should have downloaded packages. you can install them in this way. Is a very popular method.

Http://jingyan.baidu.com/article/4d58d5412a57ca9dd4e9c02d.html
I will follow this tutorial to configure
Install libxml2
Make install does not generate the five folders
Now I have downloaded and pressurized the php and apache. gz packages.
However, configuration errors always occur. /configure \ -- prefix =/usr/local/php \ -- with-mysql =/usr/local/mysql \ -- with-apxs =/usr/local/apache2/bin/apxs \ -- with-libxml-dir =/usr/local/libxml2
The prompt configure: error: invalid variable name: '-- prefix' indicates that the variable name is invalid.


Please help me. I have not solved this problem since the morning.

I am so tired of installing my own machine. I have tried all kinds of online materials for several days and I am so stupid.
Finally, I found a linux integrated environment, and successfully installed it with one click. I shared it with the landlord.


Forgot the address, http://www.xampp.cc

[Root @ localhost Apache] tar-xzvf httpd-2.2.21.tar.gz
[Root @ localhost Apache] httpd-2.2.21 cd
[Root @ localhost httpd-2.2.21]./configure -- prefix =/usr/local/apache -- enable-so -- enable-rewrite
[Root @ localhost httpd-2.2.21] make
[Root @ localhost httpd-2.2.21] make install

I created the/usr/local/apache folder.
Compile. After instantiation,/usr/local/apache is an empty folder.
Why?

Http://www.zixue.it/article-315-1.html don't know if this tutorial can help the landlord


This page appears during access. what is the situation?

Access to index. php will not go wrong. php files written by myself will go wrong

Insufficient permissions!
Cd to the htdocs directory, and then run chmod 777 a. php

Problem 2: Solving the APR-util not found problem
[Root @ xt test] # tar-zxf apr-util-1.3.12.tar.gz
[Root @ xt test] # apr-util-1.3.12 cd
[Root @ xt apr-util-1.3.12] #./configure -- prefix =/usr/local/apr-util-with-apr =/usr/local/apr/bin/apr-1-config
// This step is incorrect: configure: error: APR-util not found. Please read the documentation. unable to install
[Root @ xt apr-util-1.3.12] # make & make install
This problem is also encountered when you change to the new version of APR-util. (the corresponding directories and files are available, and the created apr-util folder is empty after installation)

There should be no permission. change the permission to 777.

I have installed apr-util, but an error occurs when installing apache.
[Root @ oracle httpd-2.4.12] #./configure -- prefix =/usr/local/apache -- enable-so -- enable-rewrite
The following error occurs during installation.
Configure:
Configure: logging ing Apache Portable Runtime Utility library...
Configure:
Checking for APR-util... no
Configure: error: APR-util not found. Please read the documentation.

Z

Problem 2: Resolved
Question 3:

This is the directory structure of the ThinkPHP download package.
When using TP, just copy it?

What new users need to learn is completely technical-Independent.
First of all, the scores are false. I can't change the money, and I can't prove anything. no one really answers questions to earn points. remember to say thank you to the upstairs. it is secondary to close the post.
In addition, try to train yourself to solve the problem independently. after the problem occurs, try to locate the error and use the search engine skillfully.
Okay, I'm new.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.