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

  • SEARCH
  • Home
  • 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 7909025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:12:48+00:00 2026-06-03T12:12:48+00:00

This question is as simple as the title states. It’s probably been asked hundreds

  • 0

This question is as simple as the title states. It’s probably been asked hundreds of times but I couldn’t find the answer, so sorry.

Basically, I want to get some information from a MySQL database from one of the pages on my website and just want to make sure that it is safe to establish the connection on that page because I obviously don’t want the information about my MySQL database to be compromised.

I know that anyone can view the HTML source of a webpage with the web browser but I wasn’t sure if the same could be done with PHP (variables)…

Thanks in advance

  • 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-06-03T12:12:50+00:00Added an answer on June 3, 2026 at 12:12 pm

    Unless your server is fundamentally broken and serves up the raw PHP code, the only thing end-users ever will see is the OUTPUT of your script. A properly functioning setup will never serve up PHP code.

    If you’re worried about the posibility of a leak, then keep sensitive data in a separate file outside of your document root, and include() it into PHP. It’s no defense against people who have shell access to your server, but it would keep a misconfigured server from leaking that data if the PHP code DOES get served up somehow.

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

Sidebar

Related Questions

all. This question probably has a devilishly simple answer but it has kept me
This question might appear very simple, but i haven't found an answer yet, so
The title of this question might be confusing but the problem is simple. I'm
Hey, Like in title can someone answer this simple question? I need draw line
I realize this question is very likely to have been asked before, but I've
Ok, very simple question this time (though the answer seems elusive for I can't
A simple answer to this super simple question would be great! Here is the
Yes, this is probably yet another greatest-n-per-group question... But I've tried at least a
Greetz, So this is rather a simple question (maybe not a simple answer). I
My question is simple. I am developing a game and, as the title states,

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.