Jump to content

ShogunWarrior

Members
  • Posts

    528
  • Joined

  • Last visited

    Never

About ShogunWarrior

  • Birthday 09/26/1989

Contact Methods

  • Website URL
    http://www.daviddoranmedia.com/

Profile Information

  • Gender
    Male
  • Location
    Ireland

ShogunWarrior's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Just do a salted SHA1 hash. Encryption is a different thing, you need a hash.
  2. It would be one thinging buying a PHP5 book and running PHP4 but I wouldn't buy a book on an outdated version of PHP (4). Alot has changed and alot has moved towards object-orientated programming.
  3. It's pretty nice. I spent ages going to the different pages to figure out which country you were in because "Annadale" could have been American/Canadian etc. but I had a feeling it was Irish. I suppose the audience isn't people from other countries but I couldn't find Ireland mentioned anywhere except for Ulster etc. (I'm from Meath BTW)
  4. Anchors aren't sent to the server, they are only used on the client side.
  5. Well I want to take it and I've looked into it. The main annoyance I have is that alot of the questions are about the names/arguments of functions which is ridiculous considering how randomnly and inconsistently the functions are named. Lots of remembering I think but as long as you know PHP very well, and maybe do a practice test should be grand.
  6. Technically you can usually check if an image is dynamic by using cURL to do a HEAD query for the image URL and checking if X-Powered-By:PHP or the like is in the headers list. There are generally other ways like if it is a real static image there will usually be a Content-Length header in the result from the server but not from dynamic pages.
  7. Well the problem of course is that getting the browser to download a 1MB file without the user knowing and keeping them on the same page without them moving is pretty tricky. This isn't really a technical problem as much as simply a problem of convenience. If they know they are checking their connection speed you can simply push out a 1MB file in known size chunks and record the time taken but doing it in the background will be problematic especially on slower connections or where visitors keep moving. (On the technical side this could be done by putting an <img> tag into a page who's src was actually a PHP page which pushed out 1MB (or some large enough size) of data and logged the result)
  8. I don't think you can. Only the browser knows if Javascript is on or off, and unless that information is sent in the inital request headers PHP can't get it. AFAIK only the browser agent string is sent which doesn't include that info.
  9. I'd disagree there dj-kenpo. I remember Flash being a nuisance because I was always getting "Download Flash" notices and upgrade notices. However now I (like many) have broadband so I can upgrade easier and view larger, higher quality content with ease. Youtube, Revver, Miniclip, GoogleVideo and any number of video/game sites rely on Flash and there are any number of uses by combining Flash with other technologies. Using Flash and an XML file or some PHP code which generates XML you can create beautiful (Flash is of course very visual-based) graphs and web apps. I think Flash is going well basically.
  10. Good point there. Putting the whole "application" into a loop (i.e including files etc) is much more representative of load time.
  11. gabeg has a good idea there. A solid way to do it is to insert a hidden field like <input type="hidden" name="payload" value="48388293" /> and the value could be the current time in miliseconds You should probably update the downloaded version so, or remove it. Otherwise mine, and others' comments are a bit redundant.
  12. frost is right. When trying to benchmark code for one pageview the difference might be barely a few miliseconds but by comparing the time for 1000 loops or a large number like that you get to see how much time you are losing along the way. (Also, and I'll try and find them, there are functions for checking Memory usage in PHP which would be good for profiling your code aswell to check overhead)
  13. I'd say alot of people have seen Jeff Han's demo online of the multi-touch screen he and his team developed. He's been developing the tech for a long time, along with numerous other motion-tracking and visual display technologies. Have a look for the presentation online (ted.com I think) because it's well worth seeing and the amazing thing i thought was that it was like a pane of glass. Even when it was displaying something you could see through the other parts completely transparently. It had many of the same apps like the photo one but it used total internal refraction.
  14. I really don't know too much about the object internals of PHP but the main thing I'd be thinking about is the disk-access time to read the number of files you have those classes in and the compile-and-interpret time. I know in C++ that object overhead is low because class functions only take up one block of space and subsequent instances only take up the space to store their properties but as for PHP I'm not sure but realistically if you can cut the overhead then do.
  15. Well since the server is not on HTTPS you really can't make it any more secure than someone using a browser.
×
×
  • 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.