CoderFunda
  • Home
  • About us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • About us
  • Home
  • Php
  • HTML
  • CSS
  • JavaScript
    • JavaScript
    • Jquery
    • JqueryUI
    • Stock
  • SQL
  • Vue.Js
  • Python
  • Wordpress
  • C++
    • C++
    • C
  • Laravel
    • Laravel
      • Overview
      • Namespaces
      • Middleware
      • Routing
      • Configuration
      • Application Structure
      • Installation
    • Overview
  • DBMS
    • DBMS
      • PL/SQL
      • SQLite
      • MongoDB
      • Cassandra
      • MySQL
      • Oracle
      • CouchDB
      • Neo4j
      • DB2
      • Quiz
    • Overview
  • Entertainment
    • TV Series Update
    • Movie Review
    • Movie Review
  • More
    • Vue. Js
    • Php Question
    • Php Interview Question
    • Laravel Interview Question
    • SQL Interview Question
    • IAS Interview Question
    • PCS Interview Question
    • Technology
    • Other

12 February, 2019

Node.js OS

 Programing Coderfunda     February 12, 2019     Nodejs-Hindi, Nodejs-OS     No comments   

Node.js OS

Node.js OS provides some basic operating-system related utility functions. Let's see the list generally used functions or methods.
Index Method Description
1. os.arch() This method is used to fetch the operating system CPU architecture.
2.
os.cpus()
This method is used to fetch an array of objects containing information about each cpu/core installed: model, speed (in MHz), and times (an object containing the number of milliseconds the cpu/core spent in: user, nice, sys, idle, and irq).
3. os.endianness() This method returns the endianness of the cpu. Its possible values are 'BE' for big endian or 'LE' for little endian.
4. os.freemem() This methods returns the amount of free system memory in bytes.
5. os.homedir() This method returns the home directory of the current user.
6.
os.hostname()
This method is used to returns the hostname of the operating system.
7. os.loadavg() This method returns an array containing the 1, 5, and 15 minute load averages. The load average is a time fraction taken by system activity, calculated by the operating system and expressed as a fractional number.
8. os.networkinterfaces() This method returns a list of network interfaces.
9. os.platform() This method returns the operating system platform of the running computer i.e.'darwin', 'win32','freebsd', 'linux', 'sunos' etc.
10. os.release() This method returns the operating system release.
11. os.tmpdir() This method returns the operating system's default directory for temporary files.
12. os.totalmem() This method returns the total amount of system memory in bytes.
13. os.type() This method returns the operating system name. For example 'linux' on linux, 'darwin' on os x and 'windows_nt' on windows.
14. os.uptime() This method returns the system uptime in seconds.
15. os.userinfo([options]) This method returns a subset of the password file entry for the current effective user.

IN - HINDI


Node.js OS कुछ बुनियादी ऑपरेटिंग-सिस्टम संबंधित उपयोगिता फ़ंक्शंस प्रदान करता है। आइए सूची को आमतौर पर उपयोग किए जाने वाले कार्यों या विधियों को देखें।
सूचकांक विधि विवरण
1. os.arch () इस पद्धति का उपयोग ऑपरेटिंग सिस्टम CPU आर्किटेक्चर लाने के लिए किया जाता है।
2।
os.cpus ()
इस विधि का उपयोग उन वस्तुओं की एक सरणी को लाने के लिए किया जाता है जिनमें प्रत्येक cpu / कोर के बारे में जानकारी होती है: मॉडल, गति (मेगाहर्ट्ज में), और समय (मिलीसेकंड की संख्या वाली एक वस्तु जिसमें cpu / कोर का खर्च होता है: उपयोगकर्ता, अच्छा, sys बेकार, और irq)।
3. os.endianness () यह विधि cpu की समाप्ति को लौटाती है। इसके संभावित मूल्य बड़े एंडियन के लिए 'बीई' या छोटे एंडियन के लिए 'एलई' हैं।
4. os.freemem () यह विधि बाइट्स में मुफ्त सिस्टम मेमोरी की मात्रा लौटाती है।
5. os.homedir () यह विधि वर्तमान उपयोगकर्ता की होम डायरेक्टरी लौटाती है।
6।
os.hostname ()
इस पद्धति का उपयोग ऑपरेटिंग सिस्टम के होस्टनाम को वापस करने के लिए किया जाता है।
7. os.loadavg () यह विधि एक सरणी देता है जिसमें 1, 5 और 15 मिनट का लोड औसत होता है। लोड औसत सिस्टम गतिविधि द्वारा लिया गया एक समय का अंश है, जिसे ऑपरेटिंग सिस्टम द्वारा गणना की जाती है और एक भिन्नात्मक संख्या के रूप में व्यक्त किया जाता है।
8. os.networkinterfaces () यह विधि नेटवर्क इंटरफेस की एक सूची लौटाती है।
9. os.platform () यह विधि चल रहे कंप्यूटर के ऑपरेटिंग सिस्टम प्लेटफॉर्म को लौटा देती है यानी 'win32', 'win32', 'freebsd', 'linux', 'sunos' आदि।
10. os.release () यह विधि ऑपरेटिंग सिस्टम रिलीज़ लौटाती है।
11. os.tmpdir () यह विधि अस्थायी फ़ाइलों के लिए ऑपरेटिंग सिस्टम की डिफ़ॉल्ट निर्देशिका लौटाती है।
12. os.totalmem () यह विधि बाइट्स में सिस्टम मेमोरी की कुल राशि लौटाती है।
13. os.type () यह विधि ऑपरेटिंग सिस्टम नाम लौटाती है। उदाहरण के लिए 'linux' पर linux, os x पर 'darwin' और windows पर 'windows_nt'।
14. os.uptime () यह विधि सेकंड में सिस्टम अपटाइम लौटाती है।
15. os.userinfo ([विकल्प]) यह विधि मौजूदा प्रभावी उपयोगकर्ता के लिए पासवर्ड फ़ाइल प्रविष्टि का सबसेट लौटाती है।

Node.js OS उदाहरण 1

इस उदाहरण में, हम कुछ बुनियादी कार्यों को शामिल कर रहे हैं। निम्नलिखित कोड वाले os_example1.js नाम की फ़ाइल बनाएँ:

फ़ाइल: os_example1.js

     const os = आवश्यकता ('os');
     कंसोल.लॉग ("os.freemem (): \ n", os.freemem ());
     कंसोल.लॉग ("os.homedir (): \ n", os.homedir ());
     कंसोल.लॉग ("os.hostname (): \ n", os.hostname ());
     कंसोल.लॉग ("os.endianness (): \ n", os.endianness ());
     कंसोल.लॉग ("os.loadavg (): \ n", os.loadavg ());
     कंसोल.लॉग ("os.platform (): \ n", os.platform ());
     कंसोल.लॉग ("os.release (): \ n", os.release ());
     कंसोल.लॉग ("os.tmpdir (): \ n", os.tmpdir ());
     कंसोल.लॉग ("os.totalmem (): \ n", os.totalmem ());
     कंसोल.लॉग ("os.type (): \ n", os.type ());
     कंसोल.लॉग ("os.uptime (): \ n", os.uptime ());

or English 

Node.js OS Example 1

In this example, we are including some basic functions. Create a file named os_example1.js having the following code:
File: os_example1.js
  1. const os=require('os');  
  2. console.log("os.freemem(): \n",os.freemem());  
  3. console.log("os.homedir(): \n",os.homedir());  
  4. console.log("os.hostname(): \n",os.hostname());  
  5. console.log("os.endianness(): \n",os.endianness());  
  6. console.log("os.loadavg(): \n",os.loadavg());  
  7. console.log("os.platform(): \n",os.platform());  
  8. console.log("os.release(): \n",os.release());  
  9. console.log("os.tmpdir(): \n",os.tmpdir());  
  10. console.log("os.totalmem(): \n",os.totalmem());  
  11. console.log("os.type(): \n",os.type());  
  12. console.log("os.uptime(): \n",os.uptime());  
Open Node.js command prompt and run the following code:
  1. node os_example1.js 
 Node.js OS उदाहरण 2

इस उदाहरण में, हम शेष कार्यों को शामिल कर रहे हैं। निम्नलिखित कोड वाले os_example2.js नामक फ़ाइल बनाएँ:

फ़ाइल: os_example2.js

     const os = आवश्यकता ('os');
     कंसोल.लॉग ("os.cpus (): \ n", os.cpus ());
     कंसोल.लॉग ("os.arch (): \ n", os.arch ());
     कंसोल.लॉग ("os.networkInterfaces (): \ n", os.networkInterfaces ());

Node.js कमांड प्रॉम्प्ट खोलें और निम्न कोड चलाएँ:

     नोड os_example2.js


Node.js OS Example 2

In this example, we are including remaining functions. Create a file named os_example2.js having the following code:

File: os_example2.js

    const os=require('os'); 
    console.log("os.cpus(): \n",os.cpus()); 
    console.log("os.arch(): \n",os.arch()); 
    console.log("os.networkInterfaces(): \n",os.networkInterfaces());  

Open Node.js command prompt and run the following code:

    node os_example2.js  


Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Node.js Global Objects

 Programing Coderfunda     February 12, 2019     Nodejs-Global-Objects, Nodejs-Hindi     No comments   

ग्लोबल ऑब्जेक्ट्स Node.js - Node.js Global Objects


Node.js वैश्विक वस्तुएँ प्रकृति में वैश्विक हैं और सभी मॉड्यूल में उपलब्ध हैं। आपको इन वस्तुओं को अपने आवेदन में शामिल करने की आवश्यकता नहीं है; बल्कि उन्हें सीधे इस्तेमाल किया जा सकता है। ये ऑब्जेक्ट मॉड्यूल, फ़ंक्शंस, स्ट्रिंग्स और ऑब्जेक्ट आदि हैं। इनमें से कुछ ऑब्जेक्ट वास्तव में वैश्विक दायरे में नहीं हैं, लेकिन मॉड्यूल दायरे में हैं।

वैश्विक वस्तुओं की नोड की सूची नीचे दी गई है:

     __dirname
     __फ़ाइल का नाम
     कंसोल
     प्रक्रिया
     बफर
     setImmediate (कॉलबैक [, arg] [, ...])
     सेटइंटरवल (कॉलबैक, देरी [, arg] [, ...])
     सेटटाइमआउट (कॉलबैक, देरी [, arg] [, ...])
     clearImmediate (immediateObject)
     clearInterval (intervalObject)
     clearTimeout (timeoutObject)

Node.js __dirname

यह एक तार है। यह उस निर्देशिका का नाम निर्दिष्ट करता है जिसमें वर्तमान में कोड है।

फ़ाइल: Global-example1.js

     console.log (__ dirname);

Node.js कमांड प्रॉम्प्ट खोलें और निम्न कोड चलाएँ:

     नोड वैश्विक-example1.js


Node.js __filename

यह कोड के फ़ाइल नाम को निष्पादित करता है। यह इस कोड फ़ाइल का हल निरपेक्ष पथ है। किसी मॉड्यूल के अंदर का मान उस मॉड्यूल फ़ाइल का पथ है।

फ़ाइल: Global-example2.js

     console.log (__ फ़ाइल नाम);

Node.js कमांड प्रॉम्प्ट खोलें और निम्न कोड चलाएँ:

     नोड वैश्विक-example2.js


Node.js कंसोल

कंसोल वर्ग का विवरण प्राप्त करने के लिए यहां क्लिक करें। http://www.javatpoint.com/nodejs-console
Node.js बफर

बफ़र वर्ग का विवरण प्राप्त करने के लिए यहाँ क्लिक करें। http://www.javatpoint.com/nodejs-buffers
Node.js टाइमर कार्य

टाइमर कार्यों का विवरण प्राप्त करने के लिए यहां क्लिक करें। http://www.javatpoint.com/nodejs-timer
 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Node.js Command Line Options

 Programing Coderfunda     February 12, 2019     Nodejs-Command, Nodejs-Hindi     No comments   

Node.js कमांड लाइन विकल्प - Node.js Command Line Options

Node.js. में कमांड लाइन विकल्पों की एक विस्तृत विविधता है। ये विकल्प स्क्रिप्ट और अन्य सहायक रन-टाइम विकल्पों को निष्पादित करने के कई तरीके प्रदान करते हैं।

आइए देखते हैं Node.js कमांड लाइन विकल्पों की सूची: 

सूचकांक विकल्प विवरण

Index Option Description
1. v, --version It is used to print node's version.
2. -h, --help It is used to print node command line options.
3. -e, --eval "script" It evaluates the following argument as JavaScript. The modules which are predefined in the REPL can also be used in script.
4. -p, --print "script" It is identical to -e but prints the result.
5. -c, --check Syntax check the script without executing.
6. -i, --interactive It opens the REPL even if stdin does not appear to be a terminal.
7. -r, --require module It is used to preload the specified module at startup. It follows require()'s module resolution rules. Module may be either a path to a file, or a node module name.
8. --no-deprecation Silence deprecation warnings.
9. --trace-deprecation It is used to print stack traces for deprecations.
10. --throw-deprecation It throws errors for deprecations.
11. --no-warnings It silence all process warnings (including deprecations).
12. --trace-warnings It prints stack traces for process warnings (including deprecations).
13. --trace-sync-io It prints a stack trace whenever synchronous i/o is detected after the first turn of the event loop.
14. --zero-fill-buffers Automatically zero-fills all newly allocated buffer and slowbuffer instances.
15. --track-heap-objects It tracks heap object allocations for heap snapshots.
16. --prof-process It processes V8 profiler output generated using the v8 option --prof.
17. --V8-options It prints V8 command line options.
18. --tls-cipher-list=list It specifies an alternative default tls cipher list. (requires node.js to be built with crypto support. (default))
19. --enable-fips It enables fips-compliant crypto at startup. (requires node.js to be built with ./configure --openssl-fips)
20. --force-fips It forces fips-compliant crypto on startup. (cannot be disabled from script code.) (same requirements as --enable-fips)
21. --icu-data-dir=file It specifies ICU data load path. (Overrides node_icu_data)

  Or in Hindi

