-
Posts
64 -
Joined
-
Last visited
About help_me_with_php
- Birthday 01/01/1980
Profile Information
-
Gender
Male
-
Location
Iowa, USA
help_me_with_php's Achievements

Member (2/5)
0
Reputation
-
parsing the PHP web reference site
help_me_with_php replied to help_me_with_php's topic in PHP Coding Help
thanks so much for your help. I don't think I communicated clearly. "What I want to do is get some extracted information from the pages that are pointed to by each of those links. does that make sense? so that page is not what I'm after...it's the content on all of the linked pages that I'm after. all of the pages look the same so it shouldn't be too difficult. I guess the question is more or less, do I have any other tools to work with besides programming in a languages of my choice and just using the DOM document model? thanks. -
hello everyone, this isn't really a coding question but couldn't find a forum for it. here is a webpage I would love to parse out and get only the relevant information out of it: http://php.net/quickref.php does anyone here know of any good tools to do such a thing? basically what I'm looking for is a parser, essentially. I can write a script in windows and use the client side coding to find the script text that I was to single out but that would take quite a bit of work by hand. has anyone done this kind of thing before?
-
turning nested loops into a shorter algorithm
help_me_with_php replied to help_me_with_php's topic in PHP Coding Help
yes, that's awesome. yes I could. but again, I'm really interested in a mathematical algorithm of somekind that you can map to this whole thing. there are an abundance of PHP internal resources and functions that you can use to help out in this case. but what I'm trying to show here is algorithmic coding, not internal function use. help me out on that too, if you will. is what I'm saying making any sense at all? -
turning nested loops into a shorter algorithm
help_me_with_php replied to help_me_with_php's topic in PHP Coding Help
YES, that's my mistake. thanks. YES. that's the second block of 3. -
turning nested loops into a shorter algorithm
help_me_with_php replied to help_me_with_php's topic in PHP Coding Help
sure. I know the code isn't perfect. It's not supposed to be. what it is *supposed* to do is take 9 blocks of 3-chars-each from each of the 3 lines, one block at a time. I'm not going to change the code because I know it's wrong just a tad, but you get the idea. here is a sample of the 3 lines of text I have: so the first iteration of the loop here would produce the following in "$strOut":: first 3 first line + first 3 second line + first 3 third line. it reality, the code should do this for all 9 blocks of 3 characters (there are 27 char positions on each line). thanks! -
turning nested loops into a shorter algorithm
help_me_with_php replied to help_me_with_php's topic in PHP Coding Help
Hello Barand, yeah I realize what you said. I was going off base 1 instead of base 0 for functions. no biggie. your code though is not really what I was looking for. the syntax of yours is just shorter than mine. nothing really changed. thanks for responding. -
all, I have this block of code: If ($ctr = 4) { for ($block = 1; $block <= 9; $block++) { for ($ctr2 = 1; $ctr2 <= 3; $ctr2++) { //each line. for ($ctr3 = 1; $ctr3 <= 3; $ctr3++) { //char 1 - 3 in each line. switch ($ctr2) { //which line? Case 1: $strOut = $strOut . substr($Line1, $ctr3, 1); Case 2: $strOut = $strOut . substr($Line2, $ctr3, 1); Case 3: $strOut = $strOut . substr($Line3, $ctr3, 1); } } } } } what I'd like to do is streamline it. There are 3 lines of text being captured here. What is (supposed to be) happening is that each block of characters (3 characters per line positions, starting at position 1 or positions every 3 char increments after that) is being captured until all 9 chars are stored in $strOut. 9 chars = 3 chars on each line * 3 lines. is there any better way to do this mathematically? I realize that we can manipulate the variables and coding many different ways, but I'm not interested in that. I'm only interested in using math or leveraging techniques to speed up the process here. Resources from PHP would be OK but I'm trying to focus on the massive iteration and turning it into something more useful. comments welcome. thanks!
-
copying code from the windows clipboard
help_me_with_php replied to help_me_with_php's topic in PHP Coding Help
the machine would be offline, so that's not an issue. thanks all! -
copying code from the windows clipboard
help_me_with_php replied to help_me_with_php's topic in PHP Coding Help
Careful with those words, Jessica. I might just change my mind about your sense of humor if you continue that. -
copying code from the windows clipboard
help_me_with_php replied to help_me_with_php's topic in PHP Coding Help
Thanks. I understand. I'll give you a hint here Psycho, but if you've been in the technology field for a while than you probably well know that you don't *ever* bring out all your knowledge cards. Right? Are you a fan of Steve Jobs by chance? If you are, do you remember the presentation he gave where his feed was cut off and they couldn't get it fixed for about 2 hours? I'll never forget that, and this question's purpose is intended to steer the "lesson learned" from that into even a deeper realm of contingency. That world is even more cut-throat today than it was back then. Agree? That's about all I can tell you. I'll let you figure it out from there. It's not a big deal that developers don't understand this, but just know that I'm on the right side and I'm asking questions that are actually relevant in order to beat the scammers. Make sense? Thanks for your reply too, it helped. Fairly strait forward question anyway. -
copying code from the windows clipboard
help_me_with_php replied to help_me_with_php's topic in PHP Coding Help
I'm not sure what risk, Psycho. It doesn't hurt to ask. Like I said before, I wouldn't see why this would ever be an issue of anykind, but I'm just in business and the thought 'leading' process. I'm not technically a developer anymore. I'll trust your judgement, although it's pretty much common sense that it wouldn't hurt anything, ever. But again, it never hurts to ask. At the very least, to get all sorts of feedback from experts like yourself. There's something to be learned from every developer. Just know that the question has a purpose even if it's not immediately obvious. Jessica, Please don't reply and question why I'm asking what I'm asking. I'd appreciate it. FYI - There *is* actually a reason why one would do something like this. And I never said I was actually using MS Word. Perhaps I'm just using that as an example. That's actually what's happening in this instance. Again, FYI. thanks. -
all, I have a rather interesting question here. I'm wondering if there are any stumbling blocks associated with doing this...?? Anyone know? I wouldn't see how there could be unless the computer on which you were doing it was infected with something. So for instance if I had a small PHP script in another application (say MS Word) and I used the clipboard as a medium to transfer it into my development environment, is there any risk with that do you guys think?? I don't see much but I've never asked. Thought you guys here might be interested in this one. thanks.
-
last post. take care bud. thanks for the clarification!
- 14 replies
-
- mobile
- redirection
-
(and 1 more)
Tagged with:
-
trq, I wish I had the funding to hire you. Based on what I've seen and your site, sems like you can curb the stuff that creeps in and produce great stuff. Is that not correct? by the way, the OP wouldn't understand anything about what you said. Sure I could research it and say the same thing, but why make someone feel bad? That's not a way to create bridges with people.
- 14 replies
-
- mobile
- redirection
-
(and 1 more)
Tagged with: