[PHP] php as shell script

2003-01-30 Thread David H
Hi,

I am trying to run php as shell script. I have this:

helloworld.php:

?
echo Hello World.;
?

I run 

php helloworld.php

then I got this:

Hello World.
Fatal error: Nesting level too deep - recursive
dependency? in Unknown on line 0

I am using Redhat 8, anyone knows what is the problem
is?

Thanks,
David

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[PHP] Form trouble

2002-11-25 Thread David H
Hi,

After I submited a query, if I use back then forward
again the form will resubmit itself. Which I do not
want. Does anyone have a solution for this problem?

Thanks,
David

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: [PHP] Form trouble

2002-11-25 Thread David H
But what about updates to the database...? Is there
away not to have the information send to the server at
all? 

Thanks,
David
--- Clint Tredway [EMAIL PROTECTED]
wrote:
 When the form is submitted check the database with
 the info that is
 being submitted. If a record matches the data being
 submitted then don't
 do the insert. If there is not a record there, then
 insert the record..
 
 HTH
 Clint
 
 -Original Message-
 From: David H [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, November 25, 2002 2:21 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Form trouble
 
 
 Hi,
 
 After I submited a query, if I use back then forward
 again the form will resubmit itself. Which I do not
 want. Does anyone have a solution for this problem?
 
 Thanks,
 David
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: [PHP] RE: ############

2002-07-09 Thread David H

An eye for an eye makes the world go blind. Mahatma
Gandhi 

I think we should just kick him out of the list.
Notify his ISP and black list him on the web.

David

--- Steve Bradwell [EMAIL PROTECTED] wrote:
 agreed.
 
 -Original Message-
 From: Rick Emery [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 09, 2002 3:51 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] RE: 
 
 
 lets all spam Erik
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




Re: [PHP] Re: large object problem

2001-12-17 Thread David H


Manuel,

Thanks for the comment. I am able to load the output
correctly, if I do a import directly from the server.
I am only having trouble with the upload code. Any
idea from the code below?

Thanks,
David

--- Manuel Lemos [EMAIL PROTECTED] wrote:
 Hello,
 
 David H wrote:
  
  Hi all,
  
  I am trying to findout what is wrong with this
 script
  can anyone help?
  
  $dbconn = pg_connect (cnnection string)

  or die (
 Error: .pg_errormessage
  ($dbconn)) ;
  
  pg_exec ($dbconn, begin) ;
  $oid = pg_locreate ($dbconn) ;
  $fd = pg_loopen ($dbconn, $oid, w) ;
  pg_lowrite ( $fd, $img ) ;
  pg_loclose ( $fd ) ;
  $strqry = INSERT INTO tblImg ( myname,
 mytype,
  myimg, myfilesize ) VALUES ( '$img_name',
 '$img_type',
  '$oid', $img_size );
  $result = pg_exec ( $dbconn, $strqry ) ;
  pg_exec ($dbconn, commit) ;
  pg_exec ($dbconn, end) ;
  
  The output that I am getting is this
  
  /tmp/phpQPUyx2
  
  by pg_loreadall function.
 
 Similarly, you need to do pg_loopen on a OID
 returned by a select query.
 
 Anyway, if you want to try something that works with
 easier to
 understand interface, maybe you would like to try
 Metabase which is a
 database abstraction PHP package that provides a
 single and portable
 interface to BLOBs that supports PostgreSQL among
 many other databases.
 
 Metabase is free and you may download it from here:
 

http://phpclasses.UpperDesign.com/browse.html/package/20
 
 Regards,
 Manuel Lemos
 
 -- 
 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]
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
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] large object problem

2001-12-16 Thread David H

Hi all,

I am trying to findout what is wrong with this script
can anyone help?


$dbconn = pg_connect (cnnection string)
   
 or die ( Error: .pg_errormessage
($dbconn)) ;

pg_exec ($dbconn, begin) ;
$oid = pg_locreate ($dbconn) ;
$fd = pg_loopen ($dbconn, $oid, w) ;
pg_lowrite ( $fd, $img ) ;
pg_loclose ( $fd ) ;
$strqry = INSERT INTO tblImg ( myname, mytype,
myimg, myfilesize ) VALUES ( '$img_name', '$img_type',
'$oid', $img_size );
$result = pg_exec ( $dbconn, $strqry ) ;
pg_exec ($dbconn, commit) ;
pg_exec ($dbconn, end) ;

The output that I am getting is this

/tmp/phpQPUyx2

by pg_loreadall function. 

Thanks,
David

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
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]