View Full Version : problem getting Php


tallman
01-24-2006, 07:07 PM
when i download it, then try a code the simple

<?php echo "Hello World" ?>


it wont show as anything.

Do i need a server to use php, even to test?

harmor
01-24-2006, 09:17 PM
Yes.
You need a server that supports php.

Douglas
01-25-2006, 12:14 AM
If you have Windows XP Professional, and the disc, you can go to control panel, then add/remove programs, then add/remove windows components, and you check the box that says IIS, and click next (while disc is inserted) it will install the IIS server, so you can use PHP, though you may need to install it on IIS. You can also get apache:

http://www.apache.org/

:D

harmor
01-25-2006, 01:47 AM
I believe we already told him about home servers in another post.

Douglas
01-25-2006, 01:16 PM
Oh, thats the same person? Sorry about that, I didn't relize.. :(

tallman
01-25-2006, 09:14 PM
are any of yall familiar with 100webspace.com? i joined there, do i need to do anything there to make php available?

harmor
01-25-2006, 09:42 PM
No.

Just make a simple script like

<?php

function test()
{
$stuff = "Testing PHP";
return $stuff";
}

echo test();
?>

Save as test.php
Upload it to your site and check it.

harmor
01-25-2006, 09:49 PM
Sorry I made a syntax error

<?php

function test()
{
$stuff = "Testing PHP";
return $stuff;
}

echo test();
?>

tallman
01-25-2006, 10:17 PM
http://bilcig.mybesthost.com/php.php


so it would say

Testing PHP

cause then it works, it showed up

harmor
01-25-2006, 10:20 PM
Now read some PHP tutorials and test them out.
http://www.zend.com/php/beginners/

tallman
01-26-2006, 09:53 PM
i got php working

thanks yall :)