a*****n 发帖数: 5158 | 1 I try to use
php function
"file_get_contents($url)"
to obtain the content of
a remote page such as following address:
http://www.gsajournals.org/perlserv/?request=get-pdf&doi=10.1130/G24340A.1
but it returns nothing
most papges work fine, but cannot obtain any content from the above
webpage |
d*******8 发帖数: 3182 | 2 it is not your faults since the url is not standard. |
d*******8 发帖数: 3182 | 3 i don't know whether u want solution or not. |
a*****n 发帖数: 5158 | 4 how about this url? standard or not? still cannot return anything
http://www.blackwell-synergy.com/doi/abs/10.1111/j.1467-9965.1995.
tb00101.x
【在 d*******8 的大作中提到】![](/moin_static193/solenoid/img/up.png) : it is not your faults since the url is not standard.
|
a*****n 发帖数: 5158 | 5 yes, i want a solution
【在 d*******8 的大作中提到】![](/moin_static193/solenoid/img/up.png) : i don't know whether u want solution or not.
|
r********u 发帖数: 3 | 6 use curl instead of file_get_contents |
a*****n 发帖数: 5158 | 7 thanks,
but still unable to access
http://www.gsajournals.org/perlserv/?request=get-pdf&doi=10.1130%2FG24112A.1
any idea?
【在 r********u 的大作中提到】![](/moin_static193/solenoid/img/up.png) : use curl instead of file_get_contents
|
d*******8 发帖数: 3182 | 8 use stream_get_contents() in stead of file_get_contents()
【在 a*****n 的大作中提到】![](/moin_static193/solenoid/img/up.png) : yes, i want a solution
|