Jump to content

help_me_with_php

Members
  • Posts

    64
  • Joined

  • Last visited

Everything posted by help_me_with_php

  1. 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.
  2. 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?
  3. 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?
  4. YES, that's my mistake. thanks. YES. that's the second block of 3.
  5. 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!
  6. 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.
  7. 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!
  8. the machine would be offline, so that's not an issue. thanks all!
  9. Careful with those words, Jessica. I might just change my mind about your sense of humor if you continue that.
  10. 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.
  11. 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.
  12. 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.
  13. nice. that's incredibly helpful. I might explore option one here. It seems as though the pioneers of the mobile devices themselves pursued this same option by braching out to new Operating Systems for the new pieces of hardware. this is exactly what I was looking for. Cheers. Enjoy your day sir.
  14. last post. take care bud. thanks for the clarification!
  15. 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.
  16. I'm fully aware of that. e.g. "anything else". I am posting this here because I know there are very competent ppl lingering around. Are you perhaps one of those, Mr. Admin? I'm trying to get down to the magic of what's behind my 2 referenced sites. If it's just as simple as CSS3, that's all I need to know. I can take it from there.
  17. that has nothing to do with it. constructive help is better than not. are the rules strict to a point such that I can't ask this question in this forum or even on this site? there aren't forums for these kinds of questions.
  18. ibh, look at the response here too: http://forums.phpfreaks.com/topic/270711-determining-content-by-device/ that is a little along the lines of what I'm looking for. apparently CSS3 does a lot of this work. why use PHP or anything else to do it when CSS may be doing a part of what I want here? does that make sense? I haven't explored this but I'm sure he's probably right. I'll have to check that portion of the solution out...
  19. Nicole, if you're still subscribed this (and haven for bid haven't solved this already), "header" is the re-direct function in PHP that is causing the problem more than likely. it's a built-in resource. Jessica? one comment and this would have been over. what's up? how was your day? Nicole, hopefully this answers the question and sends you on your marry way. By the way, PHP, like all other languages is incredibly complex and you have to do your own organization of the documentation material or you'll spend hours trying to sort through it all. Don't worry about that (I just wanted to mention this to you). Heck, I talked to a professor at a 4-year school today and HE even said that academic scholars can't even figure out a way to do it!! I hope that helps. It's not a tough problem and obviously deserves a one-liner answer. Might be a good idea for you to start learning the sites that help with this stuff. start with: www.php.net everything you could possibly want to know is there.
  20. Is that what Godaddy is doing with theirs? It doesn't look that way to me. It looks like 2 separate websites to me, with of course the same kind of content on it. What's your opinion on that? The website I want to adapt is one that won't appear incorrectly to the most users. So for instance, I want to build one that will do the most work possible for the device holders instead of trusting that they know what they're doing with their devices and know how to tweak things. If they're normal consumers (which I expect them to be), they will have bought their devices to keep up with Jones's rather than buying it for any meaningful purpose. That's how the smartphone market profits...from people buying to one-up their presence in soceity, right?
  21. Hello all, I'm thinking about updating a website and using PHP to cater to all the types of users (e.g. => LT/DT/Mobile Devices, etc...). The best adaptation I've seen to mobile that promotes visibility is what GoDaddy has done. There is a big difference between their homepage and their mobile equivalent. Here they are: https://www.godaddy.com/ http://www.godaddymobile.com/ Does anyone here have any links to some good resources I can use to try and get the same kind of setup going with PHP or any of the frameworks that have been built with it? I've never used frameworks like Zend or any of the CMS platforms that are out there like Wordpress. Any advice on what is the best option here? It looks like what GoDaddy has done is basically redirected users appropriately and used 2 completely separate domains to cater to as many people as they can. Does it seem like that to anyone else too? thanks.
  22. Kicken, I won't go very much further on this but I think we may be on different pages here. I understand that this: is how dynamic websites work. That's not much of an issue. But I was under the impression that it was soley the job of PHP to present ways of translating the language of the page through a user-defined request (e.g. => dropdown option). This: confuses me just a tad bit. Are you saying that you can use things like this in a PHP webapp? code.google.com/p/php-google-translator/ That seems like what I'm looking for here. Programs like Google Chrome offer translation automatically depending on your IP address (I think) and the default language that you have set, but that is to be expected. The reason for my follow up here is that I didn't think PHP was smart enough to translate automatically just using script alone. Does this make sense?
  23. Lets not start anything combative Jessica...I'm waiting for a response to the first 2 questions. No worries, I don't insult people. Well, lets just say *most* of the time. Don't worry though, there's no bone to pick here with you. Everything's fine. Take it easy. Maybe someday you and I will understand each other's humor. Have a good day. =)
  24. satisfaction for Jessica only: https://en.bitcoin.it/wiki/Address
  25. ah ha...and the smarty pants college grad shows me up again...it was a joke. but thanks for the help girly! nice seeing ya again...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.