New Wamp5 install issue with php
Posted by: cstewart (207.42.135.---)
Date: April 07, 2006 08:47PM

I try running this script on my wap5 server i just install (on my local machine)
and its not showing any thing, but it shows on my online site
can any one tell me whats wrong??

session_start();
// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}



bowetech.com

Options: ReplyQuote
Re: New Wamp5 install issue with php
Posted by: trixterj (---.30.118.70.cfl.res.rr.com)
Date: April 08, 2006 03:24AM

Is this an ALIAS or under the default c:\wamp\www directory?

have you tried phpinfo.php with <?php phpinfo(); ?> and placed
it in your document root, and gone to [localhost] ?

That way you can tell what your server is doing.
Also make sure all services are running..

Im a newbie, so sorry if this doesn't help, hopefully this will bump your
thread up and it will get noticed smiling smiley

Options: ReplyQuote
Re: New Wamp5 install issue with php
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: April 08, 2006 06:42AM

WAMP comes installed with most php code error messages set to not being displayed. This means certain errors in your php code will not be displayed. This is a good thing if you are running a production server, but since WAMP is for local development, it is a good idea to turn on all error reporting so all errors get displayed. This makes sure you code is error free.

You need to open your php.ini file, and find this line:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

Change it to this:
error_reporting = E_ALL

Save the file, and restart apache for the new settings to take effect.

I am pretty sure you are having session save path errors. After you change the error reporting line, try you code again. If you get session save path errors, then open your php.ini file, and find this line:
session.save_path = "c:/wamp/tmp"

Change it to:
session.save_path = "C:\WINDOWS\Temp"

Once again, safe the file, and restart apache for the new settings to take effect.

Options: ReplyQuote


Sorry, only registered users may post in this forum.