cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New

Domain will not run .PHP file thats been uploaded.

Hi,

 

I am trying to copy over the files from a defunct website with permissions from the previous owner.

 

I have most of the site up and running however one .php will not run and causes 500 Internal server errors.  Convert the filename to .HTML and the file runs perfectly.  This however would require the editing of some 3000+ files and life is short enough never mind editing 3000+ files to reflect the change to file extension.

 

This is a copy of the source file contents.

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>PAL PlayStation Collective  &raquo; Blog Archive  </title>

<meta name="generator" content="WordPress 2.8.4" /> <!-- leave this for stats -->
<meta name="msvalidate.01" content="5D2E52902F954875A08CAB2FAE6CE0ED" />
<link rel="stylesheet" href="wp-content/themes/PALCollection/style.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="feed/index.rss" />
<link rel="alternate" type="text/xml" title="RSS .92" href="feed/rss/index.rss" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="feed/atom/index.html" />
<link rel="pingback" href="xmlrpc.html" />


	<link rel='archives' title='December 2011' href='2011/12/index.html' />
	<link rel='archives' title='November 2009' href='2009/11/index.html' />
	<link rel='archives' title='October 2009' href='2009/10/index.html' />
	<link rel='archives' title='July 2009' href='2009/07/index.html' />
	<link rel='archives' title='January 2009' href='2009/01/index.html' />
	<link rel='archives' title='December 2008' href='2008/12/index.html' />
	<link rel='archives' title='November 2008' href='2008/11/index.html' />
	<link rel='archives' title='October 2008' href='2008/10/index.html' />
	<link rel='archives' title='September 2008' href='2008/09/index.html' />
	<link rel='archives' title='August 2008' href='2008/08/index.html' />
	<link rel='archives' title='July 2008' href='2008/07/index.html' />
	<link rel='archives' title='June 2008' href='2008/06/index.html' />
	<link rel='archives' title='May 2008' href='2008/05/index.html' />
	<link rel='archives' title='April 2008' href='2008/04/index.html' />
	<link rel='archives' title='March 2008' href='2008/03/index.html' />
	<link rel='archives' title='February 2008' href='2008/02/index.html' />
	<link rel='archives' title='January 2008' href='2008/01/index.html' />
	<link rel='archives' title='December 2007' href='2007/12/index.html' />
	<link rel='archives' title='November 2007' href='2007/11/index.html' />
	<link rel='archives' title='October 2007' href='2007/10/index.html' />
	<link rel='archives' title='September 2007' href='2007/09/index.html' />
	<link rel='archives' title='August 2007' href='2007/08/index.html' />
	<link rel='archives' title='July 2007' href='2007/07/index.html' />
	<link rel='archives' title='June 2007' href='2007/06/index.html' />
	<link rel='archives' title='May 2007' href='2007/05/index.html' />

<link rel='stylesheet' id='NextGEN-css'  href='wp-content/themes/PALCollection/nggallery-ver%3d1.0.0.css' type='text/css' media='screen' />
<link rel='stylesheet' id='thickbox-css'  href='wp-includes/js/thickbox/thickbox-ver%3d20090514.css' type='text/css' media='all' />
<script type='text/javascript' src='wp-includes/js/prototype-ver%3d1.6.js'></script>
<script type='text/javascript' src='wp-includes/js/jquery/jquery-ver%3d1.3.2.js'></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="xmlrpc.php-rsd.xml" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="wp-includes/wlwmanifest.xml" /> 
<link rel='index' title='PAL PlayStation Collective' href='index-2.html' />
<meta name="generator" content="WordPress 2.8.4" />

<!-- All in One SEO Pack 1.6.7 by Michael Torbert of Semper Fi Web Designob_start_detected [-1,-1] -->
<!-- /all in one seo pack -->

<!-- Start Of Script Generated By cforms v11.0 [Oliver Seidel | www.deliciousdays.com] -->
<link rel="stylesheet" type="text/css" href="wp-content/plugins/cforms/styling/submission.css" />
<script type="text/javascript" src="wp-content/plugins/cforms/js/cforms.js"></script>
<!-- End Of Script Generated By cforms -->

<script type="text/javascript" src="index.php-ak_action%3dwp_grins_js.js"></script>

<style type="text/css">#wp_grins img {
	cursor: pointer;
}
</style>
<!--[if IE]>
<style type="text/css">#wp_grins img {
	cursor: hand;
}
</style>
<![endif]-->
	
<meta name='NextGEN' content='1.3.6' />
</head>
<body>

<div id="wrap">

<div id="blogtitle" onclick="location.href='http://www.defconsoft.co.uk/';" style="cursor: pointer;">
<h1 class="blogtitle"><a href="index-2.html"></a></h1>
<!--- Uncomment the line below if you want to display the blog description -->
<!--- <h3 class="description">Everything you want to know about PAL Playstation games</h3> -->
</div>
<div id="navigation">

	<form action="http://kinezu.ro/database.php" method="get">
		<fieldset><b>Search:</b>
			<input value="" name="s" id="s" />
<input type="image" src="wp-content/themes/PALCollection/images/search.gif" name="search" alt="Search" class="button" value="Search:"/>
		</fieldset>
	</form>

	<ul>
				<ul>
				<li><a href="index-2.html">Home</a></li>
                                <li><a href="about-us/index.html" >About Us</a></li>                               
                                <li><a href="links/index.html" >Links</a></li>
                                <li><a href="forums/index.html" >Forums</a></li>
                                <li><a href="database.php.html">Database</a></li>
				</ul>
	</ul>

</div> <div id="blocks">

 
  <div class="block">  
   <ul>

<div class="ngg-widget entry-content">
<a href="wp-content/gallery/gamesp/ps-pointb3.jpg" title="" class="thickbox" rel="sidebar_1"><img src="wp-content/gallery/gamesp/thumbs/thumbs_ps-pointb3.jpg" width="75" height="75" title="ps-pointb3.jpg" alt="ps-pointb3.jpg" /></a>
<a href="wp-content/gallery/gamesr/ps-rainbowsixdp.jpg" title="" class="thickbox" rel="sidebar_1"><img src="wp-content/gallery/gamesr/thumbs/thumbs_ps-rainbowsixdp.jpg" width="75" height="75" title="ps-rainbowsixdp.jpg" alt="ps-rainbowsixdp.jpg" /></a>
<a href="wp-content/gallery/defhardware/HScorpionBits.jpg" title="" class="thickbox" rel="sidebar_1"><img src="wp-content/gallery/defhardware/thumbs/thumbs_HScorpionBits.jpg" width="75" height="75" title="HScorpionBits.jpg" alt="HScorpionBits.jpg" /></a>
<a href="wp-content/gallery/gamest/ps-tonyhawk2.jpg" title="" class="thickbox" rel="sidebar_1"><img src="wp-content/gallery/gamest/thumbs/thumbs_ps-tonyhawk2.jpg" width="75" height="75" title="ps-tonyhawk2.jpg" alt="ps-tonyhawk2.jpg" /></a>
<a href="wp-content/gallery/gamesd/ps-disruptor_g.jpg" title="" class="thickbox" rel="sidebar_1"><img src="wp-content/gallery/gamesd/thumbs/thumbs_ps-disruptor_g.jpg" width="75" height="75" title="ps-disruptor_g.jpg" alt="ps-disruptor_g.jpg" /></a>
<a href="wp-content/gallery/gamesd/ps-donaldduckquacka.jpg" title="" class="thickbox" rel="sidebar_1"><img src="wp-content/gallery/gamesd/thumbs/thumbs_ps-donaldduckquacka.jpg" width="75" height="75" title="ps-donaldduckquacka.jpg" alt="ps-donaldduckquacka.jpg" /></a>
<a href="wp-content/gallery/otherstuff/OUnholyWarCardFront.jpg" title="Unholy War Cards" class="thickbox" rel="sidebar_1"><img src="wp-content/gallery/otherstuff/thumbs/thumbs_OUnholyWarCardFront.jpg" width="75" height="75" title="OUnholyWarCardFront.jpg" alt="OUnholyWarCardFront.jpg" /></a>
</div>

  </ul>   
  </div>


 </div>



  <div id="container">

    <div id="leftnav">
		<ul id="sidebarleft">

<li id="Content"><h2>Defcons Collection</h2><ul>
<li class="page_item page-item-7"><a href="demos/index.html">Demos</a></li>
<li class="page_item page-item-4"><a href="software/index.html">Games</a></li>
<li class="page_item page-item-5"><a href="hardware/index.html">Hardware</a></li>
<li class="page_item page-item-8"><a href="other/index.html">Other Stuff</a></li>
<li class="page_item page-item-491"><a href="defconsoft-room-of-doom/index.html">Room Of Doom Project</a></li>
<li class="page_item page-item-6"><a href="special-editions/index.html">Special Editions</a></li>
</ul>
</li>

<li id="Content"><h2>AtariBuffs Collection</h2><ul>


<li class="page_item page-item-226"><a href="all-pal-games/index.html">All PAL Games</a></li>
<li class="page_item page-item-244"><a href="special-releases/index.html">Special Releases</a></li>
<li class="page_item page-item-246"><a href="the-pal-project/index.html">The PAL Project</a></li>
<li class="page_item page-item-245"><a href="paperwork/index.html">Paperwork</a></li>
<li class="page_item page-item-240"><a href="collectors-gatherings/index.html">Collectors Gatherings</a></li>
</ul>
</li>

<li id="Ads"><h2>Ads</h2><ul><center>

<script language="JavaScript" src="http://ilapi.ebay.com/ws/eBayISAPI.dll?EKServer&amp;ai=d%7F%7Cyut4ycx%7Fhjotq&amp;bdrcolor=111314&amp;catid=38615+15120+3727&amp;cid=0&amp;eksize=11&amp;encode=UTF-8&amp;endcolor=FF0000&amp;endtime=y&amp;fbgcolor=a6a08f&amp;fntcolor=666666&amp;fs=0&amp;hdrcolor=a6a08f&amp;hdrimage=1&amp;hdrsrch=n&amp;img=n&amp;lnkcolor=786541&amp;logo=3&amp;num=25&amp;numbid=y&amp;paypal=n&amp;popup=y&amp;prvd=9&amp;query=rare&amp;r0=4&amp;sacategoryin=38615+15120+3727&amp;shipcost=n&amp;siteid=3&amp;sort=MetaEndSort&amp;sortby=endtime&amp;sortdir=asc&amp;srchdesc=y&amp;tbgcolor=d3cec0&amp;tlecolor=111314&amp;tlefs=0&amp;tlfcolor=000000&amp;toolid=10004&amp;track=5335898536&amp;watchcat=15120&amp;width=570">
</script>
<p>
			
				</center>
</ul>
</li>

<li id="Links"><h2>Links</h2><ul>
<li><a href="http://www.digitpress.com/" title=" Gathering of Collectors">Digital Press</a></li>
<li><a href="http://www.game-rave.com/" title=" Dangerboy&#8217;s Excellent NTSC Playstation Collection">Game Rave (NTSC)</a></li>
<li><a href="http://www.gamesniped.com/" title=" The best source for video game auction links">GameSniped</a></li>
<li><a href="http://www.playstationcollecting.com/">PlaystationCollecting</a></li>
<li><a href="http://www.rfgeneration.com/" title="The Classic and Modern Gaming Databases">RF Generation</a></li>
<li><a href="http://sealedgame.heavenforum.com/" title="Collectors of sealed games">Sealed Game Heaven</a></li>
<li><a href="http://www.vgcollector.com/" title="Video Game Collector Magazine">Video Game Collector</a></li>
</ul>
</li>


<li id="Ebay Search"><h2>Ebay Search</h2><ul><center>
<script language='JavaScript1.1'>
	document.write("<sc"+"ript language='JavaScript1.1' src='http://rover.ebay.com/ar/1/56011/1?campid=5335898538&toolid=56011&customid=&mpt=" + Math.floor(Math.random()*999999999999) + "&adtype=3&size=120x240&def=u7v&n3y=1&p9m=1&v1e=1&x6n=1&m9q=1&z5m=1&l3s=1&b4x=1&k4v=1&y6d=1&u7v=1&a3h=1&mpvc='></sc"+"ript>");
</script>
<noscript>
	<a href='http://rover.ebay.com/rover/1/710-53481-19255-42/1?campid=5335898538&amp;toolid=56011&amp;customid=&amp;def=u7v&amp;n3y=1&amp;p9m=1&amp;v1e=1&amp;x6n=1&amp;m9q=1&amp;z5m=1&amp;l3s=1&amp;b4x=1&amp;k4v=1&amp;y6d=1&amp;u7v=1&amp;a3h=1&amp;mpvc='>
		<img border='0px' src='http://rover.ebay.com/ar/1/710-53481-19255-42/1?campid=5335898538&amp;toolid=56011&amp;customid=&amp;mpt=%5BCACHEBUSTER%5D&amp;adtype=1&amp;size=120x240&amp;def=u7v&amp;n3y=1&amp;p9m=1&amp;v1e=1&amp;x6n=1&amp;m9q=1&amp;z5m=1&amp;l3s=1&amp;b4x=1&amp;k4v=1&amp;y6d=1&amp;u7v=1&amp;a3h=1&amp;mpvc=' alt='Click Here'>
	</a>
</noscript>
</center>

</li>


		</ul>
    </div>


   <div id="content">
   <div id="database">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles.css.html" rel="stylesheet" type="text/css">
</head>

<body>
<!-- BEGIN header -->
<form action="http://kinezu.ro/database.php" method="get">
<a class="a1" href="database.php-games%3d0-9%26clas%3d1.html">0-9</a>&nbsp;<a class="a1" href="database.php-games%3da%26clas%3d1.html">A</a>&nbsp;<a class="a1" href="database.php-games%3db%26clas%3d1.html">B</a>&nbsp;<a class="a1" href="database.php-games%3dc%26clas%3d1.html">C</a>&nbsp;<a class="a1" href="database.php-games%3dd%26clas%3d1.html">D</a>&nbsp;<a class="a1" href="database.php-games%3de%26clas%3d1.html">E</a>&nbsp;<a class="a1" href="database.php-games%3df%26clas%3d1.html">F</a>&nbsp;<a class="a1" href="database.php-games%3dg%26clas%3d1.html">G</a>&nbsp;<a class="a1" href="database.php-games%3dh%26clas%3d1.html">H</a>&nbsp;<a class="a1" href="database.php-games%3di%26clas%3d1.html">I</a>&nbsp;<a class="a1" href="database.php-games%3dj%26clas%3d1.html">J</a>&nbsp;<a class="a1" href="database.php-games%3dk%26clas%3d1.html">K</a>&nbsp;<a class="a1" href="database.php-games%3dl%26clas%3d1.html">L</a>&nbsp;<a class="a1" href="database.php-games%3dm%26clas%3d1.html">M</a>&nbsp;<a class="a1" href="database.php-games%3dn%26clas%3d1.html">N</a>&nbsp;<a class="a1" href="database.php-games%3do%26clas%3d1.html">O</a>&nbsp;<a class="a1" href="database.php-games%3dp%26clas%3d1.html">P</a>&nbsp;<a class="a1" href="database.php-games%3dq%26clas%3d1.html">Q</a>&nbsp;<a class="a1" href="database.php-games%3dr%26clas%3d1.html">R</a>&nbsp;<a class="a1" href="database.php-games%3ds%26clas%3d1.html">S</a>&nbsp;<a class="a1" href="database.php-games%3dt%26clas%3d1.html">T</a>&nbsp;<a class="a1" href="database.php-games%3du%26clas%3d1.html">U</a>&nbsp;<a class="a1" href="database.php-games%3dv%26clas%3d1.html">V</a>&nbsp;<a class="a1" href="database.php-games%3dw%26clas%3d1.html">W</a>&nbsp;<a class="a1" href="database.php-games%3dx%26clas%3d1.html">X</a>&nbsp;<a class="a1" href="database.php-games%3dy%26clas%3d1.html">Y</a>&nbsp;<a class="a1" href="database.php-games%3dz%26clas%3d1.html">Z</a>&nbsp;
<!-- Search button -->
<input type="text" name="search" value="">
<!-- Select release type -->
<select NAME="clas" value="1" onchange="this.form.submit();">
	<option value="1" selected>Normal games
	<option value="2" >Compilations
	<option value="3" >Special releases
