Friday, September 24, 2010

Teach you quickly learn how to record "unknown error" occurs



Done using the MySQL database site, will surely not know the error occurred, how records show? The following is the specific solution:

class.method

/ / Create the error log

function error () (

$ Fp = @ fopen ("error.dat", "a +");

$ Time = date ("Y-m-d H: i: s");

$ Msg = "(VisitedTime: $ time) t

(VisiterIP: $ _SERVER [REMOTE_ADDR]) t

(Errormsg: ". MySQL_error ()."} t

(File :->$_ SERVER [PHP_SELF]) t

(User: $ _SESSION [user])
";

@ Fputs ($ fp, $ msg);

@ Fclose ($ fp);

)

I use the above code is a class of error recording.

In your page using the MySQL connection within this call.

The following code directly in your directory set up the error log.

if (MySQL_error ()) (

$ Classname-> error ();

)

________________________

If your error page, the page you are shielded enough as long as they cover, would not disclose the information, and the relative in this directory on the establishment of a

error.dat content (eg.)

(VisitedTime :2002-05-09 14:43:56)

(VisiterIP: 127.0.0.1)

(Errormsg: Duplicate entry '0 'for key 1)

(File: -> / path / path / errorfilename.PHP)

(User: sports98)

This record is definitely for the good of the page.

If you do not include add __LINE__

If you require such proposals to join __LINE__ better help you quickly find the wrong location, to facilitate problem-solving.







Recommended links:



MKV To Xbox 360



Onimusha 3 details all captures



OGM to MKV



I am a third Category



Instant Messaging SPI Translation



VBScript While ... Wend Statement



interpretation of on demand ibm on demand



comparison PERSONAL Finance



Report Cursors And Fonts



Flash to MPEG



Enhance the concept of active INTRUSION prevention IPS is not speculation



The SMTP user authentication based on QMail Setup Guide (Part Two)



Compilation of various source - col



"Era Of Exploration Of The Beginning Of 1404," Talk About My Own Experience



Catalogs Audio And Multimedia



Monday, September 13, 2010

J2ME learning Reviewing the Old Posts


J2ME Development Network This is probably the first one hundred articles, and while not a landmark, but how many witnessed the J2ME Development Network along the way of history. This paper will conduct a detailed summary of J2ME, clarify what context.

J2ME most important part of learning is to master the system structure of J2ME, J2ME is the SUN for the embedded consumer electronics product launch of the development platform, in fact it is a series of technical and norms of general. Is the core of J2ME Configuration (configuration), Configuration purpose is to define a set of vertical API and services a wide range of equipment, while VM is specified in the Configuration layer. The above is in Configuration Profile (description), he is running in the Configuration above, its purpose is some important characteristics of a class of devices. These features are important, but they are not all the devices in both possess. SUN equipment on the current market hardware abstraction layer processor based devices, memory and network connectivity were two standard configurations, this is the CLDC and CDC. Currently referred to J2ME CLDC + MIDP on the fact that it is inaccurate, ignoring a more powerful CDC is unforgivable. Configuration and with the exception of the flexibility described in a configuration described above can simultaneously support multiple, for example, we can run on CLDC MIDP on the program, so if the device supports Bluetooth so you can run an optional package. Mastered the J2ME architecture we will not get lost in the J2ME of learning. If you want to learn more about the history of the development of J2ME way, you can download the JSR specification read, the address is http://jcp.org

Popular development is the mobile phone development, so we will mainly talk about in this article the main content of CLDC + MIDP, J2ME below also Tezhi CLDC + MIDP, J2ME, but we must be clear does not mean CLDC + MIDP.

J2ME is not much content, if you read the MIDP the api, then found a total of ten classes is then 100. Compared to the thousands of J2SE class library is really trivial, reason for providing such a class library for developers to streamline the main reason is resource-constrained mobile information device characteristics. Defined in CLDC1.0 only three packages java.lang, java.io and java.util. This constitutes the basis of CLDC language, in this layer also includes a KVM. Time in the development of J2ME programs avoid assumptions, because not all of the J2SE library in J2ME to get support.

The quickest way to learn J2ME J2ME applications is to write, read the code and writing code. In J2ME proposes a new application model - MIDlet, this class is defined in javax.microedition.midlet.MIDlet, our MIDlet must extend this class and implement its three abstract methods startApp (), pauseApp ( ) and destroyApp (). Approach also reflects the MIDlet's life cycle, MIDlet life cycle by the AMS (application management software, formerly known as JAM) management. On the MIDlet life cycle can carefully refer to API doc.

