coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: rira on October 19, 2003, 02:59:53 PM

Title: diffrent webspace
Post by: rira on October 19, 2003, 02:59:53 PM
hi

is there a way to upload the pictures to a diffrent webspace then the webspace with the sql datebase is?

rira
Title: diffrent webspace
Post by: John on October 19, 2003, 03:18:30 PM
I would imagine that is not a recommended course of action. Possibly to successfully achieve this you would need to know enough comp. language to not need to ask this question. However, I too would be interested as to how this is done, if anyone has any theories or has done it I would like to know. I suspect that support for this request is on the bottom of a very long list. :)

John
Title: url_prefix
Post by: lasa on October 19, 2003, 04:01:27 PM
Where is this column in the pictures mysql table?
For the adress on another server?
Title: diffrent webspace
Post by: Joachim Müller on October 19, 2003, 09:20:32 PM
this is not supported and not recommended - see these postings on the old board:
http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=1364
and
http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=1059

If you know what you're doing, you can check http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=896 and see if this works for you, but my suggestion is: get more webspace!

GauGau
Title: Re: url_prefix
Post by: Joachim Müller on October 19, 2003, 09:27:15 PM
Quote from: "lasa"Where is this column in the pictures mysql table?
For the adress on another server?
I have to quote Tarique's sig:
QuoteDon't! Just don't!!
This is way beyond your skills!

GauGau
Title: diffrent webspace
Post by: lasa on October 19, 2003, 09:44:56 PM
webspace is very expensive in this country... the netherlands...
Title: diffrent webspace
Post by: rira on October 19, 2003, 10:05:20 PM
hm i have very much webspace without sql datebase.. and i have a webspace just with and sql database! is there no way to "combine" them? but i don´t know anything about php... :(
Title: diffrent webspace
Post by: Joachim Müller on October 19, 2003, 10:06:34 PM
if you're a newbie then the short answer is "no"!

GauGau
Title: diffrent webspace
Post by: lasa on October 19, 2003, 10:17:52 PM
Get a freemysql account for your big space at www.freesql.org ;)
Title: diffrent webspace
Post by: John on October 19, 2003, 10:21:49 PM
snip... sorry, incorrect post
Title: diffrent webspace
Post by: Tarique Sani on October 20, 2003, 05:23:28 AM
Quote from: "John"hypothetical: Well if cpg was written in (my preferred lang.) ASP then this task may be achieveable

John - If you dont have anything to add to the thread then don't...
Title: diffrent webspace
Post by: DJMaze on October 20, 2003, 05:33:51 AM
Well CPG has to be changed draastically for that, but connecting to another server is easy.


$host = "123.45.67.89";
$port = "????";

// Open connection
$fp=fsockopen($host,$port,&$errno,&$errstr,10);
if (!$fp) {
  echo "Can't connect";
  exit;
}
fputs($fp,"GET url_or_something.php HTTP/1.0\r\nUser-Agent: Webpage (Mozilla Compatible)\r\n\r\n");
fclose ($fp);


You can also use fputs() for remotely connect database but then you need to know port, grant access from webpage IP etc. etc.

More info at: http://www.php.net/