[Pro] downloading vcard in windows 7 from a site created in Freeway 3.1.15

I have rebuilt a site in Freeway 5.4 from 3.5.15 to enable me to use “force download” on the contact page. http://www.andrew-sheard.com and uploaded the site. Clicking the “ckick here” link is bringing up an error and not downloading at all. What have I done wrong?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Where is your site hosted and is it runnng industry standard PHP on a Linux/Unix server?

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Morning David,

The site is hosted by NetBenefit who are a bit slow responding!
PHP is active - they support 3, 4, and 5. and it is Unix. They can’t
see any reason why force download shouldn’t work.

On 14 Nov 2011, at 19:33, DeltaDave wrote:

Where is your site hosted and is it runnng industry standard PHP on
a Linux/Unix server?

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Peter Grainger
design and photography for websites, advertising and print
01442 843349
http://www.peter-grainger.co.uk

WARNING
This e-mail is intended for the use of the individual addressee(s)
named above and may contain information that is confidential,
privileged or unsuitable for overly sensitive people with low self-
esteem, no sense of humour or irrational religious beliefs. If you
are not the intended recipient, any dissemination, distribution or
copying of this e-mail is not authorised (either explicitly or
implicitly) and constitutes an irritating social faux-pas. Those of
you with an overwhelming fear of the unknown should remember - I know
where you live.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Morning David,

The site is hosted by NetBenefit who are a bit slow responding!
PHP is active - they support 3, 4, and 5. and it is Unix. They can’t see any reason why force download shouldn’t work. (also sent this by email)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Further to previous - I have put the force download action back on the contact page and uploaded so you can see what’s happening - I get the following error - Fatal error: Call to unsupported or undefined function ini_get() in /sites/web1294/home/web1294/website/AndrewGSheard-dl.php on line 1

The file I am uploading is AndreGSheard.vcf
see http://www.andrew-sheard.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That should be - AndrewGSheard.vcf


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This particular error means that your host have enabled some of the less-frequently-used security features in the PHP application server. You will need to ask them to relax these (quote the exact error message to them in your support ticket) or you will need for Tim to rewrite the Action so that it doesn’t look for the current ini settings or try to overwrite them. I haven’t looked inside his PHP code to see why he’s doing that, but that’s what the error means. If the trick cannot be done without this access, and your host is not willing to provide you that access from a Web application, then you will need to find another solution. The htaccess file trick has always worked well for me. Another thing you might do is add a MIME type for that file extension (although it’s a fairly established type, and I would be amazed if your host didn’t already define it).

(in .htaccess)
AddType text/x-vcard .vcf

But since you’re trying to force a download, then I would add:

<FilesMatch "*.vcf$">
ForceType application/octet-stream
</FilesMatch>

That should force a .vcf file to be downloaded by any browser.

Walter

On Nov 16, 2011, at 6:07 AM, Peter Grainger wrote:

Further to previous - I have put the force download action back on the contact page and uploaded so you can see what’s happening - I get the following error - Fatal error: Call to unsupported or undefined function ini_get() in /sites/web1294/home/web1294/website/AndrewGSheard-dl.php on line 1

The file I am uploading is AndreGSheard.vcf
see http://www.andrew-sheard.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter,
I’ve passed the problem to NetBenefit initially in the hope that they can sort it. (Don’t hold your breath!)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

NetBenefit tell me my site was running on PHP3. Thay have upgraded
to 5 and assure me all is well.
Thanks to everyone for help.
Cheers
Peter
On 16 Nov 2011, at 15:21, Walter Lee Davis wrote:

This particular error means that your host have enabled some of the
less-frequently-used security features in the PHP application
server. You will need to ask them to relax these (quote the exact
error message to them in your support ticket) or you will need for
Tim to rewrite the Action so that it doesn’t look for the current
ini settings or try to overwrite them. I haven’t looked inside his
PHP code to see why he’s doing that, but that’s what the error
means. If the trick cannot be done without this access, and your
host is not willing to provide you that access from a Web
application, then you will need to find another solution. The
htaccess file trick has always worked well for me. Another thing
you might do is add a MIME type for that file extension (although
it’s a fairly established type, and I would be amazed if your host
didn’t already define it).

(in .htaccess)
AddType text/x-vcard .vcf

But since you’re trying to force a download, then I would add:

<FilesMatch "*.vcf$">
ForceType application/octet-stream
</FilesMatch>

That should force a .vcf file to be downloaded by any browser.

Walter

On Nov 16, 2011, at 6:07 AM, Peter Grainger wrote:

Further to previous - I have put the force download action back on
the contact page and uploaded so you can see what’s happening - I
get the following error - Fatal error: Call to unsupported or
undefined function ini_get() in /sites/web1294/home/web1294/
website/AndrewGSheard-dl.php on line 1

The file I am uploading is AndreGSheard.vcf
see http://www.andrew-sheard.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ouch! Everyone reading this, take a moment and either upload a phpinfo() file to your server, or ask your host what version of PHP you’re running.

PHP3 has been “sunset” for a large number of years, no further security patches have been made to it, and there have been massive gaping holes in PHP security discovered and fixed in that interim. Truly not safe at all to be running anything less than 5 in this day and age.

Walter

On Nov 18, 2011, at 12:11 PM, Peter Grainger wrote:

NetBenefit tell me my site was running on PHP3.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options