सूचकांक विकल्प विवरण
1. v, --version इसका उपयोग नोड के संस्करण को प्रिंट करने के लिए किया जाता है।
2. -h, --help इसका उपयोग नोड कमांड लाइन विकल्प प्रिंट करने के लिए किया जाता है।
3. -e, --eval "script" यह जावास्क्रिप्ट के रूप में निम्न तर्क का मूल्यांकन करता है। REPL में पूर्वनिर्धारित मॉड्यूल का उपयोग स्क्रिप्ट में भी किया जा सकता है।
4. -पी, --प्रिंट "स्क्रिप्ट" यह -ई के समान है, लेकिन परिणाम प्रिंट करता है।
5. -c, -check सिंटैक्स बिना एक्ज़ीक्यूट किए स्क्रिप्ट को चेक करता है।
6. -आई, - इनटेक्टिव एक्टिव यह आरईपीएल को खोलता है, भले ही स्टड एक टर्मिनल के रूप में प्रकट न हो।
7. -r, --require मॉड्यूल इसका उपयोग स्टार्टअप पर निर्दिष्ट मॉड्यूल को प्रीलोड करने के लिए किया जाता है। इसके लिए आवश्यकता है () मॉड्यूल रिज़ॉल्यूशन नियमों की। मॉड्यूल या तो फ़ाइल के लिए एक पथ हो सकता है, या नोड मॉड्यूल नाम हो सकता है।
8. -नो-वंचन मौन deprecation चेतावनियाँ।
9. -ट्रेस-डेप्रिसिएशन का उपयोग डिप्रेसेशन के लिए स्टैक के निशान को प्रिंट करने के लिए किया जाता है।
10. -थो-डेप्रिसिएशन यह डेप्रिसिएशन के लिए एरर फेंकता है।
11. --चेतावनियाँ यह सभी प्रक्रिया चेतावनियों (पदावनत सहित) को मौन करती है।
12. -ट्रेस-चेतावनियाँ यह प्रक्रिया चेतावनियों के लिए स्टैक के निशान (अवक्षेपण सहित) को प्रिंट करती है।
13. -ट्रेस-सिंक-आईआईओ यह एक स्टैक ट्रेस को प्रिंट करता है जब भी इवेंट लूप की पहली बारी के बाद सिंक्रोनस i / o का पता लगाया जाता है।
14. - एक्सो-फिल-बफ़र्स स्वचालित रूप से सभी नव-आवंटित बफर और धीमे आवृत्तियों को शून्य-भरता है।
15. .ट्रैप-हीप-ऑब्जेक्ट्स यह हीप स्नैपशॉट के लिए हीप एलोकेशन को ट्रैक करता है।
16.-prof- प्रक्रिया यह v8 विकल्प का उपयोग कर उत्पन्न V8 प्रोफाइलर प्रक्रियाओं को संसाधित करता है - लाभदायक।
17. - V8- विकल्प यह V8 कमांड लाइन विकल्प प्रिंट करता है।
18. -tls-cipher-list = सूची यह एक वैकल्पिक डिफ़ॉल्ट tls सिफर सूची निर्दिष्ट करता है। (क्रिप्टो समर्थन के साथ नोड.जेएस बनाने की आवश्यकता है। (डिफ़ॉल्ट))
19. -enable-fips यह स्टार्टअप पर फिप्स-कंप्लीट क्रिप्टो को सक्षम बनाता है। (नोड .js के साथ बनाया जाना आवश्यक है ।/configure --openssl-fips)
20. -force-fips यह स्टार्टअप पर कूल्हों-अनुरूप क्रिप्टो बलों को मजबूर करता है। (स्क्रिप्ट कोड से अक्षम नहीं किया जा सकता है।) (समान आवश्यकताएं --enable-fips)
21. --icu-data-dir = file यह ICU डेटा लोड पथ निर्दिष्ट करता है। (अधिप्रदाय नोड_सु_दाता)
Node.js कमांड लाइन विकल्प उदाहरण
चल रहे नोड के संस्करण को देखने के लिए:

Node.js कमांड प्रॉम्प्ट खोलें और कमांड नोड -v या नोड --version चलाएं



Node.js कमांड प्रॉम्प्ट खोलें और कमांड नोड -v या नोड --version चलाएं
 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Node.js Package Manager

 Programing Coderfunda     February 12, 2019     Nodejs-Hindi, Nodejs-Package     No comments   

Node.js पैकेज मैनेजर

नोड पैकेज मैनेजर दो मुख्य कार्यशीलता प्रदान करता है:

     यह नोड.जेएस पैकेज / मॉड्यूल के लिए ऑनलाइन रिपॉजिटरी प्रदान करता है जो search.nodejs.org पर खोजा जा सकता है
     यह Node.js संकुल को स्थापित करने के लिए कमांड लाइन उपयोगिता भी प्रदान करता है, संस्करण प्रबंधन और Node.js संकुल की निर्भरता प्रबंधन करता है।

Npm उस v0.6.3 के बाद संस्करणों में Node.js इंस्टॉलबल्स के साथ बंडल में आता है। आप Node.js कमांड प्रॉम्प्ट खोलकर और निम्न कमांड टाइप करके संस्करण की जांच कर सकते हैं:

 एनपीएम का उपयोग करके मॉड्यूल स्थापित करना

किसी भी Node.js मॉड्यूल को स्थापित करने के लिए सिंटैक्स निम्नलिखित है:

     npm स्थापित करें <मॉड्यूल का नाम>

आइए एक प्रसिद्ध Node.js वेब फ्रेमवर्क स्थापित करें जिसे एक्सप्रेस कहा जाता है:

Node.js कमांड प्रॉम्प्ट खोलें और निम्न कमांड निष्पादित करें:

     npm स्थापित एक्सप्रेस

आप "एक्सप्रेस" ढांचे को स्थापित करने के बाद परिणाम देख सकते हैं।


 वैश्विक बनाम स्थानीय स्थापना

डिफ़ॉल्ट रूप से, npm स्थानीय मोड में निर्भरता स्थापित करता है। यहां स्थानीय मोड उस फ़ोल्डर को निर्दिष्ट करता है जहां नोड एप्लिकेशन मौजूद है। उदाहरण के लिए यदि आपने एक्सप्रेस मॉड्यूल स्थापित किया है, तो उसने वर्तमान निर्देशिका में नोड_मॉड्यूल निर्देशिका बनाई जहां उसने एक्सप्रेस मॉड्यूल स्थापित किया था।


 आप सभी स्थानीय स्तर पर स्थापित मॉड्यूल को सूचीबद्ध करने के लिए npm ls कमांड का उपयोग कर सकते हैं।

Node.js कमांड प्रॉम्प्ट खोलें और "npm ls" निष्पादित करें:

 विश्व स्तर पर स्थापित संकुल / निर्भरता को सिस्टम निर्देशिका में संग्रहीत किया जाता है। आइए वैश्विक स्थापना का उपयोग करके एक्सप्रेस मॉड्यूल स्थापित करें। हालांकि यह भी एक ही परिणाम का उत्पादन करेगा लेकिन मॉड्यूल विश्व स्तर पर स्थापित किया जाएगा।

Node.js कमांड प्रॉम्प्ट खोलें और निम्नलिखित कोड निष्पादित करें:

     npm स्थापित एक्सप्रेस -g

 यहां पहली पंक्ति मॉड्यूल संस्करण और उसके स्थान के बारे में बताती है जहां यह स्थापित हो रहा है।
एक मॉड्यूल की स्थापना रद्द करना


Node.js मॉड्यूल की स्थापना रद्द की गई है। आप निम्न आदेश का उपयोग करके सत्यापित कर सकते हैं:
आप देख सकते हैं कि मॉड्यूल अब खाली है।
एक मॉड्यूल खोज रहा है

"npm खोज एक्सप्रेस" कमांड का उपयोग एक्सप्रेस या मॉड्यूल को खोजने के लिए किया जाता है।





 


 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Node.js REPL

 Programing Coderfunda     February 12, 2019     Nodejs-Hindi, Nodejs-REPL     3 comments   

Node.js REPL

