Jump to content

php problem


allan08

Recommended Posts

I am having problems in using php cause whenever i try to open the php scripts on the web browser it opens the same script that i have already written on my notepad. I think the problem is in my php folder somewhere but i can't seem to figure it out because im only a newbie when it comes to php. I try to open my script on my web browser and in the script i only use html tags and it worked. But when i try to use php tags i get the same scipt written in my script that i have created before opening and running the scripts in my web browser. I need help ASAP.........................ASAP.
Link to comment
Share on other sites

Sounds like you don't have php installed or it's not set up properly. If you don't have php/mysql/apache installed, just download wampserver.

[a href=\"http://www.en.wampserver.com/\" target=\"_blank\"]http://www.en.wampserver.com/[/a]
Link to comment
Share on other sites

If you want to run your php scripts you need to store them in the folder that is viewable by the webserver, for WAMP it C:\wamp\www, then you go to [a href=\"http://localhost/filename.php\" target=\"_blank\"]http://localhost/filename.php[/a]

You cannot run a php file like can with a html where you double click it and it opens up in your defualt web browser. Web browsers only understand client side code which is HTML, CSS and Javascript. It doesn't know what PHP is and so it displays it in the browser window. PHP is server side code and so requires a web server that has PHP installed on it inorder for the PHP code to be parsed.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.