mysql处理ip地址的2个方法:inet_aton 与 inet_ntoa

mysql处理ip地址的2个方法:inet_aton 与 inet_ntoa

mysql提供了两个方法来处理ip地址:
inet_aton 把ip转为无符号整型(4-8位)
inet_ntoa 把整型的ip转为电地址

插入数据前,先用inet_aton把ip地址转为整型,可以节省空间,因为char(15) 占16字节。
显示数据时,使用inet_ntoa把整型的ip地址转为电地址显示即可。

例子:

CREATE TABLE user (
id int(11) unsigned NOT NULL AUTO_INCREMENT,
name varchar(100) NOT NULL,
ip int(10) unsigned NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB;

插入几条数据

INSERT INTO user (id, name, ip) VALUES
(2, ‘Abby’, inet_aton(‘192.168.1.1’)),
(3, ‘Daisy’, inet_aton(‘172.16.11.66’)),
(4, ‘Christine’, inet_aton(‘220.117.131.12’));

查询显示

mysql> select * from user;
+—-+———–+————+
| id | name | ip |
+—-+———–+————+
| 2 | Abby | 3232235777 |
| 3 | Daisy | 2886732610 |
| 4 | Christine | 3698688780 |
+—-+———–+————+

利用inet_ntoa查询

mysql> select id,name,inet_ntoa(ip) as ip from user;
+—-+———–+—————-+
| id | name | ip |
+—-+———–+—————-+
| 2 | Abby | 192.168.1.1 |
| 3 | Daisy | 172.16.11.66 |
| 4 | Christine | 220.117.131.12 |
+—-+———–+—————-+

2022年12月英语六级第1套听力原文及题目

2022年12月英语六级第1套听力原文及题目

Section A
Direction: In this section, you will hear two long conversations. At the end of each conversation, you will hear four questions. Both the conversation and the questions will be spoken only once. After you hear a question, you must choose the best answer from the four choices marked A), B), C) and D). Then mark the corresponding letter on Answer Sheet I with a single line through the centre.

Conversation 1
M: How’s your dissertation going? I’m proofreading my first draft and will submit it to my professor tomorrow.
W: Oh, I haven’t even started writing mine yet. So I’m really worried about finishing by the end of next semester.
M: You mean you haven’t even begun yours yet? The final draft is due in five months.
W: Of course I’ve started it, but I can’t get to the writing yet as I haven’t found enough resources to use. So I’m still researching the topic.
M: Maybe the problem is the way you’re doing your research. I started by talking to my professor about where to look for information. And based on that, I found books in the library and a lot of reputable journal articles on the Internet.
W: I’ve tried all that, but don’t have enough to write the dissertation as my department’s minimum length is 70 pages. I think the problem is that my topic isn’t viable. And honestly, my professor did warn me at the beginning that I might not be able to find enough material. But I was so interested in the topic that I didn’t let his advice deter me.
M: Well, I suggest you find a new topic. After all, our professors are here to guide us, so it’s best to listen to them.
W: In retrospect, I wish I had listened to him, but I didn’t. And now I don’t want to give up my topic as I’ve already invested so much time and energy.
M: If you’re committed to your current topic, maybe you could make some adjustments rather than abandoning it completely. What is your topic?
W: It’s “Depictions of Femininity in Folklore from the South of the Country”.
M: That’s pretty narrow. You could find more material if you made the topic broader, maybe by including other kinds of depictions.
W: Broadening the topic is a great idea. I’ll start by including folklore from other regions of the country.
Questions 1 to 4 are based on the conversation you have just heard.
Question 1: What does the woman say about her dissertation?
Question 2: What does the man say about his professor?
Question 3: What does the woman say about her professor?
Question 4: What do we learn the woman will do to complete her dissertation?

1.
A) She hasn’t started writing it.
B) She hasn’t decided on a topic.
C) She is proofreading the first draft.
D) She is working on the references.

2.
A) He lent many books to the man for reference.
B) He offered the man advice on resource hunting.
C) He published a lot in a number of reputable journals.
D) He told the man to be selective when using e-resources.

3.
A) He didn’t think her dissertation topic viable.
B) He wasn’t interested in her dissertation topic.
C) He didn’t want her to rush through her dissertation.
D) He wasn’t specific about the length of her dissertation.

4.
A) Change her research methodology.
B) Narrow down her dissertation topic.
C) Consult her professor more.
D) Follow the man’s advice.

Conversation 2
W: Today on Book Talk, we’re lucky enough to host John Robbins and discuss his new book, Why Americans Are Fat and How We Can Lose Weight. John isn’t just a respected writer, he’s also one of the rare celebrity authors writing about science today.
M: Thanks for having me, Rebecca, but I’m hardly a celebrity.
W: That’s very modest of you to say, considering that your four books have sold a total of 7 million copies worldwide, and they’ve been translated into 12 different languages. What makes people so fascinated with your work?
M: Well, people read my books because more than 60% of Americans are overweight or obese, and other countries are facing similar problems. Basically, we all want to know how to fix things.
W: We certainly do. I’ve read your new book, and it’s fabulous, especially when it comes to the way you make difficult science easy for laymen to understand. That’s no small achievement.
M: I’m glad to hear you find my work accessible, because I was worried when I wrote it that discussing the science might make the book more suited for a specialist audience. My last book was written primarily for the medical community. But this time, I want to help ordinary people take control of their weight.
W: And how do you suggest they do that? Can you give us the basics of your advice for people who want to lose weight?
M: Briefly, I argue that every person needs to consider their metabolism and eat what suits their body’s needs. I don’t advocate one single diet. Some people should eat more carbohydrates than others. And different people need different amounts of protein and fat.
W: But you do have some recommendations for everyone, including eating ten servings of vegetables and three of fruit a day. We’ll talk about those recommendations next, but now we need to take a short break for a message from our sponsor.
Questions 5 to 8 are based on the conversation you have just heard.
Question 5: What does the woman say about the man in her introduction?
Question 6: What has motivated the man to write his books?
Question 7: Who does the man say his last book was mainly written for?
Question 8: What does the man recommend people do?

5.
A) He has translated 12 books.
B) He is a well-known nutritionist.
C) His books sell well worldwide.
D) His latest book sold a million copies.

6.
A) The desire of Americans to try exotic cuisines.
B) The demand for information about food safety.
C) The fact that over half of Americans are overweight.
D) The fact that science books are difficult to read.

7.
A) The general public.
B) Those who are overweight.
C) Those who want to lose weight.
D) The medical community.

8.
A) Switch to a vegetarian diet.
B) Follow a personalized diet.
C) Adhere to doctors’ advice.
D) Cut carbohydrate intake.

Section B
Direction: In this section, you will hear two passages. At the end of each passage, you will hear three or four questions. Both the passage and the questions will be spoken only once. After you hear a question, you must choose the best answer from the four choices marked A), B), C) and D). Then mark the corresponding letter on Answer Sheet 1 with a single line through the centre.

Passage 1
Stress is often depicted as negative, but research shows that moderate amounts of it can be beneficial for your brain and your body. First, the benefits for the brain. Studies have shown that short periods of stress can actually bolster cognitive functioning. Researchers discovered that placing rats in a stressful situation for just a few hours doubled the growth of new brain cells. The rats also did better on a memory test later on. Scientists think the same thing happens in humans. But how does stress improve memory? It’s simple. When your brain cells multiply, your memory can improve. Viewed from a biological perspective, this makes sense because animals that are better at remembering dangerous situations can avoid them in the future. If an animal encounters a predator and escapes, for example, it’s important to remember where and when that encounter happened. Experts assert that the same principle applies to humans. Now, let’s turn to how stress benefits the body. This may come as a surprise to laymen, but experts say that stress can keep you from getting sick. Scientists concede that chronic stress can make you more prone to illness, but research shows that short periods of stress can actually provide some protection against getting sick because it increases your immune functioning. One study shows that rats that experienced brief stress had a surge of immune cell response, which makes the immune system better prepared to fight illness. For humans, there’s even evidence that experiencing stress before getting vaccinated could help make vaccines more effective.
Questions 9 to 11 are based on the passage you have just heard.
Question 9: What did researchers discover about rats placed briefly in a stressful situation?
Question 10: Why do people tend to have clearer memories of dangerous situations they have encountered?
Question 11: What do scientists believe chronic stress can do?

9.
A) The rate of their growth increased dramatically.
B) The growth of their new brain cells doubled.
C) They began to show signs of depression.
D) They began to get irritated and restless.

10.
A) To avoid them in the future.
B) To warn others against them.
C) To make good sense of them.
D) To reflect on their causes.

11.
A) Produce a surprising healing effect.
B) Weaken one’s immunity in the long run.
C) Make people more susceptible to illness.
D) Provide protection against mental illnesses.

Passage 2
For many managers and people who work in leadership positions, dealing with emails is a dilemma. It’s likely the unpredictable, uncontrollable and ongoing nature of day-to-day email in terms of volume, importance and urgency contributes to their levels of anxiety and to diminished leadership skills. That’s because it’s not unusual for many leaders to prioritize email management over people management. An obsession with managing their inbox prevents them from dealing with their employees. As a result, they ignore the issues that might only be mild problems at first, until unfortunately, they inevitably transform into a major problem or crisis by virtue of neglect. As leaders, they are expected to motivate and inspire their team in pursuit of longer-term strategic goals and also, less ambitiously but more practically, to monitor their daily output to set clear expectations and to give regular feedback. When presented with a choice between the appeal of their inbox and other more important activities, many sacrifice the latter. Daily email demands have a negative impact on their goal progress. This is because leaders must divert resources from other tasks to check, filter and respond to emails. The solution is cultivating self-control which is like a muscle. It can be strengthened or improved over time through exercise. Some suggestions include: making space in your diary for the only period during which you will be checking emails; setting a timer for yourself so you don’t become distracted by your inbox for too long; turning off email alerts so you’re not interrupted by them.
Questions 12 to 15 are based on the passage you have just heard.
Question 12: What does the speaker say is a common problem with managers?
Question 13: What may happen when managers ignore minor problems?
Question 14: What are leaders expected to do in pursuing their strategic goals?
Question 15: How can a manager best avoid being distracted by email?

12.
A) Placing their own interests over their staff’s.
B) Being overwhelmed by their daily routines.
C) Lacking the ability to relate to their staff.
D) Spending too much time handling email.

13.
A) Their leadership may be challenged.
B) Their companies may go bankrupt.
C) Unexpected events may occur.
D) Major problems may result.

14.
A) Keep an eye on their employees.
B) Motivate and inspire their team.
C) Sacrifice some of the immediate goals.
D) Have greater ambition in overall planning.

15.
A) Cultivate self-control.
B) Filter their email boxes.
C) Respond only after work.
D) Check only when necessary.

Section C
Direction: In this section, you will hear three recordings of lectures or talks followed by three or four questions. The recordings will be played only once. After you hear a question, you must choose the best answer from the four choices marked A), B), C) and D). Then mark the corresponding letter on Answer Sheet 1 with a single line through the centre.

Recording 1
In last week’s lecture, we talked about the problems caused by poor eating habits, focusing on how medical professionals are trying to solve these problems. Today, we’ll continue with the topic, but focus on research from a different field — marketing. Now, what can marketing tell us about improving nutrition? Well, a team of marketing professors has studied the importance of the visual aspect of food and how that influences food choices. Those marketing experts assert that the impact of the appearance of food is greater than we might presume, and might hold the key to encouraging better eating. So how important is the appearance of food? Research shows that just seeing an appealing photograph of a hamburger in an advertisement, for example, can cause individuals to imagine the taste or smell of that hamburger. This can make them more likely to purchase and consume it. Of course, that’s the point of advertisements. So isn’t that a good thing? Well, the marketing professors argue that this is actually a problem because the combination of pleasing aesthetics of and easy access to unhealthy foods, such as hamburgers and pizza, may be contributing to a worldwide health crisis. In fact, statistics show that 39% of all adults in the world weigh too much, and another 13% are obese. Now, as we discussed last time, medical professionals have tried to fight the obesity epidemic by focusing on the nutrients found in different foods, emphasizing things like carbohydrate, fat, sugar and calorie content. But they’ve had limited success. The marketing professors believe that the real solution to obesity is making food look appealing and focusing on the pleasure of both looking at and eating that food. That pleasure can be used as a tool to promote healthy food choices. In fact, the research done by the team showed that associating healthy food with pleasant images, experiences and emotions led to greater interest in purchasing or eating. “This is a better strategy,” they claim, “than reminding consumers that a certain food is good for them.” But are they right? Well, the researchers cited a marketing campaign designed to reverse the sales decline of carrots. The campaign didn’t emphasize the carrots’ healthy qualities, but embrace their beauty and the pleasure derived from eating them. For example, the ads focused on the bright, beautiful orange color and crisp texture of the carrots. The campaign led to an impressive increase in product sales of more than 10%. The researchers believe that other companies could bolster sales of healthy foods with similar ads, depicting their products as attractive and a source of pleasure.
Questions 16 to 18 are based on the recording you have just heard.
Question 16: What does the speaker say a team of marketing professors has studied?
Question 17: How have medical professionals tried to fight obesity?
Question 18: What can other companies learn from the example of the carrot promotion campaign?

16.
A) The key to increasing healthy food supply.
B) The best way to improve marketing research.
C) The impact of advertisements on consumption.
D) The importance of the appearance of food.

17.
A) By focusing on the nutrients in different foods.
B) By emphasizing the diversity of food.
C) By stressing pleasing aesthetics of food.
D) By winning the support of marketing professors.

18.
A) They can attract customers with the healthy qualities of their products.
B) They can boost sales of healthy foods by making them visually appealing.
C) They can turn to marketing professors for advice.
D) They can rely on advertising for sales promotion.

Recording 2
The household cleaning products industry really began to take off in the 1950s. Prior to that, resourceful housewives who had grown up in a less prosperous era relied on substances that they used in their kitchens such as vinegar used to clean windows. Today, the household cleaning products industry is worth billions of dollars a year and is dominated by large global companies. In recent years, however, many countries have witnessed a surge in the number of small businesses and companies offering more environment-friendly cleaning products. And they’re doing good business, too. One reason for this is that consumers are becoming more aware of environment and sustainability issues. They also want to make their home a safe place, free from toxic chemicals. The third reason is people’s awareness of and knowledge about technology has never been greater. In the past, people might have been skeptical of a new product claimed to be able to achieve amazing cleaning results, but they now have faith in technology’s ability to do what was once thought impossible. There is perhaps no better example of this than a patented cloth sold by one company, which remarkably uses only water rather than traditional cleaning products. The company claims its cloth lifts, traps, and removes dirt and bacteria. And considering that people don’t see these products in shops, or advertised on TV, or in the press, it has been a pretty steep rise. Many of the people behind these companies began testing the viability of their products by selling them at local markets. Then, in many cases, customers are doing the marketing for these product by leaving threads of comments on social media, praising their virtues. There are also TV shows and books dedicated to maintaining home tidiness and cleanliness and the benefits of having a clean home. Having a safe and clean home might be one thing people feel they can control in an increasingly out-of-control world. And there are social media celebrities. One woman in Britain has become a social media sensation with more than 2 million followers for her cleaning tips page.
Questions 19 to 21 are based on the recording you have just heard.
Question 19: What does the speaker say about the cleaning products industry in recent years?
Question 20: Why are newly developed cleaning products selling well?
Question 21: What are some customers doing to help promote non-traditional cleaning products?

19.
A) It has witnessed a spectacular surge in demand.
B) It has met much criticism from environmentalists.
C) It has seen more small businesses offering environment-friendly products.
D) It has experienced increasingly fierce competition among global companies.

20.
A) Consumers now know much more about technology.
B) Their mass production has sharply reduced the price.
C) Consumers tend to favor all that is novel.
D) Their quality has been greatly improved.

21.
A) Purchasing only this kind of products for home cleaning.
B) Writing positive comments about them on social media.
C) Demonstrating on TV how effective these products are.
D) Telling one another about their incomparable virtues.

Recording 3
Throwing spare change into a fountain is a time-honored ritual: throw a penny into the water, and your wish might come true. But all that money has to go somewhere. Otherwise, the growing piles of pennies, quarters and euros could clog up the fountain’s works. Today I’m going to talk about where all the coins go. Well, the coins collected can go to all sorts of different places — from fountain maintenance to charity or public service. In New York City, for example, coins collected from fountains in public parks often go towards the fountain’s maintenance itself, though entrepreneurs who don’t mind getting their hands wet often get to it first. There are over 50 beautiful, decorative display fountains in New York City parks. They are cleaned by the park’s staff every few weeks, but most of the coins have already been removed by entrepreneurial New Yorkers and there is not a significant amount left to be collected. Other cities, though, can pull in a much more serious haul. Take for example, Rome’s famous Trevi Fountain: for hundreds of years, visitors have thrown coins over their shoulder into the fountain to ensure that they will return. So many tourists toss in coins that Roman officials have the fountain cleaned every night, reportedly getting as much as $4,000 in loose change from around the world each day. Most of the money collected each night goes towards running a supermarket for the needy. And collecting that cash is serious business. Roman officials have been known to be tough on anyone caught skimming coins from the fountain. In one case in 2005, police arrested four fountain cleaners after they were spotted slipping coins into their own pockets after collecting them. Authorities finally caught one notorious thief named Thomas Morgan and banned him from the fountain after he fished out thousands of dollars in change over 34 years using a magnetic stick. For the most part, money collected from privately-owned fountains in the United States also goes to charity. The fountain in New York City’s Bryant Park is owned and operated by a not-for-profit corporation, which puts the cash collected by cleaners towards the fountain’s own maintenance. Tens of thousands of dollars in coins removed from wishing wells, fountains and ponds in Florida’s Walt Disney World are donated each year to support foster children living in the state. Whether or not your wish comes true after tossing a coin into a fountain, you can rest assured knowing that the change is likely going to someone who needs it.
Questions 22 to 25 are based on the recording you have just heard.
Question 22: What problem might be caused by the growing piles of coins in fountains?
Question 23: What does the speaker say about the coins collected from New York City’s Park fountains?
Question 24: What do we learn about the money collected from Rome’s Trevi Fountain?
Question 25: What does the speaker say about Thomas Morgan?

