Support Forums

Full Version: annoying apache problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
well im on ubutu 9.04 and the script is javascript
[/php]
(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
There is no need for the Javascript file to be saved as .php; .php is for PHP files =|
(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
...The page is corrupted, right.
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
...Make a HTML page with that in it.
(10-21-2009, 03:18 AM)manipulate Wrote: [ -> ]...Make a HTML page with that in it.

do what manipulate said...