[PHP-DB] Insert a file in a mysql database!

2001-03-03 Thread Pedro M. S. Oliveira

Hi all...
Here i am once again asking for advice :)
well i need to put a file (something lika *.doc or *.rtf) on a mysql
database.
The thing is: the user need to upload a computer file to the mysql runing
over a linux box.

i would like to know:
1) what is the best way to do this?
2) what is the html code i have to generate do do this?
3) how can i read this back from the database?

i read something about sending the file over ftp and then on the database
put just the path to the file.
but what is your opinion?
thankx



***
Pedro Miguel Silva Oliveira
Cell Phone: +351 96 5867227
SMS: [EMAIL PROTECTED]
Email: [EMAIL PROTECTED]


-- 
PHP Database 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-DB] Password field!

2001-04-25 Thread Pedro M. S. Oliveira

Hello all!
i was wondering if any1 of you could help me with something.
i have a table with 3 fields user_ip, user and pass.
how can i encript the pass and then read compare it with a pass inserted on the web 
page?
thanx


***
Pedro Miguel Silva Oliveira
Cell Phone: +351 96 5867227
SMS: [EMAIL PROTECTED]
Email: [EMAIL PROTECTED]




[PHP-DB] Oracle developer on linux

2001-10-27 Thread Pedro M. S. Oliveira

Hello all,
I'm just sending this email to know if anyone is/was using the Linux  oracle
developer, if so can you please tell me what is your version and the some of
the machine characteristics where it runs.
This hell will be much appreciated thanks
Pedro



***
Pedro Miguel Silva Oliveira
Cell Phone: +351 96 5867227
SMS: [EMAIL PROTECTED]
Email: [EMAIL PROTECTED]



-- 
PHP Database 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-DB] ADDING DATES

2002-01-13 Thread Pedro M. S. Oliveira



Hi all, first of all i'm sorry to ask this but i am getting lazy and i bet
you all can answer me in a couple of code lines.
i want to add some days to the the result of the date php function.
how can i had lets say 3 days?
ex:
(pseudo code)

?
$date =date(,mm,dd);
$date =date(,mm,dd) + 3days;
echo $date;
echo thank you all;
?

Thanks
Pedro


-- 
PHP Database 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-DB] any php/Linux gurus out there?

2002-03-04 Thread Pedro M. S. Oliveira

you could complile the hole program instead of the rpm, just read
README.install from the php source tar file.
or you can install the other rpms that are lacking.
or even so, not such a good ideia, but you can force the installationg
using the command
rpm -i --nodeps php
or
rpm -U --nodeps phpxxx

- Original Message -
From: Peter Lovatt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 04, 2002 11:52 PM
Subject: [PHP-DB] any php/Linux gurus out there?


 Hi

 I am running the security upgrade and am getting the following error when
I
 run the RPM
 The install is RH 7.0 and was pre-installed. I had assumed that the RPMs
 from Redhat would match the pre installed version, as it was standard.

 I am a humble programmer (and part time sys admin!), rather than a
Linux/RH
 guru, so would appreciate some advice. What is the best way to deal with
 this ?


 error: failed dependencies:
 libcrypto.so.1 is needed by php-4.0.6-9.7.0
 libmm.so.11 is needed by php-4.0.6-9.7.0
 libssl.so.1 is needed by php-4.0.6-9.7.0
 libcrypto.so.1 is needed by php-imap-4.0.6-9.7.0



 ---
 Excellence in internet and open source software
 ---
 Sunmaia
 www.sunmaia.net
 [EMAIL PROTECTED]
 tel. 0121-242-1473
 ---

 sql table


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



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




[PHP-DB] oracle-mysql

2002-03-20 Thread Pedro M. S. Oliveira

hi all, i need to migrate an oracle database (+-1gb) to a mysql one, but i
don't have a clue how to do this.
i'm thinking in dumping the whole content of the oracle database to a txt
file but i don't know if there is a better way
any ideias on this one.
btw the oracle machine is running on windows 2000 server and the mysql one
is running on linux
i don't have php on either machines but the mysql i'll have a connection to
an apache running machine.
the prob here is... what is the better way to migrate the data?
thanx


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




[PHP-DB] Help! Oracle help needed

2002-09-20 Thread Pedro M. S. Oliveira

Hi all the people here!
well i've been working with php for quite some time now but i never used
oracle databases before.
well the situation is something like this.
I've a mysql server running perfectly working with apache and php on
linux, but in the other hand i also have an oracle server (6i) running
with windows.
The prob is that now i need to update my mysql database every night. The
codding envolvind this is not the big problem, my main prob is How do i
do to make php to get the data from the oracle server since i don't have
any linux istallation with oracle?
Can i make php get the data from the oracle server just by ip as i can
do with mysql?
If so what do i need to have.
Thank you alot
 Geek Greetings,
Pedro Oliveira 



RE: [PHP-DB] MySQL connectiviy

2002-11-22 Thread Pedro M. S. Oliveira
Hi Jeremy,
Probably you don't have all of php installed; you can pick it up in
php.net and install the full php libs.
Or in your php ini file, the php lib path can be incorrect, well these
are just thoughts as I don't use red hat for some time (SuSE Forever).
Hope you figure it out,
Pedro


-Original Message-
From: Jeremy Wood [mailto:[EMAIL PROTECTED]] 
Sent: sexta-feira, 22 de Novembro de 2002 18:35
To: [EMAIL PROTECTED]
Subject: [PHP-DB] MySQL connectiviy

Hello all,
I'm new to PHP and would like to start using mySQL (or postgresql) but I
keep having one problem. 
In a php file i have a simple call to the function
mysql_connect()

but i constantly get the error
Fatal error: Call to undefined function: mysql_connect() 

MySQL support was installed with
--with-mysql=shared,/usr' 
This is the redhat 8.0 default. I guess it just can't find the function
library.

Any pointers any one could give would be really appreciated.
Thanks,
Jeremy Wood



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