473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

File searcher and move a chunk of data

i need a script that will run thru a file and dir. for php files then look for a set 2 lines of code

Expand|Select|Wrap|Line Numbers
  1. <p class="terms"><a href="http://www.what.com/sub/info.html">terms of use</a></p>
  2.  
  3.   </div>
it also has to ignore whitespace
Dec 11 '07 #1
4 1280
eWish
971 Expert 512MB
This is a Perl Forum. Would you like for me to move this thread to the PHP forum? If not then please explain better what you are trying to achieve and show us the code that you have tried.

--Kevin
Dec 11 '07 #2
This is a Perl Forum. Would you like for me to move this thread to the PHP forum? If not then please explain better what you are trying to achieve and show us the code that you have tried.

--Kevin

i was needing a script to look thru the PHP and find the above code and relocate it.

only script language im proficent at these days is winbatch and it is doing some odd things.....
Dec 11 '07 #3
eWish
971 Expert 512MB
Have a look at CPAN for an HTML Parser. After you write your script then post back here if you have troubles.

Also, check out this sticky.


--Kevin
Dec 11 '07 #4
KevinADC
4,059 Expert 2GB
i need a script that will run thru a file and dir. for php files then look for a set 2 lines of code

Expand|Select|Wrap|Line Numbers
  1. <p class="terms"><a href="http://www.what.com/sub/info.html">terms of use</a></p>
  2.  
  3.   </div>
it also has to ignore whitespace
What have you tried so far?
Dec 11 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Chris | last post by:
Can anybody help. I need to read a txt file backwords line by line. Can anybody help me do this. Thanks Chris
7
by: flamesrock | last post by:
Hi, As a newbie to the language, I have no idea where to start..please bare with me.. The simcity 4 savegame file has a png image stored at the hex location 0x80. What I want to extract it...
10
by: J. Campbell | last post by:
OK...I'm in the process of learning C++. In my old (non-portable) programming days, I made use of binary files a lot...not worrying about endian issues. I'm starting to understand why C++ makes...
2
by: JamesT | last post by:
Does anyone know how to get the information from a Wave File Header in VB.NET (or VB6). I need to check the sample rate for the correct value. JamesT
4
by: Henk | last post by:
Hi, I am new to the c-programming language and at the moment I am struggling with the following: I want to read a file using fread() and then put it in to memory. I want to use a (singel)...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
1
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
1
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C programming. FYI Although I have called this...
7
by: souravmallik | last post by:
Hello, I'm facing a big logical problem while writing a parser in VC++ using C. I have to parse a file in a chunk of bytes in a round robin fashion. Means, when I select a file, the parser...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.