Jump to content

devknob

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by devknob

  1. Hi, I just inherited a huge mess in the form of 5 css files =) -- Is there a program that will tell me what CSS im not using? I need to cut the fat.
  2. Hi. Im using gmdate to convert seconds to Days/Hours/Minutes/Seconds and its correct except for the number of days it calculates. Does anyone know why this would happen? $secs = 432000; // This is 5 days exact $time = gmdate('d:H:i:s',$secs); //This returns 06:00:00:00 when it should return 05:00:00:00 Does anyone know why this would happen?
  3. If I could replace dreamweaver, I think I could cut WINE and Windows out of my life. Also, im working at a place that just uninstalled dreamweaver from everyones computers. I know MonoDevelop is a great IDE and as far as i've seen, most of the PHP IDE's suck. Does anyone know how to configure MonoDevelop to work well with PHP? Can't really find anything useful on goog yet.
  4. Yeah Im leaning toward removing... since nobody knows what that filter is about.. thanks =)
  5. The website is "thiswebsite.com" and its filtering out all domains "{blank}" "thiswebsite\.com$" ? Doesnt make sense....
  6. Does anyone good with regular expressions understand what this is saying? (Google Analytics Filter) (see attached img) It seems to me that it says Exclude traffic from just http://thissite.com (the main domain we're tracking)- but if there is more after the .com, I think it would show the traffic. Also see the empty drop down box? I'm not sure what effect that has on analytics. Anyone have a clue what this filter would do? This analytics install has been running for years and nobody seems to have questioned this. The site gets lots of traffic and there is nothing OBVIOUSLY wrong with it.
  7. Is there a way to do this without the wildcards?
  8. Ive found out that the nesting <IfModule> and <FilesMatch> works fine... fyi
  9. Also, can you nest <FilesMatch> inside <IfModule> ? Like <IfModule mod_expires.c> <FilesMatch something> ..stuff </FilesMatch> </IfModule>
  10. Kinda unable to try this right now but I cant find an example of using <FilesMatch> with multiple files without wildcards anywhere. Would something like this work? <FilesMatch "index.php" "config.php"> ...stuff </FilesMatch> or maybe <FilesMatch (index.php|config.php)> ...stuff </FilesMatch>
  11. Im using mod_proxy.c and curl in PHP to scan through some google search results and I was wondering if google can detect where the connections are originating from? If I use curl through a proxy to make the connection, is there any way google can tell what server is being used to make that connection through the proxy?
  12. Hi guys, I am creating a website that takes product feeds and am working on optimizing the table structure and feed import/update functionality. Id like to get some shopping feeds for any category that complies with Google's shopping specifications for feeds. The site is working and will soon be displaying product. Just message me on here with your feed url or an email address so we can get in touch. The site is for merchant services and is another product search engine with a twist. I'd post the url but im not launched. Need to play with some more big feeds =) Also, this will ensure your inclusion in the engine provided there is quality, free of charge for at least the first year. I am an SEO and will not be using blackhat techniques so you can rest assured the links [dofollow] you receive from me will be of a high quality.
  13. i got it working the dumb patchy way RewriteEngine On Options +FollowSymLinks Options All -Indexes RewriteBase /blog/ AddHandler text/css .css AddHandler application/x-javascript .js i put this in /blog/ still waiting for the right way using <directory> tho
  14. something else should be preventing it from working right? everything else works. RewriteEngine On Options +FollowSymLinks Options All -Indexes AddType application/x-httpd-php .php .xml RewriteBase / RewriteCond %{REQUEST_URI} !^/blog RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !\.+$ RewriteCond %{REQUEST_URI} !/$ RewriteRule ^(.*) http://thishorridsite.com/$1/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.+)\.html?$ http://thishorridsite.com/ [R=301] RewriteRule ^engines/(.*)$ engines.php?query=$1 [L] RewriteRule ^lamits/(.*)$ lambodoorkits.php?query=$1 [L] RewriteRule ^radctors/(.*)$ beltronics.php?query=$1 [L] RewriteRule ^whels/(.*)$ wheels.php?query=$1 [L] RewriteRule ^whed/(.*)$ wheels-by-brand.php?query=$1 [L] RewriteRule ^(.*)/$ a3.php?query=$1 [L] ErrorDocument 400 /400.php ErrorDocument 401 /401.php ErrorDocument 403 /403.php ErrorDocument 404 /404.php ErrorDocument 500 /500.php # secure htaccess file <Files .htaccess> order allow,deny deny from all </Files> # deny access to evil robots site rippers RewriteCond %{HTTP_USER_AGENT} ^Anarchie [OR] RewriteCond %{HTTP_USER_AGENT} ^ASPSeek [OR] RewriteCond %{HTTP_USER_AGENT} ^attach [OR] RewriteCond %{HTTP_USER_AGENT} ^autoemailspider [OR] RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR] RewriteCond %{HTTP_USER_AGENT} ^Xenu [OR] RewriteCond %{HTTP_USER_AGENT} ^Zeus.*Webster [OR] RewriteCond %{HTTP_USER_AGENT} ^Zeus RewriteRule ^.* - [F,L] #cache <ifModule mod_headers.c> Header unset ETag </ifModule> FileETag None ExpiresActive On ExpiresDefault "access plus 30 days" ExpiresByType image/gif "access plus 30 days" ExpiresByType image/png "access plus 30 days" ExpiresByType image/jpg "access plus 30 days" ExpiresByType text/css "access plus 30 days" ExpiresByType text/php "access plus 30 days" #does fuck all , 500 internal service error <Directory "/blog/"> AddHandler application/x-httpd-php .css AddHandler application/x-httpd-php .js </Directory> php_flag zlib.output_compression On
  15. tried everything <Directory /blog/> AddHandler application/x-httpd-php .css AddHandler application/x-httpd-php .js </Directory> http://httpd.apache.org/docs/2.0/sections.html it should work but it doesnt. anyone know anything? stuff
  16. hardlink to your css http://yoursite/css/cssfile.css just assuming you're using relative paths.
  17. <Directory !^/blog/$> AddHandler application/x-httpd-php .css AddHandler application/x-httpd-php .js </Directory> I cant get this to work. I just dont want these 2 rules to run within the subdirectory "blog" since its jacking up wordpress hard. I know im almost there and I found something that could have answered it last night but I cant for the life of me find it again! =\
  18. I am not even sure if this is possible. I have a gigantic site where about 20,000 of the pages are handled by 1 processing file. It displays different template pages in the body depending on whether it is on the initial page (site.com/initial/) or sub page (this is the tricky one, explained later) and a product page. Heres the deal, each product has the potential to be on several sub pages. Currently they are determined by a string in the db. The identifiers for the initial page and the product page are standard, so a url will always begin with ?main=whatever and it will not always end in a product page, but the product is always &number= All the sub-category page identifiers do not matter. I currently have them setup as the alphabet. Here are some examples. site.com/main=Parts&a=Ship-Parts&number={whatev product} site.com/main=Parts&a=Ship-Parts&b=Masts&number={whatev product} site.com/main=Parts&a=Ship-Parts&b=Masts&c=Blue-Masts&number={whatev product} The only way I see this being possible currently is to constantly check the last _GET against all 20,000 products. Either that, or write this whole deal a different way. Is there a path to mod_rewrite this the way I currently have it setup?
  19. I cant find anyone talking about this online and idk how chatroulette/justin.tv works - but would it be possible to connect users directly to a webcam streamer thru a website without using the webhost's bandwidth? Like have an iframe on the site displaying webcam data directly from the streaming person's computer making them the host? I know this would pretty much limit you to 1 on 1 chatting. Anyone got some links on this topic? Cant find much in the goog right now...
  20. Im not sure how legit this test is, but im in here waiting for 3 moar ppl to play with http://team.forsvarsmakten.se/english/#/private/W9OwBunjCl Dont come if you've been up coding forever, requires memory and all kinds of good stuff lol
  21. ...the thing im scraping has posts posted and taken down all the time and the post is gona. like i said it worked fine until that post, which didnt have strange characters in it. This code works, ill replace my existing code and monitor for errors i guess lol. Guess I was also looking for an understanding of why Filter_Var would/could do something like this. I did not see anything in the documentation./
  22. It looked like it took ...random words from 2 other posts and put 1 before my string and 1 after. It was words and numbers. I went thru and debugged and got back to the filter_var. The string I am passing to Clean_String() absolutely does not contain this extra 'crap' - and I only get extra 'crap' when i leave filter_var in there.
  23. function Clean_String($string) { return strtolower(trim(filter_var($string, FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_LOW))); } Ive tracked my issue back to filter_var here. For some reason it is adding stuff to the beginning and end of the string im looking for. It did this on 1 string that I noticed and doesnt do it on any others, which was strange because that string was typical like all others. Just a few sentences and numbers and line breaks. I cant find a reason why this is happening
×
×
  • 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.