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: [EMAIL PROTECTED] For additional

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 something like this in MySQL? I was used to pg and I have no idea of something

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 through a postgres database

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 allows a pretty easy

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 work it out how to use

Re: [PHP] fsockopen question

2001-04-26 Thread Nuno Silva
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 URL. I then submit

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 format

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 silva

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 it so I can use

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

2001-04-03 Thread Nuno Silva
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 does nothing

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 wrote

Re: [PHP] equivalent to PERL's qq

2001-03-27 Thread Nuno Silva
hi, try: ?php $this = " select * from xcxcxc where var='111'"; echo $this; ? 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

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 head ...can't remember the meta refresh syntax right now :) hope it works, Nuno Vikram Vaswani wrote: Hello all,

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: a href=this_script.php?save=1.../a 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:

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 ?php echo "hello"; ? 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

Re: [PHP] Cookies

2001-03-20 Thread Nuno Silva
Ola, utiliza um numero mui grande! :) ? setcookie("nombre1",'nombre2',time()+99); ? ;) Nuno Francesc Llad wrote: ? setcookie("nombre1",'nombre2',time()+86400); ? Utilizo este cdigo para depositar una cookie en el cliente, lo nico que me caduca al cabo de un tiempo, alguin sabe qu

Re: [PHP] Problems with multiple query

2001-03-19 Thread Nuno Silva
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't understand why

Re: [PHP] Problems with multiple query

2001-03-18 Thread Nuno Silva
to the 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 migrated

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

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] obtain IP from other site ( or domain name)

2001-03-06 Thread Nuno Silva
, 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 our store to them and when user

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 along to

Re: [PHP] E-mail Validation Question

2001-02-18 Thread Nuno Silva
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 better than refusing a valid email...) regards, Nuno Silva -- PHP General

Re: [PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-15 Thread Nuno Silva
re 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 Regards, Nuno Silva -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

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 "INPUT TYPE='CHECKBOX'

Re: [PHP] Persistent connections and transactions

2001-01-29 Thread Nuno Silva
Frank Joerdens wrote: On Fri, Jan 26, 2001 at 11:01:14AM +, 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's :-) or; - start every conn with the usual

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. Lets say