compguru910
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Code appearing in the beginning of all my php filesYep, youve been hacked my friend. I wouldnt say that its your files that arent secure. Most likely its your password, or your web hosting provider. I had the same problem with a couple of my sites with globat. They wouldnt own up to it, so I switched to godaddy, and not a problem since.
Forum: Fixing WordPress
In reply to: Code appearing in the beginning of all my php filesIf this is being added to your pages, its most likely a plugin, or more regrettably a hack. Ive had problems with my websites being hacked and code being placed at the end to add adds in and what not
Forum: Fixing WordPress
In reply to: Code appearing in the beginning of all my php filesWait, so everytime you load a page, this is showing up as text? Or is this showing up actually in the code?
Forum: Fixing WordPress
In reply to: Random ImageIf you put in the ob_start tag, your errors will go away. Its object buffering and kills most problems, but creates a bit of headway on the server, but nothing notable with newer server technologies.
Forum: Fixing WordPress
In reply to: Posting pagesWhere do I put that code? Do I put that code on the page, or do I put that in the wp_list_pages?
Forum: Fixing WordPress
In reply to: Change my password??Not a problem
You can also set up error handling, you know, the basic PHP stuff.
Forum: Fixing WordPress
In reply to: Change my password??it would be in the file wp-config.php. Its in the root directory of wordpress.
Forum: Fixing WordPress
In reply to: WP not recognizing my database passwordWhats the URL of your website. Im pretty good at troubleshooting these things. Does your website come up at all. Are you getting that error only when try to login?
Forum: Fixing WordPress
In reply to: WordPress authentication stand-aloneWell, you would have to make a login with PHP to do that that reads from the wordpress database. It would be really easy to do. Heres an example
if (isset($_POST['submit'])) { $dbc = mysql_connect('database location here, 'username here', password here'); @mysql_select_db('database you installed wp in'); // username and password sent from signup form $username=$_POST['username']; $password = md5($_POST['password']); $query= "SELECT username, password FROM wp_users WHERE user_login = '$username' AND user_pass = '$password';"; $result=mysql_query($query); // Mysql_num_row is counting table row $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table row must be 1 row print "<p>$count</p>"; if($count==1){ // Register $myusername, $mypassword and redirect to file "login_success.php" $_SESSION['username'] = $username; header ('Location: admin.php'); exit(); }else { echo "<font color=\"red\">Wrong Username or Password</font>"; } } ?>
This will search the wordpress database for a result matching whats in there. So, if you fill in the fields correctly with your own database location, username and password, this code will work. If not, it will tell you that your username and password is wrong. Hope this helps. If you need help, just email me.
Forum: Fixing WordPress
In reply to: Random ImageYou need to start object buffering in order to do that, thats what the error is. In the header, before any headers are inputted (like sessions or whatnot) you need to put in the code
<? ob_start; ?>
at the very very top of the header (before the <head> even)
and at the bottom of the footer put<? ob_end_flush; ?>
Figured that would help