Private Label and Cobranded VoIP Solutions
BrainCast internet & phone based message/memo recording & reminder organization system
Internet Phone Service and Broadband Phone Service by ViaTalk

Go Back   VoIP Forums, Internet Phone Service Forums, & Web Hosting Forums > CoderForums - Programming Discussion > General Programming Issues > Programming Languages & Technologies > PHP

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-27-2002, 01:36 PM
jalal jalal is offline
Registered User
 
Join Date: Jan 2002
Location: Kenitra, Morocco
Posts: 11
What's going on?

Excuse me but I really don't understand what is wrong with my php file? I upload the following file in public_html:
----------------------
<html>
<head>
<title>Exemple</title>
</head>
<body>
<?php
echo ("Hi, I am a PHP script!");
?>
</body>
</html>
-------------------
and I chmoded it 777 and I made sure public_html was also 777 but I get nothing on the screen when I visit the file from the web!! Can you please tell me what is wrong with this!!!

Thank you for your cooperation
__________________
-------------------------------------
Almaarifa.net
Learn. Collaborate. Your way.
-------coming soon---------------
Reply With Quote
  #2  
Old 01-27-2002, 03:33 PM
Gerry's Avatar
Gerry Gerry is offline
Mainframe Dinosaur
 
Join Date: Jan 2001
Posts: 40
My guess is that you didn't give the file a ".php" file extension.

You shouldn't have to CHMOD to get it to run; just upload to your public_html folder as "hello.php" and it should be fine.
Reply With Quote
  #3  
Old 01-27-2002, 07:46 PM
jalal jalal is offline
Registered User
 
Join Date: Jan 2002
Location: Kenitra, Morocco
Posts: 11
It des have a .php extension

Go the the URL www.almaarifa.net/jalaltrial.php and view the source! You'll be surprised!

Thank u anyway for your answer.

It would be nice if somebody can tell me what is wrong!
__________________
-------------------------------------
Almaarifa.net
Learn. Collaborate. Your way.
-------coming soon---------------
Reply With Quote
  #4  
Old 01-27-2002, 09:49 PM
alan92rttt alan92rttt is offline
Registered User
 
Join Date: Jan 2002
Posts: 12
Send a message via AIM to alan92rttt
My bet is that your .htaccess file is messed up and apache is not calling the PHP preprocessor for your page.
Reply With Quote
  #5  
Old 01-27-2002, 10:02 PM
Gerry's Avatar
Gerry Gerry is offline
Mainframe Dinosaur
 
Join Date: Jan 2001
Posts: 40
Get rid of the junk characters before the <html> tag, and get rid of all the extra spaces in the HTML and PHP tags. The PHP processor probably doesn't recognize < ? p h p ...

If you cut and paste the code exactly as shown in your first post, and make sure you upload in ASCII (not binary) mode, it will probably work fine.
Reply With Quote
  #6  
Old 01-31-2002, 11:47 AM
fanchon's Avatar
fanchon fanchon is offline
Registered User
 
Join Date: Jan 2002
Location: Near Brussels - Belgium
Posts: 10
Exclamation

Try this one :

<?php
include ( " jalaltrial.php " ) ;
?>

Fanchon
__________________
http://www.thegameway.com/
Reply With Quote
  #7  
Old 02-04-2002, 06:33 PM
SpyTech SpyTech is offline
Registered User
 
Join Date: Jan 2002
Location: Spokane, WA
Posts: 3
Send a message via ICQ to SpyTech
Also remember that PHP does not require CHMOD.. Unless you are using PHP to upload a file or write to a file. So no need to CHMOD unlike CGI.
__________________
Danny Dinges

Owner/Founder
SpyTech Designs
spytechdesigns.com
Reply With Quote
Reply

Thread Tools
Display Modes 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

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