IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Php Session_start Error Message


TheMoose
no avatar
Newbie
*
Group: Members
Posts: 0
Joined: 3-December 08
Member No.: 74,174



Post #1 post Dec 3 2008, 11:00 PM
Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(/home/rifqi96/tmp) is not within the allowed path(s): (/home/moose:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/moose/public_html/vertex/adminonly.php on line 2

I get that error message whenever it tries to do the session_start function it never did that before and I don't know who rifqi96 is.
Go to the top of the page
+Quote Post
Kedishen
no avatar
Newbie
*
Group: Members
Posts: 0
Joined: 10-December 08
Member No.: 74,428



Post #2 post Dec 10 2008, 02:45 AM
In the .htaccess in your public_html folder, put:

php_value session.save_path /home/USERLOGIN/tmp



(Where it says USERLOGIN, put the login you use to access cpanel. I believe yours is moose > (/home/moose:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/moose)
Go to the top of the page
+Quote Post
koshar29
no avatar
Newbie
*
Group: Members
Posts: 0
Joined: 26-January 09
Member No.: 76,161



Post #3 post Jan 26 2009, 06:28 AM
QUOTE (Kedishen @ Dec 10 2008, 02:45 AM) *
In the .htaccess in your public_html folder, put:

php_value session.save_path /home/USERLOGIN/tmp



(Where it says USERLOGIN, put the login you use to access cpanel. I believe yours is moose > (/home/moose:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/moose)


I'm getting an Error similar to this. I did what you said to do. but now, I get this
CODE
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/koshar29/public_html/yourself/index.php:2) in /home/koshar29/public_html/yourself/index.php on line 117

what am I doing wrong?
Go to the top of the page
+Quote Post
rvalkass
no avatar
apt-get moo
****************
Group: [MODERATOR]
Posts: 2,501
Joined: 28-May 05
From: Devon, England
Member No.: 7,593
Spam Patrol
myCENT:8.70



Post #4 post Jan 26 2009, 08:38 AM
"headers already sent" means that you have already sent some output to the browser, and have then tried to send headers afterwards, which doesn't work. You need to re-order your code so that all your headers are sent before any text output.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   3 Shackman 8,594 30th August 2004 - 06:33 PM
Last post by: DataHead
No New Posts   13 stevey 8,411 16th June 2005 - 01:45 AM
Last post by: melancholy
No New Posts   4 The Devils Playpen 5,761 9th August 2004 - 10:03 AM
Last post by: LuciferStar
No New Posts 6 BlueReign 4,991 18th August 2004 - 08:38 PM
Last post by: Aero147
No New Posts   3 Donegal 2,392 4th September 2004 - 05:02 PM
Last post by: wassie
No New Posts   0 Donegal 2,406 25th September 2004 - 12:08 PM
Last post by: Donegal
No New Posts   2 eniranjee 2,413 19th February 2009 - 12:14 PM
Last post by: iG-Pradip Jadhav
No New Posts   5 Mike 2,431 20th December 2004 - 11:46 PM
Last post by: shadow skazi
No New Posts 5 MusicOnly 919 7th February 2007 - 08:07 PM
Last post by: MusicOnly
No New Posts   0 Inhuman 347 6th March 2008 - 06:55 AM
Last post by: Inhuman
No New Posts   1 Tenshi 87 29th May 2009 - 06:24 PM
Last post by: jlhaslip
No New Posts   2 Dawid 5,069 20th October 2004 - 07:04 PM
Last post by: serverph
No New Posts   5 Triple X 2,556 25th October 2004 - 02:56 AM
Last post by: MuTeD
No New Posts   3 Danieluchis 4,263 24th October 2004 - 07:15 PM
Last post by: Danieluchis
No New Posts   4 guangdian 4,300 26th October 2004 - 07:11 AM
Last post by: Hamtaro


 



RSS Open Discussion Time is now: 5th July 2009 - 08:32 PM

Web Hosting Powered by ComputingHost.com.