newbtophp Posted September 4, 2009 Share Posted September 4, 2009 I've got some code, and when its echo'd it looks fine, but when i copy and paste it into notepad i get # after each line. Is their a way i can remove it?, I tried str replace but it effects other parts of the code, maybe regex? # { #<<< See that? ( _SITE_TITLE, "Maintenance mode is active!" ); # } # } # if ( _CRONJOBS == "NO" && trim( $_GET['browser'] ) != 1 ) # { # $main->cronjobs( ); # } # foreach ( $loadedPlugins as $plugin ) # { # $$plugin->main( ); # } # ?> # Quote Link to comment Share on other sites More sharing options...
bundyxc Posted September 4, 2009 Share Posted September 4, 2009 You should send us the offending code that's making the pound signs... Quote Link to comment Share on other sites More sharing options...
newbtophp Posted September 4, 2009 Author Share Posted September 4, 2009 You should send us the offending code that's making the pound signs... Im using curl to fetch the offending code, so i have no power over that, i think the reason why it shows # between every line is because the code is meant to be contained in a code box with numbering (like on the main phpfreaks tutorial site) an since im using curl the style and formatting has disappeared which has caused their to be #. Quote Link to comment Share on other sites More sharing options...
freddyw Posted September 4, 2009 Share Posted September 4, 2009 I use scite. I believe other editors offer this option. go to edit > find. and type # in the find box. you should have the option to replace all # with whatever you type in the second box. leave that blank and select replace all. it should remove every # Quote Link to comment Share on other sites More sharing options...
newbtophp Posted September 5, 2009 Author Share Posted September 5, 2009 Solved i did strip_tags Quote Link to comment Share on other sites More sharing options...
bundyxc Posted September 5, 2009 Share Posted September 5, 2009 With what parameters? 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.