Jump to content

[SOLVED] Replace a #


newbtophp

Recommended Posts

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( );
#
}
#
?>
#

Link to comment
https://forums.phpfreaks.com/topic/173171-solved-replace-a/
Share on other sites

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 #.

 

 

Link to comment
https://forums.phpfreaks.com/topic/173171-solved-replace-a/#findComment-912790
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.