iPixel Posted November 23, 2009 Share Posted November 23, 2009 On page tap.php i call a function... <?php include('tap_functions.php'); DivisionTotals($who, $branchid, $search_callcat, $search_sDate, $search_eDate, $search_ext); ?> Then in tap_functions.php <?php DivisionTotals($DT_who, $DT_branchid, $DT_callcat, $DT_sDate, $DT_eDate, $DT_ext) // Line 4 { echo "HELLO"; } ?> And i get error : Parse error: parse error in C:\Inetpub\wwwroot\Newton\tap_functions.php on line 4 whic is the first line in tap_function.php What's going on here? Quote Link to comment Share on other sites More sharing options...
taquitosensei Posted November 23, 2009 Share Posted November 23, 2009 What's on lines 1,2 and 3 of tap_functions.php? Quote Link to comment Share on other sites More sharing options...
iPixel Posted November 23, 2009 Author Share Posted November 23, 2009 Absolutely nothing.. just space away from the <?php for neatness and readability. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted November 23, 2009 Share Posted November 23, 2009 Function definitions need the function keyword at the start of them. Quote Link to comment Share on other sites More sharing options...
iPixel Posted November 23, 2009 Author Share Posted November 23, 2009 HAHAHA im an idiot! TY!!! Quote Link to comment Share on other sites More sharing options...
taquitosensei Posted November 23, 2009 Share Posted November 23, 2009 I wouldn't put any spaces before the <?php that could cause problems further on down the road in case you ever need to send headers. That would stop you in your tracks. You can add whitespace after <?php all you want. Just not before. Quote Link to comment Share on other sites More sharing options...
iPixel Posted November 23, 2009 Author Share Posted November 23, 2009 Taquitosensei... thanks! My files start like so... <?php Stuff goes here ?> I like to put line breaks between things to keep it slightly spread apart for easy reading. PS: how do i mark solved topic on this new Forum version? Quote Link to comment 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.