|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Script that you download from devarticle is works fine in Linux.
|
|
#4
|
|||
|
|||
|
I am using PHP 4.2.2-Win32 with Register_Globals turned off. Thanks
|
|
#5
|
|||
|
|||
|
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! |
|
#6
|
|||
|
|||
|
Thanks, Ill try that to see if it works.
|
|
#7
|
|||
|
|||
|
changing register_globals to on worked. The script now works fine under windows. Thanks a bunch.
|
|
#8
|
|||
|
|||
|
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. |
|
#9
|
|||
|
|||
|
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,
|
|
#10
|
|||
|
|||
|
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.
|
|
#11
|
|||
|
|||
|
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" |
|
#12
|
|||
|
|||
|
Thanks, I'll check it out.
|
|
#13
|
||||
|
||||
|
Quote:
Your problem has nothing to do with your install. Look at the error message: Quote:
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. |
|
#14
|
|||
|
|||
|
Another solution would be to change the "session.save_path" to a directory that exists.
|
|
#15
|
|||
|
|||
|
sokkit is a php/mysql/apache installer. been a tad bit buggy though so I recommend it somewhat reluctantly.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > chat script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|