Jump to content

gech

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by gech

  1. OK thanks a lot (for your time and sharing). I guess I still have some way to go to include your thinking into my thinking.

    AND yes, you were absolutely right, it works when I lift the php code out to a file extended .php (as link from the .html)

    So now I probably will associate .html with the application/x-php-   in my conf file so I dont need to go trough my whole old project and change (will see if my old conf file has survived the crash (which I of cause should have done earlier).

     

    Many thanks again.  As usual the trivial is the most difficult with computers. The absolutly worst buggs to find are those that are no buggs, just odd features.

  2. Ok, I understand that I dont understand (,any more). I was of the impression that Apache found the php tag, and then sent the content up to the "untag", to php for processing, which return would then be inserted into the document;

    you are suggesting that, instead, the php is running like some kind of preprocessing, solving all php, insering it into the document and then handing it back to apache for resolving the .html syntax parts ?

    Or are you saying that I need to / have a choice to configure apache to work with <?php tags inside html labeled files ?

  3. wow, thats news;

    In my old, now krasched Hd environment, any inclusion of <?php    start tag in a html code /   .html marked document would be sent and processed by php...

    Ok, I have also an antiquated Internet explorer that has now clear "view source" only a button "source", which comes back with my original

    file in an "notepad" window. There the php text is shown, but it is dubious whether the info is retreived via the localhost, or directly though file (since it pops up in an edit window, but that might only be old and good MS smartness)

    But yes, the php code is there (but would that not just be displayed also in the browser window as "text" if php was not installed ?, does the php tag <?php give special handling (not include text) if php is not installed ? 

    I will begin by downloading another browser to the work machine.

     

    Thanx all

  4. and since I have

    display_error = on

    in the php.ini file, I guess that php should return any error (what could go wrong with an echo statement !?) to the browser....

    My think would be; that the php code within <?php ...... ?> is not properly passed to the php engine for some reason (are there any tools to check the 'api', how the passing from apache code to the php module; i have added the global path defintion with c:\php where the php .dll files are located)

  5. Hmm might be true. But its actually not LAMP right off, its winXP, with A, then not MySq but MimerSq (through ODBC), and of cause PHP.

    In some way I have concluded that 5.2 is the last A that is feasible (the g disrespect of size and complexity is monumental), so Im in the museum department. (I want light and fast things).

    So I guess I struggle on for a while (and see if I can understand anything).

    Thanks btw.

  6. HI thanks,

    well I have been looking into error loggs for apache

    I also tried to make an fopen("x.dat","w"); (and fwrite and fclose)

    but found no file (where i expected, ie. on htdocs where the test index.html file that im showing using explorer and localhost (http:127...)

    which works fine for the html part content, but there the <?php statement just comes back as blank, and I cannot find any x.dat file create (on same dir as the .html  at least)

    Guess you refer to error reporting in php ?

    I have set error_reporting(E_ALL) first thing in php code (in .html doc); but i think that is already turned on since it is set in the php.ini i use.

  7. Hi !

    I have downloaded and installed Apache2.2, and then taken steps to install PHP5.2.

    This to resurrect an environment I have had before, and worked well.

    All seem ok, the apache html page content comes back (using local-loop in browser) ;

    and the call to PHP seems to have been executed, but it comes back as blank, i.e. nothing is inserted where

    the <?php echo "xxx"; ?> was placed. No errors reported in any step.

    Any ideas what could be wrong ?

     

     

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.