[PHP] new user of php

2004-02-09 Thread Dominique ANOKRE
hello, 

i am a new user of php (and i speak french - but try to write english as well as 
possible) and 
i have a project consists to implement a web interface (with php) to connect a 
database (interbase) on 
plattform windows.
So where is the best link to download some documentation about php with interbase.

regards

Dominik


[PHP] Undefined function

2004-02-11 Thread Dominique ANOKRE
I use php with interbase.
But when i try the code below i get this eror message : 

Fatal error: Call to undefined function: ibase_connect() in 
c:\inetpub\wwwroot\index.php on line 12

I want to know what is wrong with the code or if i have to do 
with php in order to run with  Interbase ?

Please help 



---begin-


 
  Test connexion Interbase
 
 
 "; 

$host = "C:\Program Files\Borland\InterBase\BDCENTRALE.GDB";
$username = "SYSDBA";
$password = "masterkey";

$db = ibase_connect($host, $username, $password);

ibase_close($db);
echo "Connexion réussie";
?>



--end-


Re: [PHP] Undefined function

2004-02-11 Thread Dominique ANOKRE
ok ,

i install the good php windows installer (with interbase) and now i think my
function is recognized.
But the message displayed is :

Warning: ibase_connect(): unavailable database in
c:\inetpub\wwwroot\index.php on line 12

But i can connect to the database whitout any problems via interbase console
.

So what'is wrong ??

- Original Message -
From: "Richard Davey" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>
Cc: "Php List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 2:04 PM
Subject: Re: [PHP] Undefined function


> Hello Dominique,
>
> Wednesday, February 11, 2004, 1:58:17 PM, you wrote:
>
> DA> Fatal error: Call to undefined function: ibase_connect() in
> DA> c:\inetpub\wwwroot\index.php on line 12
>
> DA> I want to know what is wrong with the code or if i have to do
> DA> with php in order to run with  Interbase ?
>
> You don't have Interbase support enabled in the version of PHP you
> are using.
>
> See the InterBase functions manual page for details on how to enable
> it on Win32 machines. Here's the most important part of it:
>
> Note to Win32 Users: In order to enable this module on a Windows
> environment, you must copy gds32.dll from the DLL folder of the
> PHP/Win32 binary package to the SYSTEM32 folder of your windows
> machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). In case you
> installed the InterBase database server on the same machine PHP is
> running on, you will have this DLL already. Therefore you don't need
> to copy gds32.dll from the DLL folder.
>
> --
> Best regards,
>  Richardmailto:[EMAIL PROTECTED]
>
>

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



Re: [PHP] Undefined function

2004-02-11 Thread Dominique ANOKRE
Ok, everything run now !
the problem was the path to the database.
You must indicate like this :

$host = localhost:c:\path\to\databasename

Thanks you !!
- Original Message -
From: "John Nichel" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>
Cc: "Php List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 3:16 PM
Subject: Re: [PHP] Undefined function


> Dominique ANOKRE wrote:
>
> > ok ,
> >
> > i install the good php windows installer (with interbase) and now i
think my
> > function is recognized.
> > But the message displayed is :
> >
> > Warning: ibase_connect(): unavailable database in
> > c:\inetpub\wwwroot\index.php on line 12
> >
> > But i can connect to the database whitout any problems via interbase
console
> > .
> >
> > So what'is wrong ??
>
> Without seeing the code, I can only guess that the problem is either a)
> your code, b) database configuration, c) network connectivity, d) etc,
> or e) between the monitor and chair. ;)
>
> --
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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



[PHP] generate a image link with php

2004-02-19 Thread Dominique ANOKRE

how to generate a image link with php ?

i use this but it returns errors : 

