CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 session error

Print topic Send  topic

Author Message
zek
Posted: 03/12/2003, 8:53 PM

i've downloaded the php online bookstore application. when open the page, this error msg appeared on the top of the page.

Warning: open(C:\FoxServe\php\temp\sess_d2eb8a559fa7564fdf50702988f583d7, O_RDWR) failed: m (2) in c:\foxserv\www\bookstore\default.php on line 12

where might be the problem?

regards

-zek-

bsiler
Posted: 03/12/2003, 10:47 PM

zek,

What are you using Code Charge or Code Charge studio. If you are using CCS look at line 12 and it say something like

//Include Page implementation @2-503267A8
include("./Header.php");

without more information, I would first look to see my directory setting and ensure you have read and execute permission. Provide more info and I will do what I can
zek
Posted: 03/17/2003, 12:59 AM

bsiler,
thanx for your reply.

i'm using code charge.
and running apache on windowsNT 4 w/station.

i paste portion of the codes (default.php)

line 8 : include ("./common.php");
line 9 : include ("./Header.php");
line 10 : include ("./Footer.php");

line 12 : session_start();

here is where the error occurs.
i've set the temp directory to be : ../php/temp

is there anythingthat i should configure on my apache server ?

thanx in advanced

regards

zek
bsiler
Posted: 03/17/2003, 9:46 PM

It sounds like PHP is not running. Provide me the following info

Version of:
Windows Platform (ie. NT 4.0, Windows 2000, XP etc.
Apache version
PHP version

Do this test. Open notepad and past this code and save it as phptest.php
<!-- phptest.php -->
<html>
<body>
<? echo "PHP is Working" ?>
</body>
</html>

if you get a web page that says "PHP is working" then open notepad and copy and past the following code and save it as phpinfo.php

<!- phpinfo.php->
<html>
<body>
<? php
phpinfo();
?>
</body>
</html>

If php is working then you should get a info config page. Copy that page and post it with the information you provided above. If this is time sensitive IM me atbsiler38@yahoo.com and we can work on it together. I am U.S Pacific time
Peter Lucas
Posted: 03/18/2003, 1:55 AM

Hi Zek,

I've got the same error on a Netware6/Apache2/PHP2/MySQL enviroment. I do know for a fact that PHP is working. Other PHP apps e.g. PHPMyAdmin do work.

If you do find a solutions for this problem, I would like to hear about it.

Regards,

Peter Lucas
RonB
Posted: 03/18/2003, 6:02 AM

C:\FoxServe\php\temp\
Does this directory exist at that location. Most of the time this error occurs when the directory is not present. Creating the directory will solve the problem most of the time.
RonB
zek
Posted: 03/19/2003, 11:01 PM

dear all,
thanx for al of the responses.

1. php is not running
i've test the phptest.php and phpinfo.php.
the php version is 4.0.6
php is runngi, and below is the result :

System Windows NT 4.0 build 1381
Build Date Jun 22 2001
Server API Apache
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINNT\php.ini
ZEND_DEBUG disabled
Thread Safety enabled

2. the directory is existed.
but it is empty. it seems like it cant writes to the directoy - ../php/temp/
is there any config file to be modified to allow the php to write to the directory ?


thanx.

bsiler
Posted: 03/19/2003, 11:46 PM

Zek,

Without understanding how you did your install and/or how NT is configured I will try simply to point you in a direction that will help.

I found a good article at: http://www.thickbook.com/extra/tb_zdnet03.
zek
Posted: 03/23/2003, 10:23 PM

i managed to solved the problem.
it's just a silly mistake - mispelled the directory name.
after i corrected it, it's all work properly.
thanx guys on helping me.




   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.