I'm trying to achieve the following:
anydirectory/index.php?query _str --> anydirectory/index2.php?quer y_str
anydirectory/anysubdirectory/index3.php?quer y_str --> anydirectory/anysubdirectory/index4.php?quer y_str
What I need is to do a 301 from a page inside a directory to another page inside a directory (it's the same page name for every directory in my website, so, I know which are both pages but not which is...
User Profile
Collapse
-
It is allocated when program starts. As I am declaring tac as struct, not as a pointer to struct.
't' is used to make it clear that it'll be a text file and not a binary 'b'. However, I did try with r, without success.
Debugger breaks on that line, how could the problem be elsewhere?
Many Thanks both!... -
Segmentation Fault with fopen
Hi, I'm getting a segmentation fault on this code when it gets to fopen:
tac.h:
main.cCode:typedef struct { char* ventanaInspeccion; char* ventanaMemoria; FILE* archivo; } TAC; int TAC_Abrir(TAC* tac, char* archMensaje);
tac.c:Code:TAC tac; TAC_Abrir(&tac, argv[2]);
...Code:int TAC_Abrir(TAC* tac, char*
-
mod_rewrite question
I'd like to redirect URLs in a directory in this way:
categories/anything/index.php?id=13 to
categories/index.php?id=13
To achieve that, I've uploaded a .htaccess file to "categories " directory that contains the following:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^[.*]/index\.php\?id= ([0-9]*)$ index.php?id=$1
</IfModule>... -
Sort with GROUP BY, HAVING
Hi
I've got the following table:
id id_items id_fc nombre cantidad unidad precio moneda
1 1 0 Prod1 9612 unidad 152 dolar
21 1 1 prod3 150 NULL NULL NULL
9 1 0 prod3 500 ton 321 peso
20 1 1 Prod1 100 NULL NULL NULL
19 1 NULL NULL NULL NULL NULL NULL
I'd like to obtain registers grouped by 'nombre', with the data from the one (from the rows with same 'nombre') that has... -
setTimeout
Hi, I need a function that is called every certain amount of time (which is variable).
I coded this, but seems to be making some sort of infinite loop, as it hangs the browser (or the OS on old computers)
...Code:function slideFotos(seccion){ //clearTimeout(intervarID); if (info[seccion+'0'] != undefined){ siguiente = _root.photoActual + 1; if (info[seccion+siguiente] != undefined){ -
because it's not only this:
{"items":[{"id":"1","titu lo":"Prueba"}]}
there are many items with many other "properties ". and I think this is the best way to parse this information. something similar to XML in a way. I can access any property like this:
obj_detalle.ite ms[itemNumber].property
though I it is not working on IE.Leave a comment:
-
because it's the way to use JSON. it turns the sent string into a javascript object.
I have also tried with POST instead of GET.. but still getting the same results....Leave a comment:
-
null or not an object in IE
I have developed a webapp that works very good on firefox and opera, but on IE I keep getting an error message.
I use AJAX to communicate with a PHP file that queries a MySQL database and returns the information in JSON.
...Code:function sendQuerystring2(url,mod,columna) { http2.open("GET", url, true); if (mod == "tabla") { http2.onreadystatechange = function (){
No activity results to display
Show More
Leave a comment: