![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
php/apache question
i execute the below command from apache (php script):
Code:
<? $command="wget http://domain.com/file.php > /dev/null"; passthru("$command"); ?> what i'm doing wrong? how can i fix this, so no file to be copyed on my server? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
|
Simple solution is to execute two commands.
PHP Code:
__________________
subarus. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2002
Location: vancouver, bc
Posts: 963
|
why not just
file_get_contents("http://domain.com/file.php"); ? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Aug 2007
Posts: 691
|
man wget
__________________
Delete this account, i am done here |
![]() |
![]() ![]() ![]() ![]() ![]() |