PHP Include Working on My Server, Not on My Clients

Discussion in 'PHP' started by rochow, Jun 28, 2008.

  1. #1
    Ok, so this is doing my head in. I'm a Wordpress coder, I've worked with PHP includes tons. I did a theme on my server using PHP includes for the ad sections (so they are easy to update for the client). I put his ad code in on mine to show him its working, he sends payment I send him the files, he puts it on his server - and they don't work.

    So:
    - All the code is the same
    - All files are set to 777 permissions (both mine+his server)
    - Ad code is the same

    His old theme used PHP includes using the same style and everything, and they work. Its as if something in the theme itself is stopping PHP includes from working, which is ridiculous...

    The problem is when JS is entered (It's done from the WP Admin section, same as how I updated mine no problems). I can enter text and hit Save, and it'll work. I enter JS, hit save, and then it says "the connection was reset while the page was loading" (Firefox error message) I would say its his host, except his old theme worked...

    I suggested he do the ad on his computer, then upload. When that happens, it outputs this (on the site):
    That to me looks like it could be the editor he used, it isn't a "pure" PHP file it has all this colour+font stuff at the front of it.

    So... wtf?
     
    rochow, Jun 28, 2008 IP
  2. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #2
    Solved it - it was the text editor!

    Bizarre
     
    rochow, Jun 28, 2008 IP
  3. David Pankhurst

    David Pankhurst Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    It's rich text format output - possibly he loaded into WordPad and exported wrong.
     
    David Pankhurst, Jun 28, 2008 IP
  4. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #4
    He was using TextEdit on Mac
     
    rochow, Jun 28, 2008 IP
  5. David Pankhurst

    David Pankhurst Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    Got it - he set the wrong format
    docs.info.apple.com/article.html?path=TextEdit/1.4/en/te18.html
     
    David Pankhurst, Jun 28, 2008 IP