php unix and windows?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yang Li Ke

    php unix and windows?

    Hi guys,
    What should I do to make sure a script actually working well on unix/linux
    would also work on windows ?

    Thanx
    --
    Yang


  • Jerry Sievers

    #2
    Re: php unix and windows?

    "Yang Li Ke" <yanglike@sympa tico.ca> writes:
    [color=blue]
    > Hi guys,
    > What should I do to make sure a script actually working well on unix/linux
    > would also work on windows ?[/color]

    Um...

    Test it on Windows.

    :-)


    --
    -------------------------------------------------------------------------------
    Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
    305 321-1144 (mobile http://www.JerrySievers.com/

    Comment

    • CTO

      #3
      Re: php unix and windows?


      Normally scripts will work well on Windows which worked on Linux. Only
      scripts which need external programms are difficult to port.

      Christoph


      Jerry Sievers wrote:[color=blue]
      > "Yang Li Ke" <yanglike@sympa tico.ca> writes:
      >
      >[color=green]
      >>Hi guys,
      >>What should I do to make sure a script actually working well on unix/linux
      >>would also work on windows ?[/color]
      >
      >
      > Um...
      >
      > Test it on Windows.
      >
      > :-)
      >
      >[/color]

      Comment

      • Reply Via Newsgroup

        #4
        Re: php unix and windows?

        Yang Li Ke wrote:
        [color=blue]
        > Hi guys,
        > What should I do to make sure a script actually working well on unix/linux
        > would also work on windows ?
        >
        > Thanx[/color]


        Off the top of my head - Pathnames would help/are important though its
        been a long time since I've run Apache/PHP on a Windoze environment.

        Other than path names, the only other thing I can think of might be
        problems from writing a script in an Apache/PHP environment and then
        hoping it runs on an IIS environment. Or, you might have various
        libraries compiled in on your linux environment that are not available
        to your windoze environment.

        Lastly, you've not said what version of windoze - I'm sure there are
        folks around here using PHP on an M$ environment that might help if you
        were sharing this info with them.

        laters
        randelld

        Comment

        • R. Rajesh Jeba Anbiah

          #5
          Re: php unix and windows?

          "Yang Li Ke" <yanglike@sympa tico.ca> wrote in message news:<VI84c.471 62$6y1.1489002@ news20.bellglob al.com>...[color=blue]
          > Hi guys,
          > What should I do to make sure a script actually working well on unix/linux
          > would also work on windows ?[/color]

          Usually not much unless if your script uses *nix only functions.
          For these functions, you can usually find the workaround in the user
          notes (example: <http://in.php.net/getmxxr> ).

          You can add such fixes in the common include file say config.php.
          You may use the handly function_exists ()
          <http://in.php.net/function_exists > in the workaround.

          --
          "Democracy: Where all citizens are politicians and all politicians
          are citizens"
          Email: rrjanbiah-at-Y!com

          Comment

          Working...