var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
That doesn't seem to work, I'm trying to run wget in a php script...
exec ( "/usr/bin/wget" . $temp2 . " > /dev/null 2>&1 &" );
Maybe you don't have permissions to run wget as Apache, maybe you need to be another user to run it.
do you know how i can download a file with php?
I remember you can read files, also if they are on another website with fread and file functions, you can read the file, and after you can write it on your space.
Of course you could need the necessary memory allowed.
right, but how about simply download them like wget?
To run wget, you need to have permissions, now I'm not sure about users that can run wget, however, for example if you are root, you can run php and wget, if the space is on your server, you could set a php script that check a database, and if there is a file to download, it calls wget, and this script could be runned as Root by CronJob, every X minutes.
have you tried using an alternative like curl -o?
Or maybe you just need a space. I guess it depends on the value of $temp2.
exec ( "/usr/bin/wget " . $temp2 . " > /dev/null 2>&1 &" );
To do it with just PHP, use something like:
(Replacing "filename" with the local filename to save to, and "url" with the url, of course)
<? file_put_contents ( 'filename' , file_get_contents ( 'url' )); ?>
you can use curl as well if the above doesnt work