22.
A) Increasing cleaners’ workload.
B) Blocking the fountains’ works.
C) Breaking a time-honored ritual.
D) Polluting the fountains’ water.

23.
A) They are occasionally retrieved by curious tourists.
B) They are regularly donated to charity organizations.
C) They are mostly used for the fountains’ maintenance.
D) They are usually used as wages for fountain cleaners.

24.
A) It is invested in a series of businesses.
B) It is used exclusively for its maintenance.
C) It is used to run a supermarket for the needy.
D) It is estimated to be about $40,000 a month.

25.
A) He was arrested for stealing money from four fountain cleaners.
B) He was sentenced to 34 years’ imprisonment.
C) He collected rare coins from around the world.
D) He stole a lot of money from a fountain with a magnetic stick.

关注微信公众号”立金云英语听力”,助您提高英语听力水平
公众号立金云英语听力

2022年12月英语四级第1套听力原文及题目

2022年12月英语四级第1套听力原文及题目

Section A
Direction: In this section, you will hear three news reports. At the end of each news report, you will hear two or three questions. Both the news report and the questions will be spoken only once. After you hear a question, you must choose the best answer from the four choices marked A), B), C) and D). Then mark the corresponding letter on Answer Sheet 1 with a single line through the centre.

News Report 1
Operations at one of Australia’s largest gold mines had to be temporarily suspended on Friday after a partial wall collapse at one of the mine’s dams. The wall collapse at the Cadia mine came just a few days after two earthquakes hit the area. The damage to the dam wall was noticed in the late afternoon on Friday when workers found a section of the northern dam wall had collapsed into the southern dam. The dams contain waste products of mining and can contain materials which are harmful to the environment and human health. The dams are generally constructed using earth-fill and are gradually raised over time. The company was unable to confirm whether the recent earthquakes had contributed to the dam’s wall collapse, but said it was conducting a thorough investigation. A company spokesperson said the operations at the site had been halted while the investigation is ongoing and that the break had posed no safety threat to workers.
Questions 1 and 2 are based on the news report you have just heard.
Question 1: What happened at one of Australia’s largest gold mines?
Question 2: What did the spokesperson say about the incident?

1.
A) Part of its dam wall collapsed.
B) It released a lot of harmful gases.
C) It was destroyed by an earthquake.
D) Some miners were trapped underground.

2.
A) It posed a safety threat to the miners.
B) It caused damage too heavy to assess.
C) It brought the mine’s operations to a halt.
D) It was followed by two more earthquakes.

News Report 2
Two boys and four girls were born on Monday to the surprise of a young couple and doctors who had expected five babies. This was the first record of six babies being born at the same time in that region. The doctors prepared from early in the morning to help deliver five tiny citizens. They were in the operating room with five teams of doctors, one for each baby. The first five babies were delivered successfully, and all baby beds were occupied. And then all of a sudden, it turned out there was another waiting to come out. The doctor said the babies were in healthy condition, but could not go home immediately. They needed to stay in the hospital for two to three months for medical supervision. The mother who is in stable condition could return home a day later if all physical tests came back normal. The babies’ mother commented that they had already prepared room for five babies at home, so they will have to rearrange things for their happy surprise. The new parents have yet to name the sixth baby but are considering either Lily or Rose.
Questions 3 and 4 are based on the news report you have just heard.
Question 3: What did the hospital do for the delivery of the babies?
Question 4: What did the doctor say about the newborns?

3.
A) It prepared beds for all the six new citizens.
B) It assigned a team of doctors for each expected baby.
C) It made ample preparations for various possibilities.
D) It brought in the most advanced instruments.

4.
A) They had to undergo 2-3 physical checkups.
B) They were all of normal size except the sixth.
C) They could go home together with their mother a day later.
D) They needed to stay in the hospital for a couple of months.

News Report 3
A Spanish island called Palmador has been bought by a family from Europe for 18 million euros. The island is often described as heaven on earth by holidaymakers. For decades tourists have been flocking to Palmador, which is located off the southeast coast of Spain. They come to enjoy its unspoiled beaches and crystal clear waters. Its natural beauty is protected as it lies inside a natural park. Although Palmador is one of the most famous private islands in the world, its seafront is public land and is a favorite destination for famous people. When the island was put up for sale, it was offered to the local government but proved too expensive for the local authorities. It is unclear whether the new owners have the power to ban tourists from the island. But with their newfound luxury comes the responsibility for its protection and maintenance. The island is less than two miles long and half a mile wide. It is said to have a remarkable location that few other private islands of this size can match, according to estate agents. Palmador is the perfect place to retreat to, somewhere to get away from the city noise and relax in beautiful surroundings with zero stress.
Questions 5 to 7 are based on the news report you have just heard.
Question 5: What do we learn from the news report about the Spanish island Palmador?
Question 6: What do holidaymakers come to Palmador to enjoy?
Question 7: What do estate agents say about Palmador?

5.
A) It is owned by the local government.
B) It has been turned into a public park.
C) It has been bought by an American.
D) It is a perfect tourist destination.

6.
A) Its seafood.
B) Its unusual coastline.
C) Its unspoiled beaches.
D) Its architecture.

7.
A) It has an unmatched location.
B) It is worth over 18 million euros.
C) It has beautiful weather all year round.
D) It is an ideal place to meet famous stars.

Section B
Direction: In this section, you will hear two long conversations. At the end of each conversation, you will hear four questions. Both the conversation and the questions will be spoken only once. After you hear a question, you must choose the best answer from the four choices marked A), B), C) and D). Then mark the corresponding letter on Answer Sheet 1 with a single line through the centre.

Conversation 1
M: Hi, Christie’s Gym Center. How can I help you?
W: Hi, I’m calling to ask about the newly scheduled gym classes. I’m just wondering if I can get a discount on them.
M: Are you already a member?
W: Yes, I signed up two months ago, but I haven’t been to any of the group classes yet.
M: Can I take your name please?
W: Yes. My name is Carol Friedman.
M: Carol Friedman. That’s right. And you signed up two months ago. Currently we are offering existing members discounts off two of our brand new classes, hot yoga, and advanced spinning, but the discount doesn’t apply to any of our regular classes I’m afraid.
W: I’m only interested in the new classes. So how much of a discount is there on these two new classes?
M: The same discount of 20% is being offered to everyone at the door on a “first come, first served” basis for the first month. It’s a shame you missed out on the general discount.
W: I see.
M: But you can get 25% off if you sign up in advance. Which of the two classes are you thinking about?
W: Well, I guess I am only really interested in hot yoga. Can you sign me up for the 10-week course on Thursday evenings?
M: Sure. Would you prefer to pay in advance?
W: No, I don’t like giving my card details over the phone anyway.
M: Okay, then. As you are already a member, the fee of the class will just be added to your monthly bill.
W: That’s perfect. Thanks for your help.
M: See you Thursday.
Questions 8 to 11 are based on the conversation you have just heard.
Question 8: What do we learn about the woman from the conversation?
Question 9: What is the gym center doing right now?
Question 10: What does the man say is a pity for the woman?
Question 11: Why is the woman unwilling to pay in advance?

8.
A) She has been attending some group classes.
B) She has registered for two new gym classes.
C) She became a member of the gym two months ago.
D) She is entitled to a discount on all the gym exercises.

9.
A) Considering the promotion of its regular classes.
B) Taking measures to expand its exercise programs.
C) Recruiting coaches for hot yoga and advanced spinning.
D) Offering existing members a discount off two new classes.

10.
A) She missed the deadline for the 10-week course.
B) She missed out on the gym’s general discount.
C) She didn’t sign up for membership in time.
D) She wasn’t so much interested in hot yoga.

11.
A) She doesn’t want to reveal her card details over the phone.
B) She doesn’t think it wise to pay before attending any class.
C) She might have to cancel her registration any minute.
D) She prefers to have the fee added to her monthly bill.

