473,762 Members | 8,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HELP - sure is a piece of cake for you

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>
Heeeeeeeeeeeeel p! I can't figure out why is that :(

Appreciate your rapid response. got some things to work on .

Efry

Jul 26 '06
17 1581
well,
after deleting all and reinstalling apache server 2 (the latest
version)
and reconfiguring all. - still with SAME PROBLEM.
nwo the server root is set to another directory/htdocs.
I have copied the directories:

htdocs, cgi-bin, modules, conf, and logs.

some due to a an error.

as said in this correspondence , phpinfo didn't work, as expected.
apache server does not give any error msgs.

I don't understand what I do wrong. please help.

thank you ,
Efry

greenflame כתב:
IchBin כתב:
PTM wrote:
"greenflame " <dy**********@g mail.comwrote in message
news:11******** *************@7 5g2000cwc.googl egroups.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 ???:
- 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-)

Hello all,
thank you for your kind assistance.

as you all think, I believe as well that I have installed it badly.

I have changed the root server to another directory, and it doesn't
recognize php files. i'll go over your suggestions to see if there's
anything I can do.
now, on the new directory I have copied the - htdocs, conf & logs
directories.
on http://localhost/ I still see the list of files.
I'll check on your suggestions and see if I manage to change anything.
Thank you all.
Efry
Jul 27 '06 #11
What OS are you using? Windows? If so, why not consider getting a pre-built
solution and installing that.

http://en.wikipedia.org/wiki/Comparison_of_WAMPs

Jul 27 '06 #12

elyob wrote:
What OS are you using? Windows? If so, why not consider getting a pre-built
solution and installing that.

http://en.wikipedia.org/wiki/Comparison_of_WAMPs
yes, I do use Windows (XP).
I have installed MySQL and as well PHP. but it doesn't work.
the PHP file does load , but the syntax is ignored. the <? php ?>

I will try to do so as I get home and hope it will fix that problem.

Thank you once again.

Efry

Jul 27 '06 #13
hello again,

I have viewed the page and read some about it.

I have installed all except Linux.

mmmmmmmmh

but i think i'll try anyway.

Efry

elyob wrote:
What OS are you using? Windows? If so, why not consider getting a pre-built
solution and installing that.

http://en.wikipedia.org/wiki/Comparison_of_WAMPs
Jul 27 '06 #14
greenflame wrote:
IchBin כתב:
>PTM wrote:
>>"greenflame " <dy**********@g mail.comwrote in message
news:11****** *************** @75g2000cwc.goo glegroups.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 ???:
- 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-)

Hello all,
thank you for your kind assistance.

as you all think, I believe as well that I have installed it badly.

I have changed the root server to another directory, and it doesn't
recognize php files. i'll go over your suggestions to see if there's
anything I can do.
now, on the new directory I have copied the - htdocs, conf & logs
directories.
You do not want to move htdocs, conf & logs directories. Just leave them
alone. You only need to change the 'DocumentRoot' to point where you
want to load your php scripts. You could just leave the 'DocumentRoot'
the default and put your scripts in htdocs.
on http://localhost/ I still see the list of files.
I'll check on your suggestions and see if I manage to change anything.
Thank you all.
Efry
Did you add these changes to your apache.conf:

- Add index.php to 'DirectoryIndex index.html index.html.var'
- Add these:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
- Add (I am on Windoze and run Apache2 so)
LoadModule php5_module "C:/php5.2/php5apache2.dll "
- I keep my PHP.ini in the PHP_Base_folder , so I configure to the PHP
ini:
PHPIniDir "C:/php5.2"
SetEnv PHPRC "C:/php5.2"

Take a look at this link:
http://www.tanguay.at/installPhp5.php5

Specifically items:
6. Configure PHP5 to Work with Apache
7. Test PHP5

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-)
Jul 27 '06 #15

IchBin wrote:
greenflame wrote:
IchBin כתב:
PTM wrote:
"greenflame " <dy**********@g mail.comwrote in message
news:11******* **************@ 75g2000cwc.goog legroups.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 ???:
- 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-)
Hello all,
thank you for your kind assistance.

as you all think, I believe as well that I have installed it badly.

I have changed the root server to another directory, and it doesn't
recognize php files. i'll go over your suggestions to see if there's
anything I can do.
now, on the new directory I have copied the - htdocs, conf & logs
directories.

You do not want to move htdocs, conf & logs directories. Just leave them
alone. You only need to change the 'DocumentRoot' to point where you
want to load your php scripts. You could just leave the 'DocumentRoot'
the default and put your scripts in htdocs.
on http://localhost/ I still see the list of files.
I'll check on your suggestions and see if I manage to change anything.
Thank you all.
Efry

Did you add these changes to your apache.conf:

- Add index.php to 'DirectoryIndex index.html index.html.var'
- Add these:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
- Add (I am on Windoze and run Apache2 so)
LoadModule php5_module "C:/php5.2/php5apache2.dll "
- I keep my PHP.ini in the PHP_Base_folder , so I configure to the PHP
ini:
PHPIniDir "C:/php5.2"
SetEnv PHPRC "C:/php5.2"

Take a look at this link:
http://www.tanguay.at/installPhp5.php5

Specifically items:
6. Configure PHP5 to Work with Apache
7. Test PHP5

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
_______________ _______________ _______________ _______________ ______________
Thanks a lot, I believe that it is exactly what I need.
I will check it as I get home.
will keep yuo updated. Thank you :D:D:D:D
Efry
>
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Jul 27 '06 #16
greenflame wrote:
elyob wrote:
>>What OS are you using? Windows? If so, why not consider getting a pre-built
solution and installing that.

http://en.wikipedia.org/wiki/Comparison_of_WAMPs


yes, I do use Windows (XP).
I have installed MySQL and as well PHP. but it doesn't work.
the PHP file does load , but the syntax is ignored. the <? php ?>

I will try to do so as I get home and hope it will fix that problem.

Thank you once again.

Efry
Maybe short tags is off?

<?php
phpinfo();
?>

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jul 27 '06 #17

IchBin wrote:
Did you add these changes to your apache.conf:

- Add index.php to 'DirectoryIndex index.html index.html.var'
- Add these:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
- Add (I am on Windoze and run Apache2 so)
LoadModule php5_module "C:/php5.2/php5apache2.dll "
- I keep my PHP.ini in the PHP_Base_folder , so I configure to the PHP
ini:
PHPIniDir "C:/php5.2"
SetEnv PHPRC "C:/php5.2"

Take a look at this link:
http://www.tanguay.at/installPhp5.php5

Specifically items:
6. Configure PHP5 to Work with Apache
7. Test PHP5

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-)

I absolutely adore you!!! Thank you, thank you, and thank you again!!!!
PROBLEM SOLVED!!!!

short description of problem: PHP blank screen and source code can be
seen (is not recognized)

solution: follow IchBin's comment here.

Thanks also to the great person who wrote this:
http://www.tanguay.at/installPhp5.php5

step by step and all the little problems that may get in the middke

Jul 28 '06 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
2432
by: Caesar | last post by:
Hi, I'm wondering if anyone here can point me in the right direction. My host does not provide php, and so I need to pull this data from another server that does support such scripting. Help? JC
11
4155
by: wolfesimon | last post by:
I have a form where the user copies a handwritten contract into a text field "Contract1". The contract usually exeeds 255 characters. Therefore I provided "Contract2", "Contract3", and "Contract4" fields. When "Contract1" cannot accept further input, the user continues on to "Contract2", ect. I don't want to use memo fields for obvious reasons. Does anyone have an event procedure and code, which could monitor
53
2858
by: Paul Watt | last post by:
Hi again, Ok so I've got two new problems with this layout http://www.paulwatt.info/test/turn/ 1) When I increase the width of the Maincontent Div from 73% to 74% to line it up with the right hand side of the page, the whole div drops to below the level of the leftcell div. put it back to 73% and it goes back to its correct posistion. 2) It looks fine in IE but a absolute dogs dinner in FF. whys this?
17
10043
by: cpptutor2000 | last post by:
Could some C guru please help me? I have a simple piece of code as: #include <stdio.h> #include <stdlib.h> #include <openssl/rand.h> int main(){ unsigned char temp; RAND_bytes(temp, 4);
0
5573
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
1
1438
by: dkintheuk | last post by:
Hi all, Just had the wierdest thing happen overnight to one of my databases. I have a frontend/backend set up with the front end under development on my machine. I was copying a load of old files of the network while I had my front end performing some tasks overnight and I have managed to copy an old version of the front end over the version i had open. I didn't know I
5
5247
by: AdrianG | last post by:
I am trying to write a single SQL query that would retrieve the data that I need. For example, I have a table called Athletes that has 2 fields: name and sport containing the name of an athlete and the sports that he or she participates in. Some sample data: John,hockey Michael,football John,swimming Eric,swimming Michael,baseball
2
1500
by: pepino13 | last post by:
I am a beginner and I am acquiring a new PC with XP Professional, I am currently using notepad to write ASP.Net pages. Is there any software that would help me or make it easier to learn? thanks,
0
9378
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9927
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9812
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
3510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.