annoying apache problem - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36) +---- Forum: Web Server Support and Setup Help (https://www.supportforums.net/forumdisplay.php?fid=37) +---- Thread: annoying apache problem (/showthread.php?tid=1889) |
annoying apache problem - jfmherokiller - 10-20-2009 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? RE: annoying apache problem - Gaijin - 10-20-2009 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 It can also happen when you use windows default Notepad that the file is saved as name.php.txt RE: annoying apache problem - jfmherokiller - 10-20-2009 well im on ubutu 9.04 and the script is javascript [/php] RE: annoying apache problem - Gaijin - 10-20-2009 (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 RE: annoying apache problem - manipulate - 10-20-2009 There is no need for the Javascript file to be saved as .php; .php is for PHP files =| RE: annoying apache problem - jfmherokiller - 10-20-2009 (10-20-2009, 05:09 PM)NinjaGeek Wrote: Wait are you telling me that you have saved a JavaScript file as .phpi 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 RE: annoying apache problem - manipulate - 10-20-2009 ...The page is corrupted, right. RE: annoying apache problem - jfmherokiller - 10-20-2009 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 RE: annoying apache problem - manipulate - 10-21-2009 ...Make a HTML page with that in it. RE: annoying apache problem - haphazard - 10-27-2010 (10-21-2009, 03:18 AM)manipulate Wrote: ...Make a HTML page with that in it. do what manipulate said... |