Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Carsten B. #1
Re: PHP
"Bill Cunningham" <some@some.net> schrieb im Newsbeitrag
news:3f25f7f2_2@corp.newsgroups.com...The> I'm new to PHP and I have apache which I can't seem to get set up right.We need some more info.> environment tables that is. Not to mention PHP. I'd like to use PHP with
> java and JSP. Can an application server like this do anything writing
> conventional software can do? Like C and C++?
>
> Bill
>
What OS?
Which version of Apache?
If you want to have jsp on the same server, you´ll need a servlet engine
like Tomcat (jakarta.apache.org). You can run this as standalone (then it´s
servlet engine and webserver in one) or together with httpd-apache.
I have it as standalone - still complicated enough. ;-)
If you´re a beginner I´d recommend to start with PHP rather than jsp. It´s
much easier and doesn´t need any XML-overhead. Jsp is a good choice if you
have large projects where you need to force yourself to accuracy not to lose
grip.
C and C++ is the mother of it all. You can code PHP modules in C, but you
can´t code C with PHP. ;-) Ergo you can´t do everything with php you can do
with C or C++.
Carsten B. Guest
-
Robert Jirik #2
Re: PHP
Tuesday 29 of July 2003 15:42, Bill Cunningham wrote in comp.lang.php:
Well, if you have Apache 4.2.3, you have a problem (since Apache is> I'm using Win98 and Apache 4.2.3 I think. It's 4.2 I know that. PHP
> version is the latest at php.net. BTW I have Tomcat also. I get it half
> way usable but I can't seem to login as administrator.
currently either 1.3.2x or 2.0.4x ;)) ...
--
Robert Jirik
[mailto:robert(at)aristoteles(dot)xhaven(dot)net]
public PGP key: [url]http://xhaven.net/robert/pgp_key.asc[/url]
-
"The beauty of religious mania is that it has the power
to explain everything. Once God (or Satan) is accepted
as the first cause of everything which happens in the mortal world,
nothing is left to chance ...
logic can be happily tossed out the window"
-- Stephen King
Robert Jirik Guest
-
Bill Cunningham #3
Re: PHP
"Robert Jirik" <robert@aristoteles.xhaven.net> wrote in message
news:bg5uug$247d$1@news.nextra.cz...
Oops. I guess that's 2.0.47 apache. I have so many windows and linux source> Well, if you have Apache 4.2.3, you have a problem (since Apache is
> currently either 1.3.2x or 2.0.4x ;)) ...
>
and binaries on my HD, it's hard to keep track. Maybe I was thinking of
xfree 4.3.0.
Bill
>
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
[url]http://www.newsfeeds.com[/url] - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
Bill Cunningham Guest
-
Ğark Templer webforumsuser@macromedia.com #4
php
im learning php and if any one else out there is alos learning it please help me code
Ğark Templer im also i know as ultimate Gamerx
i currently Make proboard codes/Hacks like portals and stuff
Staff: 4
Ğark Templer webforumsuser@macromedia.com Guest
-
-
Andy Hassall #6
Re: PHP
On Tue, 17 Feb 2004 13:39:09 -0500, Joe Pere <paparazzo@sympatico.ca> wrote:
Try harder?>cannot install PHP
--
Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
Andy Hassall Guest
-
Rudi #7
Re: PHP
On Tue, 17 Feb 2004 19:06:31 +0000
Andy Hassall <andy@andyh.co.uk> wrote:
RTFM ;-)> On Tue, 17 Feb 2004 13:39:09 -0500, Joe Pere <paparazzo@sympatico.ca>
> wrote:
>>> >cannot install PHP
> Try harder?
>
> --
> Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
> <http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
--
Microsoft asks you where you want to go. Unix gets you there...
Rudi Guest
-
Anthony Saffer #8
Re: PHP
"Joe Pere" <paparazzo@sympatico.ca> wrote in message
news:40325FCD.8D899C58@sympatico.ca...You're going to have to be a *lot* more specific than that. WHY can't you> cannot install PHP
install PHP? Do you get any errors? Can you just not get your webserver to
work with it? All that kind of stuff.
Anthony
Anthony Saffer Guest
-
Andrei Iarus #9
PHP
I have installed apache-1.3.33_1, php5-5.0.3_1. And I
tried to run simple scripts like:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
and the output was an unexpected one:
Hello World
'; ?>
It also doesn`t outputs anything when using the
phpversion() function. A possible bug? Before
reporting this as a bug, I wanted to check if there
was someone else with similar problems(or may be I did
something wrong).
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
[url]http://info.mail.yahoo.com/mail_250[/url]
Andrei Iarus Guest
-
Gerard Samuel #10
Re: PHP
Andrei Iarus wrote:
First guess. Apache doesn't know about <?php tags.>I have installed apache-1.3.33_1, php5-5.0.3_1. And I
>tried to run simple scripts like:
><html>
> <head>
> <title>PHP Test</title>
> </head>
> <body>
> <?php echo '<p>Hello World</p>'; ?>
></body>
></html>
>and the output was an unexpected one:
>
> Hello World
>
>'; ?>
>It also doesn`t outputs anything when using the
>phpversion() function. A possible bug? Before
>reporting this as a bug, I wanted to check if there
>was someone else with similar problems(or may be I did
>something wrong).
>
If you installed php via the port, apache is configured automatically.
So I have to ask. Did you restart apache??
Just create a file (index.php), and in it put
<?php phpinfo(); ?>
And see what it does...
Gerard Samuel Guest
-
Jeffery Fernandez #11
Re: PHP
Gerard Samuel wrote:
You will have to add the following entries to the httpd.conf file for> Andrei Iarus wrote:
>>>> I have installed apache-1.3.33_1, php5-5.0.3_1. And I
>> tried to run simple scripts like: <html>
>> <head>
>> <title>PHP Test</title>
>> </head>
>> <body>
>> <?php echo '<p>Hello World</p>'; ?>
>> </body>
>> </html>
>> and the output was an unexpected one:
>> Hello World
>>
>> '; ?>
>> It also doesn`t outputs anything when using the
>> phpversion() function. A possible bug? Before
>> reporting this as a bug, I wanted to check if there
>> was someone else with similar problems(or may be I did
>> something wrong).
>
> First guess. Apache doesn't know about <?php tags.
> If you installed php via the port, apache is configured automatically.
> So I have to ask. Did you restart apache??
> Just create a file (index.php), and in it put
> <?php phpinfo(); ?>
>
> And see what it does...
> _______________________________________________
> [email]freebsd-questions@freebsd.org[/email] mailing list
> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
>
>
apache to understand its a php file
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
I don't know if its any different for PHP5 but for PHP4 thats what you
need to add.
cheers,
Jeffery
Jeffery Fernandez Guest
-
Kevin Kinsey #12
Re: PHP
Andrei Iarus wrote:
Simple configuration needed. Note that this is PHP4.>I have installed apache-1.3.33_1, php5-5.0.3_1. And I
>tried to run simple scripts like:
><html>
> <head>
> <title>PHP Test</title>
> </head>
> <body>
> <?php echo '<p>Hello World</p>'; ?>
></body>
></html>
>and the output was an unexpected one:
>
> Hello World
>
>'; ?>
>It also doesn`t outputs anything when using the
>phpversion() function. A possible bug? Before
>reporting this as a bug, I wanted to check if there
>was someone else with similar problems(or may be I did
>something wrong).
>
>
***These are my comments*** (be sure not to put _them_
into your httpd.conf).
-----------------------------------------------------------------------------------------------------------
#grep -A 2 php /usr/local/etc/apache/httpd.conf
LoadModule php4_module /usr/local/libexec/apache/libphp4.so
***this is necessary.***
AddModule mod_php4.c
***so is this.***
<IfModule mod_php4.c>
DirectoryIndex index.php index.html
</IfModule>
***tells Apache to use "index.php" as the preferred index,
if not present, then use "index.html" if it exists***
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .html .asp .php3
AddType application/x-httpd-php-source .phps
</IfModule>
***a little overkill, mostly for humor. My development server
treats files ending in "php", "html" and "asp" as php files and
parses them looking for PHP (mostly as a political statement).***
-----------------------------------------------------------------------------------------------------------------
Basically, you must have 1]LoadModule 2]AddModule and
3]AddType declarations in httpd.conf, then restart Apache
and your scripts should work fine.
HTH, Kevin Kinsey
Kevin Kinsey Guest
-
Gerard Samuel #13
Re: PHP
Jeffery Fernandez wrote:
> Gerard Samuel wrote:
>> You will have to add the following entries to the httpd.conf file for>> Andrei Iarus wrote:
>>>>>>> I have installed apache-1.3.33_1, php5-5.0.3_1. And I
>>> tried to run simple scripts like: <html>
>>> <head>
>>> <title>PHP Test</title>
>>> </head>
>>> <body>
>>> <?php echo '<p>Hello World</p>'; ?>
>>> </body>
>>> </html>
>>> and the output was an unexpected one:
>>> Hello World
>>>
>>> '; ?>
>>> It also doesn`t outputs anything when using the
>>> phpversion() function. A possible bug? Before
>>> reporting this as a bug, I wanted to check if there
>>> was someone else with similar problems(or may be I did
>>> something wrong).
>>
>>
>> First guess. Apache doesn't know about <?php tags.
>> If you installed php via the port, apache is configured automatically.
>> So I have to ask. Did you restart apache??
>> Just create a file (index.php), and in it put
>> <?php phpinfo(); ?>
>>
>> And see what it does...
>> _______________________________________________
>> [email]freebsd-questions@freebsd.org[/email] mailing list
>> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe@freebsd.org"
>>
>>
> apache to understand its a php file
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> I don't know if its any different for PHP5 but for PHP4 thats what you
> need to add.
Forgot about that.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
is what I have (php 5.0.2), so I guess you are correct..
Gerard Samuel Guest



Reply With Quote

