Hi all,
I know it's been forever since I've posted, but I've been around, and silently learning again. I've been working on a few projects and just ran into my first PHP coding error I can't figure out.
I am working on a blog site, and have been changing a few things around. I was doing pretty good, till I went to change a title from "top 10 web hosting" to "Work at Home Resources".
This is the error I'm getting: Parse error: syntax error, unexpected T_LNUMBER, expecting '(' in /home/tomorrow/public_html/wp-content/themes/HostingPress/functions.php on line 2
And this is the coding:
<?php
function work at home resources(){
include (TEMPLATEPATH . "/workathomeresources.php");}
function featured(){
include (TEMPLATEPATH . "/FeaturedNews.php");}
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
?>
Okay, I made another change, and now have a third error. The other two errors are gone, so I know I'm working on the right line. Now I'm getting Parse error: syntax error, unexpected '-', expecting '(' in /home/tomorrow/public_html/wp-content/themes/HostingPress/functions.php on line 2 and the only thing I have change is line two, so that it now reads function work-at-home-resources(){
Is there a file somewhere that I am missing in editing?
I'm not exactly sure what I am forgetting to put back in, or what I'm leaving out on line 2. Any ideas or suggestions would be awesome!
Oh, and if your curious, and you want to see where and what I've been up to lately, you can check out our
This was edited after I fixed one error and got a different one.