User Profile
Collapse
-
database usage
in a particular coding, i made a complete directory scan and then the files falling under a particular category are stored in a database. However the variable used for storage contains the real path(e.g. C:\wamp\www\exa mple), but the value stored in the database is different because it removes all the '\' from the variable and store a value like C:wampwwwexampl e and thus further usage of the path becomes impossible. The code written for the purpose...Last edited by nabanita; May 6 '10, 02:18 PM. Reason: Earlier I could not properly explain the problem faced in a proper way -
convert a file to hexadecimal equivalent
in C/C++ programming how do I convert a file to ita equivalent hexadecimal equivalent?
further more i would like to know if there is a function that would let me know if a file is exectable. -
scan complete machine
is there a way in C/C++ to sacn the whole computer for executable files?
the process would scan all the folders and sub folders recursively. -
bin2hex()
how does the bin2hex() function works? do it changes the original file to its equivalent hexadecimal form or it copies the file to the buffer and works with it??
In the second case, I would like to know if there is a function or a way that would convert the original file to its hexadecimal form -
facing a strange problem...
in order to scan the complete C drive i wrote a code it is scanning almost all the folders completely however it is leaving out some which can be easily (seperately) opened and sacnned using the same code........... ............... ...........
the code used is pasted below, please suggest me how to rectify my code to solve the problem and go through all the folders not some!
Code:<?php function DirDisply($p)
-
string manipulation
How do I concatenate 2 or more string variables to 1 and then again split the 1 string variable into 2 or more? -
Searching for a pattern in a file
How do i search for a particular pattern within a file? -
read a file n convert it to its hexadecimal equivalent
is there any way in which i could open a file in php to read a file n convert it to its hexadecimal equivalent.. -
traverse through a directry recursively
actually I need to traverse thrugh a directory and find out all the folders and again traverse through those folders and subfolders in that folder to find out all files(executabl e)
I have used the scandir function to traverse through a directory but it does only read the folders in it and I also tried reading those file-folders to get the name of other files usinf fopen but that does not work!
I will be highly obliged, if u could help...
No activity results to display
Show More