Hi. I have a little problem with redirecting. Registered users follows this link site.com/reg.php?passkey=1234 but the first the user get redirected to the correct language based on a cookie. I need to keep the passkey variable when the user is redirected. like this ?lang=en_US&passkey=1234
My code so far look something like this:
if...
Hi,
I'm currently using the JNI to generate C headers for native methods being used in a Java class ABC. However, I'd like to use these methods elsewhere, in another class XYZ, so hence I made a class called cLib which basically just had the prototypes of the native methods, and which when generated gave me the header file for the meth...
Hi there, im having trouble setting the Etag on a user's browser reliably. When a user clicks on one of my external links, i would like to set the article id into their Etag (i use cookies too, but id like to experiment with Etag specifically to test its reliability).
When the same user returns to my site a few hours/days later, i woul...
in my site , i have a jqgrid table.
by default, the names of the columns (header) is longer than the width for column, because that i set the name with an ellipsis.
however, when resizing the column, the short name with ellipsis stays.
how can i get it work automatic ,
like the ellipsis should disappear and change to the full name wh...
I have an Array that I pass to a CustomAdapter for a ListView. The array has items that are already sorted. Something like:
[{"stuff":[{"stuff_id": "1", "value":"test123"},
{"stuff_id": "1", "value":"test123"},
{"stuff_id": "2", "value":"test123"}]}]
The Array changes allot so I do not know haw many sections I will have. So far I am...
How can I load a JAR file from a URL in Java while making the request for the file seem legit by adding necessary HTTP Headers into the request.
The only way I know how to maintain the loaded JAR file at the moment is to use ClassLoader.
I think I nailed this question pretty good (Or so it seems that way in my head!) but if anyone need...
Please forgive me if this is a dumb question, I'm fairly new to C and couldn't find an example of this online so I assume I cant do what I want. but, hopefully someone here can point me into the right direction.
so I have a headerfile that declares a struct like so
typedef struct{
float *float_array1;
float *float_array2;
...
Hi guys,
So I am having this problem wit my download link. Basically my previous way of creating download link is to just have a form button with method='link' and the action to be the link to the file. This works for firefox and others but not safari. For some reason, when the user tries to download the file (excel file) from safari, ...
There are struct definitions in the .h file that my library creates after I build it.. but I cannot find these in the corresponding .h.in. Can somebody tell me how all this works and where it gets the extra info from?
To be specific: I am building pth, the userspace threading library. It has pth_p.h.in, which doesn't contain the struct...
Hello,
I'm trying to figure out a way where I can change my current output directory using C++ code - and also need that method to be platform agnostic.
I found the direct.h header file which is Windows compatible, and the unistd.h which is UNIX/POSIX compatible. Any solutions?
Cheers.
...
I have a Station object defined as:
@interface RFStation : NSObject {
NSString *stationID;
NSString *callsign;
NSString *logo;
@end
I also have an NSMutableArray called 'StationList' which is a list of Station objects. This list is sorted alphabetically by 'callsign'.
I also have another NSArray called 'generalList', c...
Hi,
I've implemented a download script using PHP headers to download PDF files. My script is working fine and downloading the corresponding PDF file also in my localhost but that script is not working in my server.
My code is:
header("Content-Disposition: attachment; filename='dfile.pdf'");
header("Cache-Control: must-revalidate, pos...
Now I am trying to implement High web site performance following YSlow rules. In terms of Expires Header, I have configured in nginx like the following:
if ($request_uri ~* ".(ico|css|js|gif|jpe?g|png)\?[0-9]+$") {
expires max;
break;
}
Yes, I got the good result because I could not see css and javascript files followed by time...
Though i have set the from address in header it again shows my server info as from address.
[email protected]
What is a possible solution? Here is my code
<?php
//Requests
$name= $_REQUEST["name"];
$email= $_REQUEST["email"];
$phone = $_REQUEST["phone"];
$msg= $_REQUEST["message"];
//$to
$to = '[email protected]';...
It's common practice where I work to avoid directly using built-in types and instead include a standardtypes.h that has items like:
// \Common\standardtypes.h
typedef double Float64_T;
typedef int SInt32_T;
Almost all components and source files become dependent on this header, but some people argue that it'...
I realize this question has been asked quite a bit on StackOverflow; hoever, after looking through a number of them, I believe my question has one more requirement. I want to transform a regular html table, into a table that can be scrolled both vertically and horizontally, while the the header remains at the top. The width of this tab...
I am struggling with PHP's GD library.
I have written a script called foo.php which outputs a png:
header('Content-type:image/png');
$img = imagecreatefrompng($url) or die('bad url:'.$url);
imagepng($img);
imagedestroy($img);
It works fine. Its purpose is to accept a GET parameter and then spit out the appropriate graph:
(e.g.) fo...
I have an SWT Table that I'm instantiating with the SWT.CHECK style in order to display a check box next to every row. My users have requested another check box in the header row of the table in order to allow them to select/deselect all the rows with one click.
I can't see any obvious way to do it, and I've only found Swing/JTable e...
Hi,
( note prefix means http: )
I'm setting up a new website on port 8080, on windows 2003 IIS6.
i've setup the physical files in c:\TestNet and given iusr_ access.
within IIS console it can see the files in the right pane, so i know it's path is correct.
when viewing prefix//localhost:8080 or prefix//192.168.xxx.yyy I can get to ...
Going through the php.net site, it had an example for header, which says would give me error. I copied it, and executed on on WAMP, but it didn't showed me any error, but did redirect to the site.
<html>
<?php
/* This should give an error (but it doesn't!). Note the output
* above, which is before the header() call */
header('Location:...