How can I get a link to a picture loaded in the canvas with PHP?

Source: Internet
Author: User
There are some pictures in 1.canvas, I want to use PHP to get these pictures in the canvas link, the picture downloaded to the computer.
2. If it is a picture in a webpage, can get to the picture path, then use similar file_get_contents function, can download the picture to the machine.
3. The problem now is that I can't get the path to these pictures in the canvas.
4. Ask if PHP is available to get the path to the pictures loaded in the canvas.

Reply content:

There are some pictures in 1.canvas, I want to use PHP to get these pictures in the canvas link, the picture downloaded to the computer.
2. If it is a picture in a webpage, can get to the picture path, then use similar file_get_contents function, can download the picture to the machine.
3. The problem now is that I can't get the path to these pictures in the canvas.
4. Ask if PHP is available to get the path to the pictures loaded in the canvas.

PHP gets two general methods:
First, through the Rules page crawl
Second, the previous page through the AJAX submission to PHP processing

You can save the path of these images with a variable while the canvas is getting the picture, and when the canvas todataurl, you can submit the variable to the background.

  • 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.