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 3215546
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:11:25+00:00 2026-05-17T15:11:25+00:00

I am interested in building my own php framework for my personal use to

  • 0

I am interested in building my own php framework for my personal use to make my coding life easier. I am doing this as I am fairly (sort of) use to php now, and can’t seem to get use to any framework.

I have an idea of making loads of functions in a .php file. Like I have started to do, sor for the send mail function I have simplified it (for my use):

function sendmail($to, $message, $subject, $from){//USE sendmail($to, $message, $subject, $from)
$headers  = "From:";
$headers .= $from;
$headers .= "\r\n";
$headers .= "Reply-To:";
$headers .= $from;
$headers .= "\r\n";
$headers .= "X-Mailer: Drupal\n";
$headers .= 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 
mail($to, $subject, $message, $headers);
}

This will then be used in a contact form:

sendmail($_POST['to'], $_POST['message'], $_POST['subject'], $_POST['from']);

This mail function works for me.

However, I am not sure at all if this is correct to make a framework like this. I have looked into classes and objects for php but cant seem to understand them as there is no understandable/easy tutorial.

  • 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-17T15:11:26+00:00Added an answer on May 17, 2026 at 3:11 pm

    People are going to tell you to not write your own framework, to use an existing one. Do not listen to them. It is a good learning experience and will help you understand the concepts which will make other frameworks make a lot more sense to you.

    I personally needed to understand 2 things better before being able to use other peoples frameworks (and obviously write my own):

    1. OOP
    2. MVC

    I spent days reading every OOP tutorial on PHP and every tutorial/wiki page on MVC. Then as a learning experience i wrote my own framework. Then i learned from my mistakes and I started from scratch and wrote another framework. I probably wrote 5 versions. Then i decided to try out code igniter. After all the reading and practicing i finally understood it.

    Since then i have only been using other peoples frameworks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm interested in building a Texas Hold 'Em AI engine in Java. This is
I'm interested in building a PC for a car that will boot off of
I'm interested in doing comparisons between the date string and the MySQL timestamp. However,
I'm interested in hearing what approaches people have taken when building a RESTful (or
I am interested in programming for games. I am currently building an iphone game
I am interested in building web applications using Ruby on Rails. I surfed the
Having programmed microcontrollers before and being interested in trying my hand at building an
I've had a new found interest in building a small, efficient web server in
Interested if anyone has used VSTS Database Edition extensively and, if so, which features
I'm interested in seeing a good diff algorithm, possibly in Javascript, for rendering a

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.