PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am newbie with php. I am using cs3 dreamweber and xampp as my server localhost. Inside dreamweber I created index.php and save it in xampp/localhost/test1. The problem is when I run the code there is no any result in my browser. I am using mozilla firefox. Actually I am following step by step with the tutorial. I test my code even using variable and output the result using echo but it doesn't work. I don't know if there is a problem with my xampp or dreamweber. Please help me I am very interested in web development.
I am newbie with php. I am using cs3 dreamweber and xampp as my server localhost. Inside dreamweber I created index.php and save it in xampp/localhost/test1. The problem is when I run the code there is no any result in my browser. I am using mozilla firefox. Actually I am following step by step with the tutorial. I test my code even using variable and output the result using echo but it doesn't work. I don't know if there is a problem with my xampp or dreamweber. Please help me I am very interested in web development.
Did you name your file just test1? You must give it a file extension of .php in order for Apache web server to recognize that it needs to send it to PHP for preprocessing.
Also, and I presume this is common to all XAMMP installations, I believe files need to be in the directory \htdocs, which is the web root, to be viewable in a browser through the http://localhost/ domain.
when you view the page, what happens? do you literally see
'<?php
echo "Hello World";
?>'
In the browser? if so you need to change where you see < into < and > to > in your source and in future develop in code mode, maybe find a better environment for developing your code than dreamweaver.
if not, try viewing the source and paste us what you see.
Thank you to all of you, actually I already solved my problem a while ago. The problem is to my browser mozilla firefox because I tried to open it in IE and it worked it out. I don't know if i have to modify the settings of my firefox.
Hi panic! what would you suggest best environment for developing web using php.
Again thank you so much to all of your best effort.