Can't create connection with Picasa

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't create connection with Picasa

Post by Jan »

Hi, Phoca Gallery is conecting through php functions:

Code: Select all

if ($curl == 1) {
			$init 	= curl_init(); 
			curl_setopt ($init, CURLOPT_URL, 			$address);
			curl_setopt ($init, CURLOPT_RETURNTRANSFER,	1); 
			curl_setopt ($init, CURLOPT_CONNECTTIMEOUT,	10);      
		    $data 	= curl_exec($init); 
		    curl_close($init);
		} else {
			$data	= @file_get_contents($address);
		}
using cUrl or using file_get_contents (allow_url_fopen)

No port is set in script.

Jan
If you find Phoca extensions useful, please support the project
GabIvan
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 23 Sep 2010, 11:29
Location: Italy
Contact:

Re: Can't create connection with Picasa

Post by GabIvan »

Thank you, now they want to now what is the value of $address.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't create connection with Picasa

Post by Jan »

If you find Phoca extensions useful, please support the project
GabIvan
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 23 Sep 2010, 11:29
Location: Italy
Contact:

Re: Can't create connection with Picasa

Post by GabIvan »

The hosting provider modified a parameter in php.ini (they wouldn't say to me what is that parameter...) and now Phoca gallery works perfectly.
Thank you for the support you gave to me.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't create connection with Picasa

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply