Jump to content

AElliott

Members
  • Content Count

    114
  • Joined

  • Last visited

Community Reputation

0 Neutral

About AElliott

  • Rank
    Member
  • Birthday 11/03/1989

Previous Fields

  • Languages
    html, css, php, sql, javascript

Contact Methods

  • Website URL
    http://alex-elliott.co.uk/
  • ICQ
    0
  1. Oh, a graphics tablet, not a tablet computer - nevermind me then. What with all the hype about the iPad I forgot there was another kind of tablet. :)That'll depend on the manufacturers, I don't have any experience myself, but you should be able to find out from the manufacturer's website whether they produce drivers for Windows and OSX. I expect they do support both.
  2. Well, Apple does not authorise use of their operating system on any hardware not developed by them, so legally: no.
  3. I have to agree with previous comments saying it could do with some more padding. There are some places where the text hits the edge of it's container, which is a bit off-putting. This seems to appear with slightly larger text.And yeah, those "standard" club websites aren't great - though it does seem to depend on club to club as to how well they're run. In general I like it, a bit more spacing is the only major thing.Here's to Danny Ward not impressing enough for first team football. We want him back at the County Ground for another season.
  4. As mentioned in the first reply, you can still get to the constant value using the constant() function, it still isn't a good idea though for the reason that the previous example demonstrates.The PHP grammar defines tokens starting with a $ to be T_VARIABLE, and because of that it is misleading to have a constant with a name starting with $, and the behaviour of the PHP interpreter does not allow it to act the same way as a normal constant - as it would require some significant changes to the interpreter to make this behaviour consistent.As it stands you can do: <?phpdefine('$foo', 'foo');
  5. Of course, if uniqueness is very important you can work out an encoding of the string as an integer that is unique (I'm assuming that the end result is just a unique string containing only 0-9 digits?). This would be particularly simple if we specify that the encoding works on ASCII characters only because you can just loop over the string concatenating the ASCII decimal value (padded to three digits in every case), or a more direct conversion using the binary representation of each character.That would give you (for all ASCII strings) a unique encoding in just decimal digits. Though I have
  6. Best concurrency you can do with PHP is using stream_select() or pcntl_fork(). The above is true though, fork would be a multi-process model.
  7. @Mencarta: cheers @MrFish: Well, if you're interested you can see for yourself, the example there is minified jQuery. http://jquery.com/ has links for both minified and uncompressed source files to download. Download both and see the difference in practice.
  8. Enclose the text of the link in a <a href="URI"> tag, with "URI" as the link in question i.e. "http://site.com/". So if you currently output: http://website.com/ You want to instead output: <a href="http://website.com/">http://website.com/</a> This is fairly basic HTML, I recommend you get a book on the subject or read through the w3schools information on HTML.
  9. @Synook: Thanks, yeah, I should. May get to that today, it's a quick fix. Done. Yeah, I noted it lacked detail previously. That being said, the portfolio section is probably the least important bit to me, because I'm not using this to drum up business (it's just a record of things I've done). I'm planning on getting a job on the basis of my eventual degree instead. Anyway, more detail is planned for those pages, I intend to add extra relations to the project database so I can relate various other things to the information shown.EDIT: External links section added to project/portfolio pa
  10. Alex-elliott.co.uk is my personal website, mostly just a collection of information about my projects and a blog. It has been online for a while, but I haven't actually gotten most things working until recently (I got the blog up and then had a long break for university work). There's still more that I want to add for the project pages, like references to categories in the blog, and links to external sites.For now it mostly suffices, it's just the page on Expression Editor that suffers from lack of detail (if you're interested, it's a Regular Expression editing tool [screenshot] hosted in a p
  11. You end your string there with \", that's escaped the double quote.
  12. The documentation for mysql_fetch_array has several examples of how to visit every row returned in the result resource using a while() loop structure. Examples #2-4 all do it, though example #3 is closest to the behaviour you want.
  13. You note the change yourself, when you have "TestSearch.php?Search", there is a "Search" URL variable, and so $_GET['Search'] is a valid index. When you visit it without "?Search" there is no such index in the $_GET superglobal array. And the line that is triggering the error is where you do: <?php echo $_GET['Search']; ?> This will always give you an E_NOTICE level error in cases where 'Search' is not a defined index, and by default it is only a defined index when "?Search" or "?Search=anything" is in the URL query string when using $_GET as you are. Now, in the first reply it was
  14. There are some very nice captcha services you can use to protect your site, one of which is reCAPTCHA, it's a well implemented (strong) captcha, includes audio for the sight impaired, difficult for machines to read because of the warped/distorted characters, plus the extra word is part of a large distributed system aimed at translating books that OCR can't read.I'd probably recommend this over writing your own, because it's not trivial to make a captcha of equivalent strength.
  15. I would probably recommend utilising mod_rewrite if you can to rewrite your .xml paths to a .php file which handles the generating. An example would perhaps be this .htaccess: RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-f # if file doesn't existRewriteRule ^([a-zA-Z][a-zA-Z0-9_-]+)\.xml$ xmlgenerator.php?string=$1 # replace the regular expression with whatever you need Or something like that, it doesn't break any .xml files you want to hardcode, it only works for valid inputs if you can express validation as a regular expression (they can still access the .php file directly, so you sh
×
×
  • Create New...