HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
php string for html code HELP!
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
html_rookie126



Joined: 10 Jun 2007
Posts: 1

PostPosted: Sun Jun 10, 2007 4:16 pm     php string for html code HELP! Reply with quote

I am attempting to drop a simple line of code into my webpage. It doesn't work.

This is the code that the news site says that I need to drop into my page to make it work:

<?php $r=@file_get_contents("http://bymnews.com/photos/get_photo.php?nb=248&nb=5"); if ($r===false) { echo("Server down"); } else { echo $r;} ?>

I got it from their website: http://www.bymnews.com/html/Webmaster.html

It doesn't work for me, so what am I doing wrong? Am I not supposed to copy that code into the body of my html-code?

-rook.
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Mon Jun 11, 2007 10:03 am     Reply with quote

Is the test page hosted online?
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial