Re: [PHP] instalando o php

2001-08-28 Thread Nuno Silva
sorte, Nuno Silva Daniel Janzen wrote: > Instalei o servidor apache e agora estou configurando o php alguém sabe de algum >lugar que tenha a instalação passo-a-passo? > > Obrigado... > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

Re: [PHP] but mysql? (was: postgres and php)

2001-07-15 Thread Nuno Silva
hello, [EMAIL PROTECTED] wrote: > Hi Nuno! > On Sat, 14 Jul 2001, Nuno Silva wrote: > > >>hi there! >> >>the operators you want are ~ and ~* and !~ and !~*. >>select name from table where name ~* 'test'; >> > > any idea of somethi

Re: [PHP] postgres and php

2001-07-14 Thread Nuno Silva
hi there! the operators you want are ~ and ~* and !~ and !~*. select name from table where name ~* 'test'; to see all operators availlable type \do in psql's interactive mode ;) Regards, Nuno Silva Derek wrote: > anyone know how I force a case insensitive search

Re: [PHP] HTTP socket connection

2001-05-21 Thread Nuno Silva
Hi, install http://stunnel.org/ in localhost: and redirect it to remote_host:443 with stunnel ;) now you can talk "simple" http to localhost: and let stunnel do the dirty work. Hope this helps, Nuno Silva phpman wrote: > I've been working with curl as well. It al

Re: [PHP] mysql - SUBSTRING

2001-05-13 Thread Nuno Silva
hello, i would try this: SELECT SUBSTRING(field,pos,len) AS mystring, id, blah FROM mytable WHERE mystring LIKE '%ABC%'; regards, Nuno Silva andreas (@work) wrote: > hi, > > if i use SUBSTRING(field,pos,len) in a SELECT statement it works fine > > but i cant wo

Re: [PHP] fsockopen question

2001-04-26 Thread Nuno Silva
pilly forward the 127.0.0.1:10443 to the destination encripted and you will have to deal with the easy part of it! ;) Regards, Nuno Silva Michael Conley wrote: > I am looking to process credit card transactions on my site. In order to do > this, I need to open a socket to a particular U

Re: [PHP] ftp_get: possible security hole?

2001-04-05 Thread Nuno Silva
hello, if the script is running as user X (without root privileges) then there is no way that the OS let user X chown file to user Y. recheck the userid the script is running as ;) if the script is running from the web server then it's userid will be www/www as you say. regards, nuno

Re: [PHP] Fastest way to encrypt database storage?

2001-04-05 Thread Nuno Silva
Hi, if you want *real* encryption it will never be as fast as XOR :) Anyway, take a look at: http://php.websolut.net/manual/en/ref.mcrypt.php There are some examples too. Regards, Nuno Silva Floyd Piedad wrote: > Hi, > > I want to store all data into mySQL database in encrypted f

Re: [PHP] Shell Programming with PHP, but where is the PHP?

2001-04-03 Thread Nuno Silva
l it (as root do:) make install this should give you a command line php in: /usr/local/bin please note that ./configure may need some options for database access and stuff, just don't use --with-apache or --with-apxs good luck, Nuno Silva Brandon Orther wrote: > When I type: make it

Re: [PHP] Shell Programming with PHP, but where is the PHP?

2001-04-03 Thread Nuno Silva
:) yes, just ./configure (don't use --with-apache or --with-apxs) [other options] make cp php /usr/local/bin (or whatever) regards, Nuno Silva Brandon Orther wrote: > Hello, > > It is installed as a module, Is there a way I can keep it installed as a > module but install i

Re: [PHP] Super User Script?

2001-03-29 Thread Nuno Silva
hi, the best way to do this from a webserver (apache module) is to make php write some script that crond later executes as root (or some other user). anyway, you should triple check everything for security bugs... and three times isn't enough :) regards, Nuno Silva Brandon Orther

Re: [PHP] Question on manually instantiating a file download

2001-03-27 Thread Nuno Silva
hello, you could "start from the end" :) show the nice page saying "THANKS!!" or something and this page will call the download script itself with "meta refresh=..." in the ...can't remember the meta refresh syntax right now :) hope it works, Nuno Vikram Vaswani wrote: > Hello all, > > I

Re: [PHP] equivalent to PERL's qq

2001-03-27 Thread Nuno Silva
hi, try: i'd say it's even better than qq ;) regards, nuno Carsten Gehling wrote: > From: "Michael Hall" <[EMAIL PROTECTED]> > Sent: Monday, March 26, 2001 9:36 PM > > > >> Hi. I'm a converted Perl guy. While I generally like PHP better than > > Perl, > >> I do severely miss the Pe

Re: [PHP] Cookie problem

