php script request

Rodney Blackwell wrote:
>
> anybody have a simple script I could install (and hopefully an nice readme
> file I can use) to test to see if PHP is working correctly on my server?
> I’ve never installed a PHP script…is it much different from installing a
> perl script?

php scripts are easy.

Just type this into a text file that has the extension .php:

<?php phpinfo()?>

upload it to your server and go to it in your browser. If it runs, it works. :slight_smile:

anybody have a simple script I could install (and hopefully an nice readme file
I can use) to test to see if PHP is working correctly on my server? I’ve never
installed a PHP script…is it much different from installing a perl script?


Rodney Blackwell - site owner/administrator

http://T-ShirtCountdown.com http://TalkT-Shirts.com/ http://ihateclowns.com/
http://NewT-Shirts.com/ http://DomainJunkies.com/ http://EmailSources.com/
http://SellYourLogo.com/ http://JackAssMail.com

Re: php script request

create a text file with a .php extension. Put these lines in it:

<? print “Hello world!”; phpinfo(); ?>

And you’re done.

-Mike K.

Re: php script request

On Mon, 2 Apr 2001 20:24:03 -0700 Rodney Blackwell said…

> I’ve never installed a PHP script…is it much different from installing a
> perl script?

Nope,

Just edit the paths, and fill out any config variables

$admin_email = ‘you@you.com’; etc…

and upload (anywhere, no need for a cgi-bin).


John R. Marshall JRM Studios.com - http://www.jrmstudios.com The Hotrodding
Network - http://www.hotrodding.net

Re: php script request

Whooohoooo!!!

php works now. :slight_smile:

http://thedoh.dyndns.org/test1.php

Off to http://www.php.net :slight_smile:


Sean S. -:- ICQ: 1826323 (Email: sunymoon <AT> GeoCities >DOT< com )

Rodney Blackwell wrote in message
<9abfoi$m16$1@constitution.worldwebserver.com>…
>anybody have a simple script I could install (and hopefully an nice readme file
>I can use) to test to see if PHP is working correctly on my server? I’ve never
>installed a PHP script…is it much different from installing a perl script?
>
>–
>Rodney Blackwell - site owner/administrator

>http://T-ShirtCountdown.com http://TalkT-Shirts.com/ http://ihateclowns.com/
>http://NewT-Shirts.com/ http://DomainJunkies.com/ http://EmailSources.com/
>http://SellYourLogo.com/ http://JackAssMail.com

>

Re: php script request

cool, thanks. That worked, but is it supposed to print the whole configuration
of php after the Hello world?


Rodney Blackwell - site owner/administrator

http://T-ShirtCountdown.com http://TalkT-Shirts.com/ http://ihateclowns.com/
http://NewT-Shirts.com/ http://DomainJunkies.com/ http://EmailSources.com/
http://SellYourLogo.com/ http://JackAssMail.com

“Mike King” <mike@webcodefocus.com> wrote in message
news:3AC94285.CFF66BDC@webcodefocus.com
> create a text file with a .php extension. Put these lines in it:
>
> <? print “Hello world!”; phpinfo(); ?>
>
> And you’re done.
>
> -Mike K.

Re: php script request

wow, PHP is looking kinda cool (and not too difficult to program). I’m going
through a few tutorials now. how come nobody ever told me about php before :wink:


Rodney Blackwell - site owner/administrator

http://T-ShirtCountdown.com http://TalkT-Shirts.com/ http://ihateclowns.com/
http://NewT-Shirts.com/ http://DomainJunkies.com/ http://EmailSources.com/
http://SellYourLogo.com/ http://JackAssMail.com

“John R. Marshall” <john@jrmstudios.com> wrote in message
news:MPG.153339088ab0e809989708@news.worldwebserver.com
> On Mon, 2 Apr 2001 20:24:03 -0700 Rodney Blackwell said…
>
> > I’ve never installed a PHP script…is it much different from installing
a
> > perl script?
>
> Nope,
>
> Just edit the paths, and fill out any config variables
>
> $admin_email = ‘you@you.com’; etc…
>
> and upload (anywhere, no need for a cgi-bin).
>
> –
> John R. Marshall JRM Studios.com - http://www.jrmstudios.com The Hotrodding
> Network - http://www.hotrodding.net

Re: php script request

On Tue, 3 Apr 2001 02:58:12 -0400 Sean said…

