[PHP] Problems in php

2007-08-07 Thread racol
Dear Sirs,
I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through 
localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php 
shows that the php.ini file is situated in C:/Windows as advised and I have 
altered the error_log and extensions_dir as advised by Sambar.
The problem is:

When I try to run a php file, either to connect to MySql OR just a simple 
Create Button file, neither browser will output either file. I get no error 
messages and the error logs show nothing significant. I just get the html 
source code (NONE of the php code) when I interrogate 'view source' in IE and 
just a blank in Firefox.

Can you please advise. I don't know where to look next. I attach the two test 
files for your perusal.

Best regards
 Roger Collis-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php problems

2007-08-08 Thread racol
Dear Helpers,

here are the 2 files I cannot make work. I have installed php in c:\php, my 
php.ini file is in Windows directory and my path to pear reads "include_path 
= .;C:\php\pear" in the phpinfo.php output.

I have switched on error reporting and have received the following error 
messages:

a.) PHP Fatal error:  main() [function.require]: Failed opening required 
'DB.php' (include_path='C:\php\pear') in C:\sambar64\docs\BondMovies.php on 
line 11

b.)PHP Parse error:  syntax error, unexpected ';' in 
C:\sambar64\docs\ButtonMaker.php on line 17

BondMovies.php

Bond Movies



MovieYearActor

getmessage("You didn't connect this time"));

}

// issue the query

$sql = "SELECT FROM Bond.title,movies.year,actors.name
FROM movies, actors
WHERE movies.actors=actors.id
ORDER by movies.year ASC";

$q = $db->query($sql);

if (DB::iserror($q)) {

die($q->getMessage("Your query failed!"));

}

// generate the table

while ($q->fetchInto($row)) {
?>






ButtonMaker.php



Button Form



Enter message to appear on button:

 
 

All I get is the html output in "Bond Movies" and no output from "ButtonMaker". 
Any ideas?

[PHP] PEAR

2007-08-08 Thread racol
If I have the "PEAR" directory in my C:\php directory and my php.ini has a line 
which reads: include_path = ".;C:\php\pear" why can't my program find DB.php?

Can anyone tell me please?

Roger Collis