2001-03-25 Thread Nuno Silva
Hello, short: try removing the third parameter to setcookie and if the errors go away you know it's a cookie problem :) long: you're setting auth based in the (server's) time + 600sec. If the client (or even the server) has a clock skew... well bad luck :) removing the third parameter mak

Re: [PHP] Very Easy Help Needed Quick!

2001-03-24 Thread Nuno Silva
Hi, point the link "save this..." to the same script with some trailling vars: ... and then, in the beginning of this_script.php modify the mime type if $HTTP_GET_VARS["save"] == 1 if ($HTTP_GET_VARS["save"] == 1) { header("Content-type: application/octect-stream"); } ...thats it! r

Re: [PHP] executables (.exe)

2001-03-21 Thread Nuno Silva
Hi, just make the cgi version of php and feed some script to it ;) in unix you can start the script with: #!/path/to/php -q good luck, Nuno Christian Dechery wrote: > Correct me if I'm completely out of my mind here (often I am). > > But I think, I read somewhere that u can compile .php

Re: [PHP] Cookies

2001-03-20 Thread Nuno Silva
Ola, utiliza um numero mui grande! :) ;) Nuno Francesc Lladó wrote: > > > Utilizo este código para depositar una cookie en el cliente, lo único > que me caduca al cabo de un tiempo, ¿alguién sabe qué es lo que tengo > que poner para que la cookie no caduque nunca? > > Gracias > > -- > F

Re: [PHP] Problems with multiple query

2001-03-19 Thread Nuno Silva
from the result. That said, if you make a second call to pg_exec() consider saving all the results somewhere else if you need the previous set of results. Regards, Nuno Silva Luca Lazzeroni wrote: > Thanks; in fact I've tryed the second solution and it works for me; but I > can&

Re: [PHP] Problems with multiple query

2001-03-18 Thread Nuno Silva
database and work with the two. like this: $conn1 = pg_connect(...); $conn2 = pg_connect(...); ... qry1 = pg_exec($conn1, $sql1); ... for ($i=.) { ... $qry2 = pg_exec($conn2, $sql2); ... } Hope this helps, Nuno Silva Luca Lazzeroni wrote: > Hi, > I've recently

Re: [PHP] PHP scripts

2001-03-12 Thread Nuno Silva
Hi, just ./configure make and you'll get a php binary rwxr-xr-x :) (do not pass --with-apache or --with-apxs to ./configure) Regards, Nuno Alexandre Hautequest wrote: > Hi all. > > How do i use php to build "shell scripts"? Please send me the compiler-time > options or the link to the page

Re: [PHP] Close persistent db-Connection

2001-03-12 Thread Nuno Silva
Hi, you can't close it :) If the connection is persistent pg_close() instructions are ignored (this is also true for other persistent connections and their respective close() instructions). You can do it in the shell sending USR1 to httpd (killall -USR1 httpd) or by restarting apache (apachec

Re: [PHP] obtain IP from other site ( or domain name)

2001-03-06 Thread Nuno Silva
in the browser, too :) Search this months archive for REFERER and you'll find some solutions, but none is bullet proof, IMHO. Good luck :) Nuno Silva Jacky@lilst wrote: > Hi people > I have exchange link business program with other sites, basically I give a hyper >link to come to ou

Re: [PHP] Header ("location: test.php");

2001-02-20 Thread Nuno Silva
Christopher Allen wrote: > Hello, > I am using the Header call in a script that has multiple submit buttons: > > if ($submit =1) > { > Header (location: test1.php); > } > if ($submit ==2) > { > Header(location: test2.php); > } > > Should not the form varaibles be passed

Re: [PHP] E-mail Validation Question

2001-02-18 Thread Nuno Silva
a valid address. > [EMAIL PROTECTED] wouldn't but [EMAIL PROTECTED] would > hi, this happens because some MTA's don't allow certain commands to be issued (security feature), qmail for instance... the class acts like it should: it tells you that the email is valid. (it's b

Re: [PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-15 Thread Nuno Silva
of MySQL, but I dunno how stable their transaction > support is yet... > > -- > Visit the Zend Store at http://www.zend.com/store/ > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > > >

Re: [PHP] Dynamic Variable Creation from Forms

2001-02-01 Thread Nuno Silva
[ rswfire ] wrote: > I have a problem I'm not sure how to fix. > > PART I > > I have a form on a page that creates its variables dynamically. > Here's an example: > > mysql_db_query($db, "SELECT * FROM table"); > while ($row = mysql_fetch_array($result)) > { > > echo ""; > > } > > PART I

Re: [PHP] Persistent connections and transactions

2001-01-29 Thread Nuno Silva
Frank Joerdens wrote: > On Fri, Jan 26, 2001 at 11:01:14AM +0000, Nuno Silva wrote: > [ . . . ] > >> i ran across this transaction problem vs. persistent conn in pgsql some time ago. >> >> I found two workaround methods: >> - don't use persistent conn&#x

Re: [PHP] Persistent connections and transactions

2001-01-26 Thread Nuno Silva
Frank Joerdens wrote: > On Thu, Jan 25, 2001 at 05:10:54PM -0300, Martin A. Marques wrote: > [ . . . ] > >> OK, lets see if we can understand what each other is saying (maybe I'm not >> getting your point here). >> Lets say browser A connects to the apache server, to a page using php code. >>