Jump to content

bupcguy

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

bupcguy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have just installed Apache,PHP and MySQL. I have got Apache and PHP working ok together and i am just wondering what is a good test to make sure MySQL is working ok and how do i test to make sure the three programs are all working in sync.I have tried to connect to MySQL and i get this error message ( Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test2.php on line 5 ) This is the script that i ran. <html> <head> <title>MySQL Test</title> </head> <body> <h1> <?php $connection=mysql_connect("localhost","root", "*******") or die("Could not connect to MySQL"); echo "Successfully connected to MySQL"; ?> </h1> </body></html> Thankyou
  2. Hello I have just installed Apache and PHP and they seem to be working ok . When i try the test page,the script i am running is              [<?php phpinfo(); ?>]   i get all the info like i should . When i type the page in the browser it opens up properly but as soon as it opens i get a message saying Apache has encountered a problem and needs to close and then after about ten seconds it shuts down. I am not sure if this is a problem with Apache or my computer.It actualy loads for about ten seconds until apache shuts down. Thats what i find strange about all of this. It seems like Apache and PHP are configured properly or the page wouldnt load at all. To me it seems like a problem with apache or my computer. Please help. Thankyou Here is some info from the error logs [Sun Dec 31 13:23:56 2006] [notice] Child 2440: Acquired the start mutex. [Sun Dec 31 13:23:56 2006] [notice] Child 2440: Starting 250 worker threads. [Sun Dec 31 13:23:57 2006] [notice] Child 2440: Starting thread to listen on port 80. [Sun Dec 31 13:34:04 2006] [notice] Parent: Received shutdown signal -- Shutting down the server. [Sun Dec 31 13:34:04 2006] [notice] Child 2440: Exit event signaled. Child process is ending. [Sun Dec 31 13:34:05 2006] [notice] Child 2440: Released the start mutex [Sun Dec 31 13:34:06 2006] [notice] Child 2440: Waiting for 250 worker threads to exit. [Sun Dec 31 13:34:06 2006] [notice] Child 2440: All worker threads have exited. [Sun Dec 31 13:34:06 2006] [notice] Child 2440: Child process is exiting [Sun Dec 31 13:34:06 2006] [notice] Parent: Child process exited successfully. [Sun Dec 31 13:49:44 2006] [notice] Apache/2.2.3 (Win32) PHP/5.1.6 configured -- resuming normal operations [Sun Dec 31 13:49:44 2006] [notice] Server built: Jul 27 2006 16:49:49 [Sun Dec 31 13:49:44 2006] [notice] Parent: Created child process 2988 [Sun Dec 31 13:49:44 2006] [notice] Child 2988: Child process is running [Sun Dec 31 13:49:44 2006] [notice] Child 2988: Acquired the start mutex. [Sun Dec 31 13:49:44 2006] [notice] Child 2988: Starting 250 worker threads. [Sun Dec 31 13:49:44 2006] [notice] Child 2988: Starting thread to listen on port 80. [Sun Dec 31 13:50:16 2006] [error] [client 127.0.0.1] script 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/test.php' not found or unable to stat [Sun Dec 31 13:58:41 2006] [error] [client 127.0.0.1] PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: http://localhost/test.php [Sun Dec 31 13:58:41 2006] [error] [client 127.0.0.1] PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: http://localhost/test.php [Sun Dec 31 13:59:07 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Sun Dec 31 13:59:07 2006] [notice] Apache/2.2.3 (Win32) PHP/5.1.6 configured -- resuming normal operations [Sun Dec 31 13:59:07 2006] [notice] Server built: Jul 27 2006 16:49:49 [Sun Dec 31 13:59:07 2006] [notice] Parent: Created child process 1564 [Sun Dec 31 13:59:07 2006] [notice] Child 1564: Child process is running [Sun Dec 31 13:59:07 2006] [notice] Child 1564: Acquired the start mutex. [Sun Dec 31 13:59:07 2006] [notice] Child 1564: Starting 250 worker threads. [Sun Dec 31 13:59:07 2006] [notice] Child 1564: Starting thread to listen on port 80. [Sun Dec 31 15:31:51 2006] [error] [client 127.0.0.1] PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: http://localhost/test.php [Sun Dec 31 15:31:51 2006] [error] [client 127.0.0.1] PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: http://localhost/test.php [Sun Dec 31 15:33:07 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Sun Dec 31 15:33:07 2006] [notice] Apache/2.2.3 (Win32) PHP/5.1.6 configured -- resuming normal operations [Sun Dec 31 15:33:07 2006] [notice] Server built: Jul 27 2006 16:49:49 [Sun Dec 31 15:33:07 2006] [notice] Parent: Created child process 2620 [Sun Dec 31 15:33:07 2006] [notice] Child 2620: Child process is running [Sun Dec 31 15:33:07 2006] [notice] Child 2620: Acquired the start mutex. [Sun Dec 31 15:33:07 2006] [notice] Child 2620: Starting 250 worker threads. [Sun Dec 31 15:33:07 2006] [notice] Child 2620: Starting thread to listen on port 80. [Sun Dec 31 15:33:09 2006] [error] [client 127.0.0.1] PHP Strict Standards: phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST' instead in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\test.php on line 3 [Sun Dec 31 15:38:15 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Sun Dec 31 15:38:15 2006] [notice] Apache/2.2.3 (Win32) PHP/5.1.6 configured -- resuming normal operations [Sun Dec 31 15:38:15 2006] [notice] Server built: Jul 27 2006 16:49:49 [Sun Dec 31 15:38:15 2006] [notice] Parent: Created child process 3908 [Sun Dec 31 15:38:15 2006] [notice] Child 3908: Child process is running [Sun Dec 31 15:38:15 2006] [notice] Child 3908: Acquired the start mutex. [Sun Dec 31 15:38:15 2006] [notice] Child 3908: Starting 250 worker threads. [Sun Dec 31 15:38:15 2006] [notice] Child 3908: Starting thread to listen on port 80.
  3. Hello everyone I am new to all of this and i have a few questions. I have a website hosted on a web server that i can set up a database and it also has PHP installed. I am having trouble setting up a database and entering all the info correctly and i am wondering if anyone knows of any good tutorials. I am also wondering where to install the PHP scripts on my server. Last question is would it make more sense for me to install everything on my computer for testing and then when i figure it all out and get eveything working properly then upload it all to my web space.                                         Thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.