Results 1 to 5 of 5

Thread: differences in PHP scipts from XP to Ubuntu

  1. #1
    Join Date
    Aug 2008
    Beans
    60
    Distro
    Ubuntu 8.04 Hardy Heron

    differences in PHP scipts from XP to Ubuntu

    Hello,

    I am new to Ubuntu, I am trying to change my working Web server and Web application from a Windows XP sytem over to a Ubuntu LAMP server. Does anyone know of a guide that details the differences between the PHP code from XP to UBuntu. I keep getting all kinds of syntax code errors. I can work through them from top to bottom of the errors and it just starts back over with different line number errors once I get to to bottom. All of this code was working under the XP/Apache server. All help or pointers will be appreciated.

    James in GA,USA

  2. #2
    Join Date
    Oct 2008
    Location
    Goa, India
    Beans
    39
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: differences in PHP scipts from XP to Ubuntu

    If you could answer my questions, I may be able to help you.
    Do you have the package php5-cli installed? Installing it is the first step.

    I don't know much about PHP, so I don't know about compiling, but I think the code should be the same.

  3. #3
    Join Date
    May 2007
    Location
    UK near Bedford
    Beans
    3,483
    Distro
    Ubuntu Development Release

    Re: differences in PHP scipts from XP to Ubuntu

    The ones I found were in in filepaths with / and \ and also the fact that Linux is case sensitive, so again filenames etc need to be correct.
    PC

    To get a terminal command to put its output into a file use this format
    {terminal command} > {filename}

  4. #4
    Join Date
    Jun 2006
    Beans
    157

    Re: differences in PHP scipts from XP to Ubuntu

    also make sure you are running the same version of php on both servers. If you were running php4 on your XP machine and php5 on your new machine, that may cause some issues as well.

  5. #5
    Join Date
    Aug 2008
    Beans
    60
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: differences in PHP scipts from XP to Ubuntu

    Hello Sheto,Peter09 & Jasonlfunk,

    Thank you all for your responses. I did not have PHP5-cli installed in either my Xubuntu laptop or Kubuntu desktop but I installed it in both and still have the same error codes in both. I will go back and check my / \ file paths and the case of each of the files and code to match. I am running PHP5 in all of my systems. Anything else ya'll know of to check?


    Thanks again,

    James in GA,USA

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •