August 1, 201214 yr hi just started looking at php, i have the lynda.com tutorials, my php was working or one day, now it has just stopped showing what it is supposed to, and also if i put a <br /> inside of the <?php ?> tags it doesnt work below is the code im trying to get to work, when i load it in my browser it just shows nothing, and if i have the <br /> inside the php tags it shows this " "; $va1 = 100; echo $var1; ?> ". below is my code could anyone help me with this, i am also running xampp as my local server <html> <head> </head> <body> <?php $var1 = 10; echo $var1; $my_variable = "Hello World"; $my_Variable ="Hello world again"; echo $my_Variable; echo "<br />"; $va1 = 100; echo $var1; ?> </body> </html>
August 1, 201214 yr Sure you're accessing the file through Apache? ie. http://localhost/your-page.php, not something like file://C:\blah\blah\your-file.php Edited August 1, 201214 yr by andyl
August 1, 201214 yr Author Sure you're accessing the file through Apache? ie. http://localhost/your-page.php, not something like file://C:\blah\blah\your-file.php cheers i knew it was sumhing stupid, was trying to run it through notepad++ rather than localhost
August 1, 201214 yr cheers i knew it was sumhing stupid, was trying to run it through notepad++ rather than localhost No worries. It's still morning, I'll let you off
August 1, 201214 yr Author No worries. It's still morning, I'll let you off got a question for you, is your website done through wordpress or do you hand code it all??
August 1, 201214 yr Wordpress, I just make the theme. I hate the current design - it was a first attempt at a responsive design. Edit: Start off with this theme base - just gets rid of all WP styling so you can start from a fresh canvas as it were. Edited August 1, 201214 yr by andyl
Create an account or sign in to comment