wamp php not executing - codes showing in browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omarharghei
    New Member
    • Jan 2014
    • 1

    wamp php not executing - codes showing in browser

    hello, I am having problems connecting my new project to phpmyadmin.
    New project is located under the www folder, when i preview the php file in my browser it only shows the php code but not the design webpage.
    Also, if i try to access the page view the ‘localhost ’ interface, the webpage design is showing but the php scripts are not executing.
    Does anyone know what I am missing? and what I should do to fix this?
    ps: I have another project in my www folder where all the php scripts and previews on browser are working fine.
    Thanks in advance.
    Last edited by Rabbit; Jan 11 '14, 08:54 PM. Reason: Personal links removed
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    when i preview the php file in my browser it only shows the php code but not the design webpage
    you need to call it via the webserver (starting with http://localhost)

    Also, if i try to access the page view the ‘localhost’ interface, the webpage design is showing but the php scripts are not executing.
    how do you know the PHP scripts are not executing? what are the errors you receive (did you check the error log)?


    PS. phpMyAdmin is a web interface for MySQL (i.e. a website), not something a PHP script is supposed to connect to.

    Comment

    Working...