Conversation 2
M: Well, I think that was quite a successful trip in the end. Don’t you think, Jenny?
W: Absolutely. There are lots of great potential markets here in China. So I’m sure that the head office in London will be pleased once we get back and present our research.
M: Okay. We’ve got a bit of spare time now. Can we discuss the return trip to the head office?
W: Sure. I’ve checked the availability of flights from Beijing to London on the 22nd and you have a choice. There’s a flight arriving the following morning, with a two-hour stopover in Dubai, or a flight arriving at 11:30 in the evening, with a five-hour stopover in Amsterdam.
M: Right. Well, that’s obvious then, isn’t it?
W: Okay, so that’s Dubai. I’ve booked a room in a hotel about a mile from the office. The nearest metro station is Earl’s Court.
M: Great. Can you find a map that shows where the hotel is and send it to me online? I’ve never been to the head office, you know. I want to see if I can get one of those rental bicycles and ride to the office just for fun. For the presentation, I’ll bring my own laptop and hook it up to their projector. Do you remember the capacity of their meeting room?
W: No, but I’ll check.
M: Just one more thing. I’ll pay everything with my own card, right? And I’ll submit my claims form afterwards.
W: No problem. Just remember to keep all your receipts. You remember the trouble you had last time.
M: Oh, don’t remind me.
Questions 12 to 15 are based on the conversation you have just heard.
Question 12: Why are the speakers in China?
Question 13: Where will the man stop over on his way to London?
Question 14: What does the man ask the woman to do?
Question 15: What did the woman remind the man to do at the end of the conversation?

12.
A) To make investments.
B) To sign a business contract.
C) To research new markets.
D) To open a new office.

13.
A) Dubai.
B) Beijing.
C) Amsterdam.
D) Earl’s Court.

14.
A) Rent a bike for him to get around the town.
B) Reserve a meeting room in the head office.
C) Help him prepare his presentation.
D) Send him a map of the hotel area.

15.
A) Bring his projector.
B) Keep all his receipts.
C) Submit his claims form.
D) Pay with his credit card.

Section C
Direction: In this section, you will hear three passages. At the end of each passage, you will hear three or four questions. Both the passage and the questions will be spoken only once. After you hear a question, you must choose the best answer from the four choices marked A), B), C) and D). Then mark the corresponding letter on Answer Sheet 1 with a single line through the centre.

Passage 1
A new study has demonstrated the importance of women’s rights. The researchers behind the study state that many parts of the world have made good economic progress, but women’s rights are often overlooked. Thus, they wanted to determine if there was a link between protection of women’s rights and public health. The researchers analyzed databases which held information from 162 countries for the period 2004 to 2010. Countries were classified according to the respect they gave to women’s economic and social rights. There were three categories. They were high, moderate, and poor. Analysis of the data showed that countries with strong women’s rights had better health than those where women’s rights were not as respected. The health indicators studied included disease prevention, reproductive health, death rates, and life expectancy. Furthermore, in countries where women’s rights were most respected, but where access to hospitals and doctors was below average, health outcomes were still better than in countries rated as moderate or poor. This confirms that even with a lack of resources, if a country has strong women’s rights, the health outcomes are better. Thus, the researchers argued that gender equality is not just a women’s rights issue. It is also a development issue. This is because better health aids economic development. They note that the value of women’s rights has often been questioned from an economic standpoint. Some have argued that ensuring those rights would limit progress, but this study indicates the opposite.
Questions 16 to 18 are based on the passage you have just heard.
Question 16: What did the researchers of the new study try to determine?
Question 17: What does the passage say about countries lacking in medical resources?
Question 18: What has often been questioned regarding women’s rights?

16.
A) Whether a country’s educational level is linked to women’s rights.
B) Whether women’s rights are making good progress around the world.
C) Whether a country’s protection of women’s rights is related to its public health.
D) Whether women’s rights are more often overlooked in less-developed countries.

17.
A) Their people still have better health if women’s rights are respected.
B) They must make efforts to increase women’s access to health care.
C) Their people tend to attach importance to women’s rights.
D) They need to invest more in hospital staff and facilities.

18.
A) Their link with a country’s public health.
B) Their potential impact on social progress.
C) Their value to a country’s international image.
D) Their positive effect on economic development.

