Home  >  Article  >  Backend Development  >  The php.exe program directly requests the url

The php.exe program directly requests the url

WBOY
WBOYOriginal
2016-09-14 09:41:251475browse

Can php.exe in cmd directly request a url
? ? ? If so, what are the parameters? ?

Reply content:

Can php.exe in cmd directly request a url
? ? ? If so, what are the parameters? ?

Okay! Directly execute for example php.exe D:htdocsdeve.no.1wwwpush.php

It’s ok

<code class="php">php -r "file_get_contents();"
php -r "readfile();"</code>

If you want to access the remote address, it is best to use curl

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn