Forum Moderators: coopster

Message Too Old, No Replies

Php galleri plz help

         

karel021

4:58 pm on Nov 8, 2004 (gmt 0)

10+ Year Member



Hey, im very new about this with php, But i found out that i it works then its great, :)
here my problem i have isntallet apache 1,x server, and php4 and hopfully gd2 but im not sure if it works,
This galleri that u runt makes thumbz when the pics land in the directory but on my computer nothing happens,

when i open the url where the galleri should be and work i get some strange error msg

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\program\apache group\apache\htdocs\galleri\index.php:16) in c:\program\apache group\apache\htdocs\galleri\index.php on line 19

the name of the gallery is
PHP ImageGallery 0.6.4 by Manijak

If theres any easier way to get it work throu an other galleri please rekomend one and i will install it
The requiments är that when a user upload an pic/pics that the galleri makes thumbs and post it,
the galleri should be easi to mount into an homepage(build in to )

/thx karel

[edited by: jatar_k at 6:08 pm (utc) on Nov. 8, 2004]
[edit reason] removed url inserted error msg [/edit]

coopster

12:12 pm on Nov 9, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, karel021.

The error message you are receiving is because of a protocol restriction. You see, when you start a session using cookies, it defines a cookie to be sent along with the rest of the HTTP headers. Like other headers, cookies must be sent before any output from your script (this is a protocol restriction). This requires that you place calls to this function prior to any output, including <html> and <head> tags as well as any whitespace.

On a secondary note, have you checked out Gallery [gallery.sourceforge.net]? It is opensource and seems to be quite popular.

freeflight2

8:24 pm on Nov 9, 2004 (gmt 0)

10+ Year Member



coppermine is even easier to install (and IMHO better)

karel021

9:39 pm on Nov 9, 2004 (gmt 0)

10+ Year Member



what is coppermine? any url?

coopster

9:49 pm on Nov 9, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Open source sites such as [sourceforge.net...] have search functions that will help you find all kinds of software like this.

[sourceforge.net...]

karel021

10:08 pm on Nov 9, 2004 (gmt 0)

10+ Year Member



okok thx im gonna try that, really thx for the help great forum / karel :)