Shoutbox

Downloading and uploading PLSC files are turning to zip? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Downloading and uploading PLSC files are turning to zip? (/showthread.php?tid=79126)

Downloading and uploading PLSC files are turning to zip? by djmorf on 11-17-2007 at 08:51 PM

Ok, i have my own small website ( http://morganatkins.110mb.com ), i'v tried uploading my own scripts, but when I attempt to dowload the PLSC files, it regesters them as Zip files. Try it your self

http://morganatkins.110mb.com  -> scripts ->Download


RE: Downloading and uploading PLSC files are turning to zip? by Jimbo on 11-17-2007 at 08:57 PM

quote:
Originally posted by djmorf
Ok, i have my own small website ( http://morganatkins.110mb.com ), i'v tried uploading my own scripts, but when I attempt to dowload the PLSC files, it regesters them as Zip files. Try it your self

http://morganatkins.110mb.com  -> scripts ->Download
Umm, it comes up as plsc for me, are you sure you have Plus installed?
RE: Downloading and uploading PLSC files are turning to zip? by djmorf on 11-17-2007 at 08:59 PM

Yep, definatly, I creaed and run it localy though


RE: Downloading and uploading PLSC files are turning to zip? by vikke on 11-17-2007 at 09:01 PM

PLSC is a ZIP-file but it's renamed. If you rename it back to ".zip", you should be able to open it with WinZIP or similar.

When I download it, it shows up as PLSC as well. It could be the hosting company identifies the file as ZIP, by reading it's contents.


RE: Downloading and uploading PLSC files are turning to zip? by Spunky on 11-17-2007 at 09:05 PM

Have you set-up the PLSC mime-type on the server? Seeing as it's free hosting, I'm unsure if you can actually do it, but I think this is the cause


RE: Downloading and uploading PLSC files are turning to zip? by djmorf on 11-17-2007 at 09:06 PM

So, what could I do?
I'm hosting with 110mb ( http://www.110mb.com )


RE: Downloading and uploading PLSC files are turning to zip? by deAd on 11-17-2007 at 09:28 PM

Upload a custom htaccess file, but I forgot what you actually have to put in it :P


RE: Downloading and uploading PLSC files are turning to zip? by WDZ on 11-17-2007 at 09:40 PM

quote:
Originally posted by deAd
Upload a custom htaccess file, but I forgot what you actually have to put in it :P
This might work...

code:
<FilesMatch "\.plsc$">
    ForceType application/x-plsc
</FilesMatch>

RE: Downloading and uploading PLSC files are turning to zip? by Matti on 11-17-2007 at 09:55 PM

I thought this was something to do with Internet Explorer, no? What about trying to download it from another browser?

If that works, I may have a workaround for you. You might want to ZIP the PLSC-file and upload that one. This way, when someone downloads the ZIP, they can unpack it and then they'll find the PLSC-file which they can open.


RE: Downloading and uploading PLSC files are turning to zip? by -dt- on 11-18-2007 at 01:29 AM

quote:
Originally posted by WDZ
quote:
Originally posted by deAd
Upload a custom htaccess file, but I forgot what you actually have to put in it :P
This might work...

code:
<FilesMatch "\.plsc$">
    ForceType application/x-plsc
</FilesMatch>


or
code:
AddType application/x-plsc .plsc




quote:
Originally posted by Mattike
If that works, I may have a workaround for you. You might want to ZIP the PLSC-file and upload that one. This way, when someone downloads the ZIP, they can unpack it and then they'll find the PLSC-file which they can open.
: < i hate people who zip zips

RE: Downloading and uploading PLSC files are turning to zip? by Quantum on 11-18-2007 at 09:47 AM

quote:
Originally posted by deAd
Upload a custom htaccess file, but I forgot what you actually have to put in it :P

You have to pay for .htaccess with 110mb :)
RE: Downloading and uploading PLSC files are turning to zip? by -dt- on 11-18-2007 at 10:12 AM

quote:
Originally posted by john-t
quote:
Originally posted by deAd
Upload a custom htaccess file, but I forgot what you actually have to put in it :P

You have to pay for .htaccess with 110mb :)
then have them download the plsc through a php page like

code:
<?php

if(!isset($_GET['request']))die("didnt request a file :(");

$plscdir = "./xxx/";
$file = $plscdir . basename($_GET['request']);

if(file_exists($file)){
    header("Content-type: application/x-plsc");
    readfile($file);
}else{
    echo "file doesnt exist ;o";
}


?>



then save that as downloadplsc.php and when you want to download a plsc have them go to the url like

http://xxx.com/downloadplsc.php?request=moo.plsc
RE: Downloading and uploading PLSC files are turning to zip? by Matti on 11-18-2007 at 10:22 AM

quote:
Originally posted by -dt-
: < i hate people who zip zips
Me too. But that's why I use Firefox! :grin:
RE: Downloading and uploading PLSC files are turning to zip? by Spunky on 11-18-2007 at 11:00 AM

quote:
Originally posted by -dt download the plsc through a php page[/quote


Don't think you get PHP with free hosting such as this... I know I never used to get it
RE: Downloading and uploading PLSC files are turning to zip? by djmorf on 11-18-2007 at 11:59 AM

Yr, i get free php, for now i'v ziped the plsc file, but surly thats not the same as Zipping a zip??
I'm about to try the PHP as well


RE: Downloading and uploading PLSC files are turning to zip? by Spunky on 11-18-2007 at 12:28 PM

quote:
Originally posted by djmorf
surly thats not the same as Zipping a zip??

A PLSC file is a zip ;) It's just renamed
RE: Downloading and uploading PLSC files are turning to zip? by djmorf on 11-18-2007 at 12:31 PM

I know, but you don't unzip it, so it's not a zip in a zip
Also the PHP doen't seem to work
please could someone visit the site and check the code ect. please?
Http://www.morganatkins.110mb.com -> Scripts ->Php download ( -> scripts)


RE: Downloading and uploading PLSC files are turning to zip? by djmorf on 11-18-2007 at 07:53 PM

Oh right, upload the .htaccess THEN use the PHP.
I think for now i will have to use what I'v got, unless there are any more ways of downloading the file?


RE: Downloading and uploading PLSC files are turning to zip? by ShawnZ on 11-18-2007 at 08:12 PM

quote:
Originally posted by djmorf
Oh right, upload the .htaccess THEN use the PHP.

no, just use the php file.
RE: Downloading and uploading PLSC files are turning to zip? by djmorf on 11-18-2007 at 09:20 PM

Really? The php doen't seem to work, try it, does any one know off hand what the problem is? I'm also going to post this on another forum for the PHP