This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; extension=php_oci8.dll ;; Oracle 11g より前のバージョンはこちらを有効に | |
extension=php_oci8_11g.dll ;; Oracle 11g 以降のバージョンはこちらを有効に | |
extension=php_pdo_oci.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php | |
+++ b/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php | |
@@ -117,7 +117,7 @@ abstract class AbstractOracleDriver implements Driver, ExceptionConverterDriver | |
if ( ! isset($params['port'])) { | |
$params['port'] = 1521; | |
} | |
- | |
+ $params['service'] = true; | |
$serviceName = $params['dbname']; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* jQuery plugin skelton. | |
*/ | |
;(function($, window, undefined) { | |
$.fn.example = function(options) { | |
return this.each(function() { | |
var o; | |
if (options) { | |
o = $.fn.extend({}, $.fn.example.defaults, options); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$code1 = 'FF5E'; /* 全角チルダ */ | |
$code2 = '301C'; /* 波ダッシュ */ | |
$char1 = h2bin($code1); | |
$char2 = h2bin($code2); | |
var_dump(urlencode($char1)); | |
var_dump(urlencode($char2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ php -r "var_dump('null-null-null' <= '1800-1-1');" | |
bool(false) | |
$ php -r "var_dump("null-null-null" <= '1800-1-1');" | |
bool(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -an | grep -e 'LISTEN *$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<system.webServer> | |
..... | |
<handlers> | |
<remove name="PHP53_via_FastCGI" /> | |
<add name="PHP53_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="D:\Program Files (x86)\PHP\v5.3\php-cgi.exe" resourceType="Either" requireAccess="Script" responseBufferLimit="0"/> | |
</handlers> | |
</system.webServer> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh [email protected] "cat /path/to/remote_file" | diff -u /path/to/local_file - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi -c ":e ++enc=euc-jp" filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- product_code を nvarchar(64) に変更しておくこと! | |
CREATE NONCLUSTERED INDEX product_category_category_id_idx ON [dbo].[dtb_product_categories] ([category_id]) INCLUDE ([product_id]); | |
CREATE NONCLUSTERED INDEX product_code_idx ON dtb_products_class (product_code) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX price01_idx ON dtb_products_class (price01) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX price02_idx ON dtb_products_class (price02) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX stock_idx ON dtb_products_class (stock) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX stock_unlimited_idx ON dtb_products_class (stock_unlimited) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX point_rate_idx ON dtb_products_class (point_rate) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX deliv_fee_idx ON dtb_products_class (deliv_fee) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX product_id_idx ON dtb_products_class (product_id); |