header

Alternative Header() command to set Referer in PHP?

Hello PHP magicians! I am trying to initiate a download from a server that will give a 403 forbidden unless the referrer is set to the same domain. Currently Header() allows me to redirect the user to the file location and init a download, but referrer is always set to my script. Use of curl would cause the file to download on the serve...

Cannot modify header information, headers already sent.

I tried using xampp lite portable in my flash drive so that I could bring the server anywhere. But I always get an error when using xampp. This error in particular: Warning: Cannot modify header information - headers already sent by (output started at /path/to/geeklog/public_html/blabla.php:581) in /path/to/geeklog/public_html/system/li...

Displaying a Multi-Paged FlowDocument with repeating Headers

Hi, i am trying to add Headers / footers to a WPF FlowDocument. I Found a solution on the Internet here that is using a custom Paginator Class to do this. Unfortunately this only works when printing out the Document, which is not what I intend to do. My Idea was to use a FlowDocumentPageReader or something similar with a custom paginato...

PDF Viewer Save dialog box shows source code file name as default

I am rendering a PDF correctly using SSRS SDK for PHP, and it is being displayed in viewer correctly. But, when I click the save button on the Adobe Reader, the dialog box shows the name of the source files name rather then the name I pass in via HTTP Header. here is my code: header('Content-Type: application/pdf; filename="'.basename...

Login using headers in cucumber

I'm new at cucumber and capybara so maybe this is easy. I'm using headers to check if a user is logged in or not and i'm having a problem when doing cucumber testing. I use Capybara and Cucumber and a "add headers hack": http://aflatter.de/2010/06/testing-headers-and-ssl-with-cucumber-and-capybara/ The problem I have is that it only ...

centering an element in a table cell so it's in the absolute center of the page?

The vBulletin v3.6 message board uses a table for the header image. What I'd like to do is have the left cell remain left aligned but have the div in the right cell to be in the absolute center of the page. If that's not possible, what is the best way to accomplish this? I attempted using a wrapper div and inline CSS properties but i...

JS/CSS caching problem

Hello, To reduce http requests, as well as make the rollout process easier for js/css files, I've setup my php app to do concatenation of js and css files. All included files are sequentially combined into one large file using 2 letter codes for each file (ex. home.js code = "AA"). To generate the names I combine all the codes in the or...

C++ header file variable scope issue

Hi, I've got 3 files that relate to this problem. file.h, file.C and user.C. file.h has a private member, fstream logs. In file.C's constructor it opens logs. It doesn't do this in the constructor, but the constructor calls a function OpenLog(). file.h also has an inline close function: CloseLog() {if (logs) logs.close();} The f...

Inserting user credentials in HTTP request header

I'm trying to insert user credentials into an HTTP request header which is then sent via https to a web service, which in turn reads them for authorization purposes... Client and Service are both written in Java. On the client side I do the following: ExampleImplService service = new ExampleImplService(); Example port = service.getExa...

How can I add header files to gcc in mac os x 10.6

Hello, I want to build a static library that requires openssl for iPhone. It can't find include files from openssl. How should I tell the compiler where to look for those header files? Thanks. EDIT: I'm trying to build librtmp for iPhone, for arm not for simulator. Just to test something. Im not building it from xcode. I think i have fo...

Partial uploads, upload only header.

Is there a way in PHP use a HTML form to upload only the header of the file. The length of the header is defined within the first few bytes of the file, I want only that part nothing else. After I have received the last byte of the header, I don't want any more of the file. Is there a graceful way to do this in PHP or am I going to have ...

XmlHttpRequest corrupts headers in Firefox 3.6 with "Content-Type:multipart/form-data"

I'm working on "multiple ajax uloader". Works fine in bleeding edge browsers (Chrome 6, Firefox 4). But in Firefox 3.6 I must manualy create output string to be sended, cos this browser doesn't support FormData object. I followed many tutorial, especialy this. Author notify about correct setup of headers & content of body to be sended. ...

Warning: Cannot modify header information - headers already sent by ...

Please save me. I know that this question has been asked many times, however, I can't seem to find solutions that are relevant to my situation. The problem: Warning: Cannot modify header information - headers already sent by (output started at /.../Sites/st.ambulance/resources/views/login.view.php:32) in /.../Sites/st.ambulance/resource...

uitableview header that stays at top

I'd like to have a tableview header that can remain at the top of the table, even when the user has scrolled down. I tried using a section header for this, but my table has multiple sections so I can't guarantee that one particular header will be at the top. What should I do? ...

Function template in a namespace in a separate file compiles fine, but the linker cannot find it

This problem is in defining and declaring a function template in a namespace that is defined in an external file from where the function is instantiated. Here's the smallest reproducible example I could come up with. 4 files follow: The function template declaration in a named namespace: // bar.h #include <algorithm> namespace barspac...

best way to show a image near my header section of tableview with header title

Hi friends, I have to show a image near my header section of tableview with header title.Can anybody suggest the best way of doing it? Thanks in advance for your suggestion. Regards, sathish ...

Flex AdvancedDataGrid - Remove sort arrow

Is it possible to completely remove the sort arrows on an AdvancedDataGrid header? I know that you can kinda do this by using <mx:AdvancedDataGrid sortExpertMode="true"/> and I even tried using <mx:AdvancedDataGrid sortExpertMode="true"> <mx:columns> <mx:AdvancedDataGridColumn sortable="false" /> This doesnt work be...

C++: Platform dependent types - best pattern

I'm looking for a pattern to organize header files for multiple platforms in C++. I have a wrapper .h file that should compile under both Linux and Win32. Is this the best I can do? // defs.h #if defined(WIN32) #include <win32/defs.h> #elif defined(LINUX) #include <linux/defs.h> #else #error "Unable to determine OS or current OS is n...

Can you review my PHP created header?

So, I'm reading through the YUI best practices for speeding up your web page, and I'm using PHP to try and implement some of those suggestions. Here is what I have so far: <?php // Expires one year from now $expires = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1); // Format date $date = date('D, d M Y H:i:s', $expires); // Se...

Latex: Header and section titles with background.

I want to make a latex template similar to this: http://img826.imageshack.us/img826/9599/cat.png Header and section title has a grey background. How can I do that? ...