NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
problem siwht session debbuging


Joined: 24 Dec 2003
Posts: 13
Reply with quote
when i try to debug this line
$sess = session_start();
it tells me no such function and stop the debbuging~!
that means i cant debug at all the rest of the script
?

_________________
Israel - the best place to live in after heaven
View user's profileFind all posts by pelegkSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
session_start() should work w/o problem.
Let me see your script and phpinfo() results.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
can i send u the phpinfo


Joined: 24 Dec 2003
Posts: 13
Reply with quote
the result of it as a file in email or u need something specific?
the code is :
Code:
<?
if (!substr_count($_SERVER['REQUEST_URI'],"index.php")){
    Header("Location:index.php");
}
$sess = session_start(); //*******
require ("config.php");
include ("functions.php");
include ("../common_func.php");


the problem is in the line marke as *******

_________________
Israel - the best place to live in after heaven
View user's profileFind all posts by pelegkSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
okay.
Insert two strings on top all:
phpinfo();
die();
Run using debugger then send me phpinfo results.
Then remove the lines, run debug session, step till you get the error message, make screenshot and send it to me too.

Thanks,
Dmitri.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
i wanted to send u everything in email


Joined: 24 Dec 2003
Posts: 13
Reply with quote
but when i pressed yourr email button i got an empty box
withought your email
and when i looked at the status bar i saw
only
"emailto:"
so how can i send u the error so u can check it?
thanks in advance
peleg

_________________
Israel - the best place to live in after heaven
View user's profileFind all posts by pelegkSend private message


Joined: 21 Nov 2003
Posts: 39
Reply with quote
I think the e-mail was support_AT_nusphere_DOT_com
View user's profileFind all posts by netgertSend private messageVisit poster's websiteMSN Messenger
so how can i send him what he haveasked for?


Joined: 24 Dec 2003
Posts: 13
Reply with quote
...

_________________
Israel - the best place to live in after heaven
View user's profileFind all posts by pelegkSend private message


Joined: 21 Nov 2003
Posts: 39
Reply with quote
I had the same problem before but was able to fix it myself before posting. The problem is caused because the folder "sessions" doesn't exist in "<phpED>/php" but session_start() doesn't check for presence of that dir and doesn't attempt to create it, it only attempts to write a file there and therefore will fail.
This problem can be solved by creating that directory "sessions" in "<phpED>\php"

In "<phpED>\php\php.ini":
Code:

[Session]
session.save_handler = files
session.save_path =F:\NuSphere\phpED\php\sessions


The snapshot pelegk sent me:


TechPlatform doesn't produce this error because TP stores session data in apache's logfile directory (weird Confused)

In "<TP>\apache\php.ini":
Code:

[Session]
session.save_handler = files
session.save_path=F:/NuSphere/apache/logs
View user's profileFind all posts by netgertSend private messageVisit poster's websiteMSN Messenger


Joined: 21 Nov 2003
Posts: 39
Reply with quote
The moment I looked at the snapshot I realized what the problem was but now as I looked at pelegk's phpinfo() result I found a line
session.save_path C:\PHP\sessiondata
(http://myserver/phpinfo.htm)
Now this is confusing Confused - in the IDE it will try to use C:\Program Files\...\sessions but in php.in it says C:\PHP\sessiondata
View user's profileFind all posts by netgertSend private messageVisit poster's websiteMSN Messenger
i did :


Joined: 24 Dec 2003
Posts: 13
Reply with quote
C:\Program Files\...\sessions
and its workign
the
c:\php\sessiondata is for the php itself and not for the debugging like i needed int he first line i rote

_________________
Israel - the best place to live in after heaven
View user's profileFind all posts by pelegkSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
O-o, Shocked
definitely, it falls beyond my skills in English...
Would you please translate back ?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 21 Nov 2003
Posts: 39
Reply with quote
Who? What? Question
View user's profileFind all posts by netgertSend private messageVisit poster's websiteMSN Messenger
problem siwht session debbuging
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 2  

  
  
 Reply to topic