| |

VerySource

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

How to assign the content of a page to a variable

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

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

Credits

Newbie

Rank: 1

Credits
3.00

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

Credits

Newbie

Rank: 1

Credits
9.00

 Asia/Pacific Region

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

Use magic Report

0

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 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

20

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

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

Use magic Report

0

Threads

27

Posts

18.00

Credits

Newbie

Rank: 1

Credits
18.00

 China

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

Use magic Report

0

Threads

17

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 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-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list