Forum Moderators: mack

Message Too Old, No Replies

PHP Not Showing Up

.htaccess?

         

madcat

2:37 pm on Sep 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



PHP is installed on my hosting account. The admins tested it for me.

PHP does not show up however. I've tried placing a .htaccess file in the WWW directory:

AddType text/css .css
AddType application/x-httpd-php .php4 .php .htm .php3 .inc .html

Still nothing. CHMOD is 644.

What else might it be?

Thanks-

griz_fan

2:57 pm on Sep 3, 2003 (gmt 0)

10+ Year Member



What are the symptoms? Do you get a blank page, a 404 or a server error? Are you sure you've uploaded the files to the correct directory? Can you see plain HTML files? Try uploading a php info file to your web root. Check with your admin. How did he/she test it? No errors during setup=working, or did he/she do an actual test? Without more precise symtoms, we can only guess...

abbeyvet

3:14 pm on Sep 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In case you are unsure what a php info file is, it is just a plain text file, saved with a .php extension and containing the following line:

<? phpinfo();?>

If your host has installed php you really should not need to be doing anything with the .htaccess file. I think get back to them would be the next step.

madcat

3:53 pm on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm using php includes (.inc) files...

These are what fail to show up within the page. Do I need to use .htaccess here?

RonPK

3:57 pm on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>> fail to show up within the page

What exactly are you doing? How are you trying to let your PHP file 'show up within the page'? Have you tried to find out whether PHP is running at all, by using one of the hints in previous postings?

madcat

4:05 pm on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, php is running...

My includes look like this...

<?php
include "inc/thisFile.inc";
?>

madcat

4:19 pm on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Last time I fixed the problem with .htaccess. However, when uploading the same file to the server- when I try to go to the website, it brings up a download box and asks whether to open or save.