Jump to content

classic

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

classic's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. More information. Please find error log PHP.ini & apache ini . Application popup: httpd.exe - Application Error : The instruction at "0x006aad49" referenced memory at "0x00050014". The memory could not be "read". [attachment deleted by admin]
  2. sorry the link should be tesdb.php I have set the pup session to c:\windows\temp and can see the sessions being created. We have turned of the just in time debugger. We now get a windows error saying the ??? apache exe has crashed. Getting desperate now any ideas on how to trace this error
  3. Sorry for the dual post (First one in the wrong section). I have an app developed in Delphi PHP. I have trimmed the app down to duplicate the error: 80.5.54.164:8080/map/test4.php code below: <?php require_once("vcl/vcl.inc.php"); //Includes use_unit("dbtables.inc.php"); use_unit("forms.inc.php"); use_unit("extctrls.inc.php"); use_unit("stdctrls.inc.php"); session_start(); //Class definition class Unit15 extends Page { public $dbmapping1 = null; public $Button1 = null; function Button1Click($sender, $params) { $thisreq = 't030s001n123456'; $thistype = 'Instant poll'; $today = date('Y-m-d'); $time1 = date('H:i'); $devicename = 'testdb'; $query = "SELECT * FROM users WHERE num = 1"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $user = $row['User_Name']; } $sql = "insert into requests(`Request`,`Request_By`,`Request_Date`,`Customer_ID`,`Request_Time`,`Request_Type`,`Device_Name`)". // indicate all fields here "values ('".$thisreq."','".$user."','".$today."','1','".$time1."','".$thistype."','".$devicename."')"; $this->dbmapping1->Execute($sql); // Run Insert command mysql_free_result($result); } } global $application; global $Unit15; //Creates the form $Unit15=new Unit15($application); //Read from resource file $Unit15->loadResource(__FILE__); //Shows the form $Unit15->show(); ?> If two users hit the button at the same time it kills PHP (on IIS) and I have to refresh the page in Apache. I have set up apache using wampserver (:8080) as this seems more robust. I am getting some random errors: Warning: session_start() [function.session-start]: open(C:\WINDOWS\TEMP\\sess_ttujau3kokf14fb574c9l2rip6, O_RDWR) failed: Permission denied (13) in C:\Websites\Mapping\vcl\forms.inc.php on line 130 Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '80.5.54.164' (10061) in C:\Websites\Mapping\vcl\mysql.inc.php on line 257 Notice: Undefined index: file in C:\Websites\Mapping\vcl\classes.inc.php on line 128 Notice: Undefined index: line in C:\Websites\Mapping\vcl\classes.inc.php on line 128 Notice: Undefined index: line in C:\Websites\Mapping\vcl\classes.inc.php on line 129 Notice: Undefined index: file in C:\Websites\Mapping\vcl\classes.inc.php on line 129 Application raised an exception class EDatabaseError with message 'Cannot connect to database server' Click for detailed information Callstack #0 File: C:\Websites\Mapping\test4.php Line: 183 |_Callstack #1 File: C:\Websites\Mapping\vcl\classes.inc.php Line: 1878 |_Callstack #2 File: C:\Websites\Mapping\vcl\classes.inc.php Line: 1974 |_Callstack #3 File: C:\Websites\Mapping\vcl\classes.inc.php Line: 587 |_Callstack #4 File: Line: |_Callstack #5 File: C:\Websites\Mapping\vcl\classes.inc.php Line: 510 |_Callstack #6 File: C:\Websites\Mapping\vcl\classes.inc.php Line: 1232 |_Callstack #7 File: C:\Websites\Mapping\vcl\db.inc.php Line: 391 |_Callstack #8 File: C:\Websites\Mapping\vcl\system.inc.php Line: 330 |_Callstack #9 File: C:\Websites\Mapping\vcl\mysql.inc.php Line: 76 |_Callstack #10 File: C:\Websites\Mapping\vcl\db.inc.php Line: 431 |_Callstack #11 File: C:\Websites\Mapping\vcl\mysql.inc.php Line: 261 Warning: Unknown: open(C:\WINDOWS\TEMP\\sess_ttujau3kokf14fb574c9l2rip6, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 I am presuming the sessions are not starting as there is no permisions set on the SBS server machine. What is the (idiot level please) way to cure the problem. Cheers SteveW
  4. I need to check if a username already exists in the table. If yes is there a way to offer an altrenative based on the input Eg username classic classic4 exists Offer classic1 / 2 /3 /5 etc Any ideas
  5. I have username demo password demo I'm mysql tables I need to only allow one session for this. Subsequent users get "already logged in try later" If I set a flag in the database logged in true I could test for this and set to false when logged our. If the client machine dies I would be left with logged in as true What is the best way please
  6. I am not fully undersatnding the apache / php/ mysql setup. We have three severs srv1 srv2 srv3 Srv1 controls user logins, has mysql setup with the tables stored in the mysql data directory. We have a fixed IP address (XX.345.345.34) and the code points this data on port 3306. Port forwarding on 80 to srv1 Srv2 runs terminal services Srv3 runs IIS. We have installed wampserver on this machine. The code reside in the apache www directory. We point to the code via (XX.345.345.34:8080) . Port forward ing on 8080 to srv3. So to my confusion. Which php / or mysql settings am I looking at using wampserver or more to the point which should I be using. Cheers SteveW
  7. If I have 2 remote computers accessing the app and we hit a button at the same time we get the page not available error. The buttons are using ajax calls to add a record to the database. These work okay if the users are not clicking at the same time. How do I trace whats going on please Cheers SteveW
  8. I am running om SBS server 2003. That setting is already in the PHP.ini session.save_path = "c:/wamp/tmp" The path already exists. I have one file in the folder named session_dir The file contains only the text session directory Should there be some other info here? (session logs maybe) Cheers SteveW
  9. I have set up apache server with WampServer. PHP & mysql. My app has been written in Delphi PHP. The following error is showing. Warning: session_start() [function.session-start]: open(C:\WINDOWS\Temp\sess_t9tc39gf13a09cpv29ghrjc8s7, O_RDWR) failed: Permission denied (13) in C:\Websites\Mapping\vcl\forms.inc.php on line 130 What does this mean? Cheers SteveW
×
×
  • 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.