var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
I have this script for login (<?php
and I recive this error:
Warning: setcookie() expects parameter 3 to be long, string given in /home/estudio/public_html/b2b/board/login2.php on line 3
Warning: Cannot add header information - headers already sent by (output started at /home/estudio/public_html/b2b/board/login2.php:3) in /home/estudio/public_html/b2b/board/login2.php on line 7
On the oldest server woork fine but at this...
It's a server with RedHat 7.3, WHM/Cpanel4.
Who can help me please?
What version of PHP are you running?
Had this problem alot using start_session() commands...
Quick fix here.... That section of code you posted has to be the very first, I mean the very very first thing in that page. (including include("xxx.php") statements.)
The cookies command has to be the very first thing php reads in order to start/retrieve/manipulate cookies...
But why at the old server (with the same configuration, except RedHat 6.2) are working?
It's a problem in php config? Or I need to install some Perl Modules?
It's Ok now.
I remove "","/" from "setcookie("ephemeral",$value,"","/");" and are working
The proper solution is to replace "" with 0. Deleting argument 3 and 4 is not a solution if you need to specify the cookie path or domain.