1
PHP程式設計討論區 / Re: CodeIgniter PHP Framework 2.1.3 Release
« 於: 2012-10-16 10:26 »您被這個討論區永久地封鎖。
請與 討論區管理員 聯絡,以獲得更多的資訊。
您的 IP 位址已經被封鎖。
默....
Hi 可否提供您現在的 IP 給我,因為太多 Spam 所以有擋一些 IP。
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
您被這個討論區永久地封鎖。
請與 討論區管理員 聯絡,以獲得更多的資訊。
您的 IP 位址已經被封鎖。
默....
先推再說 ... 太棒了,終於有 PHP Conference是因為 Ruby Conf....XD
是因為看到 COSCUP 辦的太強大嗎?
資料庫(PIC) TABEL(img ) 有2欄位 PIC_ID (自動編號) name(檔名)
現在上傳一個圖片,原始檔名AAAE.jpg
上傳完在MYSQL裡面的值name=AAAE.jpg
我想把上傳的圖片自動排序改名字,因為要避免重複!
像0.JPG,1.JPG,2.JPG
要怎樣改..謝謝.
先插入一筆新資料, 抓 PIC_ID 或 insert_id 來做為圖片檔名
再用 UPDATE 將新檔名存回剛才那筆新資料列裡
題外話...appleboy 你的 blog 的 comment 怪怪的...請問以下:
upload_max_filesize , max_file_uploads , max_execution_time , memory_limit , post_max_size
都可以設=0嗎?
這樣是等於不限制的意思?還是等於預設值的意思?
http://tw2.php.net/manual/en/ini.core.php
你可以看看上面官網連結的說明
請問以下:
upload_max_filesize , max_file_uploads , max_execution_time , memory_limit , post_max_size
都可以設=0嗎?
這樣是等於不限制的意思?還是等於預設值的意思?
hg clone http://bitbucket.org/ellislab/codeigniter
這句str_replace('\\', '/', dirname(__FILE__))
我把它改成dirname(__FILE__)
就好了= =...想不起來當初這句怎會這樣寫...
不過在朋友主機上竟然可以執行, 真是奇怪= =
<?php
$this->dir = str_replace('\\', '/', realpath($config['directory'])).'/';
?>
測試看看
<?php
$array = array("a" => "1", "b" => "2");
$firephp->info($array, "info");
$firephp->warn($array, "warn");
$firephp->error($array, "error");
?>
require_once('FirePHPCore/FirePHP.class.php');
Start output buffering<?php ob_start();?>
測試完整檔案<?php
require_once('FirePHPCore/FirePHP.class.php');
ob_start();
$var = array('i'=>10, 'j'=>20);
$firephp = FirePHP::getInstance(true);
$firephp->log($var, 'WARN');
?>
FirePHP 預設是啟動的,如果您要將此關閉,可以使用底下程式碼將其關閉:/**
* Enable and disable logging to Firebug
*
* @param boolean $Enabled TRUE to enable, FALSE to disable
* @return void
*/
$firephp->setEnabled(false);
也可以自訂選項:// Defaults:
$options = array('maxObjectDepth' => 10,
'maxArrayDepth' => 20,
'useNativeJsonEncode' => true,
'includeLineNumbers' => true);
#
# Find
#
<?php
#
# Replace
#
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
edit Fb.php file#
# Find
#
<?php
#
# Replace
#
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Edit config/autoload.php file#
# Find
#
$autoload['libraries'] = array();
#
# Replace
#
$autoload['libraries'] = array("firephp", "fb");
[size=150]How to use it?[/size]<?php
function index()
{
$a = "test";
$array = array("a" => "1", "b" => "2");
//$this->firephp->log($a, 'ERROR');
//$this->firephp->log($a, 'ERROR');
$this->fb->setEnabled(true);
$this->fb->info($array, "info");
$this->fb->warn($array, "warn");
$this->fb->error($array, "error");
$this->fb->group('Test Group');
$this->fb->log('Hello World');
$this->fb->groupEnd();
}
?>
如果樓主是初學者, 建議先不要花太多心思在傳址呼叫上
畢竟在一般應用來說, 傳址呼叫比較少會去用到
將時間精神多花在基礎語法與練習
那如果樓主是要考認證或追根究底~
那加油吧~
ps:
其實自己實際練習跑幾個例子
大概也能瞭解傳址呼叫是怎麼一回事
如果只是一直在紙上談兵的話..
加油吧~~
請教一下各位學長
是不是只有windows下能用
[mail function]
; For Win32 only.
SMTP = xxx.xxx.xxx.xxx
; For Win32 only.
sendmail_from = xxx@xxx.xxx.xxx
修改為自己的isp業者發信
而在linux 下一定要自己架mailserver 發信呢?
有爬過文http://phorum.study-area.org/index.php/topic,36068.0.htmlphpMailer 跟 mail server 是兩回事,利用 phpMailer 發信,但是你也是要有可以使用的 smtp server(例如 ISP mail server)
但不是很了解裡面的意思
裡面提到的PEAR PHPMailer 是指不用 架mailserver 而直接去用php去跟smtp做發信的動作嗎?
有經驗的學長可否回答一下
還有自己架mailserver 跟用PEAR PHPMailer 差別是??
會分別遇到那些問題呢?
謝謝
哈哈,看了現場照片,還真是多人
照片? 沒看到啊~ 在哪?
這兩天會把後面相關的資料都補好然後整理一下...
預計週三就會 Release 囉.....
不好意思 那請問一下是在那邊設定呢@@
我用的是工具書的整合包~
在書裡面也沒說到這方面的設定~
可以麻煩說明一下嗎?
謝謝
<?php
if (!ini_get('display_errors'))
{
ini_set('display_errors', 1);
}
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
?>
我想代朋友一起去可以嗎? 初到貴地 難免有點怕生 (害怕被吃掉)
對於這方面有興趣說