473,397 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Getting started - not quite working

OK I've got Apache up and running also PHP and edited the httpd.conf and
php.ini as recommended(by ricocheting.com).
Problem is as soon as I have a single or double quote,all PHP after that
just gets dumped to the browser even though I do of course close the quote.
Anyone have any idea why?
Thanks,Si.
Jan 14 '07 #1
7 1203
Si.W wrote:
OK I've got Apache up and running also PHP and edited the httpd.conf and
php.ini as recommended(by ricocheting.com).
Problem is as soon as I have a single or double quote,all PHP after that
just gets dumped to the browser even though I do of course close the quote.
Anyone have any idea why?
Thanks,Si.

Make a file than only has
<?php phpinfo(); ?>
If that works, dig into the manual and start learning syntax. Also, try
downloading some scripts to view working code.
Jan 15 '07 #2
Si.W wrote:
OK I've got Apache up and running also PHP and edited the httpd.conf and
php.ini as recommended(by ricocheting.com).
Problem is as soon as I have a single or double quote,all PHP after that
just gets dumped to the browser even though I do of course close the quote.
Anyone have any idea why?
Thanks,Si.

can you give us at least a "Hello World" example of the problem?

create a file with just:

<?php echo "Hello World<br>"; echo 'Hello World<br>'; ?>

what is the result?

If you view the source, you should get:

Hello World<br>Hello World<br>
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com
Jan 15 '07 #3

"Michael Austin" <ma*****@firstdbasource.comwrote in message
news:CV****************@newssvr11.news.prodigy.net ...
Si.W wrote:
>OK I've got Apache up and running also PHP and edited the httpd.conf and
php.ini as recommended(by ricocheting.com).
Problem is as soon as I have a single or double quote,all PHP after that
just gets dumped to the browser even though I do of course close the
quote.
Anyone have any idea why?
Thanks,Si.

can you give us at least a "Hello World" example of the problem?

create a file with just:

<?php echo "Hello World<br>"; echo 'Hello World<br>'; ?>

what is the result?

If you view the source, you should get:

Hello World<br>Hello World<br>
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com
Thanks Boss,
Appreciate the 1st comment that I should go through the docs,but y'know
it's a bit dispiriting.Tried the Hello World which showed that my first idea
was wrong as the browser output was:
"; echo 'Hello World
'; ? .
Something's gone wrong,but I ain't sure what.Reinstalled once so I'll
have to see what's what but any advice appreciated.
Si.
Jan 15 '07 #4
"Si.W" <sw****@ntlworld.comwrote in message
news:Dt*******************@newsfe4-gui.ntli.net...
>
"Michael Austin" <ma*****@firstdbasource.comwrote in message
news:CV****************@newssvr11.news.prodigy.net ...
>Si.W wrote:
>>OK I've got Apache up and running also PHP and edited the httpd.conf and
php.ini as recommended(by ricocheting.com).
Problem is as soon as I have a single or double quote,all PHP after that
just gets dumped to the browser even though I do of course close the
quote.
Anyone have any idea why?
Thanks,Si.

can you give us at least a "Hello World" example of the problem?

create a file with just:

<?php echo "Hello World<br>"; echo 'Hello World<br>'; ?>

what is the result?

If you view the source, you should get:

Hello World<br>Hello World<br>
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com

Thanks Boss,
Appreciate the 1st comment that I should go through the docs,but y'know
it's a bit dispiriting.Tried the Hello World which showed that my first
idea was wrong as the browser output was:
"; echo 'Hello World
'; ? .
Something's gone wrong,but I ain't sure what.Reinstalled once so I'll
have to see what's what but any advice appreciated.
Si.
OK seems to be a server config problem as I can see the php when I view
source.
Should be fun,my setup lines up with what the PHP docs tell me,so I'll have
to start looking at the Apache docs .. joy!
Thanks for help,Si.
Jan 15 '07 #5
Si.W wrote:
"Si.W" <sw****@ntlworld.comwrote in message
news:Dt*******************@newsfe4-gui.ntli.net...
>>"Michael Austin" <ma*****@firstdbasource.comwrote in message
news:CV****************@newssvr11.news.prodigy.n et...
>>>Si.W wrote:
OK I've got Apache up and running also PHP and edited the httpd.conf and
php.ini as recommended(by ricocheting.com).
Problem is as soon as I have a single or double quote,all PHP after that
just gets dumped to the browser even though I do of course close the
quote.
Anyone have any idea why?
Thanks,Si.

can you give us at least a "Hello World" example of the problem?

create a file with just:

<?php echo "Hello World<br>"; echo 'Hello World<br>'; ?>

what is the result?

If you view the source, you should get:

Hello World<br>Hello World<br>
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com

Thanks Boss,
Appreciate the 1st comment that I should go through the docs,but y'know
it's a bit dispiriting.Tried the Hello World which showed that my first
idea was wrong as the browser output was:
"; echo 'Hello World
'; ? .
Something's gone wrong,but I ain't sure what.Reinstalled once so I'll
have to see what's what but any advice appreciated.
Si.

OK seems to be a server config problem as I can see the php when I view
source.
Should be fun,my setup lines up with what the PHP docs tell me,so I'll have
to start looking at the Apache docs .. joy!
Thanks for help,Si.

you should be loading mod_php.conf in your httpd.conf and in your mod_php.conf
you should have:

AddType application/x-httpd-php .php .phtml .html .htm
AddType application/x-httpd-php-source .phps ##this is optional
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com
Jan 15 '07 #6
Si.W wrote:
"Si.W" <sw****@ntlworld.comwrote in message
news:Dt*******************@newsfe4-gui.ntli.net...
>>"Michael Austin" <ma*****@firstdbasource.comwrote in message
news:CV****************@newssvr11.news.prodigy.n et...
>>>Si.W wrote:
OK I've got Apache up and running also PHP and edited the httpd.conf and
php.ini as recommended(by ricocheting.com).
Problem is as soon as I have a single or double quote,all PHP after that
just gets dumped to the browser even though I do of course close the
quote.
Anyone have any idea why?
Thanks,Si.

can you give us at least a "Hello World" example of the problem?

create a file with just:

<?php echo "Hello World<br>"; echo 'Hello World<br>'; ?>

what is the result?

If you view the source, you should get:

Hello World<br>Hello World<br>
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com

Thanks Boss,
Appreciate the 1st comment that I should go through the docs,but y'know
it's a bit dispiriting.Tried the Hello World which showed that my first
idea was wrong as the browser output was:
"; echo 'Hello World
'; ? .
Something's gone wrong,but I ain't sure what.Reinstalled once so I'll
have to see what's what but any advice appreciated.
Si.

OK seems to be a server config problem as I can see the php when I view
source.
Should be fun,my setup lines up with what the PHP docs tell me,so I'll have
to start looking at the Apache docs .. joy!
Thanks for help,Si.

if you are using Apache, your httpd should have the following line:

Include /apache$root/conf/mod_php.conf

in your mod_php.conf file there should be:

AddType application/x-httpd-php .php .phtml .html .htm ##(htm* is optional)
AddType application/x-httpd-php-source .phps ##optional
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com
Jan 15 '07 #7
"Michael Austin" <ma*****@firstdbasource.comwrote in message
news:xJ*******************@newssvr22.news.prodigy. net...
Si.W wrote:
>"Si.W" <sw****@ntlworld.comwrote in message
news:Dt*******************@newsfe4-gui.ntli.net...
>>>"Michael Austin" <ma*****@firstdbasource.comwrote in message
news:CV****************@newssvr11.news.prodigy. net...

Si.W wrote:
>OK I've got Apache up and running also PHP and edited the httpd.conf
>and php.ini as recommended(by ricocheting.com).
>Problem is as soon as I have a single or double quote,all PHP after
>that just gets dumped to the browser even though I do of course close
>the quote.
>Anyone have any idea why?
>Thanks,Si.

can you give us at least a "Hello World" example of the problem?

create a file with just:

<?php echo "Hello World<br>"; echo 'Hello World<br>'; ?>

what is the result?

If you view the source, you should get:

Hello World<br>Hello World<br>
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com

Thanks Boss,
Appreciate the 1st comment that I should go through the docs,but
y'know it's a bit dispiriting.Tried the Hello World which showed that my
first idea was wrong as the browser output was:
"; echo 'Hello World
'; ? .
Something's gone wrong,but I ain't sure what.Reinstalled once so I'll
have to see what's what but any advice appreciated.
Si.

OK seems to be a server config problem as I can see the php when I view
source.
Should be fun,my setup lines up with what the PHP docs tell me,so I'll
have to start looking at the Apache docs .. joy!
Thanks for help,Si.

if you are using Apache, your httpd should have the following line:

Include /apache$root/conf/mod_php.conf

in your mod_php.conf file there should be:

AddType application/x-httpd-php .php .phtml .html .htm ##(htm* is
optional)
AddType application/x-httpd-php-source .phps ##optional
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com
I'll have a look tomorrow,thanks for the pointers,will hopefully help.
Si.
Jan 15 '07 #8

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

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
34
by: Volker Hetzer | last post by:
Hi! I've done lots of programming for CAD, which was basically C/C++ and tcl/tk. Now, we are thinking about introducing more web based tools, programming them ourselves and right now the toolchain...
30
by: Stuart Turner | last post by:
Hi Everyone, I'm working hard trying to get Python 'accepted' in the organisation I work for. I'm making some good in-roads. One chap sent me the text below on his views of Python. I wondered...
5
by: Paul H | last post by:
How do you folks get a reliable and complete brief of what is required before development starts? I am forever going back to a client once a project has started saying "Hang on, now that I've...
84
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
0
by: abillmeier | last post by:
I am just getting started messing with ASP 2.0, and am working on creating a quick data entry web hooked to a SQL database. I am using stored procedures to get and push data. I am having a...
13
by: ThaDoctor | last post by:
I would like to get started with programming in C, but I cant get it to work, I do not need any compiler or such. Only a basic explanation of the first program Hello World that print "Hello World"...
25
by: Eric | last post by:
Hello, after reading some of the book Programming Python it seems that python is something I would like to delve deeper into. The only thing is, I have no idea what I should try and write. So I was...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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,...
0
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...

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.