Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
| Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 25th, 2006, 10:08 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default DISPLAY THE OUT PUT

  I TRY TO USE PHP BUT IT SEEMS THAT NOTHINGS APPEAR IN MY IE..WHAT WAS THE PROBLEM.
 here is the code:

 <HTML>
<HEAD>
<TITLE> My First PHP Program</TITLE>
</HEAD>
<BODY>
<?php
echo "<h1>I'm a lumberjack.</h1>";
echo "<h2>And I'm Okay.";
?>
</BODY>
</HTML>

pls help me!!!!!


  #2 (permalink)  
Old June 26th, 2006, 10:45 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the file should be saved in php format, copy the below tag to notepad, save it as test.php, and this should work:

<?php
echo "<h1>I'm a lumberjack.</h1>";
echo "<h2>And I'm Okay.";
?>



  #3 (permalink)  
Old June 26th, 2006, 10:52 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Not only will the file need to be saved with a php extention, you also need to ensure that you run it through a PHP enabled WebServer. Just viewing the file through IE will bot process the PHP.

Yell if you need more direction on this,

Mike

Mike
EchoVue.com
  #4 (permalink)  
Old June 27th, 2006, 05:05 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

  hi thank you for your opinion

ok...i try the code that you give me but still it doesnt work....yahh thats what my problem..if how should i know if my php gotto run through enabled webserver?.....

jan




Similar Threads
Thread Thread Starter Forum Replies Last Post
out put cyber_kaley20 Beginning PHP 2 October 5th, 2008 07:46 PM
where to put my connectionstring pascali70 C# 10 June 22nd, 2007 05:09 AM
out put file kgoldvas XSLT 3 January 26th, 2006 10:34 AM
Where do i put the code? bph Access 7 February 19th, 2004 02:50 PM
How do I put this into a table? stacy Classic ASP Databases 3 February 3rd, 2004 07:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.