> Whooohoooo!!!
>
> php works now.
>
> http://thedoh.dyndns.org/test1.php

Quick tip, dump Omni and install Apache.

Then install PHP as a Apache module. Otherwise you will run into some things
that will work in windows but not on a linux/Apache server.


John R. Marshall JRM Studios.com - http://www.jrmstudios.com The Hotrodding
Network - http://www.hotrodding.net

Re: php script request

Rodney Blackwell wrote:
>
> cool, thanks. That worked, but is it supposed to print the whole configuration
> of php after the Hello world?

Yes, that’s what phpinfo() does… check out the manual at php.net :slight_smile:
Verrry helpful.

Re: php script request

On Mon, 2 Apr 2001 23:41:10 -0700 Rodney Blackwell said…

> wow, PHP is looking kinda cool (and not too difficult to program). I’m going
> through a few tutorials now. how come nobody ever told me about php before
>

No one likes you :wink:

Best tip I can give you is to download the manual in winhelp (in HTML .chm)
format from php.net It’s nice to have a searchable manual that’s always handy.

If you use editplus I made a old winhelp format (.hlp) of the manual that works
with it. (HTML help files don’t work) It will automatically open to the function
under the cursor. You just have to set it up under user tools.

http://www.jrmstudios.com/PHP_manual_winhelp.zip


John R. Marshall JRM Studios.com - http://www.jrmstudios.com The Hotrodding
Network - http://www.hotrodding.net

Re: php script request

Just a temporary step, slip-32-102-30-141.in.us.prserv.net until I get this xfs
problem (!!!) fixed .


Sean S. -:- ICQ: 1826323 (Email: sunymoon <AT> GeoCities >DOT< com )

John R. Marshall wrote in message …
>On Tue, 3 Apr 2001 02:58:12 -0400 Sean said…
>
>> Whooohoooo!!!
>>
>> php works now.
>>
>> http://thedoh.dyndns.org/test1.php
>
>Quick tip, dump Omni and install Apache.
>
>Then install PHP as a Apache module. Otherwise you will run into some things
>that will work in windows but not on a linux/Apache server.
>
>–
>John R. Marshall JRM Studios.com - http://www.jrmstudios.com The Hotrodding
>Network - http://www.hotrodding.net

Re: php script request

Rodney Blackwell wrote:
>
> cool, thanks. That worked, but is it supposed to print the whole configuration
> of php after the Hello world?

Yes, that’s what phpinfo(); does.

-Mike K.

Re: php script request

Or just make a bookmark of this:

javascript:phpfunc=window.prompt(‘PHP Function Lookup:’,’’) ; if(phpfunc &&
phpfunc != ‘’) { window.location =
http://www.php.net/manual-lookup.php?function=’ +phpfunc; } else {
history.go(-1); }

Then click on the bookmark, enter your function name, and it’ll take you to the
PHP online manual.

-Mike K.

“John R. Marshall” wrote:
>
> On Mon, 2 Apr 2001 23:41:10 -0700 Rodney Blackwell said…
>
> > wow, PHP is looking kinda cool (and not too difficult to program). I’m
> > going through a few tutorials now. how come nobody ever told me about php
> > before
> >
>
> No one likes you
>
> Best tip I can give you is to download the manual in winhelp (in HTML .chm)
> format from php.net It’s nice to have a searchable manual that’s always handy.
>
> If you use editplus I made a old winhelp format (.hlp) of the manual that
> works with it. (HTML help files don’t work) It will automatically open to the
> function under the cursor. You just have to set it up under user tools.
>
> http://www.jrmstudios.com/PHP_manual_winhelp.zip
>
> –
> John R. Marshall JRM Studios.com - http://www.jrmstudios.com The Hotrodding
> Network - http://www.hotrodding.net

Re: php script request

On Tue, 03 Apr 2001 09:35:35 -0400 Mike King said…

> Or just make a bookmark of this:
>
> javascript:phpfunc=window.prompt(‘PHP Function Lookup:’,’’) ; if(phpfunc &&
> phpfunc != ‘’) { window.location =
> ‘http://www.php.net/manual-lookup.php?function=’ +phpfunc; } else {
> history.go(-1); }
>
> Then click on the bookmark, enter your function name, and it’ll take you to
> the PHP online manual.

Won’t work for us dial up users when we are working off-line :wink:


John R. Marshall JRM Studios.com - http://www.jrmstudios.com The Hotrodding
Network - http://www.hotrodding.net