User Profile

Collapse

Profile Sidebar

Collapse
macaco
macaco
Last Activity: Jan 18 '09, 10:28 PM
Joined: Apr 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • macaco
    started a topic Help with RewriteRule

    Help with RewriteRule

    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...
    See more | Go to post

  • macaco
    replied to Segmentation Fault with fopen
    in C
    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!...
    See more | Go to post

    Leave a comment:


  • macaco
    started a topic Segmentation Fault with fopen
    in C

    Segmentation Fault with fopen

    Hi, I'm getting a segmentation fault on this code when it gets to fopen:

    tac.h:

    Code:
    typedef struct
    {
    	char* ventanaInspeccion;
    	char* ventanaMemoria;
    	FILE* archivo; 
    } TAC;
    
    int TAC_Abrir(TAC* tac, char* archMensaje);
    main.c
    Code:
    TAC tac;
    TAC_Abrir(&tac, argv[2]);
    tac.c:
    Code:
    int TAC_Abrir(TAC* tac, char*
    ...
    See more | Go to post

  • macaco
    started a topic mod_rewrite question

    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>...
    See more | Go to post

  • macaco
    started a topic Sort with GROUP BY, HAVING

    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...
    See more | Go to post

  • macaco
    started a topic setTimeout

    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){
    ...
    See more | Go to post

  • macaco
    replied to null or not an object in IE
    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.
    See more | Go to post

    Leave a comment:


  • macaco
    replied to null or not an object in IE
    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....
    See more | Go to post

    Leave a comment:


  • macaco
    started a topic null or not an object in IE

    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 (){
    ...
    See more | Go to post
No activity results to display
Show More
Working...