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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:15:31+00:00 2026-05-13T15:15:31+00:00

My normal development platform for PHP is Linux. I use a Red hat server

  • 0

My normal development platform for PHP is Linux. I use a Red hat server for my website, my company uses red hat and Fedora for production, and I have Ubuntu at home. I couldn’t be happier. Unfortunately, I’m now required to spend a good deal of time working in PHP in Windows using WAMP.

I say this is unfortunate because I am continually finding things which Linux supports which Windows does not. Last year, it actually delayed a project when we realized that WAMP used an earlier version of PHP (this has been fixed by the port of 5.3 to Windows). Today, I just learned that checkdnsrr is not ported to Windows, and the entire pcntl library is unavailable.

So, my questions is this: Is there anywhere which tells me the current differences between Windows and Linux regarding PHP?

I’m not looking for idiosyncrasies, such as those found in the comments here (though those would be nice), but rather which functions will not be available under Windows which are available under Linux.

———————– EDIT ————————-

There have been two comments/statments which say thatcheckdnsrr exists in 5.3 under Windows. Technically, this is correct. PHP will not say that the function does not exist. I don’t know if this is the case with all installs or just WAMP, but while yes, it may say that it works, the function does not work as it does in Linux.

——————— UPDATE ———————-

It does not look like there is a good answer possible to this question, but I have found a workaround thanks to one of the suggestions below:

Place this on the production environment. REMEMBER TO FORCE SOME FORM OF SECURITY ON THIS.

 <?php print_r( get_defined_functions() ); ?>

Then run this on the dev environment. it will output all of the functions which are exclusive to the local environment.

$root = file_get_contents( "<path to server>/available.php" );
$root = preg_replace( "/\[[0-9]{1,4}\]\s=>\s/", ( '' ), $root );
$tmp  = '"internal" => array';
$root = explode( "\n", substr( $root, strpos( $root, $tmp ) + strlen( $tmp ) + 1 ) );
array_shift( $root );
array_shift( $root );
$internal = get_defined_functions();
$internal = $internal[ "internal" ];

function trim_array( array $root )
{
    $nroot = array();
    foreach( $root as $key=>$value )
    {
          $value = trim( $value );
          if( !preg_match( "/^[a-zA-Z_]*[aeiouy]+[a-zA-Z0-9_]*$/", $value ) && 
              !preg_match( "/^[a-zA-Z_]*(md5|crc|n12|str|sqrt|ch[a-z]?r|dl|tnt|ftp|png)[a-zA-Z_]*$/", $value ) )
          {
                //echo "\n $key ";
          }
          else
          {
             $nroot[] = $value;
          }
    }

    return $nroot;
}

$root     = trim_array( $root );
$internal = trim_array( $internal );

$diff = array_values( array_diff( $root, $internal ) );
foreach( $diff as $key => $fname )
{
      if( in_array( $fname, $root ) )
      {
            echo "[$key] => $fname <= foreign server only";
      }
      else
      {
            echo "[$key] => $fname <= local";      
      }
      echo "\n";
}
  • 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-13T15:15:32+00:00Added an answer on May 13, 2026 at 3:15 pm

    I have no idea if a site like you ask for exists, but you can use these methods to find out about a PHP installation:

    • get_defined_functions() — Array of all defined functions
    • get_loaded_extensions() — Array with the names of all modules compiled and loaded
    • get_extension_funcs() — Array with the names of the functions of a module

    It’s somewhat difficult to say: this is available on Windows and this isn’t on a general basis for often functions depend on the PHP version and this can just as much affect any OS.

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

Sidebar

Ask A Question

Stats

  • Questions 435k
  • Answers 435k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Macros do only simple text manipulation, i.e. they are very… May 15, 2026 at 3:27 pm
  • Editorial Team
    Editorial Team added an answer The documentation has the examples you need. May 15, 2026 at 3:27 pm
  • Editorial Team
    Editorial Team added an answer Never mind, I figured it out. Turns out that even… May 15, 2026 at 3:27 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.