Jump to content

ajetrumpet

Members
  • Posts

    195
  • Joined

  • Last visited

Posts posted by ajetrumpet

  1. are you telling me that I've violated the rules by cross posting and not telling you guys?  if I remember, I've done that a few times in the years that I've been here.  but rarely.  by the way, I'm talking privately to Ernie over on PHPhelp.com

  2. 4 hours ago, phppup said:

    And as long as my web link gets the user to the right page, I really don't care if the can of soup is in with the frozen food.

    well, considering that you've said this, I'd say you've shown that you know how to work in this industry.  regarding the subject though, I'm guessing you guys have nothing for me at this point?

  3. 4 hours ago, phppup said:

    I've got a better idea, since you've stated:

    Why don't you give me a reasonable solution to my issue in the form titled "imagecreatefromjpeg failure"?

    That would make you a helpful contributor.

    and you're getting that error, where?  are you the programmer or the user?  this forum?  you didn't say that, did you?  I'm guessing you're joking anyway.  however, assuming that you use github:

    https://www.php.net/manual/en/function.imagecreatefromjpeg.php

    https://github.com/libgd/libgd/issues/206

    https://stackoverflow.com/questions/21503792/imagecreatefromjpeg-http-request-failure

    but on the other hand, perhaps you're getting it because software is not perfect and not all calls, regardless of kind, work all the time because there are millions of factors involved in failures of all kinds?  No human being can know it all?  hmmmmmmmmmmmmmmmmmmm

  4. 14 minutes ago, phppup said:

    Consider wisely, and apply accordingly.

    why don't you explain to me what the difference is between a class and an interface, in your own words.  that OK?  by the way, why are you interested in beautiful girls?  most of those are not really that smart.  😃 

  5. 7 minutes ago, requinix said:

    I think it's clear that you're complaining about stuff you don't understand. Let me know when you want to start climbing down off Mt. Stupid.

    why don't I just say this? 

    what do you guys do when working with foreign developers to help them understand that too much professionalism ends up being a nightmare for everyone?  I've already mentioned that this work is pretty darn simple.

    is that better?

  6. 1 hour ago, requinix said:

    If you think that "reading the documentation" means looking at the URL then you're definitely going to have problems.

    I didn't say that.  so, can you offer anything else?  I always love your snide remarks.  😃  so what do you think about this URL by microsoft?

    https://docs.microsoft.com/en-us/office/vba/api/excel.workbook

    a workbook object inside of excel is an API!?   LOL.  yeah right.  (or rather, PART of an API??).  yeah, definition is correct, sure.  but when human beings in the real word say API, they would never do that if they were talking about objects inside of a program like excel.  they would say that for heavy coding initiatives like SOAP, REST, etc....

  7. can you guys help with this a little bit?  i've been in so many companies.  I get so sick of this.  people throw terms around all the time and a lot of times, at least what I've noticed, is that a lot of people don't even really know what they're talking about.  take for instance, this:

    https://www.php.net/manual/en/class.iterator.php

    if you consider the link, it is calling the iterator a class.  but, in the article it is described as an interface.  to me, that's just ridiculous.  you see, what's going to happen with that, is that I'm going to go into a meeting next week and some person from india is going to argue with me about ""well, no, a class is not an interface.....yada yada..."", and on and on and on.  obviously this is extremely simple, and most CEOs understand that.  I've never understood why engineers do not.  it's nothing more than a hierarchy.  everything is.  sooooo.....to start here, does anyone reading this understand what I'm trying to say?  This is nothing more than information management, as everything is anyway.  That's why it's very simple.  at this point, I would think that no one should have to write code anymore, even if the concepts of low code and no code did not exist.  code is so patternized anyway, and there are only so many objects on Earth to mimic in the electronic world, is that not why frameworks were created in the first place?  let us start there.  comments anyone?  thanks.

    Adam

  8. 2 minutes ago, phppup said:

    echo '$var';  //indicates that you want the item in the quotes (which translates to a variable value, in this case) to be displayed.

    this is literally the only thing you said that I wasn't aware of.  thanks!  I think that pretty much gives me everything I need.  your words to describe what PHP does what that line of code was really what I was after, more or less.  wonderful!  😃

  9. Barand,

    that does not give me what I need.  does it say what I was looking for?  If it did, I must have missed it.  here's an example of what I need an explanation of:

    why do the following 2 blocks of code work the same way and output the same string value, even though single and double quotes are being used for both?

    $var = 'value';
    echo '$var';

     

    echo 'value';

     

    or am I incorrect?  I did not test those examples, but I know I have written many instances of this type of thing in the past and it has worked.

  10. if I have a list of 5,000 bots and their server header into in my DBs, can someone point me to a web resource that can give me any insight into how to show a custom page if a bot is detected at the render request? I can look up PHP functions myself and possibly use header(), but didn’t know if anything special was involved that I don’t already know about. so, say for instance, as a joke I want to do this:

    <?php
    $ip = gethostbyaddr($_SERVER['REMOTE_ADDR']);
       if (substr($ip, 0, 3) = '10.') {
          echo 'sorry, but we do not display content to USA government's automated server sniffing bots.';
    }
    ?>

    how much of a pain in the rear would it be to display custom pages for ‘‘x’’ number of automated hits? I realize that this is pointless because most are just from researching orgs the world over, but it IS a relevant question to ask. thanks.

  11. can someone explain to me why PHP returns so many different variants when throwing out visitor info using this piece of code?

    $ip = gethostbyaddr($_SERVER['REMOTE_ADDR']);

    here are some examples I have seen recently:

    planetlab24.gino-research.net.in.tum.de
    10.32.64.124
    49.129.197.35.bc.googleusercontent.com
    abts-north-dynamic-142.110.68.182.airtelbroadband.in
    173-20-152-84.client.mchsi.com

    now, obviously i can understand the google one, and a few others. but, given the info and insight on these pages: https://www.php.net/manual/en/function.gethostbyaddr.php , and https://www.php.net/reserved.variables.server , why are the returns so different for different people? why does PHP see all different kinds of things? is the cause the way the user’s server is configured? some identifying info OF the server? and what about reserved IPs? like the “10.xx…” one I listed above? I’ve seen hundreds from that pool, and other blocks of reserved ones, and they have never had alpha-chars included in their captures. it’s always only the IP numbers. there a reason for that? really, all I’m looking for is why I see what I see. anyone help? furthermore, does anyone know if other server-side languages like c#, python, ruby or any js frameworks return different results than PHP ever would? thanks.

  12. 6 hours ago, requinix said:

    Have you really gotten this far and not set up a local development server for yourself?

    yep.  pretty much.  unbelievable isn't it?  by the way, nice new avatar.  I liked the old one better though.  so what are you referring to, that I should use?  XAMPP?  the answer is yes because, keep in mind, I'm not a professional developer nor have I ever been.

  13. I’m looking for guidance on this. I use VS Code quite a bit. really what I’m looking for is an IDE that will allow me to test bits and pieces of a web app without uploading the files to a web server and pretending to be a user and going through the motions in a browser. how does everyone here go about this? I realize that a task like this is one of the purposes of an IDE anyway, but here’s some examples of what I want to test:

    => how a page looks with 3 fix-placed iFrames on it.
    => if a POST operation works properly on a contact page.
    => how a page looks with linked CSS and jQuery files in it.

    and many other things too. I know about quite a few testing sites like jsFiddle.net, but none that I have found are consistent. actually, last time I tried the fiddle, js written perfectly errored out on me and didn’t display any output. Most menus and options in all of the IDEs I have ever used seem to be irrelevant. if I take, for instance, eclipse as an example, I’ve been in all the menus and 80% of the stuff in there I don’t think I would ever use. I work for small and medium sized businesses, not in corporate america. So does anyone have any advice on this? I’m also well aware that development in this day in age is becoming nothing more than a button clicking and drag-and-drop game. I believe the corporate buzz for that is called ‘‘devOps’’. thanks

  14. I just ran a test, and if I plug the PHP host returned by one of my sites (111.sub-174-198-69.myvzw.com), into the best lookup site I've found:  https://www.iplocation.net/

    I get all sorts of different answers from different providers as to where the person, network, cell phone tower, or anything else is located  why is that?  here are other sites I've tried, and they all say different things:

    https://www.digwebinterface.com/
    https://www.ip-tracker.org/

     

  15. Wordpress guidance work available (looking to hire)

    I am looking for someone to do a little bit of guidance for me on how to strip wordpress down to bare minimums.  I'm not sure how long the work will last, but before I hire someone, they will be required to answer 8 simple questions regarding the PHP language so I can assess their skill level.  That will determine for me if they have the ability to do the work I need done. 

    if you are interested in this work, send me a message here.  thanks.

    Adam

  16. per the title, I have 5 sites that need to be modified. If you have ever coded in wordpress or used any admin tool offered by a 3rd party, it will probably be very simple work. Is anyone here interested in this? thanks. Get back to me here or in a PM if you would like to talk.

    Adam

     

    (I realize that the guidelines here say to include contact info for me, but I'm not willing to post that publicly.  a PM to me through this board is sufficient to begin)

  17. has anyone here ever seen these 2 sites?

    IP DENY
    https://www.ipdeny.com/

    TOR EXIT NODES
    https://check.torproject.org/torbulkexitlist

    with regard to the former, the domain has one page per country I believe. so, you can get listings for like say, China and Russia on these 2 pages:

    China: https://www.ipdeny.com/ipblocks/data/countries/cn.zone

    Russia: https://www.ipdeny.com/ipblocks/data/countries/ru.zone

    my question to folks here is, would this information be useful to me? I am putting together some website content that I do not want everyone in the world to see. And, it is possible that by some miracle, the sophisticated hacker world outside the USA will want to take it down and/or disrupt the service offerings of it if they find out that it exists. Anyone got any advice on whether these resources are even worth the effort to use? and if they are, what is the best way to leverage them? e.g. - when pulling info from the server DB to display content on the page, check this IP data first to see who they are and whether I will allow them or block them?

    thanks.

    Adam

    @requinix, I know we've talked about blocking illegitimate traffic before.  and I know you said I can't ever get rid of all of it.  but this is new info that I've run across.  Just wondering what you guys think of this.  =)

  18. thanks guys.

    12 hours ago, requinix said:

    You can see the expiration time of the cookie. Five minutes is really short, though, so I doubt the timeout is coming from an expired cookie.

    Which means it's server-side and there's nothing you can do about it.

    req,

    can you give me any insight into the %age of what web apps being used by companies set timeouts inside of cookie files that sit on a client vs. those that use sessions or any type of "pointer code" in a client cookie file to read server data and detect the timeout expiration?  which method is more common and why?  or is this just one of those pointless arguing topics that software developers go back and forth with forever only to end up in a draw?  😃

  19. can anyone tell me how to modify a timeout for a web app when logged in? Here are the known specs:

    => there is no session hash in the URL when logging in.
    => default timeout for no transacting activity is 5 minutes.

    I really have no way to know if the timeout is located in the local cookie or stored in the web app [session] itself. It's a large PHP application that I'm referring to.  and before anyone asks, no it's not a hacking attempt.  This is simply an attempt by me to stop this little annoyance.  I realize that a lot of people do this sort of thing for security reasons.  Also, every transaction on the website (moving from page to page, clicking buttons) results in more than one file with a hash-based name being put in firefox's cache.

    Thanks.

    Adam

×
×
  • 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.