-1
fileA.php文件名:需要function.inc.php和使用x()
包括文件PHP - 文件名調用函數在不同的腳本,得到包含腳本函數
fileB.php:需要的fileA。 PHP 用戶調用fileB.php得到fileA.php
function.inc.php:function x()
- 返回文件名調用它
什麼是PHP服務器變量或任何從獲取fileA.php的名稱function.inc.php?
- USECASE - 函數x()可能是一個
mysql_query() or die(mail({info about error as well as which file caused it})
基於下面的答案 - 這個工程:
function x($q){ mysql_query($q) or die(mail('[email protected],'error @ '.$_SERVER['PHP_SELF'] , serialize(debug_backtrace()) . "\n\n".mysql_error())); }
- 對誰投這個的人向下 - 你能爲上面的函數跟蹤提供一個更好的想法/解決方案嗎?
什麼是您的問題的UseCase。這聽起來很腥。 – Gordon 2010-08-04 13:31:17
投票的人 - 你能提供一個更好的想法/解決方案的功能跟蹤上面? – ina 2010-08-04 18:54:08
downvote不是來自我,但我仍然不明白你爲什麼需要這個? – 2010-08-04 18:56:28