How to make cfimageget.php work? How to make cfimageget.php work?
 

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

Main Menu

How to make cfimageget.php work?

Started by myuption, April 18, 2007, 06:09:59 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

myuption

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. ???

vuud

Quote from: 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. ???


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...

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

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.

vuud

Quote from: 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.

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;
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

Yes it's set to true, i guess my path is wrong

// 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. :(

myuption

OH, and i'm getting this in error log file.

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