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 17 1578
"greenflame " <dy**********@g mail.comwrote in message
news:11******** *************@m 79g2000cwm.goog legroups.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>
Heeeeeeeeeeeeel p! 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
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 " <dy**********@g mail.comwrote in message
news:11******** *************@m 79g2000cwm.goog legroups.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>
Heeeeeeeeeeeeel p! 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
It probably depends on how / where you set up your server. I'm running
Apache, so I put files in:
Apache_root / htdocs
If you browse to http://localhost, you should get a listing of that
directory (or an index page, if there is one present).
The phpinfo() function will give a listing of all the extentions and
configuration options you currently have with PHP. If a simple:
<? phpinfo(); ?>
program doesn't work for you, you've probably configured Apache / PHP
incorrectly (very likely, it's quite difficult to set up the first few
times)
greenflame wrote:
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
I'm going to venture a guess that your server is not configured to
execute PHP pages. View the source of the result page - five bucks says
you see the PHP source in there (i.e. it looks exactly like your source
code on the server). The reason you don't see "bla bla" is because the
browser thinks <?php ... ?is just a bad XML declaration or HTML tag
and doesn't display it.
Configuring apache to run .php pages through the PHP engine is
nontrivial if you don't know what you're doing. Be careful.
Jeremy
"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 ???:
"greenflame " <dy**********@g mail.comwrote in message
news:11******** *************@m 79g2000cwm.goog legroups.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>
Heeeeeeeeeeeeel p! 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)
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 ???:
>"greenflame " <dy**********@g mail.comwrote in message news:11******* **************@ m79g2000cwm.goo glegroups.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>
Heeeeeeeeeeee elp! 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-)
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-)
"greenflame " <dy**********@g mail.comwrote in message
news:11******** *************@m 79g2000cwm.goog legroups.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>
Heeeeeeeeeeeeel p! I can't figure out why is that :(
Appreciate your rapid response. got some things to work on .
Chances are that doing a phpinfo may not work if a simple echo also doesn't
work.
Always worth taking a look at your Apache error log file.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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
|
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?
|
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);
|
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
| |
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
|
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
|
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,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
|
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...
| |
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |