SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Non-Member lostseed's Avatar
    Join Date
    Sep 2005
    Location
    Zurconion Soon!
    Posts
    1,549
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question LocalHost Problem, PHP not parsing - (let me explain)

    I tried a couple news posting scripts, no I am not using MySQL and
    I do not have MySQL configured on my LOCAL:Apache. Its simply scripts
    that require a CHMOD 777 to several files, and it writes/rewrites to files
    in a directory. Im wondering why it doesn't work locally but it does online?

    I usually get a large amount of mumbo jumbo that appears as unparsed
    PHP, though Im not sure. Error log reports no errors.

    Im trying to run CuteNews (cutephp.com) locally.
    Is this kind of stuff purely for online?

  2. #2
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    London
    Posts
    248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's no fundamental difference between running on apache on your pc, and running on apache "online".

    Can you post some of your mumbo jumbo so that we can have a look?
    Have you even been able to run PHP scripts on your PC? (i.e., is it configured to parse php?)

  3. #3
    Non-Member lostseed's Avatar
    Join Date
    Sep 2005
    Location
    Zurconion Soon!
    Posts
    1,549
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have PHP includes all over the place, I run a few scripts locally but nothing like search or get file rewrites.

  4. #4
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    London
    Posts
    248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you post some of your mumbo jumbo so that we can have a look?

  5. #5
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    open your php.ini

    make sure that
    short_open_tag = On

    in php.ini a semi colon ; comments out a line, so if you see
    ;short_open_tag = On

    make sure to uncomment that line.



    restart webserver(reboot) if you made a change.

    now you realize why you should always use full php tags <?php instead of short tags <? or <?=


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
  •