NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Using the Debugger


Joined: 17 Jan 2011
Posts: 1
Reply with quote
Hi,

I'm a newbie and I apologize in advance for the simplicity of my question. I ran across NuShere's PhpED while trying to figure out why I couldn't get my simple php scripts to execute in my Explorer browser. I'm taking a begining PHP course at a local Community College, and we post our scripts to their server, and then run the URL through our browser.

I've had 2 weeks of the class, and I've never done any kind of programming before. I have absolutely no background knowledge of HTML. We're using a book by Larry Ullman titled, "Visual Quickstart Guide PHP". In the second chapter there is discussion about assigning values to variables. The code below is used for demonstration.

I couldn't get it to execute, so I ran the debugger. It showed an arrow and highlighted line 9 (<?php // Script 2.3 - variables.php). I cannot figure out what is wrong with that line of script. Is there a way to get specific information through the debugging operation that describes the error?

Thank you very much!

<!DOCTYPE html PUBLIC "-//W3C//DTDXHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Variables</title>
</head>
<body>
<?php // Script 2.3 - variables.php

// An address:
$street = "100 Main Street";
$city = "State College";
$state = "PA";
$zip = 16801;

//Print the address.
print "<p>The address is:<br />$street <br />$city $state $zip</p>";

?>
</body>
</html>
View user's profileFind all posts by scottySend private message


Joined: 18 May 2006
Posts: 61
Reply with quote
Nothing wrong with script.
By default PhpEd stop on first line of code when run with debugger.
This may be disabled by unchecking "Stop on the first line after run" checkbox in Settings > Run&Debug.

BTW, why you can't just execute script?
Just try to press Ctrl-F9 shortcut in PhpEd, should run seamlessly.
View user's profileFind all posts by mdegtyarevSend private message
Using the Debugger
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic