Jjebster
- Jan 15, 2009
- Joined Sep 12, 2002
- MarkR wrote:
PHP runs with whatever permission the user or account it's running under has. This applies in Windows, Unix or anything else.
Perhaps you were running PHP under a web server running as a privileged account?
Like I said, it works just the same when running on a restricted account as it does on a administrator account.
MarkR wrote:Alternatively, perhaps those directories were protected using some lame third party windows explorer shell extension that doesn't affect other programs?
If there are 3rd party, they came with WinXP Home, cause I didn't install anything.
MarkR wrote:Were the directories protected by ACLs, Windows file encryption, or something else? If so, what?
No idea, but considering when I copy the files with PHP I can run the files fine, so I doubt there is any encryption.
But try it yourself, even as the admin, try view another admins files (C:/Documents and Settings/Some Other Admin/) and you will get "Access Denied". And my simple C program couldn't read anything in there either, so far, the only thing that I kind find that can, is PHP.
This is not really a coding help kinda post or anything, so I figured I should post it here
Feel free to move it if I am mistaken.
I wrote a simple script once that was simply made to browse the computer it was on, and you could view or copy files and various pointless things like that. But I was playing around with it, and noticed it let me browse directories that normally give you the "Access Denied" error when using explorer to browse them. I could copy files and do whatever I please with PHP. It even worked when I was logged on as a normal user and was browsing an Admins directory. I figured maybe it was just explorer blocking normal attempts to view those directories and PHP didn't recognize that it was restricted or something, so, I (with my limited knowledge) made a simple C program to see if it could access those directories, and the program would just crash(like I said, limited :p) when it tried, but would work fine in non-protected dirs.
This some sorta security vulnerability or what? Or are there other ways to get around it?
This just came back to my attention recently cause WinXP crapped out on me, and won't boot anymore, and my files are in my user dir and I am trying to think of ways of getting my data back :bemused:
Oh, and the directories I am refering to are "C:/Documents and Settings/Username/"
Possible? How?
Cool, thanks
That'll help!
I want to make a spider that crawls a site that relies on cookies. I know how to get the cookies from the site, but say I get response headers something like this
HTTP/1.1 302 Set-Cookie: SOMECOOKIE=cookievalue; expires=Mon, 26 Dec 2005 19:57:10 GMT; path=/ Location: http://someredirect.url
How exactly are the headers I send back suppose to look like?
Like how do I send the cookie back?
thx
- In C...
I use the lastest version of McAfee, Ad-Aware, Spybot, and Spywareblaster... I think the problem is my computer is a piece of crap! LOL It's a Compaq with a 500mhz Celeron proc. 320mb ram, and a nearly full 40gig HD, it's been maybe 2 years since it was last formated and the OS reinstalled cause I have nowhere to put all my data, it only has 1 hard drive bay...
- In C...
Yep, just playing with it right now. I can't do much in C, cause my computer tends to crash after awhile(20 minutes :bemused: ) of using Dev-Cpp, and I don't know of any other good, free IDE's for C. And that is why I am buying a new computer
- In C...
Originally posted by planetsim
You probably should get at least good at a language before moving on.
This is something that may help http://java.sun.com/j2se/1.4.2/docs/api/ its a lot bigger than PHPs Manual.
[edit]
Sorry didnt read the download part of it http://java.sun.com/j2se/1.4.2/download.html#docs
I dont know if its similar layout as the other but you should probably book mark the other link as well.
[/edit]Thanks, and learning a couple at a time isn't hard for me, well, no harder then one at a time(:o), once it's up inside my brain it fine. Besides, I'm just fiddling with Java to see what it's like
- In C...
Well, as long as 40Gigs is enough space I'm good. Cause if I do end up getting a computer, linux is going to get it's own hard drive
Is using linux without a GUI similar to DOS? Cause if it is, then it should be no problem.
And if it is more difficult, I have plenty of time to learn!
I'm playing around with Java(1.4.2_06) right now, and was wondering if it had a manual like the one you can download for PHP in CHM format?
Man soon I am going to be an elite hacker(note: I do not mean cracker) with knowledge I will posses. :rolleyes: :p hehe
- In C...
Originally posted by Weedpacket
Okay, I've got coin denomination 5¢, 10¢, 20¢, 50¢, $1, and $2. To make $1.45 in change using as few coins as possible would use a $1 coin, two 20¢ coins, and one 5¢ coin. $1.55 = $1+50¢+5¢; and 80¢ = 50¢+20¢+10¢.ahh, now I'll get it! I give it a go.
Originally posted by Weedpacket
See? Linux would be a better platform to learn on. These are all capable of describing what they do themselves by means of a command-line switch ("split --help", for example). That help is more of a quick reference/reminder, but they do come with their own manuals which are also accessible from the shell itself (another standard utility is man - "man split" will give you split's manual). There are enough copies of all these manuals up on the web now that Googling for "man split" will generally have much the same effect.
Well, lets just hope I find a computer so I can install linux and leave this MS crap behind
So, C# programs, they won't work on Linux right? Cause I think I'm going to leave MS completely, except for games.. I have had enough headaches from them to last the rest of my life.
- In C...
Originally posted by Weedpacket
As for things to try... Emulate (parts of?) some of the standard shell utilities (cmp, md5sum, sort, nl, uu(en|de)code, split, printf, and cat spring to mind) ... One of the advantages of the utility emulation idea is that you'll have the source code for the real things available (assuming you've got the GNU versions).First I'm going to have to look those up to find out what exactly they do LOL
Originally posted by Weedpacket
a program to make change given a list of currency denominations and a quantity to make from themCan you give me an example of what you mean?
Originally posted by Weedpacket
a program to solve the n-Queens problem (place n Queens on an n×n chessboard so that none attacks any other).:eek: That sounds fun...
Thank you
- In C...
The library here has Sams Teach yourself C in 21days, so I will borrow that, and try to read it through.
Can y'all give me some examples of programs to write? Just like things to try and do? Nothing to basic.. Like "Print 'Hello World'" on the screen, I can do that LOL, a lot of things of various skill levels would be nice...
Perhaps you should look at C# or Java as something more akin to PHP, but a more general purpose language. There's still a steeper learning curve in either though.
I have a couple(3) books on Java.. but I am not much for OO programming. C#, isn't that more OO too? Plus it's MS, and don't you have to pay for tools to program in it?
I do plan on atleast giving my Java books a read, and seeing if I catch on. But I still would like to learn C or a language like it, just not so mean LOL
- In C...
Sigh I just typed out my nice (big) reply to this and my computer pooped out on me.. So I just sent MS a nice little email thanking them for there nice stable OS.... Now to retype it all:
Ugh, that reminds me, in PHP say I wanted to learn something by downloading a script and fiddling with it, it always will work, if the program worked for the guy who wrote it, there is very little chance it won't work for me! In C however, I can't count the number of times I have downloaded programs and gotten dozens of errors when trying to compile them. And I almost always will try them all in Dev-Cpp, djgpp, and lcc-win32. No matter which I use, I almost always get errors.
Those books, would they be worth me spending what little money I have on them? Cause they are quite old! Normally I buy my computer books at London Drugs when they have there computer book sale, computer books ranging from 6.99 to 15.99. So $70 is a lot for me to spend on a book!
What distro would you recommend for a person who has never used Linux? I am going computer shopping on Friday to buy a nice cheap computer to replace my old compaq(500mhz celeron, feel the power) and I have a spare 40gig HD to put in it, that I can put linux on. From what I have seen, I like the look of Gentoo, and Debian. But I like I said, I have never used linux, so what do I know? :p
And I'll read over those manuals and other links, but they are nothing like PHP.net from what I have seen
I'm a young dog finding it hard to learn new tricks
- In C...
Anyone know of any tutorials for people with good knowledge of PHP wanting to learn C?
I'm having a hard time getting into C.. Are there any alternatives to C that are more similar to PHP?
For slow people like me?
Amoung other things, I think it's mainly the whole strictness with types that is getting to me. Not to mention, in PHP I have three vars $bah which has a value of "Stuff " and $hah which has a value of "is good", then I have $har and I want it to have the value of the other two "Stuff is good" To do that:
$har = $bah . $hah;
In C, I can't even remember how to do it, think you have to use some function? I don't know, but why can't it just be as simple as in PHP? I hate C...Plus where is the C manual? Seriously, why is there no manual explaining the language?
I feel really stupid... would getting a computer with Linux, then trying to learn it on that make it any easier? LOL I'm desperate!
Thanks everyone
Cake looks good, mmmm....
Originally posted by Elizabeth
Couldn't you use google's search within a site feature?No, it's my local computer which only a few IP's are allowed on and search engines are not among that list
Are there any free Windows or dos app's or maybe even PHP, out there that will crawl a site and search it each time you search?
- In PHP Pad..
Anyone know the website to get this program? Or maybe anyone know the person who made it? Or is anyone here that person? Or does anyone for some reason have this persons email address?
I remember getting it off someones personal site I think a couple years(1 or 2 maybe) back. I can't seem to find the site again. The program says in the title bar "PHP Pad Beta v 24.04.2002" so I would assume that is the date this version was created
There is no "About" feature and the "help one doesn't do anything so thats all the info I have.
Oh the readme has this:
"Manav Rathi
[manav@zhakaas.com]
[http://manavmax.tripod.com/]"But that website(and http://www.zhakaas.com/) doesn't work anymore.
Can anyone help me out?
Originally posted by drawmack
College offers you education.
Intelligence is defined as:
1) The capacity to acquire and apply knowledge.
2) The faculty of thought and reason.
from http://www.dictionary.com
Education is defined as:
The knowledge or skill obtained or developed by a learning process.
from http://www.dictionary.com
Since intelligence is the capacity, or faculty, for something and education is a knowledge or skill education does not affect intelligence.
It just makes sense that capacity is not affected by application. So while education is an application of intelligence it does not affect intelligence.
To draw a parrallel if I have two 8 once glasses and one is empty while one is full it doesn't change the fact that they are both 8 ounce glasses.So a person that didn't even finish high school could have a high IQ?