Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: How to make cfimageget.php work?  (Read 5540 times)

0 Members and 1 Guest are viewing this topic.

myuption

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
How to make cfimageget.php work?
« 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. ???
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: How to make cfimageget.php work?
« Reply #1 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...

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

myuption

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: How to make cfimageget.php work?
« Reply #2 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: How to make cfimageget.php work?
« Reply #3 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;
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

myuption

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: How to make cfimageget.php work?
« Reply #4 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. :(
Logged

myuption

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: How to make cfimageget.php work?
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.