|  | Posted by IchBin on 07/26/06 23:12 
PTM wrote:> "greenflame" <dynamic.efry@gmail.com> wrote in message
 > news:1153945697.003650.20850@75g2000cwc.googlegroups.com...
 > hi, Phil, and thank you for your rapid response.
 >
 > mmmm. to be honest, I'd be glad to have more instructions since I have
 > no idea what or hw to use this function. phpinfo();
 >
 > and what does it mean to run something through a server? just rephrase,
 > please.
 > :D
 >
 > thank you
 > Efry
 > PTM ???:
 >> "greenflame" <dynamic.efry@gmail.com> wrote in message
 >> news:1153944576.484296.84220@m79g2000cwm.googlegroups.com...
 >>> Hello all,
 >>> I have installed apache server on my computer and all it takes to edit
 >>> php files locally.
 >>> everything works, and i can see my index.php file .
 >>> however, the problem is:
 >>> everything which is inside the <?php  ?>is ignored.
 >>> i have even done an echo check with the simplest htmk code.
 >>> I'll copy it so you see i've done nothing wrong:
 >>>
 >>> <html>
 >>> <head></head>
 >>>
 >>> <body>
 >>>
 >>> this line can be seen when writing http://127.0.0.1/index.php on the
 >>> address bar but the bla bla is not.
 >>> <?php
 >>> echo "bla bla";
 >>> ?>
 >>>
 >>> </body>
 >>> </html>
 >>>
 >>>
 >>> Heeeeeeeeeeeeelp! I can't figure out why is that :(
 >>>
 >>> Appreciate your rapid response. got some things to work on .
 >>>
 >>> Efry
 >>>
 >> Just ran your code through my server and it all works ok. Did you run:
 >>
 >>     phpinfo();
 >>
 >> to verify your setup? It would appear you may have a config issue.
 >>
 >>
 >> Phil
 >
 > Sorry.
 > Just copied your code into a test.php file and then loaded it up into a
 > browser running off my local Apache setup (just as you would have done).
 > As Eric has said the phpinfo() command can simply be added to any '.php', so
 > just <? phpinfo() ?> in an index.php file WILL return you a LOT of php
 > information if your php is actually running.
 >
 > he wasn't kidding when he said 'its quite difficult to set up', in fact that
 > was probably an under statement.
 >
 > (ps: try not to pre-post, in other words put your reply at the end, helps
 > everyone else with reading it top-down)
 >
 >
 - Create a php file, say you call it 'phpinfo.php', with this:
 <?php
 phpinfo();
 ?>
 
 - Find in your Apache2.conf where the 'DocumentRoot' is set and save
 that file in that subdirectory.
 
 - Then load the file in a browser.
 
 http://localhost/phpinfo.php
 
 This will show you the PHP configuration.
 
 Thanks in Advance...
 IchBin, Pocono Lake, Pa, USA              http://weconsultants.phpnet.us
 __________________________________________________________________________
 
 'If there is one, Knowledge is the "Fountain of Youth"'
 -William E. Taylor,  Regular Guy (1952-)
  Navigation: [Reply to this message] |