| |

VerySource

 Forgot password?
 Register
Search
View: 21|Reply: 6

How to assign the content of a page to a variable

[Copy link]

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

Post time: 2020-3-13 15:00:01
| Show all posts |Read mode
If I want to assign an abc.htm to a variable called $ abc
What should I do?
Reply

Use magic Report

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

 Author| Post time: 2020-6-9 08:45:01
| Show all posts
Emphasis: assign the contents of abc.htm to variables
Reply

Use magic Report

2

Threads

9

Posts

9

Credits

Newbie

Rank: 1

Credits
9

 Asia/Pacific Region

Post time: 2020-6-9 19:15:01
| Show all posts
ob_get_contents()
Reply

Use magic Report

0

Threads

7

Posts

8

Credits

Newbie

Rank: 1

Credits
8

 China

Post time: 2020-6-9 22:00:02
| Show all posts
$var = file_get_contents('http://localhost/abc.htm');
Reply

Use magic Report

0

Threads

15

Posts

12

Credits

Newbie

Rank: 1

Credits
12

 China

Post time: 2020-6-19 18:00:02
| Show all posts
$abc = file_get_contents('abc.htm');
Reply

Use magic Report

0

Threads

26

Posts

15

Credits

Newbie

Rank: 1

Credits
15

 China

Post time: 2020-6-22 09:45:01
| Show all posts
file_get_contents
Reply

Use magic Report

0

Threads

13

Posts

12

Credits

Newbie

Rank: 1

Credits
12

 China

Post time: 2020-6-23 00:00:01
| Show all posts
Wow...all said, what am I saying?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list