REPL शब्द का अर्थ Read Eval Print और Loop है। यह एक विंडो कंसोल या एक यूनिक्स / लिनक्स शेल जैसे कंप्यूटर वातावरण को निर्दिष्ट करता है जहां आप कमांड दर्ज कर सकते हैं और सिस्टम एक इंटरैक्टिव मोड में आउटपुट के साथ प्रतिक्रिया करता है।
REPL पर्यावरण

Node.js या नोड REPL पर्यावरण के साथ बंडल में आते हैं। REPL पर्यावरण के प्रत्येक भाग का एक विशिष्ट कार्य है।

पढ़ें: यह पढ़ता है उपयोगकर्ता का इनपुट; जावास्क्रिप्ट डेटा-संरचना में इनपुट को पार्स करें और मेमोरी में स्टोर करें।

Eval: यह डेटा संरचना को लेता है और उसका मूल्यांकन करता है।

प्रिंट: यह परिणाम प्रिंट करता है।

लूप: यह उपर्युक्त कमांड को तब तक लूप करता है जब तक उपयोगकर्ता दो बार ctrl-c दबा देता है।
REPL कैसे शुरू करें

आप कमांड प्रॉम्प्ट पर बस "नोड" चलाकर आरईपीएल शुरू कर सकते हैं। यह देखो:

आप REPL Node.js कमांड प्रॉम्प्ट पर विभिन्न गणितीय कार्य निष्पादित कर सकते हैं:
Node.js सरल भाव

REPL नोड कमांड प्रॉम्प्ट शुरू करने के बाद किसी भी गणितीय अभिव्यक्ति को रखें:

     उदाहरण:> 10 + 20-5
     25

  1. Example2: >10+12 + (5*4)/7   
चर का उपयोग करना चर का उपयोग मूल्यों को संग्रहीत करने और बाद में प्रिंट करने के लिए किया जाता है। यदि आप var कीवर्ड का उपयोग नहीं करते हैं तो वैल्यू को वेरिएबल में स्टोर किया जाता है और प्रिंट किया जाता है, जबकि अगर वेरिएबल कीवर्ड का उपयोग किया जाता है तो वैल्यू स्टोर किया जाता है लेकिन प्रिंट नहीं किया जाता है। आप कंसोल.लॉग () का उपयोग करके चर प्रिंट कर सकते हैं। उदाहरण:
 Node.js बहुभाषी भाव

नोड REPL जावास्क्रिप्ट की तरह बहुस्तरीय अभिव्यक्ति का समर्थन करता है। निम्नलिखित करते हुए लूप उदाहरण देखें:

     var x = 0
     अपरिभाषित
     > करो {
     ... x ++;
     ... कंसोल.लॉग ("x:" + x);
     ...} जबकि (x <10);

 Node.js अंडरस्कोर वैरिएबल

अंतिम परिणाम प्राप्त करने के लिए आप अंडरस्कोर _ का भी उपयोग कर सकते हैं।


 Node.js REPL कमांड्स

विवरण वर्णन करता है
ctrl + c वर्तमान कमांड को समाप्त करने के लिए इसका उपयोग किया जाता है।
ctrl + c दो बार यह नोड उत्तर को समाप्त करता है।
ctrl + d यह नोड उत्तर को समाप्त करता है।
अप / डाउन कीज़ का उपयोग कमांड इतिहास को देखने और पिछले कमांड को संशोधित करने के लिए किया जाता है।
टैब कीज़ यह वर्तमान कमांड की सूची को निर्दिष्ट करती है।
.help यह सभी कमांड की सूची को निर्दिष्ट करता है।
.ब्रेक का उपयोग मल्टी-लाइन एक्सप्रेशन से बाहर निकलने के लिए किया जाता है।
.clear का उपयोग बहु-पंक्ति अभिव्यक्तियों से बाहर निकलने के लिए किया जाता है।
.save फ़ाइल नाम यह वर्तमान नोड उत्तर को किसी फ़ाइल में सहेजता है।
.लोड फ़ाइल नाम वर्तमान नोड उत्तर सत्र में फ़ाइल सामग्री लोड करने के लिए उपयोग किया जाता है।


Node.js से बाहर निकलें REPL

Node.js REPL से बाहर आने के लिए दो बार ctrl + c कमांड का उपयोग करें।

 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Node.js Console

 Programing Coderfunda     February 12, 2019     Nodejs-Console, Nodejs-Hindi     No comments   

Node.js कंसोल

Node.js कंसोल मॉड्यूल वेब ब्राउज़र द्वारा प्रदान किए गए जावास्क्रिप्ट कंसोल तंत्र के समान एक सरल डीबगिंग कंसोल प्रदान करता है।

तीन कंसोल तरीके हैं जो किसी भी नोड.जेएस स्ट्रीम को लिखने के लिए उपयोग किए जाते हैं:

     console.log ()
     console.error ()
     console.warn ()

Node.js कंसोल.लॉग ()

कंसोल.लॉग () फ़ंक्शन का उपयोग कंसोल पर सरल संदेश प्रदर्शित करने के लिए किया जाता है।

फ़ाइल: कंसोल_एक्सप्लेन 1। जेएस

     कंसोल.लॉग (। हेलो JavaTpoint ’);

Node.js कमांड प्रॉम्प्ट खोलें और निम्न कोड चलाएँ:

     नोड कंसोल_एक्सप्ले 1.जेएस

हम भी सांत्वना। प्रारूप () समारोह में प्रारूप विनिर्देशक का उपयोग कर सकते हैं।

फ़ाइल: कंसोल_एक्सप्ले 2.जेएस

     कंसोल.लॉग ('हैलो% s', 'JavaTpoint');

Node.js कमांड प्रॉम्प्ट खोलें और निम्न कोड चलाएँ:

     नोड कंसोल_एक्सप्ले 2.जेएस

Node.js कंसोल.error ()

कंसोल। त्रुटि () फ़ंक्शन का उपयोग कंसोल पर त्रुटि संदेश प्रस्तुत करने के लिए किया जाता है।

फ़ाइल: कंसोल_एक्सप्लेन 3.जेएस

     कंसोल। नया (नई त्रुटि ('नर्क! यह एक गलत तरीका है।'));

Node.js कमांड प्रॉम्प्ट खोलें और निम्न कोड चलाएँ:

     नोड कंसोल_एक्सप्लेन 3.जेएस
 
 

Node.js कंसोल.warn ()

कंसोल। चेतावनी () फ़ंक्शन का उपयोग कंसोल पर चेतावनी संदेश प्रदर्शित करने के लिए किया जाता है।

फ़ाइल: कंसोल_एक्सप्ले 4.जेएस

     const नाम = 'जॉन';
     सांत्वना.नार् (`मेरे साथ गड़बड़ मत करो $ {name}! मेरे साथ गड़बड़ मत करो!`);

Node.js कमांड प्रॉम्प्ट खोलें और निम्न कोड चलाएँ:

     नोड कंसोल_एक्सप्ले 4.जेएस
 


 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Node.js First Example

 Programing Coderfunda     February 12, 2019     Node.js First Example, Nodejs-Hindi     No comments   

Node.js पहला उदाहरण


कंसोल-आधारित और वेब-आधारित नोड.जेएस अनुप्रयोग हो सकते हैं।
Node.js कंसोल-आधारित उदाहरण

फ़ाइल: कंसोल_एक्सप्लेन 1। जेएस

     कंसोल.लॉग (। हेलो JavaTpoint ’);

Node.js कमांड प्रॉम्प्ट खोलें और निम्न कोड चलाएँ:

     नोड कंसोल_एक्सप्ले 1.जेएस


 