print("");
print("img src="image.jpg");
print("");

Thanks


Re: [PHP] generate a image link with php

2004-02-19 Thread Dominique ANOKRE
ok
good now - solved !!

thansk you
- Original Message - 
From: "Seba" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 11:23 AM
Subject: Re: [PHP] generate a image link with php


> It is better:
> 
> print("");
> print("");
> print("");
> 
> Il gio, 2004-02-19 alle 12:20, Dominique ANOKRE ha scritto:
> > how to generate a image link with php ?
> > 
> > i use this but it returns errors : 
> > 
> > print("");
> > print("img src="image.jpg");
> > print("");
> > 
> > Thanks
> 

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



[PHP] variables

2004-02-19 Thread Dominique ANOKRE
hello, 


how can i put the character \ in a variable ?

I've done the code below but errors occurs : 

$barre_oblique = "\";


Parse error: parse error, unexpected T_STRING 

Please help 


Re: [PHP] variables

2004-02-19 Thread Dominique ANOKRE
ok thanks 
pb solved

thank you everybody
- Original Message - 
From: "Richard Davey" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>
Cc: "Php List" <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 5:52 PM
Subject: Re: [PHP] variables


> Hello Dominique,
> 
> Thursday, February 19, 2004, 5:49:43 PM, you wrote:
> 
> DA> how can i put the character \ in a variable ?
> DA> I've done the code below but errors occurs :
> DA> $barre_oblique = "\";
> DA> Parse error: parse error, unexpected T_STRING
> DA> Please help 
> 
> $barre_oblique = "\\";
> 
> -- 
> Best regards,
>  Richard Davey
>  http://www.phpcommunity.org/wiki/296.html
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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



[PHP] display a hiddenfield

2004-02-20 Thread Dominique ANOKRE
I use a simple form like this : 

print("\n");
print("\n");
$_POST["hiddenField"] = $image_avant;
print("\n");
print("\n");

and when i click on the submit button, i want to display the value of my hiddenField 
(doing by the file image.php) :

 

but nothing is displaying !!

Please help !





Re: [PHP] display a hiddenfield

2004-02-20 Thread Dominique ANOKRE
I 've given a value se the code :

$_POST["hiddenField"] = $image_avant;

where  $image_avant  is a variable which contains a value !!


Cdt


- Original Message -
From: "Michael Egan" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>; "Php List"
<[EMAIL PROTECTED]>
Sent: Friday, February 20, 2004 11:22 AM
Subject: RE: [PHP] display a hiddenfield


No value has been given to the hidden field.

e.g.

print ();

HTH.

Cheers,

Michael Egan

> -Original Message-
> From: Dominique ANOKRE [mailto:[EMAIL PROTECTED]
> Sent: 20 February 2004 11:17
> To: Php List
> Subject: [PHP] display a hiddenfield
>
>
> I use a simple form like this :
>
> print("\n");
> print("\n");
> $_POST["hiddenField"] = $image_avant;
> print("\n");
> print("\n");
>
> and when i click on the submit button, i want to display the
> value of my hiddenField (doing by the file image.php) :
>
>   echo $_POST["hiddenField"];
> ?>
>
> but nothing is displaying !!
>
> Please help !
>
>
>
>

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

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



Re: Re[2]: [PHP] display a hiddenfield

2004-02-20 Thread Dominique ANOKRE
Ok 
problem solved 

thank you everybody
- Original Message - 
From: "Richard Davey" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>
Cc: "Php List" <[EMAIL PROTECTED]>
Sent: Friday, February 20, 2004 11:35 AM
Subject: Re[2]: [PHP] display a hiddenfield


> Hello Dominique,
> 
> Friday, February 20, 2004, 11:29:21 AM, you wrote:
> 
> DA> I 've given a value se the code :
> DA> $_POST["hiddenField"] = $image_avant;
> DA> where  $image_avant  is a variable which contains a value !!
> 
> No, you've overwritten whatever might have been in the $_POST array
> with the image_avant value.
> 
> Also even if this would work (which it doesn't) you are still
> outputting the HTML to the browser BEFORE you do this anyway.
> 
> Try like this (as has already been suggested):
> 
>  print("\n");
> print(" value=\"$image_avant\">\n");
> print("\n");
> print("\n");
> ?>
> 
> -- 
> Best regards,
>  Richard Davey
>  http://www.phpcommunity.org/wiki/296.html
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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



[PHP] resize an image with php

2004-02-20 Thread Dominique ANOKRE
I want to resize an image before display it in the window.
Is there a php fonction which do it ?

Thanks ! 



Re: [PHP] resize an image with php

2004-02-20 Thread Dominique ANOKRE
ok thanks 
problem solved !!

- Original Message - 
From: "Adam Voigt" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>
Cc: "Php List" <[EMAIL PROTECTED]>
Sent: Friday, February 20, 2004 6:04 PM
Subject: Re: [PHP] resize an image with php


> You could use the image manipulation functions of PHP, or you could just
> specify a height and/or width with HTML (in the img tag).
> 
> 
> On Fri, 2004-02-20 at 12:53, Dominique ANOKRE wrote:
> > I want to resize an image before display it in the window.
> > Is there a php fonction which do it ?
> > 
> > Thanks ! 
> -- 
> 
> Adam Voigt
> [EMAIL PROTECTED]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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



[PHP] numeric characters

2004-03-02 Thread Dominique ANOKRE
Is there a way with php to force the user to put only numeric character in a text 
field ?

thanks


Re: [PHP] numeric characters

2004-03-03 Thread Dominique ANOKRE
ok thanks, i have written a script with javascript and i think it's running
good !

Thanks

- Original Message -
From: "Daniel Clark" <[EMAIL PROTECTED]>
To: "Php List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 7:15 PM
Subject: Re: [PHP] numeric characters


> Or you can us client side JavaScripting.
>
> > Hello Dominique,
> >
> > Tuesday, March 2, 2004, 6:31:00 PM, you wrote:
> >
> > DA> Is there a way with php to force the user to put only numeric
> > character in a text field ?
> >
> > No, because that's a client-side thing. You can however use the PHP
> > function is_numeric() to check the data once it has been entered to
> > ensure they are numbers and error out if not.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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



[PHP] Undefine index

2004-03-05 Thread Dominique ANOKRE
I have a form which call a php file when click on the submit button :



First this runs correctly when i click on the submit buttom then the file 
recherche.php is executed and the result is displayed.
I modify the design of my pages in order to display result into frames. So i create a 
frameset named recherche.php which contains
two frames "rech_haut.php" and "rech_bas.php".

And when i click on buttom submit in order to display the result i have this notice 
message : 

Undefined index: numcpte in c:\inetpub\wwwroot\rech_haut.php on line 66

For information, i have not this error when the file recherche.php is a simple file 
without frames !!!

Please help!!


[PHP] undefined index -------- please help !!!!!!!!

2004-03-05 Thread Dominique ANOKRE
I have a form which call a php file when click on the submit button :



First this runs correctly when i click on the submit buttom then the file 
recherche.php is executed and the result is displayed.
I modify the design of my pages in order to display result into frames. So i create a 
frameset named recherche.php which contains
two frames "rech_haut.php" and "rech_bas.php".

And when i click on buttom submit in order to display the result i have this notice 
message : 

Undefined index: numcpte in c:\inetpub\wwwroot\rech_haut.php on line 66

For information, i have not this error when the file recherche.php is a simple file 
without frames !!!

Please help!!



Re: [PHP] undefined index -------- please help !!!!!!!!

2004-03-06 Thread Dominique ANOKRE
on line 66 there is :

$date=$_POST["date"];

Thanks

- Original Message -
From: "Chris W. Parker" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>; "Php List"
<[EMAIL PROTECTED]>
Sent: Friday, March 05, 2004 8:20 PM
Subject: RE: [PHP] undefined index  please help 


Dominique ANOKRE <mailto:[EMAIL PROTECTED]>
on Friday, March 05, 2004 12:19 PM said:

> Undefined index: numcpte in c:\inetpub\wwwroot\rech_haut.php on line
> 66
>
> For information, i have not this error when the file recherche.php is
> a simple file without frames !!!
>
> Please help!!

what is on line 66!?!?

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

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



Re: [PHP] undefined index -------- please help !!!!!!!!

2004-03-08 Thread Dominique ANOKRE
OK, but when i use "isset" my request is not executed normally.
I wonder if the fact i use the frames is the problem because with no
changement and without using "isset"
my request run correctly.

Thanks !

- Original Message -
From: "John Nichel" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>
Cc: "Php List" <[EMAIL PROTECTED]>
Sent: Saturday, March 06, 2004 12:15 PM
Subject: Re: [PHP] undefined index  please help 


> Dominique ANOKRE wrote:
> > on line 66 there is :
> >
> > $date=$_POST["date"];
> >
> > Thanks
>
> $_POST['date'] isn't set.
>
> if ( isset ( $_POST['date'] ) ) {
> $date = $_POST['date'];
> }
>
> --
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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