1
grandfso
Re: Storing imgs, in database insead of uploading 'em
  • 2004/8/16 17:09

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


Quote:

tedsmith wrote:
I've done a little research on this now and it seems that there are two distinct advantges and disadvantages.

Advantages : It gets around PHP safemode file
system issues and filesystem rights/restrictions in general makeing the code a bit more portable because you don't have to think twice about the rights management of the server beyond the database. However, with XOOPS this does not apply (I don't think).

It makes backups easier because you don't have to backup a filesystem and database - just the DBase

Disadvantages : It is apparently slower to access binary data from a database rather than the file system so binary/blob data retrieval from a database can be the bottleneck of a site, especially if it has heavy traffic.

MySQl recommend useing the filesystem for what it was meant for - storing files. They mention it here:

http://www.mysql.com/doc/en/Tips.html

I think for now I'm gonna stick with the filesystem, and then if I need to in the future I'll convert to BLOBing

Cheers

Ted


I will have to think about it. Now im not quite sure if its good idea to store imgs in database, but i am also afraid, that ill loose much of my limited webspace for screenshots :(

However, thank you Ted, this information was major.

regards,
grandfso



2
grandfso
Re: Storing imgs, in database insead of uploading 'em
  • 2004/8/13 19:45

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


Well, i want upload images to database, because on my server i've got 100mgs of webspace, and non-linited database size. I am going to make my own PC Game vortal, and i think i'll need many free space for screenshots and stuff like wallpapers for example. I know it may be 'risky', but its good idea as long as db size is unlimited ^_^



3
grandfso
Re: Storing imgs, in database insead of uploading 'em
  • 2004/8/13 16:01

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


Quote:
Log in as Administrator, go to System, then select Images.

At bottom, there is a selection utility to define whether to upload or store as BLOB (Binary Large Object) in Database.

Hope this helps.


i am not sure if itll take effect on my-album, what do you think?



4
grandfso
Re: $bbUrl
  • 2004/8/13 16:01

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


you mean this:

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', 'http://myurl.com/xoops');

everything here is all right, and it is still getting imgs from the old serwer, mby there is a cached file or something?



5
grandfso
Re: $bbUrl
  • 2004/8/13 10:35

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


ok, i misunderstood something, i need to change XOOPS_URL then :]
i need to change this, cuz ive changed my server and XOOPS on the new serv takes images from the old one :/



6
grandfso
Storing imgs, in database insead of uploading 'em
  • 2004/8/13 9:06

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


Hello, i want to store imgs in database as a binary data, instead of uploading them to the server. i dont know how may i change it.
I am using my-album v.2.83
hope, someonell give me an advice



7
grandfso
$bbUrl
  • 2004/8/13 7:51

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


Ok, here's another question
I am looking for the file, in which i can change this var $bbUrl



8
grandfso
Re: Database config?
  • 2004/8/12 21:17

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


Ok, youre right... i forgot to change db's and user's prefix. Thanks, everthing works fine now



9
grandfso
Re: Database config?
  • 2004/8/12 20:47

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


i did the changes, and now i get following error:

This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

Error [Xoops]: Unable to connect to database in file class/database/databasefactory.php line 34

plz, help



10
grandfso
Database config?
  • 2004/8/12 20:29

  • grandfso

  • Just popping in

  • Posts: 14

  • Since: 2004/8/8 1


where is the file which contains database name, db user name, and psw? ive changed server and i need to edit these items.




TopTop
(1) 2 »



Login

Who's Online

211 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits