|
Hi how can i find out what php scripts take longest to load (in apache)? thanks
Started by ineednotes on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at superuser):
Depending on your scrip....
It should also show you min and max download time for each page.
$mtime = microtime(); $mtime = explode user takes to download each page.
(" ",$stime); $stime = $stime[1] + $stime[0]; //Some Code...
|
|
I have a string with a full URL including GET variables. Which is the best way to remove the GET variables? Is there a nice way to remove just one of them?
This is a code that works but is not very beautiful (I think):
$current_url = explode('?', $current...
Started by Jens Törnell on
, 7 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Regexp execution time: ".$totaltime." seconds; "; $mtime = microtime(); $mtime = explode(" ",$mtime - $starttime); echo "explode execution time: ".$totaltime." seconds; "; $mtime = microtime();....
|
|
A client is insisting that we store some vital and complex configuration data as php arrays while I want it to be stored in the database. He brought up the issue of efficiency/optimization, saying that file i/o will be much faster than database queries...
Started by Click Upvote on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
But set a variable:
<?php $mtime = microtime(); $mtime = explode(' ', $mtime); $mtime = $mtime[1 = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime....
|
Ask your Facebook Friends
|
In the description for the library forum, the link is bad. It's pointed at http://local.phpbbmodders.net/about/lib/ and not http://phpbbmodders.net/about/lib/
Also, for the article regarding debug...I think there is a mistake.
Quote: : DEBUG will add ...
Started by Obsidian on
, 2 posts
by 2 people.
Answer Snippets (Read the full thread at phpbbmodders):
Creation time
if (defined('DEBUG'))
{
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
if (!empty($_REQUEST['explain']) && $auth->acl_get('a_') && defined_output = sprintf....
|
|
#HACK名稱: 即時聊天室
#HACK作者: oytktk
#HACK版本: 2.5F SP1
#4.0.0: Linux0911
#5.0.0: pmfromhk
#演示:http://pmfromhk.no-ip.org:8888/bbs/index.php
有關後台修正問題請到第 58 帖
亂碼????問題請到第 80 帖
按結構上傳附件內所有資料夾及檔案!
1. 升級資料庫 ( 2.5,4.0,4.1 裝過的不須升級 )
[Copy to clipboard] [ - ] CODE: CREATE...
Answer Snippets (Read the full thread at alan888):
Discuz! info: MySQL Query Error
User: 然
Time: 2006-7-22 6:06pm
Script: /discuz/chatlist.php
SQL。
Discuz! info: MySQL Query Error
User: 然
Time: 2006-7-22 6:06pm
Script: /discuz/chatlist.php
SQL.
|
|
Ja korzystam z publicznego trackera tbsource ale chciałem zmienić wygląd ale mam problem z zamieszczeniem opisu przy przeglądaniu torrentów gdyż mi wyskakuje w opisie \r\n
oto problem z opisem i mam też problem z 0 na górze pod
<< Poprzednia Następna...
Started by Daniolos on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at torrentmania):
Polecam przeczytać http://gajdaw.pl/php/pliki-w-php-cz1/p2.html Bardzo dziękuje za odpowiedź przez modka....
Silniku nie znam, ale moge ci powiedziec zebys zaczal najpierw sie uczyc htmla, bo widac, ze nie masz o tym pojecia, a rzucasz sie na kod w phpie .
|
|
با سلام
متاسفانه اسکریپت timthumb عکس هایی که در نامشان space وجود داشته باشد را ساپورت نمیکند.
این واقعا خیلی عجیب است که من در سایت های بزرگ دنیا هم که گشتم هیچ کس جوابی برای حل ان نداده بود
آیا از شما عزیزان کسی راهی برای حل این مشکل بسیار بسیار بزرگ...
Started by clip2ni on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at majidonline):
|
|
What are the adventages and disadventages of storing JSON data in MySQL database vs. serialized array?
Started by Inez on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
This is the script I used to test:
<?php function runTime(){ $mtime = microtime(); $mtime = explode(' ', $mtime); $mtime = $mtime[1] + $mtime[0]; return $mtime; } ?> <pre> <?php ....
|
|
Здесь постим различные мелкие скрипты.
Started by ZiG on
, 20 posts
by 14 people.
Answer Snippets (Read the full thread at exploit):
O.:, ]~
#icq :: ODAxNjEx=
#jbr :: UGlyNHR0QGphYmJlci5jY2MuZGU=
@error_reporting(0);
@set_time_limit порнухи)
Код
<?php
set_time_limit(0);
ignore_user_abort(1);
error_reporting(0);
for ($i=100;$i< тд
Код <?php
function timeMeasure....
|
|
好複雜,想死
如果唔更新會唔會有好大的問題???
我的壇只是剛開,只改過用al8首頁4格,裝了銀行和吹牛大王,如果用官網的不手動更新,成功機會唔會大d呢? 哈哈!!
因為我正想開始裝虛擬形象過新年
[ 本帖最後由 hahalamb 於 2007-2-12 21:45 編輯 ]
Answer Snippets (Read the full thread at alan888):
);
$mtime = explode(' ', microtime());
$discuz_starttime = $mtime[1] + $mtime[0];
define('IN_DISCUZ', TRUE_ROOT.'./include/security.inc.php';
}
$timestamp = time();
$PHP_SELF = $_SERVER['PHP_SELF : $lastvisit;
$timenow....
|