Passage 2
Sunshine and high temperatures can mean picnics and parks and trips to beaches, but they can make your body react in some strange ways. First, sunshine can actually affect your breath. You may think that summer is the perfect time to go on a date or chat with an attractive boy or girl. But excessive heat can cause you to lose water, which has been proven to have a pretty unattractive side effect — bad breath. When you are lacking water, your mouth becomes dry. Bacteria accumulate because there isn’t enough water in your mouth to wash it away. Sunshine can stop you from sweating, too. The body’s normal temperature is 36 to 37 degrees centigrade. But if it heats up to 40 to 41 degrees, you may find yourself getting heatstroke. At that point, your heat regulatory system can essentially quit, which stops you from sweating as your body tries to keep water around your vital organs. However, the sun can have a positive influence on your body by raising your energy levels. You might feel like the sun is giving you extra energy for your day, which is actually happening. And vitamin D from sunshine can help your body to absorb certain minerals, which are linked to building stronger bones. Therefore, I suggest you spend more time in the park with your friends, but make sure you apply lots of skin protection and fill up those water bottles, too.
Questions 19 to 21 are based on the passage you have just heard.
Question 19: What does the passage say about hot sunshine?
Question 20: What does the passage say is a negative side effect of water loss?
Question 21: What is said to be a positive effect of sunshine?

19.
A) It creates a wonderful setting for dating.
B) It may cause strange physical reactions.
C) It turns parks into picnic sites.
D) It may result in a crowded beach.

20.
A) Breathing difficulty.
B) Bad breath.
C) Excessive sweating.
D) High blood pressure.

21.
A) It protects people against bacteria.
B) It enables people to build up endurance.
C) It accelerates people’s blood circulation.
D) It provides people with extra energy.

Passage 3
Left-handed people can find it inconvenient to do certain things, writing in a notebook for example, but there are a number of advantages of being left-handed. Research found that they were overrepresented among fighters in combat sports. Left-handed fighters also had higher chances to win. This confirms the fighter theory. Left-handers may also be better at remembering events. The explanation is that the two brain spheres of left-handers are more strongly connected. Being left-handed might be a factor in mathematical ability. An Italian study found that for simple arithmetic there was little difference between right and left-handed performance, but for more difficult problem-solving, left-handers won out. No one understands the reason for this. Left-handed people may think differently. In one study, researchers showed the participants columns of abstract illustrations and asked them which ones they would prefer. Left-handed people were more likely to prefer the images on the left. Right-handed people preferred the ones on the right. Both groups disliked stuff on their opposite side. Left-handers are also overrepresented in professional, interactive sports. Researchers have looked at the influence of being left-handed on performance and interactive sports. Those that require the fastest reaction give left-handers the biggest advantage. So if you have a left-handed child, you should encourage them to play table tennis, baseball and tennis. Being left-handed maximizes their chances of success in these sports.
Questions 22 to 25 are based on the passage you have just heard.
Question 22: What does the passage say about left-handed people?
Question 23: What is said to be special about left-handed people?
Question 24: Why are left-handed people better at solving more difficult problems?
Question 25: What should parents do about a left-handed child?

22.
A) They are more likely to win in combat sports.
B) They are in the minority among the population.
C) They have a higher chance of joining sports teams.
D) They have more disadvantages in getting ahead.

23.
A) Their brain is more powerful than that of right-handed people.
B) The left side of their brain is more powerful than its right side.
C) They tend to be a lot more aggressive than right-handed people.
D) Their brain has a stronger connection between its two sides.

24.
A) They have a larger brain.
B) It still remains unknown.
C) It is related to their genes.
D) They are better at reasoning.

25.
A) Teach them how to perform tasks with their right hand.
B) Help them fully develop their mathematical abilities.
C) Encourage them to play fast-paced interactive sports.
D) Advise them to choose jobs that require quick reactions.

关注微信公众号”立金云英语听力”,助您提高英语听力水平
公众号立金云英语听力

php上传文件到阿里云对象存储

本例含2个文件的代码,一个是选择上传文件的表单页面文件(upload.html),一个是负责上传的sendOss.php文件。

upload.html代码

sendOss.php代码

说明:
本例中阿里云OSS的php版sdk放在了/aliyun/oss/目录下。

参考资料:阿里帮助中心 – 首页>对象存储 OSS>SDK示例>PHP>PHP上传文件>PHP简单上传
https://help.aliyun.com/document_detail/88473.html?spm=a2c4g.11186623.0.0.7e404a9cu3c2kT