Jump to content

ShogunWarrior

Members
  • Posts

    528
  • Joined

  • Last visited

    Never

Everything posted by ShogunWarrior

  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.
  16. Oh, hope they didn't hear you or Microsoft Autobindâ„¢ it will be!
  17. I'd like to see this as much as the next person but when you think about it we have 10s of drivers for everything from cameras to monitors. What are the chances that you'll actually be able to drag and drop photos from one cam to another without hours of driver installation? (It looks beautiful though, I know my xmas present )
  18. AFAIK the address is handled by the network layer. In PHP you are generally working at application level, transport level at best. You could go through a proxy but I don't think it's possible to make up your address, but if it is I'll be surprised.
  19. LOTS OF EDITS ADDED! Firstly, I was very surprised by the screenshots because they actually look nice. Here's a few things I noticed: On install page "undefined index step" On most pages there is a warning "undefined index action" Adding comments wasnt working. It said comment added, but didnt appear. (Refreshed etc) All passwords such be stored as MD5 or SHA-1 hashes of the plaintext password. I'd store the news date as a DATETIME or INT timestamp so you can sort by date and more. I'd store a date for each comment aswell. I think the undefined index problems are simply due to you checking $_POST or $_GET without knowing if those indexes are available. I'd just add some intermediate functions like get_action() or check if those indexes are empty. (Depening on your error reporting level you may not see those warnings) I usually recommend E_ALL to have the most valid code. I like the layout, it's a good start. A "light" coloured version might be a good idea, it seems a bit dark after a while. Adding more features etc. would be great and generally refining the code a bit and checking for security holes/possible errors etc.
  20. Just create a PHP page with <?php highlight_string( 'CODE HERE' ); ?> When you want to put some highlighted code into your report in MS Word just paste your code into the "CODE HERE" part, run the page and copy the text into MS Word. Word will retain the formatting colors and voila you have syntax highlighted text in word.
  21. From what I'm reading (last message slightly confusing) you want to allow users to send texts from their phone to "your" service number and the SMS gateway will tell your system and you can act accordingly. Clickatell for instance provide incoming SMS (most services will send a POST request to a specified page or they will have some sort of XML communication etc.) http://www.clickatell.com/products/two_way.php It's gonna cost you though!
  22. Not that I can pinpoint exactly, and I must have 70 programs in the startup menu, so I haven't a clue which, if any is causing the problem.
  23. 1) Yes, they worked out of the box for a while. They work no-problem but I must manually update the drivers each time (on each reboot). 2) Yes, downloaded latest driver.
  24. Hey everyone, I need PHPF's help here. Basically my sound doesn't work and it is driving me litterally insane. Info: Realtek High Definition Audio Windows XP (Pretty new: 2GB Ram, Core 2 Duo etc) Drivers: CD-supplied and download (same) Realtek High Definition Audio Drivers. Background: As far as I remember when I originally installed the drivers the sound was working fine. (Maybe a windows patch or something?) Question: Each time I start the PC only system sounds work. (Winamp works because I tell it to output to DirectSound, which bypasses drivers) The control panel, sound, says there are no Audio Drivers. The only way to remedy this is to "Update Driver" for the sound device and all is well. However, I must do this EVERY TIME I want sound to anything other than Winamp. I would greatly, greatly appreciate any leads or if anyone knows the problem. Thanks in advance, SW.
  25. "bills_money": I don't think you can take it online. You can buy "online practice" test credits and do the online practice version but you have to go to an exam centre to do it. Last I looked it was about $105.
×
×
  • 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.