Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

php error

Featured Replies

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>

  • 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

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 ;)

  • 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??

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 by andyl

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.