Re: PHP within HTML
| From: | Justin Patrin | Date: | Wed, 05 Jan 2005 21:31:17 +0000 |
| Subject: | Re: PHP within HTML | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16702@lists.php.net to get a copy of this message | ||
On Wed, 5 Jan 2005 16:20:39 -0500, Jeff Jordan <jjordan@sc.rr.com> wrote:
> I am running PHP 5.0 with an Apache 2.0 handler. One of these php files I am
> working on is being moved for the first time to an ISP that is also running
> PHP 5.0 and with a CGI/FASTCGI hander.
>
> problem 1: when the website's index.php displays, I get the message
> "<br /><b>Notice</b>: Undefined index: iuname in
> <b>F:\wwwroot\more file name \index.php</b> on line <b>255</b><br
> />".
This is a notice and it's normal when you access a variable which has
not been set. The difference is that your copy has error reporting for
notices turned off (probably E_ALL & ~E_NOTICE). Whereas the other
server probably has it set to E_ALL. You can either change the ini
setting to E_ALL & ~E_NOTICE or use ini_set in your script(s) to set
that, or use isset() before you access the var.
if (isset($_SESSION['iuname'])) {
echo $_SESSION['iuname'];
}
>
> The line was written to display a Session variable.
>
> <input type="text" name="username" value="<? echo
> $_SESSION['iuname'] ?>" size="15" maxlength="45"
> tabindex="1" height="3">.
>
> Where can I look on the ISP server to ensure that php web
> pages can display values?
>
> Problem 2: (Might be related to problem 1 - so this may be a statement)
>
> I was given the ISP's php_info and compared it to my php_info. The ISP does
> not have APACHE running (no big deal I suppose) and does not have mysqli
> extension information in the php.ini (Is this a a reason why my code is not
> working).
>
> Help is appreciated.
>
> Jeff
>
--
Justin Patrin