SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2004
    Location
    EU
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Help ! I need help starting up on Php !

    Hiya,

    Ok, I really need help now.
    I want to learn Php programming.
    I use windows but I guess the Php scripts I write will be running on Unix/Linux since most webservers of this world are Uniz/linux.

    Now, my question is :

    Since there are 2 Php versions (one for Windows and one for Unix/Linux) then will that cause any trouble ?
    I mean, the tutorials out there, is there a windows tutorial version and a Unix/Linux tutorial version ?
    If I read the Windows tutorials and the source codes from it then will they work in webservers under Unix/Linux and vice-versa ?

    Frankly, I am stuck !
    I do a search on google and many websites come-up and one says do this and another says do that.
    So, what should I do ?
    Where do you recommend I go to download and install Php ?
    I know, I can always use my webhost's server to upload the Php codes and experiment there but that would mean me losing a lot of band-width while "experimenting" and that's why I preferred to download and install Php on my own computer (Windows) but I am worried that the codes that will work on Windows (my computer) might not work on Unix/Linux (my website).
    Actually, I can't afford to learn 2 versions of Php (one WIndows and one Unix/Linux) because it is hard enough to learn one version (syntax) in the first-place.
    So, what do you all suggest ?
    I definietly need help here as I am totally stuck and don't know what to do.
    I would like to come-up with
    my own "Compression Algorithm"
    so you can now show streaming videos
    and lengthy animations.

  2. #2
    SitePoint Guru
    Join Date
    Jul 2004
    Location
    Raleigh, NC
    Posts
    783
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by onauc
    I use windows but I guess the Php scripts I write will be running on Unix/Linux
    so do i. that's why the language is considered 'cross-platform'. you can write it on any box and run it on any other box. the version of php you install on win xp will be the windows version and the one you install on linux will be the unix version. also, customize your ini files per box. however the scripts themselves do not change

    the only differences will be when you have things that are treated differently in the 2 platforms. ex: \n is the *nix new line. \r\n is the windows newline. \r is the mac new line. also, if your script refers to a file and uses windows backslashes to refer to a directory, this will not work on *nix

    other than with these few things, your scripts should migrate back and forth seemlessly

  3. #3
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Neverneverland
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think that it depends on the complexity of your PHP programming. I know that it is tough to define where the "complexity" lies but in essence, your codes can be ported into both OS environments fine.

    I strongly advise testing, testing and then more testing when you move stuff over though.

    It's always the little little discrepancies stuff that kills you. Darchangel mentions one.

    Also check the phpinfo() configurations for differences.


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
  •