![]() |
|
#1
|
|||
|
|||
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
|
|||
|
|||
Re: how can i display this code onto my frontpageWhat is "this page"?
Your message doesn't make much sense... |
|
#3
|
|||
|
|||
Re: how can i display this code onto my frontpageoops, 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
|
|||
|
|||
Re: how can i display this code onto my frontpageokay 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
|
||||
|
||||
Re: how can i display this code onto my frontpageMaybe 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. |
|
#6
|
|||
|
|||
Re: how can i display this code onto my frontpageso 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
|
||||
|
||||
Re: how can i display this code onto my frontpageDon'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. |
|
#8
|
|||
|
|||
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
|
||||
|
||||
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:
Something like that. |
|
#10
|
|||
|
|||
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:
right? |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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