Search found 5 matches

by justquick
Fri Sep 23, 2005 4:31 pm
Forum: PHP - Code
Topic: Php force-download failed reading url
Replies: 4
Views: 456

it works

yes that did it. I had to modify the url before downloading it, like so:

Code: Select all

$filename=split('%3A%2F%2F', $filename);
$filename=join('://',$filename);
$filename=split('%2f',$filename);
$filename=join('/',$filename);
by justquick
Fri Sep 23, 2005 2:28 pm
Forum: PHP - Code
Topic: Php force-download failed reading url
Replies: 4
Views: 456

still doesnt work

That seemed to fix it. It works ok for every url that is in the root folder of the remote url but nothing in any subdirectories. it returns <br /> <b>Warning</b>: readfile(http://10.107.1.117/Gorillaz/Gorillaz/14 Slow Country.mp3) [<a href='function.readfile'>function.readfile</a>]: failed to open s...
by justquick
Fri Sep 23, 2005 12:28 am
Forum: PHP - Code
Topic: Php force-download failed reading url
Replies: 4
Views: 456

Php force-download failed reading url

I have recently migrated my webserver to linux and in the process readfile does not work for urls anymore. I have a file called forcedownload.php which takes $filename and $name and downloads the filename url with the desired name. it looks like header("Pragma: public"); header("Expir...
by justquick
Wed Sep 21, 2005 2:29 am
Forum: Linux
Topic: php 5.0.4 url parsing error Fedora 4
Replies: 1
Views: 2089

php 5.0.4 url parsing error Fedora 4

Ok. New instillation of Apache 2.0.54, mysql 4.1.12, and php 5.04 using yum installer on Fedora Core 4.
Everything works ok except for one problem, the php cant parse any variables through urls (both GET and POST). It cant process any forms and returns a blank string for any ?variables= in a url.
by justquick
Sun Jul 10, 2005 10:37 am
Forum: PHP - Code
Topic: url list to js array
Replies: 5
Views: 436

url list to js array

ok, i have a list of urls for music files that i want to turn into a javascript array for a tree menu. The urls look like this: http://192.168.1.101:8080/Del%20The%20Funky%20Homosapien/Both%20Sides%20of%20the%20Brain/01%20Time%20Is%20Too%20Expensive.mp3 These urls have a unknown number of subdirecto...