यहाँ, कंसोल .log () फ़ंक्शन कंसोल पर संदेश प्रदर्शित करता है।
Node.js वेब-आधारित उदाहरण

एक नोड.जेएस वेब अनुप्रयोग में निम्नलिखित तीन भाग होते हैं:

    आवश्यक मॉड्यूल आयात करें: Node.js मॉड्यूल को लोड करने के लिए "आवश्यकता" निर्देश का उपयोग किया जाता है।
    सर्वर बनाएँ: आपको एक सर्वर स्थापित करना होगा जो Apache HTTP सर्वर के समान क्लाइंट के अनुरोध को सुनेगा।
    अनुरोध और वापसी प्रतिक्रिया पढ़ें: दूसरे चरण में बनाए गए सर्वर क्लाइंट द्वारा किए गए HTTP अनुरोध को पढ़ेंगे जो एक ब्राउज़र या कंसोल हो सकता है और प्रतिक्रिया वापस कर सकता है।

नोड बनाने के लिए कैसे। जेएस वेब अनुप्रयोगों

इन कदमों का अनुसरण करें:

    आयात आवश्यक मॉड्यूल: पहला कदम उपयोग करने की आवश्यकता है? HTTP मॉड्यूल को लोड करने और HTTP चर में HTTP उदाहरण को स्टोर करने का निर्देश। उदाहरण के लिए:
        var http = की आवश्यकता है ("http");
    सर्वर बनाएँ: दूसरे चरण में, आपको क्रिएट इंस्टेंस का उपयोग करना होगा और सर्वर इंस्टेंस बनाने के लिए http.createServer () विधि को कॉल करना होगा और फिर सर्वर इंस्टेंस से जुड़ी सुन विधि का उपयोग करके इसे पोर्ट 8081 पर बाँधना होगा। इसे अनुरोध और प्रतिक्रिया मापदंडों के साथ एक फ़ंक्शन पास करें और "हैलो वर्ल्ड" वापस करने के लिए नमूना कार्यान्वयन लिखें। उदाहरण के लिए:
        http.createServer (फ़ंक्शन (अनुरोध, प्रतिक्रिया) {
           // HTTP हेडर भेजें
           // HTTP स्थिति: 200: ठीक है
           // सामग्री प्रकार: पाठ / सादा
           response.writeHead (200, {'सामग्री-प्रकार': 'पाठ / सादा'});
           // प्रतिक्रिया निकाय को "हैलो वर्ल्ड" के रूप में भेजें
           response.end ('हैलो वर्ल्ड \ n');
        ।}) सुनने (8081);
        // कंसोल संदेश को प्रिंट करेगा
        कंसोल.लॉग ('सर्वर http://127.0.0.1:8081/' पर चल रहा है);
    "Main.js" नामक फ़ाइल में step1 और step2 को एक साथ मिलाएं।

    फ़ाइल: main.js
        var http = की आवश्यकता है ("http");
        http.createServer (फ़ंक्शन (अनुरोध, प्रतिक्रिया) {
         // HTTP हेडर भेजें
           // HTTP स्थिति: 200: ठीक है
           // सामग्री प्रकार: पाठ / सादा
           response.writeHead (200, {'सामग्री-प्रकार': 'पाठ / सादा'});
           // प्रतिक्रिया निकाय को "हैलो वर्ल्ड" के रूप में भेजें
           response.end ('हैलो वर्ल्ड \ n');
        ।}) सुनने (8081);
        // कंसोल संदेश को प्रिंट करेगा
        कंसोल.लॉग ('सर्वर http://127.0.0.1:8081/' पर चल रहा है);

अपना सर्वर कैसे शुरू करें:

स्टार्ट मेन्यू पर जाएं और Node.js कमांड प्रॉम्प्ट पर क्लिक करें।
अब कमांड प्रॉम्प्ट खुला है:
 
 
 पथ सेट करें: यहां हमारे पास डेस्कटॉप पर "main.js" फ़ाइल है।

इसलिए कमांड प्रॉम्प्ट पर cd डेस्कटॉप टाइप करें। इसके बाद सर्वर शुरू करने के लिए main.js को निम्नानुसार निष्पादित करें:

node main.js   



अब सर्वर शुरू किया गया है।

Node.js सर्वर से एक अनुरोध करें:

Http://127.0.0.1:8081/ किसी भी ब्राउज़र में खोलें। आप निम्न परिणाम देखेंगे।

 अब, यदि आप "main.js" फ़ाइल में कोई बदलाव करते हैं, तो आपको फिर से "नोड main.js" कमांड चलाने की आवश्यकता है।
 

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Install Node.js on Linux/Ubuntu/CentOS

 Programing Coderfunda     February 12, 2019     Nodejs-Hindi, Nodejs-Install-Linux/Ubuntu/CentOS     No comments   

Linux / Ubuntu / CentOS पर Node.js स्थापित करें

 
हम आसानी से लिनक्स / ubuntu / centOS / fedora / linuxmint आदि पर Node.js स्थापित कर सकते हैं। Linux (Ubuntu) ऑपरेटिंग सिस्टम पर Node.js स्थापित करने के लिए, इन निर्देशों का पालन करें:

1) उबंटू टर्मिनल खोलें (आप शॉर्टकट कुंजियों का उपयोग कर सकते हैं (Ctrl + Alt + T)।


2) टाइप कमांड sudo apt-get install python-software-properties

3) एंटर दबाएं (यदि आपने अपने सिस्टम के लिए पासवर्ड सेट किया है तो यह पासवर्ड मांगेगा)

4) पासवर्ड टाइप करें और एंटर दबाएं


5) टाइप कमांड सुडो एप-ऐड-रिपॉजिटरी ppa: chris-lea / node.js

6) एंटर दबाएं
 


7) फिर से जारी रखने के लिए Enter दबाएँ

8) टाइप कमांड sudo apt-get update (कुछ समय तक प्रतीक्षा करें)
 


9) टाइप कमांड सुडो एप्ट-गेट इनस्टॉल नोडज एनपीएम

10) टाइप कमांड सुडो एप-गेट इनस्टॉल नोडज

स्थापन पूर्ण हुआ। अब आप नोड के संस्करण को नोड --version द्वारा जांच सकते हैं

Npm -v द्वारा npm के संस्करण की जाँच करें

अब आप इस कमांड को टाइप करके अपने इंस्टाल प्रोग्राम लिस्ट में node.js को चेक कर सकते हैं

dpkg --get-selections
 
 
 
 
 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Install Node.js on Windows

 Programing Coderfunda     February 12, 2019     Nodejs-Hindi, Nodejs-Install     No comments   

विंडोज पर Node.js स्थापित करें

 Node.js के लिए एक वातावरण स्थापित और सेटअप करने के लिए, आपको अपने कंप्यूटर पर उपलब्ध निम्न दो सॉफ्टवेयर्स की आवश्यकता होगी:

     पाठ संपादक।
     Node.js बाइनरी इंस्टॉल करने योग्य

पाठ संपादक:

आपके प्रोग्राम को टाइप करने के लिए टेक्स्ट एडिटर का उपयोग किया जाता है। उदाहरण के लिए: नोटपैड का उपयोग विंडोज में किया जाता है, vim या vi का उपयोग विंडोज के साथ-साथ लिनक्स या यूनिक्स पर भी किया जा सकता है। टेक्स्ट एडिटर का नाम और संस्करण ऑपरेटिंग सिस्टम से ऑपरेटिंग सिस्टम तक भिन्न हो सकते हैं।

