Sharan Infotech

Sharan Infotech Sharan Infotech is a website design & development , Office Automation , College and small business E

OUR SERVICES
Being one of the Top Web Design Companies we have years of experience with several satisfied client’s all over the world, in website design, web application development and software customization that enables us to understand and provide better customer satisfaction. Clients earn more business and improve their internal processes with our superior quality and cost effective web design

& development services. Location -
Noida
Services Offered -
Domains | Hosting | Digital Certificates
CMS Website Designing
Ecommerce Development
PHP / JSP Custom Web Development
Software Product Development
Mobile & Social Apps Development
Internet Marketing (SEO | PPC | SMM | Email )

(Sharan Infotech)

     Wishes to all   Sharan infotech team....
02/03/2018

Wishes to all Sharan infotech team....

  Republic Day  # Jai Hind.🇮🇳️🇮🇳️🇮🇳️🇮🇳️🇮🇳️
26/01/2018

Republic Day # Jai Hind.🇮🇳️🇮🇳️🇮🇳️🇮🇳️🇮🇳️

1. Firstly let us understand the concepts of curl, libcurl and PHP/cURL.    curl: A command line tool for getting or sen...
17/01/2018

1.

Firstly let us understand the concepts of curl, libcurl and PHP/cURL.

curl: A command line tool for getting or sending files using URL syntax.
libcurl: a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.
PHP/cURL: The module for PHP that makes it possible for PHP programs to use libcurl.

Now you have an idea of the different terms.
For "PHP/cURL", most of developers also refer it to "curl in PHP", "curl with PHP" and so on. In this tutorial, we will call it "curl in PHP" to follow the common term.
The goal of the task in this tutorial is to use curl in PHP to fetch data from Google, and the searching term which will be sent to Google is "curl".
Let us start the task!

2. the goal

To use curl in PHP is very straightforward. The basic idea of using curl in PHP is

Initialize a curl session
Set various options for the session
Execute and fetch/send data from/to server
Close the session

To complete our goal, the code is simple as




step1: Initialize a curl session use curl_init().
step2: Set option for CURLOPT_URL. This value is the URL which we are sending the request to. Append a search term "curl" using parameter "q=". Set option for CURLOPT_RETURNTRANSFER, true will tell curl to return the string instead of print it out. Set option for CURLOPT_HEADER, false will tell curl to ignore the header in the return value.
step3: Execute the curl session using curl_exec().
step4: Close the curl session we have created.
step5: Output the return string.

3.

Clearly there are more tasks you can do with curl in PHP, this tutorial is almost the simplest way to use it. However you can expand it to perform more tasks such as authentication to a password protected account and fetch data from there.
Areas you may need to look further to perform more advanced tasks are listed below:

curl_error(): For a more advanced system, you should always use curl_error() to check the errors based on the return value(bool) of the curl_exec().
curl_setopt() : There is a large number of options. Take a look at the manual file. This page has a clear explaination of various options.

 # Skills for good developer  # #
27/12/2017

# Skills for good developer # #

 #तुलसी एकादशीनमो भगवते वासुदेवाय नमःSwaroop Sharan Infotech Private Limited
31/10/2017

#तुलसी एकादशी
नमो भगवते वासुदेवाय नमः
Swaroop Sharan Infotech Private Limited

04/10/2017

Looking for a good Android Developer with 1-2 years experience.
Work Location Noida.
Contact 8882180114

सौगंध हमे इस मिट्टी की हम  देश नहीं मिटने देंगे । हम  देश नहीं रुकने देंगे , हम  देश नहीं झुकने देंगे ||
01/10/2017

सौगंध हमे इस मिट्टी की हम देश नहीं मिटने देंगे । हम देश नहीं रुकने देंगे , हम देश नहीं झुकने देंगे ||

23/09/2017
  of  1940 – 1956: First Generation – Vacuum Tubes. These early computers used vacuum tubes as circuitry and magnetic dr...
10/06/2017

of
1940 – 1956: First Generation – Vacuum Tubes. These early computers used vacuum tubes as circuitry and magnetic drums for memory. ...
1956 – 1963: Second Generation – Transistors. ...
1964 – 1971: Third Generation – Integrated Circuits. ...
1972 – 2010: Fourth Generation – Microprocessors.

    is   by EllisLab and now it is taken by British Columbia Institute of Technology. It is the simplest and light-weigh...
22/03/2017

is by EllisLab and now it is taken by British Columbia Institute of Technology. It is the simplest and light-weight PHP framework which lets you create robust web applications in no time. It is greatly appreciated for its speedy performance and smaller learning curve and suitable for highly scalable applications. And even though php codeigniter framework loosely follows Model-View-Controller pattern it doesn’t force it on you. While controller classes are required for application development, the models and view files are purely optional.
For starters, MVC stands for Model, View, Controller. It is a programing pattern used in developing
web apps. This pattern isolates the user interface and backend (i.e. database interaction from each other. A successful
implementation of this lets developers modify their user interface or backend with out affecting
the other. MVC also increases the flexibly of an app by being able to resuse models or views over
again). Below is a description of MVC.
• : The model deals with the raw data and database interaction and will contain functions
like adding records to a database or selecting specific database records. In CI the model
component is not required and can be included in the controller.
• : The view deals with displaying the data and interface controls to the user with.
In CI the view could be a web page, rss feed, ajax data or any other "page".
• : The controller acts as the in between of view and model and, as the name suggests,
it controls what is sent to the view from the model. In CI, the controller is also the place to load libraries and helpers.
An example of a MVC approach would be for a contact form.
1. The user interacts with the view by filling in a form and submitting it.
2. The controller receives the POST data from the form, the controller sends this data to the model
which updates in the database.
3. The model then sends the result of the database to the controller.
4. This result is updated in the view and displayed to the user.

Address

E44, Sector 9
Noida
201301

Alerts

Be the first to know and let us send you an email when Sharan Infotech posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Sharan Infotech:

Share