Jump to content

ChemicalBliss

Members
  • Posts

    719
  • Joined

  • Last visited

    Never

Everything posted by ChemicalBliss

  1. change $os .= $i; to $os[] = $i; and you got yourself a winner.
  2. In your display i cannot see where locationid form variable exists. you are just echoing it out. Also, foreach() expects it's first parameter ($_POST['locationid'] in your case) to be an array. Which a single id is clearly not (unless you put it inside an array). If you have multiple locationid's and updating multiple forms at once, you will have to iterate each form element for ex; HTML: <form> <input name="locationid[0]"> <input name="location_name[0]"> <input name="location_date1[0]"> <input name="location_date2[0]"> --- second form <input name="locationid[1]"> <input name="location_name[1]"> <input name="location_date1[1]"> <input name="location_date2[1]"> --- etc... PHP: <?php if( isset( $_POST['locationid'] ) && count( $_POST['locationid'] ) >= 1){ foreach( $_POST['locationid'] as $formId => $locationId ){ $thisForm = array( "id" => $locationId, "name" => $_POST['location_name'][$formId], "date1" => $_POST['location_date1'][$formId], "date2" => $_POST['location_date2'][$formId] ); // input validation etc // then update database using new values gained. } } ?>
  3. If you havn't already I would get used to using the php manual, it's real quick and easy to find what you need. In this case, the parameters of the function setcookie: http://php.net/setcookie Just drop the last two parameters until you understand exactly why your using them .
  4. Ohh it can . I'm using it as we speak . Apache 2.4.1 PHP5.4.0 (release) xDebug 2.2 Dev NetBeans 7.2 Dev
  5. Even xdebug? Since he hasn't compiled 2.2 yet..
  6. If you want to use xDebug with php 5.4.0 - I have compiled the windows dll myself (with only 1 issue: max_exec_time isn't modified so have to modify in php.ini - nothing major). Or I can outline steps to compile xdebug yourself. (fairly lengthy, from tools download to using the dll in netbeans can take up to an hour depending on network speed.)
  7. I thought I would share the fact that I finally compiled it! Basically you compile as a PECL extension (duh) - Not the way xdebug documentation suggests. I now have apache 2.4.1/PHP5.4.0 and Xdebug (2.2) running with netbeans perfectly (ok 1 problem..). Only problem I think is from xdebug: Max Execution Time is exceeded when debugging, just set max_execution_time in php.ini to 0 or a higher number (not sure if the web service you use will timeout also, most have 300 sec limits). Thanks again
  8. UPDATE: So I followed "https://wiki.php.net/internals/windows/stepbystepbuild" to the letter. All successful. Then I try o compile the xdebug extension separately as required. Steps: 1. Unpack xdebug (c:\xdebug) 2. run phpize (from inside xdebug - success) 3. run configure --with-xdebug ! Failure ! Here is the console output: c:\php-sdk\php54a\vc9\x86\php540rc8-xyz>cd c:\xdebug c:\xdebug>C:\php-sdk\php54a\vc9\x86\php540rc8-xyz\Release_TS\php-5.4.0RC8-devel- VC9-x86\phpize.bat Rebuilding configure.js C:\php-sdk\php54a\vc9\x86\php540rc8-xyz\Release_TS\php-5.4.0RC8-devel-VC9-x86 module ... Now run 'configure --help' c:\xdebug>configure --with-xdebug Saving configure options to config.nice.bat Checking for cl.exe ... <in default path> Detected compiler MSVC9 (Visual C++ 2008) Detected 32-bit compiler Checking for link.exe ... C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin Checking for nmake.exe ... <in default path> Checking for lib.exe ... <in default path> Checking for bison.exe ... <in default path> Checking for re2c.exe ... <in default path> Detected re2c version 0.13.5 Checking for zip.exe ... <in default path> Checking for lemon.exe ... <not found> Checking for mc.exe ... C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin Checking for mt.exe ... C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin Build dir: Release_TS PHP Core: php5ts.dll and php5ts.lib Enabling extension C:\xdebug [shared] c:\xdebug\configure.js(1254, 3) Microsoft JScript runtime error: 'PHP_PGI' is un defined c:\xdebug>nmake Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1064: MAKEFILE not found and no target specified Stop. Note: During the configure process: I checked the JS file and that constant sure enough is not mentioned apart from 2 lines that try to read it. Along with 'PHP_PGO'. It is though, the same routines that are in the original configure.js for compiling PHP itself, which runs perfectly well without any changes. I am baffled as to why I am stuck at this point. Perhaps something is not being included as it should be.. ? Thanks for any input you may have regarding this .
  9. Hi guys, I need to compile xDebug from the Master Git Repository for PHP 5.4.0RC8 for Windows x86. I can find next to no information for loading this project into a VC9 IDE, and then compiling the result. The source comes with a makefile batch program but does not contain the mak files themselves. Any help would be greatly appreciated! Thanks PS: xDebug Source - https://github.com/derickr/xdebug PHP5.4.0RC8 Binary/Source: http://windows.php.net/qa/ using Visual Studio 2010. And nMake 1.5. (Windows 7) Tried; http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/ then tried running the makefile with nmake to find .mak files missing. UPDATE: Just caught this link: http://bugs.xdebug.org/view.php?id=730 Seems someone knows how to do it . Will review this case and see if I can get it to build.
×
×
  • 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.