Re: HELP: problem with $_POST in my server.



NN wrote:

On Sun, 19 Oct 2008 20:39:39 -0700, Tim Greer <tim@xxxxxxxxxxxxx>
wrote:

NN wrote:

there has been a change in my server apache/php 4.4.9/mysql effected
by my web hosting company that i can't figure out.

there first symptom is that the authentication form for users to log
in doesn't work at all (it worked a few days ago, and it has been
working for more than a year now).

the second weird behaviour is that when i placed this:
print_r ($_POST);

on the page where the login information is going to it retuned an
empty array.

what can it be that they have changed that causes this problem?

thank you in advance for your help,

NN

What does phpinfo() output? Anyway, it sounds like your host has set
up phpsuexec or suPHP o rsomething similar where PHP runs in the CGI
API, rather than the Apache (or web server) API, since Basic auth in
scripts
doesn't work the same way, by default in the CGI API. That's just a
guess and this doesn't mean a bad thing, other than some changes might
be needed in your script(s). The other sounds like they have disabled
register_globals, which is also a good thing, but might require some
changes.

They might have also upgraded to PHP5, which has some of these
settings by default (again, a good thing, provided you use decent
scripts, but
otherwise could demand a few changes). Check with them, that's your
best bet and as your web host, they should be the best people to help
you, and the most willing. Did they fail to provide a notice of these
impending changes? Are they not communicating the changes they've
made?

Hi Tim,

thanks for your prompt response.

i checked a different script that uses $_POST and it works. which
prompted me to check if the problem was with $_SESSION and it seems
that's where the problem is.

when i tried to start the session, immediatelly after the <?php not to
output any characters before the session starts i got this error
message:

Warning: session_start() [function.session-start]:
open(/tmp/sess_da16eee0d2368adc760940fb27db29af, O_RDWR) failed:
Input/output error (5) in sessions_1.php on line 2

Warning: session_start() [function.session-start]: Cannot send session
cookie - headers already sent by (output started at sessions_1.php:2)
in sessions_1.php on line 2

Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
sessions_1.php:2) in sessions_1.php on line 2
session_2
Warning: Unknown(): open(/tmp/sess_da16eee0d2368adc760940fb27db29af,
O_RDWR) failed: Input/output error (5) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please
verify that the current setting of session.save_path is correct (/tmp)
in Unknown on line 0


i checked phpinfo() and the php version is 4.4.9 (i believe they used
to run 4.4.6, but i'm not sure). register_globals is off,
register_argc_argv is on. i don't remember if this has changed, but
i'm quite sure that my log in doesn't rely on register_globals being
on.

this is the output for session in phpinfo()
session
Session Support enabled
Registered save handlers files user

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off

it's hard for me to knwo whether this has changed or not...
also in enviroment they show:
SERVER_SOFTWARE Apache

thank you again for your help,

NN

The environment might have changed, or the /tmp partition is full (or
the partition /tmp is on), or any number of things. You'd need to
contact your host, as we could only guess from here.
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
.



Relevant Pages

  • Re: session hang problem
    ... PHP 5.x.x you don't need to. ... When I have a problem like this which seems to be host related, the first people I talk to is the hosting company. ... store variables and objects inside session variables, ... every request from the site domain 'hangs up' from this ...
    (comp.lang.php)
  • Re: Session_Start() Doesnt Work
    ... companies require special magic lines of code and incantations:) (I ... don't know if you are using a hosting company but...) ... >I'm new to PHP and I'm trying to create a Login Form. ... >a new session ID between every page and so it doesn't recognise the user. ...
    (comp.lang.php)
  • If you wish to have a profession
    ... They provide hosting absolutely free, ... panel which is amazing and easy to use website builder. ... I would like to tell you about free web hosting service I use now. ... They give 350 MB of disk space and 100 GB data transfer. ...
    (rec.games.pinball)
  • Re: Domain name questions
    ... If you have a good web hosting service then let them host DNS. ... If you can seperate name hosting from your SBS, your registrar, your www ...
    (microsoft.public.windows.server.sbs)
  • Re: What is the best web hosting for small businesses?
    ... Here are some web hosting companies that I have personally used. ... Free Account Setup, Web Site Builder, Domain Name, Web Site Tools, ... Unlimited POP3/IMAP4 Email Accounts, Unlimited Forwarding Email ...
    (alt.internet.search-engines)