टेक्स्ट एडिटर के साथ बनाई गई फाइलों को सोर्स फाइल्स कहा जाता है और इसमें प्रोग्राम सोर्स कोड होता है। Node.js कार्यक्रमों के लिए स्रोत फाइलें आमतौर पर एक्सटेंशन ".js" के साथ नामित की जाती हैं।

Node.js रनटाइम:

स्रोत फ़ाइल में लिखा गया स्रोत कोड केवल जावास्क्रिप्ट है। यह व्याख्या और Node.js दुभाषिया द्वारा निष्पादित किया जाता है।

Node.js कैसे डाउनलोड करें:

आप https://nodejs.org/en/ से Node.js की नवीनतम संग्रह फ़ाइल डाउनलोड कर सकते हैं।











Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Features of Node.js

 Programing Coderfunda     February 12, 2019     Nodejs-Features, Nodejs-Hindi     No comments   

Node.js की विशेषताएं

निम्नलिखित Node.js की कुछ महत्वपूर्ण विशेषताओं की एक सूची है जो इसे सॉफ्टवेयर आर्किटेक्ट्स की पहली पसंद बनाती है।

    अत्यधिक तेज़: Node.js Google Chrome के V8 जावास्क्रिप्ट इंजन पर बनाया गया है, इसलिए इसकी लाइब्रेरी कोड निष्पादन में बहुत तेज़ है।
    I / O एसिंक्रोनस और इवेंट ड्रिवेन है: Node.js लाइब्रेरी के सभी API एसिंक्रोनस हैं यानी नॉन-ब्लॉकिंग। तो एक Node.js आधारित सर्वर डेटा वापस करने के लिए कभी भी एपीआई का इंतजार नहीं करता है। सर्वर कॉल करने के बाद अगले API पर जाता है और Node.js के ईवेंट की सूचना तंत्र पिछले API कॉल से प्रतिक्रिया प्राप्त करने में सर्वर की मदद करता है। यह भी एक कारण है कि यह बहुत तेज है।
    सिंगल थ्रेडेड: Node.js इवेंट लूपिंग के साथ सिंगल थ्रेडेड मॉडल का अनुसरण करता है।
    अत्यधिक स्केलेबल: Node.js अत्यधिक स्केलेबल है क्योंकि इवेंट तंत्र सर्वर को गैर-अवरुद्ध तरीके से प्रतिक्रिया करने में मदद करता है।
    कोई बफ़रिंग नहीं: ऑडियो और वीडियो फ़ाइलों को अपलोड करते समय Node.js समग्र प्रसंस्करण समय में कटौती करता है। Node.js अनुप्रयोग किसी भी डेटा को कभी भी बफ़र नहीं करते हैं। ये एप्लिकेशन बस डेटा को चंक्स में आउटपुट करते हैं।
    खुला स्रोत: Node.js में एक खुला स्रोत समुदाय है जिसने Node.js अनुप्रयोगों में अतिरिक्त क्षमताओं को जोड़ने के लिए कई उत्कृष्ट मॉड्यूल का उत्पादन किया है।
    लाइसेंस: Node.js एमआईटी लाइसेंस के तहत जारी किया जाता है।
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

What is Node.js

 Programing Coderfunda     February 12, 2019     Node-Introduction, Nodejs-Hindi, What is Node.js     No comments   

Node.js क्या है


Node.js ब्राउज़र के बाहर जावास्क्रिप्ट अनुप्रयोगों को चलाने के लिए एक क्रॉस-प्लेटफॉर्म रनटाइम वातावरण और लाइब्रेरी है। इसका उपयोग सर्वर-साइड और नेटवर्किंग वेब एप्लिकेशन बनाने के लिए किया जाता है। यह खुला स्रोत है और उपयोग करने के लिए स्वतंत्र है। इसे इस लिंक https://nodejs.org/en/ से डाउनलोड किया जा सकता है

Node.js के कई बुनियादी मॉड्यूल जावास्क्रिप्ट में लिखे गए हैं। Node.js का उपयोग ज्यादातर वास्तविक समय सर्वर अनुप्रयोगों को चलाने के लिए किया जाता है।

इसके आधिकारिक दस्तावेज द्वारा दी गई परिभाषा इस प्रकार है:

? Node.js आसानी से तेज और स्केलेबल नेटवर्क अनुप्रयोगों के निर्माण के लिए क्रोम के जावास्क्रिप्ट रनटाइम पर बनाया गया एक मंच है। Node.js एक घटना-चालित, गैर-अवरुद्ध I / O मॉडल का उपयोग करता है जो इसे हल्के और कुशल बनाता है, जो डेटा-गहन वास्तविक समय अनुप्रयोगों के लिए एकदम सही है जो वितरित उपकरणों के बीच चलता है।

Node.js वेब अनुप्रयोगों के विकास को सरल बनाने के लिए विभिन्न जावास्क्रिप्ट मॉड्यूल की एक समृद्ध लाइब्रेरी भी प्रदान करता है।


    Node.js = Runtime Environment + JavaScript Library   


Node.js के विभिन्न भागों


Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Node.js ट्यूटोरियल In Hindi

 Programing Coderfunda     February 12, 2019     Nodejs-Hindi     No comments   

Node.js ट्यूटोरियल

Node.js ट्यूटोरियल Node.js. की मूल और उन्नत अवधारणाएँ प्रदान करता है हमारा Node.js ट्यूटोरियल शुरुआती और पेशेवर दोनों के लिए डिज़ाइन किया गया है।

Node.js जावास्क्रिप्ट अनुप्रयोगों को चलाने के लिए एक क्रॉस-प्लेटफॉर्म पर्यावरण और पुस्तकालय है जो नेटवर्किंग और सर्वर-साइड एप्लिकेशन बनाने के लिए उपयोग किया जाता है।

हमारे Node.js ट्यूटोरियल में Node.js के सभी विषय शामिल हैं जैसे कि Node.js विंडोज़ और लिनक्स पर स्थापना, REPL, पैकेज मैनेजर, कॉलबैक, ईवेंट लूप, ओएस, पाथ, क्वेरी स्ट्रिंग, क्रिप्टोग्राफ़ी, डीबगर, URL, DNS, नेट आदि। UDP, प्रोसेस, चाइल्ड प्रोसेस, बफ़र्स, स्ट्रीम, फाइल सिस्टम, ग्लोबल ऑब्जेक्ट, वेब मॉड्यूल आदि। Node.js इंटरव्यू प्रश्न भी दिए गए हैं, ताकि आप Node.js तकनीक को बेहतर ढंग से समझने में मदद कर सकें।



 Node.js Index



Node.js Tutorial
  • Node.js Tutorial
  • What is Node.js
  • Node.js Features
  • Install Node.js Windows
  • Install Node.js Linux
  • Node.js First Example
  • Node.js Console
  • Node.js REPL
  • Node.js NPM
  • Node.js CL Options
  • Node.js Globals
  • Node.js OS
  • Node.js Timer
  • Node.js Errors
  • Node.js DNS
  • Node.js Net
  • Node.js Crypto
  • Node.js TLS/SSL
  • Node.js Debugger
  • Node.js Process
  • Node.js Child Process
  • Node.js Buffers
  • Node.js Streams
  • Node.js File System
  • Node.js Path
  • Node.js StringDecoder
  • Node.js Query String
  • Node.js ZLIB
  • Node.js Assertion
  • Node.js V8
  • Node.js Callbacks
  • Node.js Events
  • Node.js Punycode
  • Node.js TTY
  • Node.js Web Modules 


  • Node.js MySQL
  • MySQL Create Connection
  • MySQL Create Database
  • MySQL Create Table
  • MySQL Insert Record
  • MySQL Delete Record
  • MySQL Select Record
  • MySQL Select Unique
  • MySQL Drop Table
Node.js MongoDB
  • Create Connection
  • Create Database
  • Create Collection
  • MongoDB Insert
  • MongoDB Select
  • MongoDB Query
  • MongoDB Sorting
  • MongoDB Remove
Difference
  • Node.js vs AngularJS
  • Node.js vs Python
  • Node.js vs PHP
  • Node.js vs Java
Node.js Express
  • Express.js Tutorial
  • What is Express.js
  • Install Express.js
  • Express.js Request
  • Express.js Response
  • Express.js Get
  • Express.js Post
  • Express.js Routing
  • Express.js Cookies
  • Express.js File Upload
  • Express.js Middleware
  • Express.js Scaffolding
  • Express.js Template
Interview Questions
  • Node.js Interview
  • AngularJS Interview
  • JavaScript Interview
  • jQuery Interview
  • Backbone.js Interview
  • Ember.js Interview
  • Neo4j Interview
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

11 February, 2019

25 PHP Interview Questions and Answers You Must Know

 Programing Coderfunda     February 11, 2019     php, PHP-Interview-Questions     No comments   


Here are some PHP questions and answers for experienced developers (with some beginner concepts covered).
 
Do you need to test a developer's PHP skills or have an internal PHP interview?

Some of the best developers in our network share their best PHP questions, answers and interview tips to help test a developer's knowledge and PHP experience.

If you are the one who interviews PHP developers, keep in mind that you should also ask these interview questions about a developer's experience and interview questions to test communication and management skills, or simply consult our Detailed Guide to hire PHP developers.

Without further ado, let's jump!
PHP interview tip # 1

     "One of the most important things that I observe is the creativity of the person I interviewed. I try to catch developers who constantly learn new things, are motivated by curiosity and are also very creative, not only in solving problems, but also in general. I mainly ask about PHP and PostgreSQL (I use this combo most of the time). "
 
PHP Interview Question 1

What is the difference between the include () and require () functions?
 
 
Then, the process of the file, and the goes out of specific and may include, the clinic will cost you in the bear, if that can be included in the table, when it is said to involve as far as it can be to jump up to the next level and the next step will pass to execute the sentence.
 
How can we get out of a client is the IP address?

