GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 08-Jul-2008, 16:31
Dangmnx Dangmnx is offline
New Member
 
Join Date: Jul 2008
Posts: 9
Dangmnx is on a distinguished road

How can I display this code onto my front page?


how can i make this page display on my frontpage: http://www.dangmn.net/dn/news/news.php


its my blog but i have no idea how to put it on my page.
  #2  
Old 08-Jul-2008, 22:35
Howard_L Howard_L is offline
Regular Member
 
Join Date: Apr 2007
Location: Maryland/PA, USA
Posts: 803
Howard_L is a jewel in the roughHoward_L is a jewel in the roughHoward_L is a jewel in the rough

Re: how can i display this code onto my frontpage


What is "this page"?
Your message doesn't make much sense...
  #3  
Old 08-Jul-2008, 22:43
Dangmnx Dangmnx is offline
New Member
 
Join Date: Jul 2008
Posts: 9
Dangmnx is on a distinguished road

Re: how can i display this code onto my frontpage


oops, ok well sorry.

here is the link to my webpage.

http://www.dangmn.net

in there i am currently using an Iframe for my blog. i'm am asking is there a way to display that blog there without using an Iframe?
  #4  
Old 09-Jul-2008, 00:00
Dangmnx Dangmnx is offline
New Member
 
Join Date: Jul 2008
Posts: 9
Dangmnx is on a distinguished road

Re: how can i display this code onto my frontpage


okay so, i have just copy and pasted the code below between the <body> and </body> but it still doesnt show up!!!


<? $tpath = "/home/dangmnne/public_html/dn/news/"; include($tpath . "news.php"); ?>




did i do it right?
  #5  
Old 09-Jul-2008, 00:29
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 841
admin will become famous soon enough

Re: how can i display this code onto my frontpage


Maybe if you paste the script for your homepage (http://www.dangmn.net/dn/home.html) here we can troubleshoot this issue better. Unless you want the contents of http://www.dangmn.net/dn/news/news.php
in a variable, include()/require() should work.

<edit>
I just noticed that your homepage is a .html document and not a PHP script.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #6  
Old 09-Jul-2008, 00:32
Dangmnx Dangmnx is offline
New Member
 
Join Date: Jul 2008
Posts: 9
Dangmnx is on a distinguished road

Re: how can i display this code onto my frontpage


so it should look like this,

<?php
$tpath = "(/home/(dangmnne)/(public_html)/dn/news/";
include("dn/news.php");
?>

??im really sorry i'm new at this !!
  #7  
Old 09-Jul-2008, 00:41
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 841
admin will become famous soon enough

Re: how can i display this code onto my frontpage


Don't be sorry for being new.

The question now is: is your homepage (http://www.dangmn.net/dn/home.html) a PHP script or simply a HTML document? If it is a HTML document, then pasting PHP scripts inside it will do absolutely nothing.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #8  
Old 09-Jul-2008, 00:55
Dangmnx Dangmnx is offline
New Member
 
Join Date: Jul 2008
Posts: 9
Dangmnx is on a distinguished road

Re: How can I display this code onto my front page?


oh yes my homepage is in the dn/home.html



so if it wont do anything, what can i do to make it display???
  #9  
Old 09-Jul-2008, 01:03
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 841
admin will become famous soon enough

Re: How can I display this code onto my front page?


Well, you can copy the contents of http://www.dangmn.net/dn/home.html into a new document and save it as http://www.dangmn.net/dn/home.php, and where you want your 'news' to appear, you would simply paste the PHP script. I'll give you an example below:

PHP Code:

<?php ?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title> Dang Nguyen | thinking outside of the box</title>
<meta name="rating" content="General">
<meta name="distribution" content="global">

<!-- ... some markup removed ...-->

                                                                  <table border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>

                                                              <td width="453">
                                                                
<?php require( '/home/dangmnne/public_html/dn/news/news.php' ); ?>
                                                                
                                                              </td>
                                                                    </tr>
                                                                  </table>

<!-- .. some more markup removed ... -->

Something like that.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #10  
Old 09-Jul-2008, 01:18
Dangmnx Dangmnx is offline
New Member
 
Join Date: Jul 2008
Posts: 9
Dangmnx is on a distinguished road

Re: How can I display this code onto my front page?


okay, so i open up my oringinal home.html into my frontpage, and copy and paste all of that code into a new page and save it as


home.php


then i just copy and paste,




PHP Code:

<!-- ... some markup removed ...-->

                                                                  <table border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>

                                                              <td width="453">
                                                                
<?php require( '/home/dangmnne/public_html/dn/news/news.php' ); ?>
                                                                
                                                              </td>
                                                                    </tr>
                                                                  </table>

<!-- .. some more markup removed ... --> 







right?
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble integrating console code into GUI Barman007 Java Forum 18 15-May-2008 14:05
How to sort random access file? wmmccoy0910 C Programming Language 12 04-Sep-2006 04:40
Here it is again! 35% - 40% off For Life! my-e-space Web Hosting Advertisements & Offers 0 20-Apr-2006 15:48
Guidelines for posting requests for help - UPDATED! WaltP C Programming Language 0 21-Apr-2005 03:44

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:29.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.