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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:35:34+00:00 2026-06-13T14:35:34+00:00

So, say I have 500 strings like: <script>something here</script> get_magic_quotes_gpc( … Say these strings

  • 0

So, say I have 500 strings like:

  • <script>something here</script>
  • get_magic_quotes_gpc(
    …

Say these strings are stored in a database(mysql)

Is Java or Php typically faster for recursively going through directories, subdirectories and finding a string provided by a database?

Could both be equally as fast (based on the quality of the code written) ?

I’ve been trying to look into it, it seems java is quicker, but could php equally as fast if say the strings are stored in a local array instead (and not in a database)?

I’m not trying to create a java vs php war here, but I would like some evidence if one is faster than the other, or if both can be for the most part equally as fast (based on the code written) ?

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-06-13T14:35:35+00:00Added an answer on June 13, 2026 at 2:35 pm

    What you’re looking at here is called premature optimization. Don’t do it. Pick whichever language you know best (or works best for your current project) and go from there.

    Further reading:

    • https://softwareengineering.stackexchange.com/questions/80084/is-premature-optimization-really-the-root-of-all-evil
    • http://en.wikipedia.org/wiki/Program_optimization
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a database containing 500,000 records, each representing, say, an animal. What
Say I have the following string: BlahBlah........1.000 Whatevah....2.000 Something......6.500 ...that is, some text, followed
Say I have something like this (and I do) class QueBean extends JPanel {
I have this table: id feed_id ... Let's say that I have 500 rows
Say I have three tables, a table of users, a table of around 500
Say we have deep hashes like: b = {1 => {2 => {} },
Say i have a few fields like the following: abd738927 jaksm234234 hfk342 ndma0834 jon99322
Say I have a SSI script that uses exec, or a PHP script that
I have to fetch multiple web pages, let's say 100 to 500. Right now
Say I have a string that looks like this: str = The &yquick &cbrown

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.