This problem may candidate to create and show you how playful is because there are not many options. $ _SERVER [ 'REMOTE_ADDR "]; the easy solution is not able to write only the question of the candidate's line of x.
 
PHP Interview Question # 3

What is the difference between the unset () and unlink ()

unset () sets variable "end" while unlink () deletes a file from the file system must pass.

PHP Interview Question # 4

Why is it that the output of code:

$ A = '1';
$ & $ A = b;
B $ = "$ 2 B ';
$ voice by ".". $ B;

PHP developer Laszlo Surý Sea

Tip # 2 PHP Interview

    "During an interview of a candidate ask potential to understand how they are updated with the new language features a very basic level of understanding. In my opinion, this is a good developer to define what may happen in the future." ~ Agli pancreatic: Lead Developer

PHP Interview Question # 5

The error of such as differ principally in PHP, and see that this figure

PHP in three main types of errors:

    3 - simple, non-critical errors that were not met, and it is executed. Under The data are not accessing an undefined variable.

    Warning - mistakes rather than earlier, but the execution's continue. Many, therefore, does not include () a file that does not exist.

    Fatal - this type of termination of this error leads to death, since it is occurs. An example of the largest losses we'll be accessing it from nothing into something, or require () is not a revision.

The understanding of what is going on, however, in the kinds of the error of the developers very happy with it and do not understand the help of the program, and what is meant by debugging to look for.

PHP Interview Question # 6

The crisis sent for blade?

    Buy displays the data submitted as part of the URL: After this information, as it's shown encoded by the petition.
    Buy can handle a maximum of 2048 characters POST has to subnavigation.
    Only the ASCII characters suffer me to the knowledge of GET, POST has, consist of no exceptions, is not given and granted to binary.
    To retrieve information when you get is normally used, and update the log to match.

HTTP protocol is most important is that the fundamentals for the PHP developer, and the difference is an essential part of it having been summoned by pretiosive Post.

PHP Interview Question # 7

How to control the error reporting php?

Check if "display_errors" is equal to "over" in php.ini or do "ini_set ( 'display_errors', 1)" in the script.
Then include "error_reporting (E_ALL)" in the code, to show error messages in all sorts of writing execution.


Question # 8 PHP Interview

What Features?

Features a mechanism that allows you to create reusable code in a place where many languages ​​like PHP inheritance is not supported. And courteously informed from the instantiated, not of his own accord.

Heavy is a powerful developer features that it knows about the language (s) in this work, and to deposit such features.

Question # 9 PHP Interview

Can the value of the constant change in the execution of the letter?

No, because once changed will not be based on declared value with PHP's execution.

PHP Interview Question # 10


You extend determined by the final race?

You are unable even extend fi nal defined also includes the kind of. If you want peace declaration or the kind of child's kind of the same.

PHP Interview Question # 11
What is __construct () and __destruct () PHP in kind are there?

All the ways in which we see things, and have built thee a PHP Constructor Destructor. After the artist once said that a new instance is created in general and to initialize it's the kind of properties. The Destructor method takes no parameters.

Comparable to these two, the white in PHP is to say, should know how to out of it are the basics OCF, in PHP.

PHP Interview Question # 12


In order to get the number of elements in an array?

The count () function is the returning number of elements in the array.

Your understanding array related helper functions, and it is important for the PHP developer.

Agli pancreatic lead developer PHP

PHP Developers tour
PHP developers to find high today.

CodementorX to hire PHP developers for your old team.
 
  


Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

25 PHP Interview Questions and Answers You Must Know

 Programing Coderfunda     February 11, 2019     php, PHP-Interview-Questions     No comments   


Here are some PHP questions and answers for experienced developers (with some beginner concepts covered).
 
Do you need to test a developer's PHP skills or have an internal PHP interview?

Some of the best developers in our network share their best PHP questions, answers and interview tips to help test a developer's knowledge and PHP experience.

If you are the one who interviews PHP developers, keep in mind that you should also ask these interview questions about a developer's experience and interview questions to test communication and management skills, or simply consult our Detailed Guide to hire PHP developers.

Without further ado, let's jump!
PHP interview tip # 1

     "One of the most important things that I observe is the creativity of the person I interviewed. I try to catch developers who constantly learn new things, are motivated by curiosity and are also very creative, not only in solving problems, but also in general. I mainly ask about PHP and PostgreSQL (I use this combo most of the time). "
 
PHP Interview Question 1

What is the difference between the include () and require () functions?
 
 
Then, the process of the file, and the goes out of specific and may include, the clinic will cost you in the bear, if that can be included in the table, when it is said to involve as far as it can be to jump up to the next level and the next step will pass to execute the sentence.
 
How can we get out of a client is the IP address?

This problem may candidate to create and show you how playful is because there are not many options. $ _SERVER [ 'REMOTE_ADDR "]; the easy solution is not able to write only the question of the candidate's line of x.
 
PHP Interview Question # 3

What is the difference between the unset () and unlink ()

unset () sets variable "end" while unlink () deletes a file from the file system must pass.

PHP Interview Question # 4

Why is it that the output of code:

$ A = '1';
$ & $ A = b;
B $ = "$ 2 B ';
$ voice by ".". $ B;

PHP developer Laszlo Surý Sea

Tip # 2 PHP Interview

    "During an interview of a candidate ask potential to understand how they are updated with the new language features a very basic level of understanding. In my opinion, this is a good developer to define what may happen in the future." ~ Agli pancreatic: Lead Developer

PHP Interview Question # 5

The error of such as differ principally in PHP, and see that this figure

PHP in three main types of errors:

    3 - simple, non-critical errors that were not met, and it is executed. Under The data are not accessing an undefined variable.

    Warning - mistakes rather than earlier, but the execution's continue. Many, therefore, does not include () a file that does not exist.

    Fatal - this type of termination of this error leads to death, since it is occurs. An example of the largest losses we'll be accessing it from nothing into something, or require () is not a revision.

The understanding of what is going on, however, in the kinds of the error of the developers very happy with it and do not understand the help of the program, and what is meant by debugging to look for.

PHP Interview Question # 6

The crisis sent for blade?

    Buy displays the data submitted as part of the URL: After this information, as it's shown encoded by the petition.
    Buy can handle a maximum of 2048 characters POST has to subnavigation.
    Only the ASCII characters suffer me to the knowledge of GET, POST has, consist of no exceptions, is not given and granted to binary.
    To retrieve information when you get is normally used, and update the log to match.

HTTP protocol is most important is that the fundamentals for the PHP developer, and the difference is an essential part of it having been summoned by pretiosive Post.

PHP Interview Question # 7

How to control the error reporting php?

Check if "display_errors" is equal to "over" in php.ini or do "ini_set ( 'display_errors', 1)" in the script.
Then include "error_reporting (E_ALL)" in the code, to show error messages in all sorts of writing execution.


Question # 8 PHP Interview

What Features?

Features a mechanism that allows you to create reusable code in a place where many languages ​​like PHP inheritance is not supported. And courteously informed from the instantiated, not of his own accord.

Heavy is a powerful developer features that it knows about the language (s) in this work, and to deposit such features.

Question # 9 PHP Interview

Can the value of the constant change in the execution of the letter?

No, because once changed will not be based on declared value with PHP's execution.

PHP Interview Question # 10


You extend determined by the final race?

You are unable even extend fi nal defined also includes the kind of. If you want peace declaration or the kind of child's kind of the same.

PHP Interview Question # 11
What is __construct () and __destruct () PHP in kind are there?

All the ways in which we see things, and have built thee a PHP Constructor Destructor. After the artist once said that a new instance is created in general and to initialize it's the kind of properties. The Destructor method takes no parameters.

Comparable to these two, the white in PHP is to say, should know how to out of it are the basics OCF, in PHP.

PHP Interview Question # 12


In order to get the number of elements in an array?

The count () function is the returning number of elements in the array.

Your understanding array related helper functions, and it is important for the PHP developer.

Agli pancreatic lead developer PHP

PHP Developers tour
PHP developers to find high today.

CodementorX to hire PHP developers for your old team.
 
  


Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Features CodeIgniter

 Programing Coderfunda     February 11, 2019     codeigniter, Features-CodeIgniter     No comments   

Features CodeIgniter


There is a great demand for the CodeIgniter framework in PHP developers because of its features and multiple advantages. The web application developed on CodeIgniter performs effectively and quickly. Provides an advanced set of aspects for writing from scratch to create a dynamic web application.


Important Features

Free to use

     They are licensed under the MIT license, so they are free to use.
     The MVC pattern follows

     It uses a controller display model that basically separates logic and presentation parts. The request comes to the controller, the database procedure is executed through the form and the output is displayed through the views.

     But in regular PHP language, each page represents MVC which increases the complexity.
     Lightweight

     It's very lightweight. The core CoreIgniter system requires a very small library, and other libraries can be added based on dynamic demand based on your needs. This is why it is very fast and light weight weighted.
     Generate SEO Friendly URLs

     The URLs created by CodeIgniter are friendly and clean. It uses a slide-based approach rather than a standard query approach.
     Integrated Libraries

     Comes with full package libraries that enable all necessary web tasks such as database, form validation, email sending, image manipulation, email sending, etc.


Some other Features

 Security and XSS filtering
      File upload, session management, page numbering, data encryption
      Flexible URI routing
      Zip Encoding Layer
      Error recording
      Full Page Cache
      Site
 

 

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Posts Older Posts Home

Meta

Popular Posts

  • Write API Integrations in Laravel and PHP Projects with Saloon
    Write API Integrations in Laravel and PHP Projects with Saloon Saloon  is a Laravel/PHP package that allows you to write your API integratio...
  • Features CodeIgniter
    Features CodeIgniter There is a great demand for the CodeIgniter framework in PHP developers because of its features and multiple advan...
  • Laravel Breeze with PrimeVue v4
    This is an follow up to my previous post about a "starter kit" I created with Laravel and PrimeVue components. The project has b...
  • Fast Excel Package for Laravel
      Fast Excel is a Laravel package for importing and exporting spreadsheets. It provides an elegant wrapper around Spout —a PHP package to ...
  • Send message via CANBus
    After some years developing for mobile devices, I've started developing for embedded devices, and I'm finding a new problem now. Th...

Categories

  • Ajax (26)
  • Bootstrap (30)
  • DBMS (42)
  • HTML (12)
  • HTML5 (45)
  • JavaScript (10)
  • Jquery (34)
  • Jquery UI (2)
  • JqueryUI (32)
  • Laravel (1017)
  • Laravel Tutorials (23)
  • Laravel-Question (6)
  • Magento (9)
  • Magento 2 (95)
  • MariaDB (1)
  • MySql Tutorial (2)
  • PHP-Interview-Questions (3)
  • Php Question (13)
  • Python (36)
  • RDBMS (13)
  • SQL Tutorial (79)
  • Vue.js Tutorial (68)
  • Wordpress (150)
  • Wordpress Theme (3)
  • codeigniter (108)
  • oops (4)
  • php (853)

Social Media Links

  • Follow on Twitter
  • Like on Facebook
  • Subscribe on Youtube
  • Follow on Instagram

Pages

  • Home
  • Contact Us
  • Privacy Policy
  • About us

Blog Archive

  • September (100)
  • August (50)
  • July (56)
  • June (46)
  • May (59)
  • April (50)
  • March (60)
  • February (42)
  • January (53)
  • December (58)
  • November (61)
  • October (39)
  • September (36)
  • August (36)
  • July (34)
  • June (34)
  • May (36)
  • April (29)
  • March (82)
  • February (1)
  • January (8)
  • December (14)
  • November (41)
  • October (13)
  • September (5)
  • August (48)
  • July (9)
  • June (6)
  • May (119)
  • April (259)
  • March (122)
  • February (368)
  • January (33)
  • October (2)
  • July (11)
  • June (29)
  • May (25)
  • April (168)
  • March (93)
  • February (60)
  • January (28)
  • December (195)
  • November (24)
  • October (40)
  • September (55)
  • August (6)
  • July (48)
  • May (2)
  • January (2)
  • July (6)
  • June (6)
  • February (17)
  • January (69)
  • December (122)
  • November (56)
  • October (92)
  • September (76)
  • August (6)

Loading...

Laravel News

Loading...

Copyright © CoderFunda | Powered by Blogger
Design by Coderfunda | Blogger Theme by Coderfunda | Distributed By Coderfunda