[PHP] help !!!

2002-05-04 Thread Yoel Benitez Fonseca

H!

 Excuse me, but I need help. Somebody can give me a 
 link from where I can download the version 1.0 of the Delphi.  
 
Thank you in advance.

Mark



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




RE: [PHP] Variable problem

2002-01-18 Thread Yoel Benitez Fonseca

  Use an array !?, I mean :

  $result[$i] = test;

 How do I combine the following so it is treated as one variable

 $i=10

 $result$i=test;


 I want this to be:


 $result10=test;


 $i changes so I cannot just put in 10 instead of I.


 anybody know how i can do that?
-- 
Yoel Benitez Fonseca



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Why don't ...

2001-12-17 Thread Yoel Benitez Fonseca

H!

Thank you, but yuor fragment of code read all file and
I'm really want is read an integer from the file. There
are some fuction of PHP thas serve me to make that?

Rasmus Lerdorf said:
 Is your second character perhaps a 0?  That while loop is going to end
 as  soon as it gets a character that evaluates to 0.  Write it like
 this  instead:

 while(!feof($this-m_file)) {
$c = fgetc($this-m_file);
if(is_numeric($c)) $str .= $c;
 }

 -Rasmus

 On Sun, 16 Dec 2001, Yoel Benitez Fonseca wrote:

 Hi!

 The following code fragment tries to read a sequence of digits from a
 file but it doesn't work, only the first character is read,
 Which is my error?.


$str = ;
while( ($c = fgetc($this-m_file))  ereg([0-9], $c) ){
$str .= $c;
}


 Thank you in advance




-- 
Yoel Benitez Fonseca



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Error handling

2001-12-17 Thread Yoel Benitez Fonseca

Hi!

  There is in PHP some way to handle errors like in other languages,
  I mean, something like this:

  .
  .
  .
  try to do
...
  if error then do ...
  .
  .
  .

  I'm tired of reciving warnings :-(

-- 
Yoel Benitez Fonseca



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Why don't ...

2001-12-16 Thread Yoel Benitez Fonseca

Hi!

The following code fragment tries to read a sequence of digits from
a file but it doesn't work, only the first character is read,
Which is my error?.


   $str = ;
   while( ($c = fgetc($this-m_file))  ereg([0-9], $c) ){
   $str .= $c;
   }


Thank you in advance

-- 
Yoel Benitez Fonseca



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] InterBase transaction ...

2001-10-18 Thread Yoel Benitez Fonseca

Hi!

Someone can explain me (or give me an example or more) about the function:
ibase_commit()

I am using PHP 4 and InterBase 6.0 over IIS 5.0, in the version of the
manual that I have the following description appears:

int ibase_commit ([int link_identifier, int trans_number])

but when I use it in my script, for example:

ibase_commit($myDB, $myTrans);

I receive the following error:

. Wrong parameter count for ibase_commit () in.

thank you in advance, Yoel.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]