</select>
<input type="hidden" name="games" value="">
</form>
<hr>

<!-- BEGIN content -->
<br>
<div id="dbwelcome">
<center><img src="datatitle.png"></center>
<br>
<center><font size="4"><b>Welcome to the complete list of PAL games.</b></font></center>
<p />
Use the bar on the top to navigate. Click on a character from the list to show games starting with that letter, or use the search function to search for a title, or part of title!</p>
<p />
For more detailed instructions please read the <a href="forums/index.php-topic%3d206.0.html">FAQ.</a>
<p />
For any other information or to report any issues please visit the <a href="forums/index.php-board%3d11.0.html">PAL PS1 Database forum</a>.

</div>
<br>
<br>

<hr>

  </div>
  </div><div id="footwrap">
<br><p>                &copy; 2015  of Defcon and AtariBuff. All rights reserved. Powered by 
		<a href="http://wordpress.org/">WordPress</a>  | <a href="feed/index.rss">Entries (RSS)</a>
		and <a href="http://www.defconsoft.co.uk/comments/feed/">Comments (RSS)</a>
                <br />"PlayStation", "PSX", "PSOne" and "PS1" are trademarks of Sony Computer Entertainment Inc (SCEI).
 </div>
</div>
<script type='text/javascript' src='wp-includes/js/thickbox/thickbox-ver%3d3.1-20090123.js'></script>
<!-- Woopra Analytics Code -->
<script type="text/javascript"> var _wh = ((document.location.protocol=='database.php.html') ? "https://sec1.woopra.com" : "http://static.woopra.com");document.write(unescape("%3Cscript src='" + _wh + "/js/woopra.js' type='text/javascript'%3E%3C/script%3E")); </script>
<script type="text/javascript">
</script>
<!-- End of Woopra Analytics Code -->
<script type="text/javascript">tb_pathToImage = "../../www.defconsoft.co.uk/wp-includes/js/thickbox/loadingAnimation.html";tb_closeImage = "../../www.defconsoft.co.uk/wp-includes/js/thickbox/tb-close.html";</script>
<script src="../../stats.wordpress.com/e-201520.js" type="text/javascript"></script>
<script type="text/javascript">
st_go({blog:'1907020',v:'ext',post:'0'});
var load_cmc = function(){linktracker_init(1907020,0,2);};
if ( typeof addLoadEvent != 'undefined' ) addLoadEvent(load_cmc);
else load_cmc();
</script>





 

Any help would be hugely appreciated. 

 

4 REPLIES 4

Re: Domain will not run .PHP file thats been uploaded.

I would suggest using a peace of software that can help you updated the file extensions in one go. I was able to google terms like "batch extension updater" and come up with some good results. The documents will not work as php because the documents are setup as html and would need the necessary opening and closing tags along with the .php extension to work.

Mike L. | WebPro
Anonymous
Not applicable

Re: Domain will not run .PHP file thats been uploaded.

Hi @Pod51

as @Amadeuslopezart pointed out anyone conversant in VIM could easily edit all 3,000 files. There is other software too, but none as powerful as VIM or EMACS. But unless you do it yourself, they would want paid. 

New

Re: Domain will not run .PHP file thats been uploaded.

The problem is that the link on all 3000+ files would still reference the file extension .php.html so the code would need editing to to reflect the changes to .html extension.  There is a copy of the site we are trying to backup currently running and all files have been copied to godaddy subdomain from that soon to finish online backup on a .ro domain.

 

Thats what is the most frustrating part.

New

Re: Domain will not run .PHP file thats been uploaded.

What are you using to upload your files. Also changing the extensions to .html will only break the website since .html (.htm) does not process Server Side Scripting.

 

I believe you are uploading your .php files in a non-binary format.

 

Also this appears to be a WordPress file. Not sure what you are attempting to do by upload it. I'm assuming you already have WordPress configured? Just tossing up files from one site to another is not going to work.

Best regards,
TRI0N