Problem in wget in php script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You're remotely requesting a script which resides on the same server? That doesn't make sense.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: it is working

Post by VladSun »

abhijeetgk wrote:
VladSun wrote: Have you tried any simple downloads. I.e.:
php:
system("wget 'http://forums.devnetwork.net' -O $tmpfname");


Does it work?
it is working properly
It seems that I missed that one ...

If it's working properly then you have an error in your URL string...
Try to echo the same string your are passing to system("wget ...") and look for errors in it.
There are 10 types of people in this world, those who understand binary and those who don't
abhijeetgk
Forum Newbie
Posts: 9
Joined: Thu Oct 18, 2007 11:33 pm
Location: Mumbai
Contact:

no problem in bash shell

Post by abhijeetgk »

hi
the command is giving the same problem in the bash shell of unable to resolve host

the domain for which the script is written is "sahyog.maharashtra.gov.in"
and in the browser it is showing correctly
Post Reply