php-install Digest 16 Oct 2002 08:26:37 -0000 Issue 1071
Topics (messages 8812 through 8818):
Php Sessions - Well, they don't work :-\
8812 by: Stephen Edmonds
RedHat8.0 and PHP
8813 by: Tao Hou
Re: phpMyAdmin
8814 by: David Barrett
Where's debug.log?
8815 by: Dean Dahnke
8816 by: Rasmus Lerdorf
8817 by: Dean Dahnke
No TrueType support in php_gd2.dll ?
8818 by: Alexander Winkler
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 ---
The problem is my sessions don't work properly... the ID is stored and saved
in the cookie fine, and the PHP script can even acces the Session ID value
in the cookie. However, when you call session_start(); it mearly creates a
new session/session ID instead of resuming.
I can pass on the session id using
$target = "http://url.com?".CID;
header( "Location: $target" );
but obviously doing that is not what I want to do for every page/link. I
wrote a script to test the session function. The sessions are set in a
script using session_register() and the variables are stored perfectly fine
in the session folder, even the session ID's match with the output of CID.
The Code:
print "Session ID = ".session_id()."<br>";
print "Searching for cookie ID ( $_ENV[COOKIE] ) <br>";
Firstly, I called the code before session_start(); just to see what happens.
It returns:
Session ID =
Searching for cookie ID ( PHPSESSID=7c7b9b50c724fc18c59c436d78b4992d )
Remember, thats before I call session_start();
However, Exactly the same code used after session_start(); returns something
different...
Session ID = e6c9f37a45808b552b8f04ee06968d42
Searching for cookie ID ( PHPSESSID=7c7b9b50c724fc18c59c436d78b4992d )
So, as you can see, Session_Start(); has actually started a NEW session
rather than the old session refered to in the session cookie. This is most
annoying... and I have no idea what could be causing it.
Thank you for your time. I hope I have explained it fairly well...
Stephen
[Web Server Details]
Platform - Windows XP (Admin Account)
Server - Xitami
[PHP.INI File]
register_globals = On
[Session]
session.save_handler = files
session.save_path = C:\server\PHP\sessiondata ; argument passed to
save_handler
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 1800
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1800
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16 (Yes, they are commented out ; in php.ini)
;session.entropy_file = /dev/urandom (Yes, they are commented out ; in
php.ini)
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry
--- End Message ---
--- Begin Message ---
Hi,
I installed RH8.0 with Package httpd and PHP(all web server
packages).the apache works fine. but when I try phpinfo(), the web
browse give me a blank page.
the php.net FAQ say this is a server configuration problem.did anyone
has the solutions?
Thank you
--- End Message ---
--- Begin Message ---
You are creating a database, not a table, hence there are still no tables
available in PHPMyAdmin.
Once the database is created (which you say you can see correctly), simply
select it and then create a table using PHPMyAdmin (or MySQL if preferred).
Try this, and then see if it appears (which it obviously should do!).
"Marcus Van Wyk" <[EMAIL PROTECTED]> wrote in message
005301c273f0$ca6d4820$[EMAIL PROTECTED]">news:005301c273f0$ca6d4820$[EMAIL PROTECTED]...
Hi there
I've just gone and setup PhpMyAdmin
I've done what the install file told me to do.
And as soon as I load the index.php to the browser
I see the DB
e.g
MySQL
test
as soon as I click on one of them it replies saying
No tables found in database
this is the same for MySQL and test.
I do this on command line and it's working fine.
MySQL -u user -p password
it connects
MySQL >show databases
MySQL
test
MySQL> create database test2;
Query OK, 1 row affected (0.09 sec )
any ideas why I can't select within browser.
I was thinking that it might be a read write problem but MySQL dir is read
right to everyone as a test to see but it still doesn't work
Any advise would be appreciated
Marcus
==========================================================
This message contains information intended for the perusal, and/or use (if
so stated), by the stated addressee(s) only. The information is
confidential and privileged. If you are not an intended recipient, do not
peruse, use, disseminate, distribute, copy or in any manner rely upon the
information contained in this message (directly or indirectly). The sender
and/or the entity represented by the sender shall not be held accountable
in the event that this prohibition is disregarded. If you receive this
message in error, notify the sender immediately by e-mail, fax or telephone
representations contained in this message, whether express or implied, are
those of the sender only, unless that sender expressly states them to be
the views or representations of an entity or person, who shall be named by
the sender and who the sender shall state to represent. No liability shall
otherwise attach to any other entity or person.
==========================================================
--- End Message ---
--- Begin Message ---
I am having a huge amount of hassle trying to build PHP 4.3 with
Sablotron 0.96.1 When I look in config.status, I see the following
message.
if test -n ""; then
rm -f config.cache
cat <<X
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| [EMAIL PROTECTED] mailing list and include appropiate |
| information about your setup. |
X
fi
The only problem is I don't have a debug.log file to send in. Is there
something I need to do to activate this feature? I sent in my configure
script to this list yesterday, so you can see what parameters I tried
to use.
Any help would be greatly appreciated.
Thanks,
Dean Dahnke
--- End Message ---
--- Begin Message ---
I think that should say config.log
On Tue, 15 Oct 2002, Dean Dahnke wrote:
> I am having a huge amount of hassle trying to build PHP 4.3 with
> Sablotron 0.96.1 When I look in config.status, I see the following
> message.
>
>
> if test -n ""; then
> rm -f config.cache
> cat <<X
> +--------------------------------------------------------------------+
> | *** ATTENTION *** |
> | |
> | Something is likely to be messed up here, because the configure |
> | script was not able to detect a simple feature on your platform. |
> | This is often caused by incorrect configuration parameters. Please |
> | see the file debug.log for error messages. |
> | |
> | If you are unable to fix this, send the file debug.log to the |
> | [EMAIL PROTECTED] mailing list and include appropiate |
> | information about your setup. |
> X
> fi
>
> The only problem is I don't have a debug.log file to send in. Is there
> something I need to do to activate this feature? I sent in my configure
> script to this list yesterday, so you can see what parameters I tried
> to use.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Dean Dahnke
--- End Message ---
--- Begin Message ---
When I build PHP 4.2.3, I get both a config.log file and a debug.log file,
which are formatted very differently. For instance, the debug.log file
contains the exact configure command and the config.log file does not. If
the config.log is useful to someone who knows about PHP internals, I would
be happy to send it along. Do you think that would be a good idea?
Dean
On 10/15/02 4:32 PM, "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote:
> I think that should say config.log
>
> On Tue, 15 Oct 2002, Dean Dahnke wrote:
>
>> I am having a huge amount of hassle trying to build PHP 4.3 with
>> Sablotron 0.96.1 When I look in config.status, I see the following
>> message.
>>
>>
>> if test -n ""; then
>> rm -f config.cache
>> cat <<X
>> +--------------------------------------------------------------------+
>> | *** ATTENTION *** |
>> | |
>> | Something is likely to be messed up here, because the configure |
>> | script was not able to detect a simple feature on your platform. |
>> | This is often caused by incorrect configuration parameters. Please |
>> | see the file debug.log for error messages. |
>> | |
>> | If you are unable to fix this, send the file debug.log to the |
>> | [EMAIL PROTECTED] mailing list and include appropiate |
>> | information about your setup. |
>> X
>> fi
>>
>> The only problem is I don't have a debug.log file to send in. Is there
>> something I need to do to activate this feature? I sent in my configure
>> script to this list yesterday, so you can see what parameters I tried
>> to use.
>>
>> Any help would be greatly appreciated.
>>
>> Thanks,
>> Dean Dahnke
>
--- End Message ---
--- Begin Message ---
When using the Windows and the php_gd2.dll that comes with php 4.2.3 all
truetype function
seaze to function... can this be correct?
Has anyone gotten them to work with this dll or is there another one and if
so.. where can I get it?
Thanx for your help,
Alexander
--- End Message ---