header

Is it possible for PHP to generate a fresh page on every Javascript history.go(-1) ?

Hello, I have a PHP page (a.php) which is already sending these headers: <?php header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Pragma: no-cache'); ?> And on the PHP page (a.php) , it has a link to another page (b.html) on b.html, it has a javascript...

What is the smallest Windows header I can #include to define DWORD?

I have a small header file of my own which declares a couple of functions, one of which has a return type of DWORD. I'm reluctant to drag in windows.h just to get the official definition of this type since that file is huge, and my header will be used in a number of source modules that don't otherwise need it. Of course, in practice I ...

Retrieve messageId of email being sent using ezcomponents ezcMailComposer

I'm trying to retrieve the messageId for the email being sent. I've tried explicitly setting the messageId just before sending, like this: $mail->setHeader('messageId',ezcMailTools::generateMessageId('example.com')); I then return the messageId after sending, like this: return $mail->getHeader('messageId'); ... but the counter po...

When to put C++ function in header file

I've been looking at Boost and various other C++ libraries. The vast majority of Boost is implemented in header files. My question is: under what conditions do you do a header-only implementation (like Boost) or also include a .cpp file? ...

Any significance to Google's "expires" date being Fri, 01 Jan 1990 00:00:00 GMT?

I was looking at the response headers for my GMail account and noticed that the date Fri, 01 Jan 1990 00:00:00 GMT shows up as the value for "Expires" over and over again. I suppose this is just an easy constant to make sure the browser understands this is past its freshness date. But is there any significance to that particular date? On...

Error using a hyphen as an object property name in Flex

I'm trying to assemble a header object for an api request. One of the headers is 'Content-Type'. The hyphen is causing a compile error. Flex is giving me: 1050 - Cannot assign to a non-reference value. I find it spiteful that they enjoy the use of a hyphen in the error message while I hang my head and come here for answers. ...

#include headers in C/C++

After reading several questions regarding problems with compilation (particularly C++) and noticing that in many cases the problem is a missing header #include. I couldn't help to wonder in my ignorance and ask myself (and now to you): Why are missing headers not automatically checked and added or requested to the programmer? Such feat...

Weird bug in header in IE7

Hi all, I have a weird bug in IE7. http://www.luukratief-design.nl/dump/simplefolio/ the navigation has to be centered. same goes for the background. Now every browser does it perfectly. even IE6! (didnt do pngfix yet). The only one who is having problems is IE7 who shifts the whole navbar element to the right. Anyone knows how this i...

Mimic behaviour of UITableView section headers staying visible during scroll

When you have a sectioned, plain-style tableview on the iPhone, such as in the Contacts app, the section headers remain visible when you scroll past them until they are pushed offscreen by the next section header. Does anyone know how to achieve something like this in an ordinary scrollview? I already have one scrollview nested in anoth...

Flex - Issues vertically aligning Datagrid header text

Hi!! I'm having some issues aligning the header text of a datagrid. I'm using an embed font for the header text, and when applying the css, the header text behaves as if I'd set the text vertical align to top. I'm trying to vertically center the text, but haven't found a way to make it work. An image to give you a better idea: Any ti...

What's the best way to automatically print an HTML header and bottom in php?

Currently I'm using: PrintHeader(); /* Page code... */ PrintBottom(); Is there a better way? ...

Is it possible to send an email and auto redirect in single php file?

As the title said: Is it possible to send an email (using php mail()) and after sending the email, auto redirect to another page. All the codes will be in single php file? Code-wise, should be something like this: if(mail(argument...)){ header("Location: www.google.com"); } I think I would get a: "Error: header information alrea...

What's the relationship between header files and library files in c++?

Why do we need to add both includes and libs to the compilation? Why doesn't the libs wrap everything in it? ...

Redirecting a HTTP rqueust and response code/headers

Hi, I have a loosely coupled web app (one part uses PHP, the other uses WGSI). The WSGI/python framework shares the authentication with the PHP app, meaning that generally, the user should Log in via the PHP interface Now the user can access any of the WSGI pages [this part works if the user has logged in] What I want to do though, ...

echo is not working in my php-gdlibrary page

Hi, i am trying to create an ellipse using php gd library; also i want to display something under the ellipse. but the usual echo will not work with this. somebody please help me to find the reason and suggest a solution. this is my php code header('Content-type: image/png'); $handle = imagecreate(100, 100); $background = imagecoloral...

How to retain headers for all the pages of an exported pdf in php?

Hi I am exporting data from php page to pdf when the datas exceeed the page limit the header is not available for the consecutive pages function where i call the export to pdf is function changeDetails() { $bType = $this->input->post('textvalue'); if($bType == "pdf") { $th...

iPhone UITableView header won't disappear

In my app, I have a UITableView, grouped style. The table has two modes. In mode 1, it shows one section (A), and in mode 2, it shows 2 sections (A and B). I transition between the two modes via the insertSection and deleteSection methods of UITableView. In addition, I have header text for each section This works great for the most part...

How to append to the beginning of a text fle in g++

I want to write to a file without overwriting anything. It is a text file containing records. When I delete a specific record, I do not actually remove it from the file, I just put information in the header saying that it is deleted. How can I do this? ...

Export to word from php doesn't seem to work for me...

I exported data from php page to word document but the problem is the header is not available in all pages.... Header is present in the first page but not in the next pages of the word document..... Here is my code, function changeDetails() { $bType = $this->input->post('textvalue'); if ($bType == "word") { $this->...

Xerces C++ SAX Parsing Problem: expected class-name before '{' token

I'm trying to run through an example given for the C++ Xerces XML library implementation. I've copied the code exactly, but I'm having trouble compiling it. error: expected class-name before '{' token I've looked around for a solution, and I know that this error can be caused by circular includes or not defining a class before it is ...