Hey, Trying to get some help and I'd figure I'd turn to the lovely members of the DP community. Your help would be most appreciated and I am known to give rep where it's due: I am just trying to download a wordpress theme for my sites and here is my code, apparently there is an error in the 4th line: <?php /* Short and sweet */ define('WP_USE_THEMES', true); require('./wp-blog-header.php'); ?> PLEASE HELP!!! What/how can i fix this?
What does the error say? I am assuming you want to use your word press theme in an external PHP file. It may perhaps be because you simply have the wp-blog-header.php file in a different directory. Put the actual relative path to the file in the require line <?php /* Short and sweet */ define('WP_USE_THEMES', false); require('/the/path/to/your/wp-blog-header.php'); ?>
What itcn said. GoDaddy uses some different absolute paths unlike cPanel and I think its something like: /home/content/1/2/3/username/html/location/of/wp-blog-header.php 1/2/3 are the first three letters in your username IE /home/content/u/s/e/username/html/
For security reasons some hosts don't allow you to use the mappath. You can try the following In your root directory (where your index.php file is create a new file called test.php open test.php add the following line: echo realpath('test.php'); View the test.php in your web browser. You will get the direct path to your home directory. Add this path (minus test.php) in replace of the ./ Sounds a bit confusing but what you need to do is find the exact path to the file to call it. You may have to update all of your wordpress files to use this system.
Thanks for the help guys I'll try these tips out but I deleted all my old files buy I never changed the path files so I'll download the wordpress theme again and try out what you mentioned.