Jump to content

thunderousity

Members
  • Content Count

    40
  • Joined

  • Last visited

Community Reputation

0 Neutral

About thunderousity

  • Rank
    Newbie
  1. Ah ok - Done a bit more reading. I thought the ob_gzhandler indicated to the server to run gzip for that page. I have removed both the mod_gzip text from the .htaccess file and the ob_gz_handler part from the page. I removed the mod_gzip text from the .htaccess file as it still wasn't compressing according to whatsmyip gzip test I added the following Deflate text to the .htaccess file instead to see if this would work but still no compression. AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFi
  2. In a bid to make my site faster I thought I would do as the site tests suggest and implement gzip page compression. I have checked to see that gzip is enabled. Check. I have added the following code to my .htaccess file. (I also tried the AddOutputFilterByType DEFLATE text/plain but that didn't seem to work, which may be down to the fact that I hadn't added <? ob_start("ob_gzhandler"); ?> at that time) <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ mod_gzip_item_include mime ^application/x-javascript.
  3. I have 2 tables. A table full of items with an ID number and various values (Table A) and a table which works as the basis for an Item comparison using the ItemID's (Table B ) Table A ItemID, Item_Name, Value_1 1, Potato, 50 2, Carrot, 45 3, Broccoli, 35... Table B ComparisonID, ItemID1, ItemID2 1, 1, 3 2, 2 ,3 3, 5, 145 Requirement: I want to return the ItemID, Item Name and Value for each row in Table B like so Results: ItemID1, Item_Name, Value_1, ItemID2, Item_Name, Value_1 1, Potato, 50, 3, Broccoli, 35
  4. This looks much neater thanks. However, this seems to randomise the name order but the names always start with an A SELECT n.Name, g.Gender FROM tblnames AS n INNER JOIN tblgender AS g ON n.GenderID = g.GenderID WHERE name Like CONCAT( CAST( CHAR( floor( 65 + rand() * (1+90-65) ) ) AS CHAR(3) ) , '%')
  5. I have been working on a query to return a list of names filtered by a random beginning letter A - Z. The following SELECT gives me a random letter using ASCII characters A-Z or 65-90. 1. SELECT floor(65 + (rand() * (1+90-65))) as RandomBetween65and90 The next statement is my main query which at the moment filters rows using Like by a specified ASCII Decimal. In the example below this is 65 or A I had to CAST the CHAR function to return an ASCII Character rather than a decimal for the Like 'A%' 2. SELECT n.Name, g.Gender FROM tblnames AS n INNER JOIN tblgender AS g ON n.Gender
  6. Nope I've changed it according to my environment I've managed to get it working Stopped Apache; I edited the Hosts file and httpd-vhosts.conf Navigate to C:/xampp/apache/conf/extra or wherever your XAMPP files are located. Open the file named httpd-vhosts.conf with a text editor. Around line 19 find # NameVirtualHost *:80 and uncomment or remove the hash. <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/mysite" ServerName mysite.localhost <Directory "C
  7. Well I'm trying to install the skeleton application as this seems like a good place to start. I'm at home now on Win 8 with my install which I named "ZendApp1" located here C:xampphtdocsZendApp1 I've managed to get to point 13 on here ok so far, however the next steps seem to be confusing. I've tried both options below but none worked, I started and stopped XAMPP at various points but nothing worked - The first site suggests adding this to httpd.conf but the instructions seem biased towards wamp <VirtualHost *:80> ServerName zf2crud.localhostDocumentRoot C:wampwwwzf2crud
  8. hmmm - Maybe this is the way to install Zend Framework 2 on XAMPP http://www.w3programmers.com/install-zend-framework-2-on-your-wamp-and-xampp-server/
  9. I'm a complete noob to all the Framework apart from the very basic concept. However I want to learn more so I can use things like Zend Translate. I'm trying to set up an environment on my Win 7 laptop with my current XAMPP 1.8.2 install. After reading various installation tutorials I'm still confused as they all seem to be slightly different - some make it look easy others a lot of configuration is required. Maybe it depends upon your environment. I'm using this tutorial as this seems simplest and is tailored to xampp. http://mattbearman.com/2010/05/18/how-to-install-zend-framework-wit
  10. Maybe if I'd have read your signature I would have known it was a CSS issue and not a JS issue. I've just been using Bluefish to edit my website and just using the Source in Chrome to debug. Working blind it seems. Saw a mention of Firebug in this thread when looking back through the posts and also the mention of debuggers in your signature and had a look at the built in Chrome debugger. Cheers justsomeguy - this should help loads.
  11. Wow didn't know this existed. I've had a quick read and watched a few videos. Looks like I'll need to get my head around the Zend Framework but I can see some real potential in Globalising my site. Food for thought.
  12. I tried adding the code you suggested in various places but nothing seemed to work. Could I not use jquery to check for an odd number using some sort of if statement. The script would need to check whether the number of divs that are to be shown is odd. If it is odd then subtract 1. I think this would fix it but I'm unsure how to check for odd numbers and at what point. i.e. On Click
  13. I wasn't sure where to put this thread but seeing it is a php based one I've put it here. Feel free to move it somewhere appropriate if need be. I was contemplating translating my site to other languages. I already use Google Translate on my site but that has it's limitations. The main reason for translating the site is so that my pages rank higher in search for the native language. I assume that to get to my website pages currently is by searching in English first and then use the Google translate functionality on my site to change it to a different language. Translating t
  14. http://www.autosnout.com/Cars-0-60mph-Listnew.php Try this. Works fine until you select 'More Rows' a few times and an additional subheading (Between 3 and 4 Seconds) appears. This knocks the increments out of synch as the sub heading adds another div. Removing the div for the sub-heading behaves like this; http://www.autosnout.com/Cars-0-60mph-Listnew2.php
  15. I have a JQuery Script (vers 1.10.2) which shows or hides chunks of rows from a php based list. This works by showing or hiding a specific number of css related div elements by clicking the 'Show More' or 'Show Less' text at the bottom of the visible list. It works fine apart from when the Group Heading for a new group in the list appears and puts the incrementing div elements out of sync. Group Heading: echo "<div><h3 class='listrow'>Between ".$min." and ".$max." seconds.</h3></div>" Hmm - Just remove the div element in the group heading I hear you say
×
×
  • Create New...