Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Re: PHP


    "Bill Cunningham" <some@some.net> schrieb im Newsbeitrag
    news:3f25f7f2_2@corp.newsgroups.com...
    > I'm new to PHP and I have apache which I can't seem to get set up right.
    The
    > 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
    >
    We need some more info.
    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

  2. #2

    Default Re: PHP

    Tuesday 29 of July 2003 15:42, Bill Cunningham wrote in comp.lang.php:
    > 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.
    Well, if you have Apache 4.2.3, you have a problem (since Apache is
    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

  3. #3

    Default Re: PHP


    "Robert Jirik" <robert@aristoteles.xhaven.net> wrote in message
    news:bg5uug$247d$1@news.nextra.cz...
    > Well, if you have Apache 4.2.3, you have a problem (since Apache is
    > currently either 1.3.2x or 2.0.4x ;)) ...
    >
    Oops. I guess that's 2.0.47 apache. I have so many windows and linux source
    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

  4. #4

    Default 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

  5. #5

    Default PHP

    cannot install PHP

    Joe Pere Guest

  6. #6

    Default Re: PHP

    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>
    Andy Hassall Guest

  7. #7

    Default Re: PHP

    On Tue, 17 Feb 2004 19:06:31 +0000
    Andy Hassall <andy@andyh.co.uk> wrote:
    > 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>
    RTFM ;-)
    --
    Microsoft asks you where you want to go. Unix gets you there...
    Rudi Guest

  8. #8

    Default Re: PHP


    "Joe Pere" <paparazzo@sympatico.ca> wrote in message
    news:40325FCD.8D899C58@sympatico.ca...
    > cannot install PHP
    You're going to have to be a *lot* more specific than that. WHY can't you
    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

  9. #9

    Default 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

  10. #10

    Default Re: PHP

    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...
    Gerard Samuel Guest

  11. #11

    Default Re: PHP

    Gerard Samuel wrote:
    > 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"
    >
    >
    You will have to add the following entries to the httpd.conf file for
    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

  12. #12

    Default Re: PHP

    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).
    >
    >
    Simple configuration needed. Note that this is PHP4.

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

  13. #13

    Default Re: PHP

    Jeffery Fernandez wrote:
    > Gerard Samuel wrote:
    >
    >> 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"
    >>
    >>
    > You will have to add the following entries to the httpd.conf file for
    > 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139