SEO Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherSEO Scripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old July 14th, 2005, 08:52 PM
useless useless is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 1 useless User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
php and sessions problems

hoping someone can give me a suggestion here... my knowledge of php is almost zero.. however i had a webmaster who does know something about php put a chatroom on my website... he created a folder called penpal-chat for php and he created a sql database for the script and a folder called tmp for sessions... there are sessions problems so when you type in something in the chatroom it does not appear... he installed two different chatrooms and same result..

i contacted my webhost yahoo and they told me the problem was the tmp folder had to be under the root... the tmp folder is now under the root but the chat still does not work... yahoo said there is nothing wrong on their end... since this webmaster has no problem making the chatrooms work with his host i don't know what to do... anyone have an idea on why i might be having sessions problems?

Reply With Quote
  #2  
Old July 14th, 2005, 09:45 PM
Linux98's Avatar
Linux98 Linux98 is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: Sacramento, CA
Posts: 264 Linux98 User rank is Lance Corporal (50 - 100 Reputation Level)Linux98 User rank is Lance Corporal (50 - 100 Reputation Level)Linux98 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 Days 7 h 55 m 15 sec
Reputation Power: 4
It sounds like it has something to do with your session save path. Do you have anything in the code that looks like this:

Code:
session_save_path('/home/path/to/session/folder'); 
session_start();


If so you can start trouble shooting by placing this script into the tmp folder that you want to store your sessions in.

PHP Code:
<?PHP
echo dirname($_SERVER["PATH_TRANSLATED"]);
?>


Copy that code into a file named something like "test.php" and upload it into the tmp folder. Then use your browser to visit that file. It will show the path you need to put in your session_save_path. BTW, this is known as the "full path" to your file, it is the path that you take through the Linux directory structure to reach your file. You don't use the URL path to the file. Therefore, don't do something like this session_save_path('http://www.domain.com/home/path/to/session/folder')

Oh yeah, make sure the tmp folder has write permissions, if it doesn't then your script won't be able to write the session variables to the tmp folder. If you use the FileZilla FTP client you can do it through that, if you use Dreamweaver there is also an extension you can download to change the file permissions. Or, if Yahoo gives you shell access (?) you can do it on the shell command line with "chmod 777 /home/path/to/session/folder"

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherSEO Scripts > php and sessions problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway