Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.