- Posts: 3
- Thank you received: 0
Warning - Parameter with the theme
- Mandud Int
- Offline
- Fresh Boarder
Less
More
11 years 10 months ago - 11 years 10 months ago #1421
by Mandud Int
Replied by Mandud Int on topic Re: Warning - Parameter with the theme
thanks linh_omg
i'm not familiar with curl
i've tried to change file_get_contents with curl
i got another error,and the page didn't open normally
i'm not familiar with curl
i've tried to change file_get_contents with curl
Code:
/* gets the data from a URL */
protected function getInput($url)
{
$ch = curl_init();
$timeout = 5;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$fontsSeraliazed = curl_exec($ch);
curl_close($ch);
$fontsSeraliazed = get_data('http://demo.omegatheme.com/webfonts/index.php?c=get-font-array');
$_SESSION["gfontlist"] = $fontsSeraliazed;
return '';
}
i got another error,and the page didn't open normally
Last edit: 11 years 10 months ago by Mandud Int.
Please Log in or Create an account to join the conversation.
- Linh Robert
- Offline
- Banned
Less
More
- Posts: 908
- Thank you received: 568
11 years 10 months ago - 11 years 10 months ago #1422
by Linh Robert
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Replied by Linh Robert on topic Re: Warning - Parameter with the theme
Hi,
you can try using this code:
the page error because you are not allowed to put parameter to getInput(). It's Joomla! form function.
you can try using this code:
Code:
protected function getInput()
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, 'http://demo.omegatheme.com/webfonts/index.php?c=get-font-array');
$data = curl_exec($ch);
curl_close($ch);
$_SESSION["gfontlist"] = $data;
return '';
}
the page error because you are not allowed to put parameter to getInput(). It's Joomla! form function.
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Last edit: 11 years 10 months ago by Linh Robert.
The following user(s) said Thank You: Mandud Int
Please Log in or Create an account to join the conversation.
- Mandud Int
- Offline
- Fresh Boarder
Less
More
- Posts: 3
- Thank you received: 0
11 years 10 months ago #1423
by Mandud Int
Replied by Mandud Int on topic Re: Warning - Parameter with the theme
thank you linh,that's really help me..
Please Log in or Create an account to join the conversation.
Time to create page: 0.243 seconds