Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5970327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:21:33+00:00 2026-05-22T20:21:33+00:00

I am normally an ASP.NET developer who wants to migrate to PHP. I am

  • 0

I am normally an ASP.NET developer who wants to migrate to PHP. I am taking quite a time to learn it and I am wondering how to use libraries in PHP?

Do I need to use require or include to import a library into my project to use the classes, functions etc. defined in the library? Or something else.

I running PHP on the Apache web server what I’ve found is for Zend Server and it looked weird to me.

Can someone explain me overall steps to import and start using libraries in my own code?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:21:34+00:00Added an answer on May 22, 2026 at 8:21 pm

    You can use both.

    Require will throw a fatal error if the file is not found.

    require('lib.class.php');
    

    You could use include if you need to continue the script even if the file couldn’t get loaded.

    Like:

     if (!include('lib')) {
       doWhatever();
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Normally in an ASP.NET view one could use the following function to obtain a
I am normally a .NET developer so have no experience with classic ASP. I
I have build a simple website with ASP.NET C#. It runs normally after I
It appears like something is stopping my errors from displaying normally an in ASP.NET
So normally I just put my sql connection string in my asp.net web.config and
When my ASP.NET site uses documents (e.g. XML), I normally load the document as
How to assign the link path out of the application in asp.net? Normally the
In ASP.NET MVC you can return a redirect ActionResult quite easily: return RedirectToAction("Index"); or
Is it possible to fetch ASP.NET or PHP code from a webservers .asp/.aspx/.php files
I'm doing a ASP.NET/SQL Server contract project. The client wants to show what's built

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.