About DREAMWEAVER

This is a discussion on About DREAMWEAVER within the PHP General forums, part of the PHP Programming Forums category; I'm trying to get rid of all the comments that are in a different language in dreamweaver. Anyone know ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-05-2007
Kelvin Park
 
Posts: n/a
Default About DREAMWEAVER

I'm trying to get rid of all the comments that are in a different language
in dreamweaver.
Anyone know how to do that automatically? I have like 1000 php files with
full of comments in different language. I do not intend on translating them
or doing anything with em, I just wanna get rid of them just like that.
Maybe regular expressions will do? dunno. I'll appreciate any comment.
thanks

Reply With Quote
  #2 (permalink)  
Old 07-05-2007
Robert Cummings
 
Posts: n/a
Default Re: [PHP] About DREAMWEAVER

On Thu, 2007-07-05 at 11:52 -0700, Kelvin Park wrote:
> I'm trying to get rid of all the comments that are in a different language
> in dreamweaver.
> Anyone know how to do that automatically? I have like 1000 php files with
> full of comments in different language. I do not intend on translating them
> or doing anything with em, I just wanna get rid of them just like that.
> Maybe regular expressions will do? dunno. I'll appreciate any comment.
> thanks


In linux you can do something like:

rm `grep -irnE "regex" .`

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
Reply With Quote
  #3 (permalink)  
Old 07-05-2007
Dan Shirah
 
Posts: n/a
Default Re: [PHP] About DREAMWEAVER

There is a "Find and Replace" function in Dreamweaver, but it is very
specific and will only find specific words/tags. If these comments are from
outside of Dreamweaver and it does not recognize them, then it is probably
interpreting them as basic HTML text. And as such there would be no way for
it to know where your comment ended and the code you want to be begins.

Something a little faster but not your ideal solution would be to use the
Find function. This will build a list of all the instances of your comment
code, for instance if you start off all your comments with //. Then you can
double click on the result and it will take you to that line, then just
delete the line.


On 7/5/07, Kelvin Park <kelvinpark86@gmail.com> wrote:
>
> I'm trying to get rid of all the comments that are in a different language
> in dreamweaver.
> Anyone know how to do that automatically? I have like 1000 php files with
> full of comments in different language. I do not intend on translating
> them
> or doing anything with em, I just wanna get rid of them just like that.
> Maybe regular expressions will do? dunno. I'll appreciate any comment.
> thanks
>


Reply With Quote
  #4 (permalink)  
Old 07-05-2007
scott flemming
 
Posts: n/a
Default housekeeping program

Hi,

I have built a server program. This program collects the data from the user.

In the meantime, I have written another program to do housekeeping work:
process user's data, send an alert email and delete old files.

How can I ensure the housekeeping program run 24/7?
If the server is rebooted, how to make this housekeeping program automatically start?

Thanks.

Scott




---------------------------------
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
Reply With Quote
  #5 (permalink)  
Old 07-05-2007
Stut
 
Posts: n/a
Default Re: [PHP] housekeeping program

scott flemming wrote:
> Hi,
>
> I have built a server program. This program collects the data from the user.
>
> In the meantime, I have written another program to do housekeeping work:
> process user's data, send an alert email and delete old files.
>
> How can I ensure the housekeeping program run 24/7?
> If the server is rebooted, how to make this housekeeping program automatically start?


Depends on the operating system. However, this has nothing to do with
PHP so you really ought to be asking on a more appropriate list.

-Stut

--
http://stut.net/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0