Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: diffrent webspace  (Read 7617 times)

0 Members and 1 Guest are viewing this topic.

rira

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
diffrent webspace
« 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
Logged

John

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 75
diffrent webspace
« Reply #1 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
Logged

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
url_prefix
« Reply #2 on: October 19, 2003, 04:01:27 pm »

Where is this column in the pictures mysql table?
For the adress on another server?

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
diffrent webspace
« Reply #3 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: url_prefix
« Reply #4 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:
Quote
Don't! Just don't!!
This is way beyond your skills!

GauGau
Logged

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
diffrent webspace
« Reply #5 on: October 19, 2003, 09:44:56 pm »

webspace is very expensive in this country... the netherlands...

rira

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
diffrent webspace
« Reply #6 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... :(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
diffrent webspace
« Reply #7 on: October 19, 2003, 10:06:34 pm »

if you're a newbie then the short answer is "no"!

GauGau
Logged

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
diffrent webspace
« Reply #8 on: October 19, 2003, 10:17:52 pm »

Get a freemysql account for your big space at www.freesql.org ;)

John

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 75
diffrent webspace
« Reply #9 on: October 19, 2003, 10:21:49 pm »

snip... sorry, incorrect post
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
diffrent webspace
« Reply #10 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...
Logged
SANIsoft PHP applications for E Biz

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
diffrent webspace
« Reply #11 on: October 20, 2003, 05:33:51 am »

Well CPG has to be changed draastically for that, but connecting to another server is easy.

Code: [Select]

$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/
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0
Pages: [1]   Go Up
 

Page created in 0.074 seconds with 19 queries.