I have a php script with is used to rotate banner images on a site.
Under Firefox/IE page refreshes will make another request and a different image will be returned.
Under Chrome, the request seems to be cached and only opening the page in a new tab will cause it to actually query the script.
I believe this used to work in older versions of chrome, I've tried a few different types of redirect codes all with the same result.
Any tips?
<img class="banner" src="/inc/banner.php" alt="">
~$ cat /var/www/inc/banner.php
<?php
header("HTTP/1.1 302 Redirect");
header("Cache-Control: max-age=0, no-cache, no-store, must-revalidate");
//header('HTTP/1.1 307 Temporary Redirect');
//header("expires: none");
//header("expires: max");
//header("Cache-Control: public");
$folder = '../img/banner/';
$exts = 'jpg jpeg png gif';
$files = array(); $i = -1;
if ('' == $folder) $folder = './';
$handle = opendir($folder);
$exts = explode(' ', $exts);
while (false !== ($file = readdir($handle))) {
foreach($exts as $ext) { // for each extension check the extension
if (preg_match('/\.'.$ext.'$/i', $file, $test)) { // faster than ereg, case insensitive
$files[] = $file; // it's good
++$i;
}
}
}
closedir($handle); // We're not using it anymore
mt_srand((double)microtime()*1000000); // seed for PHP < 4.2
$rand = mt_rand(0, $i); // $i was incremented as we went along
header('Location: '.$folder.$files[$rand]);
flush();
?>
curl output;
~$ curl -I -k https://example.net/inc/banner.php
HTTP/1.1 302 Redirect
Server: nginx/1.1.14
Date: Fri, 24 Feb 2012 03:23:46 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.3.10-1ubuntu1
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Location: ../img/banner/2.jpg
HI Guys
Please Help
I am pretty New Here.
I'm having problems. Cannot connect with chrome or Internet Explorer. Fire Fox works fine. It seems it happens when I was infected by a "Trojan Horse Generic 17.BWIK" and
a "Trojan Horse SHeur.UHL", when I reply to a post for a Thread I posted. I have removed the treat and got Fire Fox working, "so i think", but not G'Chrome or IE still cannot connect. I do not want to loose Chrome History so re-setting would be my last option and uninstall and install will be out of the question. Is there a way around this? I am using XP Pro on a desktop and DSL connection.
Be aware from "Fake_Antispyware.FAH", which I had on my computer, I just found out while doing this, according to my AVG anti-virus security.
Please can you direct me for a cure.
Thank you in advance for your sincere willingness contributions.
Can running Firefox and Chrome at the same time cause problems?
Sometimes when I switch from FF to chrome, where I have many more tabs up, the pages on chrome refresh slowly (1 second?), from top to bottom.
I'm having this problem with Chrome on a Windows 7 x86 machine. I'm using Chrome for a locally hosted intranet web app. In the web app, there's frequent use of new window which popup, which works like a dialog box for the app.
The problem started since yesterday. All the new windows doesn't appear on top and no where to be found on the desktop. But it does appear on the taskbar. Clicking the button on the taskbar doesn't bring up the window as well. I've also tried Alt+Space, then Move, it doesn't work. I only found 2 way to bring it up, Maximize or Show as tab.
What could have caused this and how should I fix it?
Thanks
EDIT: I've configure to not group taskbar buttons.
EDIT: I've just gone through the javascript of the button, it call window.open to display the popup. I can see the popup flicker and disappear. If I step through the code, the popup will display properly, sometime. Also, if I click the button twice, it will also display the popup, but at a much smaller size, less than 100x100
My screen resolution is actually 3200x1800, but when I'm in a browser it acts like I have a smaller resolution. How do I get my browsers to use my full resolution?
On Chrome it's using 1280x720, and on IE it's using 1600x900. According to whatismyscreenresolution.com, which is showing different values for different browsers. I took a screenshot of them and verified that my resolution is 3200x1800 as that is the pixels in the bitmap.
I'm on a laptop with no monitor plugged in. My zoom in both browsers is at 100%. I've tried zooming out below 100% but then the text is unreadable and pixellated. I've tried restarting. Windows 8.1. I've tried the chrome extension OptiZoom and it does nothing. document.body.clientWidth gives 1247, and I want it to give 3200.
When I visit, for example, http://www.bolagsverket.se from a user account on this Windows 2008 Server, Chrome displays the site but all the text is gone. When I try in IE it's even worse, it doesn't even load the page, I jsut end up with this: http://dl.pixelstore.se/image/0y1f0y0w1J39
The fonts used for this site is (from CSS): font-family:Frutiger,Frutiger Linotype,Univers,DejaVu Sans Condensed,Liberation Sans,Nimbus Sans L,Geneva,Helvetica Neue,Helvetica,Arial,Tahoma,sans-serif
If I edit the CSS through Chrome Developer Tools, and erase all fonts until Arial it suddenly works.
The strange thing is that everything works fine from the administrator account, it's just (all) the user accounts that doesn't work.
My guess is that Chrome/IE is asking for the fonts but somehow they are restricted in the user account. Instead of just ignoring the fonts they can't find they try to render them anyway. Any clue?
I recently moved all my Java installations from C:\Program Files\Java to D:\Java, as my C:\ partition only had a few MB of free space left and windows kept on bugging me about it. I also edited every registry entry in HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft that pointed to the old directory to now point to the new one. Then changed the PATH variables and removed the old files, did a restart, and all Java applications work just fine.
Yet, Chrome is the only application that seems to have a problem with what I did, as the Java Plugin isn't recognized any more.
Are there any registry entires I may have missed? Maybe in the Chrome registry? How can I make this work again?
Guidelines for answers:
ONE feature per answer.
Note a mail client that has the feature (if more than one have the feature, just pick one)
Summarize the feature, and describe why the it would be beneficial. (Include links and/or screen-shots where appropriate.)
Office for Mac 2008 just asked me whether I wanted to update. However, on continuing with the update, a Window popped up saying that I needed to close Chrome before the update could continue. I find this rather suspicious, since Office should not need to go anywhere near Chrome.
Any idea why there might be a legitimate reason for this, or alternatively, just what is Microsoft trying to sneak on to my computer?
EDIT: I did look at the download details on Microsoft's website, but aside from the general guff about closing all open applications, it doesn't mention anything about Chrome or any browser plugins.
Hi Im trying to print a php generated document in chrome, on the browser it looks fine But my printer will not print any coloured backgrounds. I know that IE has an option to print background but chrome does not . As the end user will print this off I do not want to find alternatives like a screen grab or save file etc I want to find a real solution to this .
Can anyone offer any suggestions please ? Thanks
Every page I try to go to in chrome says "This webpage is not available" but websites work fine in other browsers.
I recently installed http://www.getwindmill.com/ just to experiment. I think my problem has to do with proxy settings.
I like to use the Ctrl or Alt + Number shorcut to jump quickly to a specific tab. Problem is: When you have a lot of tabs open it is hard to look at them and quickly know which one is tab number 7.
Is there a way (extension possibly) to show a tab's number in its title?
This way each tab would have a number added to its title right beside the favicon. This way you could immediately tell which number you need to press to jump to a specific tab.
I use both Chromium and Firefox, so I'm accepting answers for either one (though I'd prefer both =) ).
I'm running Windows 7, 64-Bit on a Core-i5 HP Notebook. For approximately the last 3 months, I've had major problems with Adobe Flash. Flash has been uninstalled and installed again multiple times. No changes.
Here is what happens in different browsers: (All browsers are in the latest version as of this post)
Firefox: Doesn't work at all. This bothers me most, since FF is my favorite browser; I'm using a lot of Plugins. Have tried to de-activate all Plugins, but no change.
IE and Chrome: Works, but most pages with Flash are stuck during page load for ~30 seconds. After that, everything is fine.
Opera: No problems, everything working as it should.
Strange, eh? Any help is highly appreciated!
Hello there,
A friend of mine (who is not a geek) asks me how to stop her little brother from playing web games on her computer. She is currently using Chrome and IE, and I have never done that before, even on FF.
I would prefer a solution that is simple and does not require additional applications. Although it seems unlikely, is there a solution that works for all browsers (i.e. do it once and I never have to fix it for a new browser)?
Thanks.
I often have 6 or 7 separate Chrome windows open, often with 5-10 tabs in each. When I look at Windows Task Manager, I see each chrome.exe process, with some using a large amount of memory. How can I find which particular tab the process refers to? I want to know which one uses the most memory and close that tab instead of having to close every Chrome window. Is there any way to get this information? This is on Windows Vista, but it is the same on other versions of Windows as well.
Fortify.net is a service that displays what's the currently encryption key used by your browser in a https connection.
If I browse this site with Chrome 4.1.249.1042 in WinXp SP3 the key used is
RC4 cipher, 128-bit key
This encryption is weak, and it's the one used by old browsers like IE6.
Chrome works fine on Fedora9 and it uses
AES cipher, 256-bit key
as more modern browsers do (i.e.Firefox)
I consider this a security issue. I'm considering to switch back to Firefox in Windows.
Do you know if it's possible to change the default encryption key in Chrome?
Ok i've tried a couple and they've been miles out.
I don't need anything automated or any json / xml etc just a good website where i can paste in an address, receive co-ords and then paste elsewhere.
anyone recommend a good one?
I upgraded from Karmic Koala to Lucid Lynx beta, was working fine for a while (was even rebooting). But, after some time, it is not booting and i cant find a solution.
I have tried installing the grub again, doesn't help.
Well, the problem is all my settings, bookmarks and passwords are blocked in that partition. I cant find where the Chrome stores bookmarks in Ubuntu.
Can you help me either getting my system rebooted or getting the bookmarks ?
Thanks.
p.s. I am currently on liveusb.
I'm using awesome as window manager for a small surf&info terminal. Chromium is started directly after login on the first workspace and should be displayed fullscreen. I've set the layout of all workspaces to awful.layout.suit.max and followed Awesome FAQ so that Chromium and all other (automatically) started programs will be shown on the right workspace. All programs except Chromium will start correctly in fullscreen mode.
I tried
{ rule = { class = "chromium-browser" },
properties = {floating = false, tag = tags[1][1]}}
and
{ rule = { class = "chromium-browser" }, properties = {tag = tags[1][1]}}
but Chromium will always start in floating mode. This is a bit annoying as you still see awesome's panel at the top.
i'm doing some research on how browsers support TLS-SRP (RFC5054).
I know that TLS-SRP is implemented in GnuTLS, OpenSSL as of release 1.0.1, Apache mod_gnutls, cURL, TLS Lite and SecureBlackbox.
I don't find any fresh source of information, only this from 2011: http://sim.ivi.co/2011/07/compare-tls-cipher-suites-for-web.html
I'm testing them manually at the moment, but as far as i know nobody seems to support it.
My interest is then in understanding if browsers are planning to support these ciphersuites in the future, apart from the current state.
Actual findings (i'm sorry i can't include more than 2 links):
Firefox: BugZilla bug id: 405155
IE: Microsoft connect Bug ID:788412 , date:22/05/2013 (closed)
Chromium/Chrome: the interesting work by quinn slack http://qslack.com/2011/04/tls-srp-in-chrome-announcement/
Chromium code review: 6804032
Any other help?
I set up a Microsoft Exchange account on my iOS device to sync my Gmail contacts. But Microsoft Exchange is ignoring phone numbers that are labeled as 'iPhone' or 'main'.
For example, John Smith:
On Mac and Gmail:
John Smith
main: 123-334-1212
home: 123-330-1002
work: 123-330-8211
iPhone: 123-778-5556
On iOS device (via Exchange sync):
John Smith
home: 123-330-1002
work: 123-330-8211
I'd like to sync my contacts from my Mac to iCloud and Gmail, but you can't do both:
Is there a solution to sync iOS and Gmail contacts without using Exchange? Thanks for any help!
On Windows, I can add Gmail as a faux application to the Taskbar, by using something like "add to task bar" in the Wrench-Tools menu. This promotes it to appear as a native application in the task bar.
I notice that the same menu item isn't there for Chrome on Mac - at least, not in the same place. I'm looking for a "Add to Dock" function.
Can this be done on the OS X version of Chrome? If so, how? I'm sick of having my email client hanging out with the other browser tabs.