chrisbt123 Posted October 26, 2006 Share Posted October 26, 2006 Hi, I have a problem with my php script. I have put echo tags in there, but they are not showing up. They may as well be comments, they don't display in HTML or in php. Also, I have tried to put the date and time tag in there, but that dosen't show either. Has anybody else had this problem?ThanksChris Link to comment Share on other sites More sharing options...
reportingsjr Posted October 26, 2006 Share Posted October 26, 2006 Maybe if we had the code . Post the code where you are having issues. Link to comment Share on other sites More sharing options...
chrisbt123 Posted October 26, 2006 Author Share Posted October 26, 2006 <?php//Script Made By Chris Button//News Page Is NOT Free Software//Admin Email chrisbt123@talktalk.net////////////////////////////////////////////////////////////////////////////////////////////////////////////echo $txt="This is compspares news!!!";?><html> <body><b><div align="center"><u><i><h2>Welcome to Compspares News!!!</h2></i></u></div align></b><br><br><b>Welcome to compspares news! This is a beta edition, as it is our first edition. Andwe only have one coder, that's Shaun's son, Chris, this is because shaun can't code tosave his life. it saves clogging up the index page with all the news. Oh, just thoughtI'd tell you this page is coded in HTML, chris is learning CSS so site will look alot neater soon!</b><?phpecho date("Y/m/d");echo "<br />";echo date("Y.m.d");echo "<br />";echo date("Y-m-d");?>I have broke it down as much as i can, but those php tags DO NOT show up. Any ideas? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 26, 2006 Share Posted October 26, 2006 How are you looking at the page? Are you saving it to a server, and then browsing to it? Or are you just double-clicking on the file and opening it that way? Or through some preview mode? Link to comment Share on other sites More sharing options...
chrisbt123 Posted November 3, 2006 Author Share Posted November 3, 2006 sorry for the delay in response...i am saving it in notepad as a html file then viewing it / previewing it from the desktop, where i have saved it. Link to comment Share on other sites More sharing options...
MinusMyThoughts Posted November 3, 2006 Share Posted November 3, 2006 you have to save the file as .php...also, if your computer doesn't have PHP running on it (unless you've installed it yourself, it probably doesn't), you have to upload the saved file to a server that supports PHP and view it there......hope that helps!love,jason Link to comment Share on other sites More sharing options...
chrisbt123 Posted November 4, 2006 Author Share Posted November 4, 2006 you have to save the file as .php...also, if your computer doesn't have PHP running on it (unless you've installed it yourself, it probably doesn't), you have to upload the saved file to a server that supports PHP and view it there......hope that helps!love,jasonOK, thanks m8, will try that Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now