k1ll Posted May 18, 2011 Share Posted May 18, 2011 Ok, first let me say hello, and thanks for viewing this. I do not know very much about PHP at all, and therein lies the problem... I was editing a php document for my friends website. All I was doing was adding a line of code so that his site would include a favicon. I right-clicked on the website and viewed his source, and copied all the code into notepad, added the string of code for the favicon, and uploaded it to his FTP. Unfortunately when I did that I overwrote some of the PHP code I believe...it didn't copy that when I viewed the site source. I want to make it right for my friend and fix his website but I have NOOOO idea what to do... So I have turned to this forum for help... This is my friends website: thcklan . com The "recent topics" and "recent posts" at the top, the "hackers banned from our servers," and the "announcements" no longer update properly... It's like they are frozen at the state they were in when I copied the site's source code... I feel like an utter jack arse for ruining my buds front page. Please, I am asking you from deep within my heart, HELP ME, point me in the right direction, or guide me in some way to make it right to my good friend and fix his site! Quote Link to comment https://forums.phpfreaks.com/topic/236696-serious-help-needed-here/ Share on other sites More sharing options...
QuickOldCar Posted May 18, 2011 Share Posted May 18, 2011 the php file you overwrote is very different from what the browsers html output is that you copied. yes it may have looked the same, but now it doesn't do any functions, you need to find the original version of the php file, it has code in it that is needed for the site to function. php runs code and generates it's final output as html, you never see the php code itself. Quote Link to comment https://forums.phpfreaks.com/topic/236696-serious-help-needed-here/#findComment-1216753 Share on other sites More sharing options...
k1ll Posted May 18, 2011 Author Share Posted May 18, 2011 the php file you overwrote is very different from what the browsers html output is that you copied. yes it may have looked the same, but now it doesn't do any functions, you need to find the original version of the php file, it has code in it that is needed for the site to function. php runs code and generates it's final output as html, you never see the php code itself. thanks for your reply, that much i have found out so far...but i can't find a backup of the file anywhere.... is PHP complicated to learn? can someone with basic html experience learn enough PHP to fix something like that? (in a short amt of time) Quote Link to comment https://forums.phpfreaks.com/topic/236696-serious-help-needed-here/#findComment-1216758 Share on other sites More sharing options...
Zurev Posted May 18, 2011 Share Posted May 18, 2011 The site doesn't look extremely complicated, but even so, without knowing the system it would be difficult/time consuming, and without knowing PHP on top of that, it would definitely take a while. Also it seems part of it is powered by SMF, which could complicate things, though if it's an SMF file you overwrote, you can try and replace it with the same file from that version of SMF. Quote Link to comment https://forums.phpfreaks.com/topic/236696-serious-help-needed-here/#findComment-1216762 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.