General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 12th, 2003, 08:23 PM
hradams hradams is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 6 hradams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb chat script

I downloaded the support material from the dev article about using MYSQL to build a chat room. I tried using the source code and all I can get in the browser is the login text box, etc. Can anyone tell me if there is something in the PHP.ini file that has to be activated in order to use PHP functions? I cannot get them to work. I sure could use some help. Thanks, hradams

Reply With Quote
  #2  
Old June 12th, 2003, 09:05 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
hradams,

What version of PHP are you using? I'm not sure if the article was written with the intentions that "register_globals" be ON or OFF, but determining what version you have will help us figure it out...
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #3  
Old June 12th, 2003, 09:44 PM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6
Script that you download from devarticle is works fine in Linux.

Reply With Quote
  #4  
Old June 13th, 2003, 02:53 PM
hradams hradams is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 6 hradams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am using PHP 4.2.2-Win32 with Register_Globals turned off. Thanks

Reply With Quote
  #5  
Old June 13th, 2003, 06:41 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Okay... That seems to be the problem then. I went through the article's code, and it seems to not be using the super global arrays ($_POST, $_GET, etc...).

My suggestion is to modify the code to take advantage of the super global arrays...

If you're just interested in seeing how the script works, then temporarily turn register_globals ON and you should be able to run it successfully!

Reply With Quote
  #6  
Old June 14th, 2003, 07:14 PM
hradams hradams is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 6 hradams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, Ill try that to see if it works.

Reply With Quote
  #7  
Old June 16th, 2003, 04:45 PM
hradams hradams is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 6 hradams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
changing register_globals to on worked. The script now works fine under windows. Thanks a bunch.

Reply With Quote
  #8  
Old June 17th, 2003, 05:29 PM
Fire_Cracker Fire_Cracker is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 Fire_Cracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Fire_Cracker
I can't get the script to run on my XP box. Register Globals are turned on, I'm using Apache/1.3.14 (Win32) And PHP v. 4.0.5. Here are the errors that I am getting when I try to run the script.

Warning: open(/tmp\sess_7ae2f026691c13e529cca062fa9ff1d4, O_RDWR) failed: m (2) in C:\apache\htdocs\chat\chat.php on line 37

Warning: open(/tmp\sess_7ae2f026691c13e529cca062fa9ff1d4, O_RDWR) failed: m (2) in Unknown on line 0

Warning: 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'm guessing that ithas something to do with my sessions, but I don't know how to solve the problem. Thanks for the help.

Reply With Quote
  #9  
Old June 18th, 2003, 11:34 AM
hradams hradams is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 6 hradams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you got php to work at all on XP you did more thatn I did. I have been able to get it to work on NT 4.0, 98 an ME, but not XP. Apache and MySQL works fine but I can not get PHP to work at all, so I quess some of these other gurus will have to help with this one,

Reply With Quote
  #10  
Old June 18th, 2003, 02:51 PM
Fire_Cracker Fire_Cracker is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 Fire_Cracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Fire_Cracker
I downloaded an insaller that put PHP Apache, MySQL and PHPmyADMIN on my system. I don't remember what it was called, or where I found it, but if I stumble on it again I will let you know.

Reply With Quote
  #11  
Old June 19th, 2003, 03:50 AM
martincrumlish martincrumlish is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Ireland
Posts: 9 martincrumlish User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
There is a good installer available at http://www.nusphere.com/cgi-bin/nsp...ee_download.htm

Click on your platform below "Nusphere Technology Platform"

Reply With Quote
  #12  
Old June 23rd, 2003, 12:09 PM
hradams hradams is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 6 hradams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, I'll check it out.

Reply With Quote
  #13  
Old June 26th, 2003, 11:54 AM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
Quote:
Originally posted by Fire_Cracker
I downloaded an insaller that put PHP Apache, MySQL and PHPmyADMIN on my system. I don't remember what it was called, or where I found it, but if I stumble on it again I will let you know.

Your problem has nothing to do with your install. Look at the error message:
Quote:
open(/tmp\ ...

Notice it is trying to write session files to your c:\tmp directory.
Just do a mkdir c:\tmp and you should be fine.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #14  
Old June 26th, 2003, 11:55 AM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
Another solution would be to change the "session.save_path" to a directory that exists.

Reply With Quote
  #15  
Old July 25th, 2003, 10:10 AM
surfish surfish is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 2 surfish User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sokkit is a php/mysql/apache installer. been a tad bit buggy though so I recommend it somewhat reluctantly.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > chat script


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 |