Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie question II :)

Status
Not open for further replies.

Sedai

Programmer
Mar 4, 2001
158
US
i was told that there is php installed on the server im going to use, but it is not in Apache module, so I have to run it as CGI, what does that mean?

I created an empty html page with <head> and <body> and inserted the simplest code
Code:
<?php 
echo &quot;Hello World 1003!&quot;; 
?>
Nothing happened when I uploaded the page and viewed it.
I guess it must be because of the above installation of PHP.
What should I do?

Thanks, and sorry for the stupid question :)

Avendeval


 
.html
and within the page I insert the above code, enclosed in
<?php
... ?>
and all.

thanks. Avendeval


 
Rename it with a .php extension and you should be good to go. The PHP interpreter on the server (the software installed) will know to intervene before the web server sends the page to the user because of the .php extension. Without it, PHP won't even get involved, thus the code isn't working for you.
 
sounded very reasonable, but .... *#$%$^$@* still didnt work. Does the problem have anything to do with the fact that the PHP on this server is NOT installed as Apache module; the system administrator told me I had to &quot;run it as CGI&quot;. Thanks for your help again! Avendeval


 
maybe the server accepts .phtml or another extension. Also it is possible that the server is not configured to read <?php as php, but maybe only asp style is allowed <%.
Why not mail the webmaster or postmaster or technical staff of the people hosting this server? mcvdmvs
-- &quot;It never hurts to help&quot; -- Eek the Cat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top