forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: myuption on April 18, 2007, 06:09:59 am

Title: How to make cfimageget.php work?
Post by: myuption on April 18, 2007, 06:09:59 am
I installed cpmfetch, read how to use it, but i can't run php directly, so images are not showing.

I tried to call the cfimageget.php inside an image tag, but i get nothing in return.

I opened the file and set the path to "/"

My domain is simple, www.domain.com

Gallery is inisde www.domain.com/gallery

cpmfetch is inside gallery www.domain.com/gallery/cpmfetch

Am i doing something wrong?

I don't think install had any failures, i see the example images. ???
Title: Re: How to make cfimageget.php work?
Post by: vuud on April 18, 2007, 06:19:10 am
I installed cpmfetch, read how to use it, but i can't run php directly, so images are not showing.

I tried to call the cfimageget.php inside an image tag, but i get nothing in return.

I opened the file and set the path to "/"

My domain is simple, www.domain.com

Gallery is inisde www.domain.com/gallery

cpmfetch is inside gallery www.domain.com/gallery/cpmfetch

Am i doing something wrong?

I don't think install had any failures, i see the example images. ???


Hello...

I am not sure what you mean by not being able to run it directly.  If you cannot run it directly, putting it inside an image tag will not work either.

Doing img src="cfimageget.php" just has your browser calling it.  Just like typing it into the address bar in your web browser.  The server knows no difference between the two at all.

Perhaps I have misunderstood...

Title: Re: How to make cfimageget.php work?
Post by: myuption on April 18, 2007, 06:47:19 am
I simply called the file and i got a blank page, don't know if this is ok.

then i added that inside the source of an img like this.

<img  src="./gallery/cpmfetch/cfimageget.php"> and also using my whole domain, i'm getting an "x" in return, no image.

I don't know what i'm doing wrong.
Title: Re: How to make cfimageget.php work?
Post by: vuud on April 18, 2007, 05:02:01 pm
I simply called the file and i got a blank page, don't know if this is ok.

then i added that inside the source of an img like this.

<img  src="./gallery/cpmfetch/cfimageget.php"> and also using my whole domain, i'm getting an "x" in return, no image.

I don't know what i'm doing wrong.

Well thats a lot different.


Did you open the cfimageget.php file and change the following line to true

// CHANGE THIS TO TRUE IF PEOPLE ARE ALLOWED QUERIES THROUGH HERE
$ALLOW_DIRECT_ACCESS = false;
Title: Re: How to make cfimageget.php work?
Post by: myuption on April 19, 2007, 05:39:46 am
Yes it's set to true, i guess my path is wrong

Code: [Select]
// This one you need to adjust unless your galler is at http://www.youname.com/photos
// If you installed right to the root of your web site, just use a /
// TODO This should be path to config file
// $urltocpm = "/photos/";
$pathToConfigFile = "/home/user/public_html/website/gallery/";

that path to config is to cpmfetch folder or to gallery... i tried both and still no image is shown. :(
Title: Re: How to make cfimageget.php work?
Post by: myuption on April 19, 2007, 05:45:43 am
OH, and i'm getting this in error log file.

Code: [Select]
CF-Error
Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/website/gallery/cpmfetch/cpmfetch_dao.php:1314) in /home/user/public_html/website/gallery/cpmfetch/cfimageget.php on line 260

Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/website/gallery/cpmfetch/cpmfetch_dao.php:1314) in /home/user/public_html/website/gallery/cpmfetch/cfimageget.php on line 261