Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
annoying apache problem
#1
i have been having trouble with php when I try to use it in a webpage it shows the script as if it is txt and it wont exec it what should i do?
Reply
#2
Does that happen on a local computer or on a web host.
If it's locally open yout httpd.conf file and find/add
Code:
DefaultType application/x-httpd-php
AddType application/x-httpd-php .php .phtml

It can also happen when you use windows default Notepad that the file is saved as name.php.txt
Reply
#3
well im on ubutu 9.04 and the script is javascript
[/php]
Reply
#4
(10-20-2009, 05:06 PM)jfmherokiller Wrote: well im on ubutu 9.04 and the script is javascript

Wait are you telling me that you have saved a JavaScript file as .php
JavaScript files need to be saved with .js not .php
Reply
#5
There is no need for the Javascript file to be saved as .php; .php is for PHP files =|
[Completely Honest. Seriously.]

Protip: Anonymous Reputation Points are for Pussies
Reply
#6
(10-20-2009, 05:09 PM)NinjaGeek Wrote: Wait are you telling me that you have saved a JavaScript file as .php
JavaScript files need to be saved with .js not .php
i set all files that were .js.php to .js but it is still occuring
nvm i figured it out i think the page is corrupted
Reply
#7
...The page is corrupted, right.
[Completely Honest. Seriously.]

Protip: Anonymous Reputation Points are for Pussies
Reply
#8
nope i restored the page and now it tells me the same thing
but it says The following code needs to be included in the php:
<script language='Javascript' src="http://localhost/beef/hook/beefmagic.js.php'></script> and the code is aready in it
i was trying to use the beef framework from the backtrack module
Reply
#9
...Make a HTML page with that in it.
[Completely Honest. Seriously.]

Protip: Anonymous Reputation Points are for Pussies
Reply
#10
(10-21-2009, 03:18 AM)manipulate Wrote: ...Make a HTML page with that in it.

do what manipulate said...
slowly getting better
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Apache 2.2 and PHP 5.2.11 Gonzo 3 1,147 10-27-2010, 08:01 PM
Last Post: haphazard
  Installing .php, mysql and apache on Ubuntu [Help] haphazard 0 671 10-27-2010, 08:00 PM
Last Post: haphazard
  Apache + MyBB + co.cc? ßeowulf 18 3,603 01-02-2010, 07:03 PM
Last Post: Grizzly
  Apache Fail. manipulate 0 649 10-30-2009, 04:23 AM
Last Post: manipulate

Forum Jump:


Users browsing this thread: 9 Guest(s)