Jump to content

gech

Members
  • Content Count

    12
  • Joined

  • Last visited

Everything 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. SO, now I have installed another browser (firefox); and yes the php included text in the .html document is shown, although in another color (indicating that firefox is the one that recognizes the php and removes it from display in the browser, I guess). SO what in the installation of php in apache can have gone wrong ?
  4. 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
  5. 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)
  6. Hi requinix, as I tried to explain; No there is no trace of the <?php echo "xxx"; ?> line that I have put into the index.html which contains text that I Do see in browser, when accessing through localhost address ( http://127.0.0.1:8080 )
  7. the answer is 17 well mostly I like to understand what Im doing, but you are surely perfectly right; in case I do not just move problems to get MimerSQL in instead of MySQL..... (or is MySQL also connected via ODBC ?)
  8. So I note that it doesnt seem to make a difference if PHP is configured at all in the httpd.conf file or not; removing the loadmodule for C:/php/php5apache2_2.dll (commenting out) does not change results; the <?php echo "xxx"; ?> statement in .html is ignored in exactly the same silent mode ...
  9. 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.
  10. So i actually have not concluded if I ever enter the PHP processing (doesnt seem so since I get no x.dat file), or if it is the return text from the echo, from PHP that gets lost on going back to apache.
  11. 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.
  12. 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.