CLDC launch in two months time, SUN on the launch of the MIDP1.0, MIDP exciting is provided in the GUI, so developers can easily write J2ME apps, GUI libraries get in the javax. microediton.lcdui defined in MIDP2.0 SUN increase in support for game development launched javax.microedition.lcdui.game package to facilitate the game developers. MIDP UI is not taken in AWT or SWING design ideas, as they are for PC's, mobile phones and other devices in the main interaction is done through the buttons, so for the mouse and keyboard events of mechanism design, AWT / SWING is not suitable for J2ME platform.鍦ㄦ帉鎻I鐨勬椂鍊欙紝鎴戜滑鍦ㄥご鑴戜腑搴旇娓呮鐨勭煡閬揓2ME骞冲彴鐨勭晫闈㈠拰浜嬩欢澶勭悊鏄尯鍒嗛珮绾у拰浣庣骇鐨勩?楂樼骇鐣岄潰鍜屼簨浠跺鐞嗙浉瀵圭畝鍗曪紝浣嗘槸閫熷害蹇?鍙Щ妞嶆?濂姐?浣庣骇鐢ㄦ埛鐣岄潰鍜屾椂闂村鐞嗙浉瀵瑰鏉傦紝浣嗘槸鍔熻兘寮哄ぇ銆佸彲绉绘鎬у樊銆傞?甯稿湪寮?彂娓告垙鐨勬椂鍊欐垜浠鐢ㄤ綆绾I銆?br />
聽聽聽 鍦↗2ME骞冲彴涓彁渚涗簡涓?釜灏忓瀷鐨勬暟鎹簱锛屼粬灏辨槸Record Management System銆備粬鐨勬暟鎹槸瀛樺偍鍦ㄩ潪鎸ュ彂鎬у瓨鍌ㄥ櫒涓婄殑锛屽洜姝や笉浼氬洜涓虹▼搴忕殑閫?嚭浠ュ強鎵嬫満鐨勫叧鏈鸿?涓㈠け锛屼粠鑰屼负J2ME骞冲彴鎻愪緵浜嗘寔涔呮?瀛樺偍銆俁MS鐨勮璁″紓甯哥殑灏忓阀锛屼粬涓昏璐熻矗瀛樺偍鏁版嵁鍜屾爣璁版暟鎹紝鏁版嵁瀛樺偍鏄潰鍚戝瓙鑺傜殑锛孯MS瑙勮寖骞舵病鏈夎鏄庝粈涔堟暟鎹兘琚瓨鍌紝鍙鏁版嵁鍙互杞崲涓哄瓙鑺傦紝閮藉彲浠ヨ瀛樺偍銆俁MS鏄?杩噄d鏉ユ爣蹇楁暟鎹殑锛屼絾鏄粬骞朵笉鏄储寮曘?璁捐灏忓阀褰撶劧閫傚悎鍦ㄦ墜鏈轰笂杩愯浜嗭紝浣嗘槸鍔犻噸浜嗗紑鍙戜汉鍛樼殑浠诲姟锛屾垜浠繀椤昏礋璐e瓨鍌ㄦ暟鎹拰璇诲彇鏁版嵁骞惰〃绀烘暟鎹紝鍦ㄦ湰绔欐湁涓撻浠嬬粛RMS锛岃鍙傝?銆?br />
聽聽聽 鍦↗2ME涓潪甯搁噸瑕佺殑妗嗘灦灏辨槸GCF锛屽畠鏄湪javax.microediton.io閲岄潰瀹氫箟鐨勶紝鎻愪緵浜嗚仈缃戠殑鑳藉姏銆傚湪MIDP2.0涓洿鏄彁渚涗簡瀵筎CP/IP灞傝仈缃戠殑鏀寔銆傚湪GCF涓牳蹇冩槸Connector锛岃?闈㈠悜鎺ュ彛鐨勮璁′娇寰桮CF鐨勬墿灞曟?闈炲父鍑鸿壊銆傛垜浠湪寮?彂鑱旂綉绋嬪簭鐨勬椂鍊欏繀椤昏娑夊強鍒扮殑闂灏辨槸澶氱嚎绋嬮棶棰樸?鍥犱负鑱旂綉鎿嶄綔蹇呴』鍦ㄥ彟涓?釜绾跨▼涓畬鎴愶紝鑰屼笉鑳藉啀涓荤嚎绋嬪唴锛岃繖鏍锋槸涓轰簡閬垮厤鍫靛銆傝繖鏃跺?浣犲簲璇ヨ璇嗗埌鍏跺疄瀛﹀ソJ2ME蹇呴』瑕佹湁鍧氬疄鐨凧2SE鐨勫熀纭??

聽聽聽 鍦↗2ME涓湁涓潪甯搁噸瑕佺殑姒傚康灏辨槸鍙?鍖咃紝鍙?鍖呮槸閽堝鐗瑰畾璁惧鍔熻兘鎻愬嚭鐨勶紝姣斿鏈変簺璁惧鍙互鏀寔绉诲姩澶氬獟浣擄紝閭d箞浣犲氨鍙互浣跨敤MMAPI杩涜鐩稿叧鐨勫紑鍙戙?

聽聽聽 浜嬪疄涓婅澶囧巶鍟嗗悓鏃朵細寮?彂涓?簺閽堝鑷繁璁惧鐨凙PI缁欏紑鍙戜汉鍛樹娇鐢紝涓?棪浣犱娇鐢ㄤ簡浠栦滑鐨凙PI閭d箞浣犵殑搴旂敤绋嬪簭灏变抚澶变簡鍙Щ妞嶆?锛屾瘮濡侼okia 6108鐨勭▼搴忎笉鑳藉湪Motorola 388c涓婅繍琛屻?SUN涓轰簡鏀瑰杽杩欎簺鍒嗚API鐨勯棶棰樺湪JSR185涓繘琛屼簡涓?畾寮哄害鐨勮鑼冿紝涔熷氨鏄垜浠墍鐭ラ亾鐨凧TWI,JSR185骞舵病鏈夋彁渚涙柊鐨凙PI锛屽彧鏄瀹炵幇JTWI鐨勮澶囪繘琛屼簡瑙勮寖锛屾瘮濡侶eap绌洪棿鑷冲皯涓?56K绛夈?璇︾粏璧勬枡鍙笅杞絁SR瑙勮寖璇昏鐪嬨?






相关链接:



Infomation Shell Tools



Ultimate registry operations - lock registry



Best Graphic Editors



TA listen to The song, cool the dog's help you "search" out of



video format



ASP.NET 2.0 at the same time to Prevent the same user login



Format Mkv



How To Protect The Interests Of PHS Users?



Registry Modification Daquan



Interview with B & Q (China) Vice President, Human Resources Director Miss Hu Weiyan



flac to mp3 converter free



Flv to mp3 converter



APACHE and Eclipse Open Source Conference will be held in Asia