Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Send this topic | Print
Topic: WHAT IS WRONG THIS THIS????  (Read 3302 times)
« on: October 19, 2005, 01:39:37 AM »
Israel213 Offline
Newbie

View Profile
*
Posts: 6



Ok, I've uploaded my php "hello world" script(For testing purposes) through ftp and I when I go back into my webshell I now have a php icon (which I assumed was a sign it worked)  But I open that file to view it and it's blank?!!!  Here's the code I'm using:

Code:
<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo '<p>Hello World</p>'?>
</body>
</html>

              What is wrong with this?  I know the code is right.  And I'm pretty sure I've uploaded everything right.  What is wrong? angry
Report to moderator   Logged

 
« Reply #1 on: October 19, 2005, 02:00:02 AM »
Member
gir Offline
Member
Newbie

View Profile
*
Posts: 38



You probably called the file foo.html instead of foo.php.
Report to moderator   Logged
« Reply #2 on: October 19, 2005, 02:32:07 AM »
Israel213 Offline
Newbie

View Profile
*
Posts: 6



No!, I did name it with .php extention!
Report to moderator   Logged
« Reply #3 on: October 19, 2005, 07:28:24 AM »
Member
gir Offline
Member
Newbie

View Profile
*
Posts: 38



Sorry ... misunderstood your post ... I don't know why the file is blank, but I do know that some utilities try to execute the file instead of just uploading it.  My suggestion is to upload the file without the extention.
Report to moderator   Logged
« Reply #4 on: October 19, 2005, 11:01:22 PM »
Israel213 Offline
Newbie

View Profile
*
Posts: 6



No, that did not change anything.  Am I the only one who has this problem?  I've had someone else run my code on another server and it worked fine.  Is there a place to report this kind of stuff?
Report to moderator   Logged
« Reply #5 on: October 20, 2005, 01:13:25 AM »
The Super Moderator
Kistler Offline
The Super Moderator
Global Moderator
Sr. Member

View Profile
*****
Posts: 449



where are you testing this script? free or paid?
Report to moderator   Logged
« Reply #6 on: October 20, 2005, 05:08:31 AM »
Israel213 Offline
Newbie

View Profile
*
Posts: 6



The free one...
Report to moderator   Logged
« Reply #7 on: October 20, 2005, 10:11:33 PM »
Israel213 Offline
Newbie

View Profile
*
Posts: 6



Ok, I just uploaded the same script over here: http://israel.clawz.com/test.php and it works just fine.  So to answer my question,
WHAT'S WRONG WITH THIS?Huh?  Aperently t35's servers!  By the way, this forum blows!  I asked for help before this and nobody ever replied.  That's why I put my subject title in all caps this time.  So to t35 I say "Boooooooooo!"  and good bye!  grin
Report to moderator   Logged
 
Pages: [1]
Send this topic | Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC