为什么这会产生这个:
foreach( $store as $key => $value){
$value = $value.".txt.gz";
}
unset($value);
print_r ($store);
Array
(
[1] => 101Phones - Product Catalog TXT
[2] => 1-800-FLORALS - Product Catalog 1
)
Run Code Online (Sandbox Code Playgroud)
我想获得101Phones - 产品目录TXT.txt.gz
关于最新情况的想法?
编辑:好吧,我找到了解决方案...我的数组中的变量具有我看不到的值......正在做
$output = preg_replace('/[^(\x20-\x7F)]*/','', $output);
echo($output);
Run Code Online (Sandbox Code Playgroud)
清理它并使其正常工作
我需要做些什么才能使APC正常工作,似乎我没有在正确的地方或类似的地方使用交流编译器?一旦安装,我如何验证它是否正确运行?
[root@ec2-user]# pecl install apc
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
config.m4:180: warning: AC_CACHE_VAL(PHP_APC_GCC_ATOMICS, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
config.m4:180: the top level
config.m4:180: warning: AC_CACHE_VAL(PHP_APC_GCC_ATOMICS, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is …Run Code Online (Sandbox Code Playgroud) 我已在其他地方完成了一些数据处理,并希望重新导入几个表...我已经通过mysqldump函数从该数据库导出数据.我试图重新进入我的RDS但没有运气......
我使用以下命令尝试重新导入
mysqldump --host = blink10.cfti81qgpnos.us-east-1.rds.amazonaws.com --password = XXXXXXX --user = bill --single-transaction blink10 products productspriceNEW </data/tt.sql
它似乎贯穿了putty中的所有数据并让我离开了:
但是,当我检查数据库时,没有添加这些记录.思考?
php ×2
amazon-ec2 ×1
amazon-rds ×1
apc ×1
css ×1
foreach ×1
gradient ×1
installation ×1
mysql ×1