php-install Digest 17 Apr 2002 17:03:28 -0000 Issue 793

Topics (messages 6660 through 6663):

Re: inline php not working
        6660 by: Daniël Beukers

Sessions
        6661 by: webmaster
        6662 by: LIMBOURG Arnaud
        6663 by: firepages

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Thanks for the hint. 

> You need to tell apache to parse .html files with the php parser. 
> By default apache is setup to parse .php files.   Not .html files. 
> 
> Here is the line from httpd.conf.
> ---------------------------------------
> AddType application/x-httpd-php .php
> ---------------------------------------

It was after I changed that line into:  
 AddType application/x-httpd-php .php .html
that inline php worked in .html files also...

Cheers,
Daniël.

> Hi,
> 
> on my machine, php gets properly executed from .php files but NOT from
> inside .html files.
> 
> When I include some inline php-code like <?php echo "hello" 
> ?> inside HTML
> files it doesn't get parsed by php.
> 
> It seems to me like it's a configuration switch, but I can't 
> seem to find
> where.
> 
> I'm running FreeBSD 4.5-RELEASE-p2. I installed apache 1.3.24_1 and
> mod-php4-4.1.2 from the ports.
> 
> any ideas? thanks,
> Daniël.
> 
> 

--- End Message ---
--- Begin Message ---
Hi all, 
this is my first posting to this list. I host a medium-sized site for people working 
with a certain make of microcontrollers called AVR. 
The site is called www.AVRfreaks.net

I have a question regarding sessions: 
We just compiled a new apache installation with PHP into it. I wanted to use 
transparent session handling so I used the --trans-sid and --track-vars flags. I also 
run with register_globals on.

The problem is that this setup allows to propagate the session_id even when I disable 
cookies on my computer; but I cant seem to write something into the session files. 
When I run with cookies allowed; this is fine. Then I can write all the User's info 
into the session file.
So users not running with cookies, cannot log in...
I think it's a bit strange that it's just this writing that's not possible. So I am 
left a little clueless here...

Does anybody have an idea what this may be due to? And  how to solve it?
Please reply with any idea besides sticking my head in the sand, shutting the server 
down etc... ;-)

Best regards, 

                Eivind



--- End Message ---
--- Begin Message ---
Hello,

it is because the session id propagates through the use of cookies.
Otherwise you have to do it by hand, either in the url or in a hidden field.

A way is to use the php constant SID and add it at the end of every url like

echo 'a href=file.php?' . SID

then the id propagates ;)

> Hi all, 
> this is my first posting to this list. I host a medium-sized 
> site for people working with a certain make of 
> microcontrollers called AVR. 
> The site is called www.AVRfreaks.net
> 
> I have a question regarding sessions: 
> We just compiled a new apache installation with PHP into it. 
> I wanted to use transparent session handling so I used the 
> --trans-sid and --track-vars flags. I also run with 
> register_globals on.
> 
> The problem is that this setup allows to propagate the 
> session_id even when I disable cookies on my computer; but I 
> cant seem to write something into the session files. When I 
> run with cookies allowed; this is fine. Then I can write all 
> the User's info into the session file.
> So users not running with cookies, cannot log in...
> I think it's a bit strange that it's just this writing that's 
> not possible. So I am left a little clueless here...
> 
> Does anybody have an idea what this may be due to? And  how 
> to solve it?
> Please reply with any idea besides sticking my head in the 
> sand, shutting the server down etc... ;-)
> 
> Best regards, 
> 
>                 Eivind
> 
> 
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
if php was compiled with --enable-trans-sid then you dont need to add the
SID to the URL
run phpinfo() to confirm trans-sid is actually enabled in the php.ini (1 is
on)

(look for session.use_trans_sid)

Regards
Simon Wheeler
firepages

"Limbourg Arnaud" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hello,
>
> it is because the session id propagates through the use of cookies.
> Otherwise you have to do it by hand, either in the url or in a hidden
field.
>
> A way is to use the php constant SID and add it at the end of every url
like
>
> echo 'a href=file.php?' . SID
>
> then the id propagates ;)
>
> > Hi all,
> > this is my first posting to this list. I host a medium-sized
> > site for people working with a certain make of
> > microcontrollers called AVR.
> > The site is called www.AVRfreaks.net
> >
> > I have a question regarding sessions:
> > We just compiled a new apache installation with PHP into it.
> > I wanted to use transparent session handling so I used the
> > --trans-sid and --track-vars flags. I also run with
> > register_globals on.
> >
> > The problem is that this setup allows to propagate the
> > session_id even when I disable cookies on my computer; but I
> > cant seem to write something into the session files. When I
> > run with cookies allowed; this is fine. Then I can write all
> > the User's info into the session file.
> > So users not running with cookies, cannot log in...
> > I think it's a bit strange that it's just this writing that's
> > not possible. So I am left a little clueless here...
> >
> > Does anybody have an idea what this may be due to? And  how
> > to solve it?
> > Please reply with any idea besides sticking my head in the
> > sand, shutting the server down etc... ;-)
> >
> > Best regards,
> >
> >                 Eivind
> >
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >


--- End Message ---

Reply via email to