Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-23 06:21:39

fangonk
Member
Registered: 2007-07-12
Posts: 44

Custom Skype button

Im trying to use jek2k’s template for creating custom skype buttons but textpattern keeps returning the following errors:

Tag error: <txp:php> -> Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration on line 14

Tag error: <txp:php> -> Warning: fopen(http://mystatus.skype.com/theman.num) [function.fopen]: failed to open stream: no suitable wrapper could be found on line 14

Im not much of a php expert so I can’t wrap my head around what is happening here. Is this a .htaccess problem? Is there a plugin I should be using here?

Offline

#2 2008-04-23 06:48:05

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Custom Skype button

Your host just doesn’t allow remote URLs in fopen, only non http-protocols. This is caused coz allow_url_fopen is disabled, and you can’t change it by yourself due security.

That can be fixed by using some other functions – depending about your host configurations ofcorse, in theory all remote urls could be disabled. In example file_get_contents would work instead.

Last edited by Gocom (2008-04-23 06:49:07)

Offline

Board footer

Powered by FluxBB