php-windows Digest 9 Jul 2005 21:40:15 -0000 Issue 2722
Topics (messages 26195 through 26196):
Weird variable issue - variable not getting assigned
26195 by: Jim MacDiarmid
Re: Perplexed - wont parse <?php ?> tags in html
26196 by: Armando
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 ---
Hi everyone,
I have a very puzzling variable issue going on where I have a function in a
class (Database class) that returns the output of a query from my users
table. In the calling function of another class (session class), I am trying
to assign each element of the received array to a variable declared at the
top of my class, such as this scaled down example:
Class session{
var $userinfo;
var $username;
var $userid;
$this->userinfo = $db->GetUserInfo($_SESSION['username']);
$this->username = $this->userinfo['username'];
$this->userid = $this->userinfo['userid'];
};
I know I'm getting data back in my array. I have a running trace log. I've
determined that I can do an assignment such as:
$this->username = "testusername";
Something is preventing the assignment from the array for some reason.
Any ideas?
TIA,
Jim
--- End Message ---
--- Begin Message ---
Is this running under Apache? If you're loading it as a module from
Apache then you need to make sure that your httpd.conf file is set to
allow the PHP engine to parse specific files. In the Apache conf file I
believe the line is:
AddType application/x-httpd-php
You can add file types by just leaving a space and then adding the ones
you want, for example:
AddType application/x-httpd-php .php .html .htm
Cheers.
Armando
Mark Rees wrote:
Lots of possible solutions on this:
http://www.webmasterworld.com/forum88/4806.htm
And another is... change the extensions on your html files
""Fred"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
PHP5 - Apache2 - XPSP2
New to PHP.
I have done everything I think I need to do to get PHP5 working.
I can link to and execute file.php scripts just fine, but scripts imbedded
with <?php ... ?> in html files are not parsed/executed.
I must have missed something really simple - but I can't find it.
Any ideas?
TIA
Fred.
--- End Message ---