dmc
Dec 28 2005, 12:29 PM
Can this script be installed and used within an existing website?
As in ww/mysite.com/imagehost/
I'm having trouble with the install/database setup
Thanks
lappy512
Dec 28 2005, 02:44 PM
dmc
Dec 29 2005, 11:04 AM
Thanks for gettin back to me.
It seems I'm having trouble connecting to my database.
The install file generates this for the conf_global file
<?php $siteurl = "http://www.roofersreview.com/";
$sitename = "Imagehost";
$mysql['db'] = "";
$mysql['user'] = "";
$mysql['pass'] = "";
$mysql['host'] = "localhost";
$maxfilesize = "2097152";
$adminpass = "";
$version = 0.6;
$daystokeepfiles = "15"; ?>
it's not taking my database entries. [ db, user, pass ]
Any ideas?
Thanks
lappy512
Dec 29 2005, 12:45 PM
did you input the database info into the installer file? weird, it seems that the form doesn't work? What version of PHP are you using?
If you want, you can try putting your database info and admin pass info into the conf_global file in between the quotes.
Also, you will need to then run the querries on the mysql database, if those haven't been run by the install.
I think the main problem might be the version of PHP you are running. What version are you using?
dmc
Dec 29 2005, 01:12 PM
PHP 4.4.1
MySQL 4.0.25
I will try putting db info directly into conf_global.
What should I enter for mysql queries?
Thanks for the help.
lappy512
Dec 29 2005, 01:20 PM
if, in PHPMYADMIN, you don't see any tables, use this SQL:
SQL
CREATE TABLE `images` (
`id` int(11) NOT NULL auto_increment,
`size` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0',
`lastuse` int(11) NOT NULL default '0',
`type` char(10) NOT NULL default '0',
`comments` TEXT NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
SQL
CREATE TABLE `stat_cache` (
`files` int(11) NOT NULL default '0',
`space` int(11) NOT NULL default '0',
`band` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0'
) TYPE=MyISAM;
SQL
CREATE TABLE `thumbs` (
`id` int(11) NOT NULL default '0',
`size` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0',
`lastuse` int(11) NOT NULL default '0',
`type` char(10) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
SQL
INSERT INTO `stat_cache` ( `files` , `space` , `band` , `downloads` )
VALUES (
'0', '0', '0', '0'
);
dmc
Dec 29 2005, 01:46 PM
Thanks for that, I'll let you know how it works out.
lappy512
Dec 29 2005, 04:49 PM
anything yet?
dmc
Dec 29 2005, 05:37 PM
Had to take a break.
I've just got it working; got the index page up. Cool
Can upload and show links but the thumbnail and url are not working.
What did I miss
??
lappy512
Dec 29 2005, 05:39 PM
That's one major problem with this script (which I'm not sure how to get past, yet).
It requres your server to have mod_rewrite (which your webhost may not have)
Also, you can check if the file is in the "uploads" folder, it should just be named "1" or something like that.
dmc
Dec 29 2005, 05:49 PM
The files are in the uploads folder and I can get to them there.
Not sure on the mod_rewrite, is there an easy quick way to check on that?
lappy512
Dec 29 2005, 06:26 PM
if it gives you a 404, you probably don't have mod_rewrite installed, although the best way would be to check with your host.
dmc
Dec 29 2005, 06:34 PM
Yeah, it's a 404 error.
I'll check with the host to see about the mod_rewrite.
If not available, do you have a way around the problem?
dmc
Dec 29 2005, 09:21 PM
The web host says that mod_rewrite is enabled but that I need to add " Rewrite Engine on" to the .htaccess file.???
lappy512
Dec 29 2005, 11:45 PM
that line should be in the file, I personally think you need to get it resolved with your host (becuase it's in the file and everything, and works on other servers)
rushwhq
Jan 5 2006, 11:50 AM
Hello All,
I need a help.. I recently installed PHPKImageHost.
I getting this error:
Conf_Global Successfully Created
error
And when i try to access www.nicolekg.com.ar
I can see the form, but displays this text:
Please make sure your Database is installed correctly.
Everything its ok. Dbname, dbuser, dbpass, localhost.
i apreciate if anyone can help to fix this
Regards And happy new year!
Rush
lappy512
Jan 5 2006, 11:59 AM
The only reason it should be doing thats, is that it cannot connect to the host with the username and password provided.
Are you sure you've set up a mySQL username and password, and you are using it correctly?
For example, on a cpanel server, there's usually a prefix for a username, for example: "heliohos_image" or something like that, depending on your domain name.
rushwhq
Jan 5 2006, 12:07 PM
QUOTE(lappy512 @ Jan 5 2006, 04:59 PM)
The only reason it should be doing thats, is that it cannot connect to the host with the username and password provided.
Are you sure you've set up a mySQL username and password, and you are using it correctly?
For example, on a cpanel server, there's usually a prefix for a username, for example: "heliohos_image" or something like that, depending on your domain name.
Hi lappy thanks for quicly reply.
Its all ok. Gonna try on another host and see whats happen.
Be back soon
Rush
rushwhq
Jan 5 2006, 12:14 PM
Well tried on www.rushwhq.com/shareit and i got the same problem.
All the rest is fine, like i say before.
When i do install.php. i put the necesary info there. but the script dont create the DB and dont delete install.php.
tried creating the DB and inserted this:
CREATE TABLE `images` (
`id` int(11) NOT NULL auto_increment,
`size` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0',
`lastuse` int(11) NOT NULL default '0',
`type` char(10) NOT NULL default '0',
`comments` TEXT NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM ;";
CREATE TABLE `stat_cache` (
`files` int(11) NOT NULL default '0',
`space` int(11) NOT NULL default '0',
`band` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0'
) TYPE=MyISAM;";
CREATE TABLE `thumbs` (
`id` int(11) NOT NULL default '0',
`size` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0',
`lastuse` int(11) NOT NULL default '0',
`type` char(10) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
";
INSERT INTO `stat_cache` ( `files` , `space` , `band` , `downloads` )
VALUES (
'0', '0', '0', '0'
);";
But no help...
Regards
Rush
lappy512
Jan 5 2006, 12:15 PM
Ah, you already need to create a database. You already need the user to exist, the pasword assigned to the user, and the database.
rushwhq
Jan 5 2006, 12:17 PM
i edited my last thread pls read.
Like i say everything is fine. I currently running a vbb and other scripts that works well. but ur script doenst work with my hosting.
phpinfo()
http://www.rushwhq.com/1.phpRegards
Rush
rushwhq
Jan 5 2006, 10:09 PM
fixed. Password problem.
Regards and thanks for helping me out

Rush
lappy512
Jan 5 2006, 10:27 PM
No problem.
little_matc
Jan 24 2006, 06:38 AM
even i am facing the same problem..
installed and the index and admin page is working fine..
but when uploading the image.. the image gets uploaded but not the preview or thumbnail is generated.. no can i get the image displayed from the link generated by the process.php page.
can anyone please help me out from this mess???
zsinyoz
Jan 30 2006, 09:01 PM
I got the same problem as your, ... Every thing work.... When I upload...it seem, it can not create the extension of the file...i.e. instead of pic4.jpg it just create a file pic4
anyone can help us
QUOTE(little_matc @ Jan 24 2006, 06:38 AM)
even i am facing the same problem..
installed and the index and admin page is working fine..
but when uploading the image.. the image gets uploaded but not the preview or thumbnail is generated.. no can i get the image displayed from the link generated by the process.php page.
can anyone please help me out from this mess???
lappy512
Jan 30 2006, 09:34 PM
As I said, you have a problem with mod_rewrite. You will need to contact your host about this problem.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.