Which version, PHP 0.2 ?
Seriously, you come across as someone who doesn't know what he is talking about.
YOU:
include($_SERVER['DOCUMENT_ROOT'.'/header.php');
CORRECT:
include($_SERVER['DOCUMENT_ROOT'].'/header.php');
You really can't see the difference?
/usr/local/bin/php /home/mkbit/www/ff_stats/analyse/analyse.php
Do not put in quotes.
Make sure /ff_stats/analyse/analyse.php is the correct path.
Try running it from yoursite.com/ff_stats/analyse/analyse.php
Your form is pointing to a restricted directory.
If you look at the actual HTML for the form, you should see something like
<form action='something' method='post' .....>
Please tell us what 'something' is.
Also, a good habit to get into is to add:
use CGI::Carp qw(fatalsToBrowser );
use strict;
At the top your perl scripts. The first will put out some extra information if there is a problem and the second forces you to 'declare' your variables, catching spelling mistakes.
Install and run:
http://webnet77.com/scripts/list-modules/
Yes, DBD::mysql is installed.
But to check if XXX is installed, just make a basic script, add
use CGI::Carp qw(fatalsToBrowser );
use XXX;
to the top and it will tell you if XXX is not installed.
And remote mySQL is...
Please note you can adjust the size of the image, the margins, the background color, the colors for + and -, and the vertical line. Experiment to see what looks right.
You could also draw a border around the whole image by adding one line of code.
This is my code from the link above for plusminus.php
<?php
$value_max = 100; # max abs input value, probably 100
#### get the value passed to the script in the query string
if( isset( $_GET[ 'value' ] ) ){
$value= $_GET[ 'value' ] + 0;
if( $value > $value_max ){
$value =...
One script puts out the html for the page. It cannot create an image and include the image as part of the html. It doesn't work that way.
You have it put an <img> tag in the HTML and have the browser request the image. Normally you put the file name of a static image. The browser does not...
In your code to display the page you put
$value = value you want to display...
<img src="plusminus.php?value=<?php echo($value) ?>" height="30" width="100"
alt="test" id="plusminus" name="plusminus">
plusminus.php would be a separate script that gets called with a query...
perl is installed
you have the right path (it is listed on the cPanel, left side, near bottom)
make sure script has permissions of 0755 (can set them in File Manager)
make sure script was uploaded in ASCII mode (if it was written on Microsoft and uploaded in binary mode there are usually problems).