The Daily Click ::. Forums ::. General Chat ::. PHP to write to a website
 

Post Reply  Post Oekaki 
 

Posted By Message

JP



Registered
  07/06/2003
Points
  1338
14th September, 2005 at 01:25:18 -

How can I use PHP to add in extra html when the page renders?

I have a comment that I want to put in my friend's myspace, but it's over the 2000 char. limit.

So, can i have some kind of little php script or sommin that will take the text from somewhere else and write it into the HTML code?

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
14th September, 2005 at 01:45:19 -

JS can do it with document.write(), that's probably the simplest way.

 
n/a

JP



Registered
  07/06/2003
Points
  1338
14th September, 2005 at 02:31:44 -

So what exactly do i put?

document.write(www.peermag.com/myfiles/myspace/code.css) ?

what other tags and stuff do i need?

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
14th September, 2005 at 04:35:49 -

It needs to go inside a script tag (you shouldn't need to specify script type). I can't remember exactly what goes in the parentheses if you're pulling it from a url. I'd check, but I just got back from happy hour.

 
n/a

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
14th September, 2005 at 12:13:03 -

If the webhost supports PHP, I think you can just do
include("http://blah.server.com/file.html");
can't you?

 
191 / 9999 * 7 + 191 * 7

Deleted



Registered
  16/01/2004
Points
  32

VIP Member
14th September, 2005 at 12:35:41 -

Javascript is disabled on Myspace. Personally I'd put it in an IFrame:

<IFRAME src='yourwebsite.html' width='400' height='350' marginwidth='0' marginheight='0' frameborder='0' scrolling='auto'></IFRAME>

Something like that should work. Obviously change the src= to link to an html page somewhere else.

Image Edited by the Author.

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
15th September, 2005 at 12:51:48 -

i think javascript is
@import()

easiest thing to use is html's
<iframe></iframe>


 
My signature is never too big!!!
   

Post Reply



 



Advertisement

Worth A Click