| View previous topic :: View next topic |
| Author |
Message |
arjan swets
Joined: 03 Aug 2006 Posts: 9 Location: the netherlands
|
Posted: Fri 06 Oct '06 19:11 Post subject: php ??? |
|
|
I have try a couple of time to instal PHP on my sambar server.. but it stil not works....
is there somebody who knows how to do it...?
Please help!!! |
|
| Back to top |
|
Spikecity
Joined: 04 Aug 2004 Posts: 123
|
Posted: Tue 28 Nov '06 10:15 Post subject: |
|
|
on a Windows PC I presume ?
I'll give you a setup using PHP4.....
Download the PHP package from www.php.net (the one without the installer) and unzip it into C:\PHP.
Add in mappings.ini the last line of my example:
| Quote: | [isapi]
*.pl = c:\Perl\bin\perlis.dll
*.cgi = c:\Perl\bin\perlis.dll
*.php = c:\php\php4isapi.dll |
Copy or move php4isapi.dll from c:\php\dlls to c:\php
Copy php4ts.dll from c:\php to c:\Windows\system32
Rename php.ini-dist found in c:\php to php.ini and copy it to c:\Windows
on your webserver settings (or in your vhost settings) make sure that in the list of default index pages you also add index.php.
Now restart sambar and if all is well and in the right place you should be able to run a php page from your site. |
|
| Back to top |
|
arjan swets
Joined: 03 Aug 2006 Posts: 9 Location: the netherlands
|
Posted: Sun 03 Dec '06 0:54 Post subject: |
|
|
and how do i test it..?
I do know nothing about PHP jet... |
|
| Back to top |
|
Spikecity
Joined: 04 Aug 2004 Posts: 123
|
Posted: Tue 05 Dec '06 13:41 Post subject: |
|
|
| arjan swets wrote: | and how do i test it..?
I do know nothing about PHP jet... |
Using one of the many testscripts found on the net by uploading it to your webspace and call it from a browser.
Example of a test script to test both PHP and MySQL installation (copy&paste and save as test.php):
| Code: | <?php
/////////////////////////////////////////////////////////////
// Replace "mysqluser", "password" and "hostname" with //
// your MySQL database access info. You may need to ask //
// your hosting provider for this information if you have //
// not used a MySQL database before. //
/////////////////////////////////////////////////////////////
$username = "mysqluser";
$password = "password";
$hostname = "localhost";
/////////////////////////////////////////////////////////////
// Do not change anything below this line //
/////////////////////////////////////////////////////////////
$phpver = phpversion();
$uploads = ini_get('file_uploads');
if ($uploads == '1')
{
$uploads = 'Yes';
}
$maxpost = ini_get('post_max_size');
$maxfilesize = ini_get('upload_max_filesize');
mysql_connect($hostname, $username, $password) or
die("Could not connect: " . mysql_error());
$mysqlver = mysql_get_server_info();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>WebUMake PHP Test Script</title>
<style>
td {font-family: Arial, Helvetica, sans-serif; font-size: 14px;}
body {font-family: Arial, Helvetica, sans-serif; font-size: 14px; background-color: #FFFFFF; }
</style>
</head>
<body>
<table border="1" width="350" align="center" cellspacing="0" cellpadding="4">
<tr><td colspan="3" align="center"><b>WebUMake PHP Test Script</b></td></tr>
<tr valign="top">
<td width="" align="right"> </td><td><em>Required:</em></td><td><em>Your Server:</em></td></tr>
<tr valign="top">
<td width="" align="right">MySQL Server Version:</td>
<td>3.23</tr>
<td><?=$mysqlver?></td>
</tr>
<tr valign="top">
<td align="right">PHP Version:</td>
<td>4.06</td>
<td><?=$phpver?></td>
</tr>
<tr valign="top">
<td align="right">File Uploads:</td>
<td>Yes</td>
<td><?=$uploads?></td>
</tr>
<tr valign="top">
<td align="right">Max Post Size:</td>
<td>8 MB</td>
<td><?=$maxpost?></td>
</tr>
<tr valign="top">
<td align="right">Max File Size:</td>
<td>2 MB</td>
<td><?=$maxfilesize?></td>
</tr>
</table>
<br>
<br>
<br>
<br>
<table border="0" width="450" align="center" cellspacing="0" cellpadding="4">
<tr><td align="center">
If you have any questions or problems,<br>please email the information on this page to
<a href="mailto:sales@waytotheweb.com?subject=Way to the Web Test Script">sales@waytotheweb.com</a><br>
and we will be able to advise you further.
<br>
<br>
<a href="http://www.webumake.com\">©2003, Way to the Web Limited</a>
</td></tr>
</table>
</body>
</html> |
|
|
| Back to top |
|
arjan swets
Joined: 03 Aug 2006 Posts: 9 Location: the netherlands
|
Posted: Wed 20 Dec '06 9:05 Post subject: |
|
|
hmm i have a homepage for a part by my provider, and a part at home.
I know that the PHP is on the PC here at home...
but where do i put the test.php page? in de DOC map from the sambar server?
but i have a ftp server too... so al the pages with PHP are on the FTP server too?
spikecity? spijkenisse? nederlands? |
|
| Back to top |
|