[PHP] Secure coockie is not available as variable

2003-03-24 Thread Alexander Weber
hello, I send a secure cookie an it should be available as varible setcookie("pbas_usr", $row[usr], time()+600, "", "", 1); but the varable is empty. If it send the header without secure flag the cookie works well setcookie("pbas_usr", $row[usr], time()+600); Is there a special way to read out

[PHP] Charset problem with DBF database

2003-03-24 Thread Alexander Weber
Hello, I have a DBF database with some ASCII characters like ALT+154 (Ü) etc. I read out the database but instead of an Ü i get an s. Tried out charsetconverting from/to ASCII, UTF-8/7 and ISO, but nothing gave me the rigth letter. Anybody an idea? THX Alex -- PHP General Mailing List (htt

Re: [PHP] variables??

2003-03-27 Thread Alexander Weber
Rick, use explode to insert the array in the symbole table, then every get / post (depend wich you explode) variable is available. Alex "John W. Holmes" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Okay, true. But they key here is the "act accordingly", meaning you sanitize

Re: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Alexander Weber
For sure, has to be sent before any text and has to be part of a PHP script! Alex "Matt Schroebel" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > -Original Message- > From: Christopher Ditty [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2003 10:59 AM > To: M

[PHP] Re: Importing emails

2003-03-27 Thread Alexander Weber
Alexis, if the users data are informations about the user you can use this: if you ar talking about files should use data upload instead. you can start with the database. I dont know how many adresses and what more you want to have in the DB. 1. create the DB (eg. mySQL), 2. design a FORM where

[PHP] HTTP or HTTPS

2003-04-03 Thread Alexander Weber
Hi! anybody knows how to find out the connection type (http or httpS)? Tried out $HTTP_SERVER_VARS. Thanx a lot! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP or HTTPS

2003-04-03 Thread Alexander Weber
Hi Burhan, sorry but this tells me only HTTP/1.1 but not if the connection is secure or not. Alex "Burhan Khalid" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Alexander Weber wrote: > > Hi! > > > > anybody knows how to find out the c

Re: [PHP] HTTP or HTTPS

2003-04-04 Thread Alexander Weber
Unfortunally is not set. It's like the variable does not exist, because when I extract the varaible $_SERVER with foreach I don't get HTTPS as key, only SERVER_PROTOCOL. I'm using PHP 4.3.1 as Apache2 Module on Win2k SP3. register_globals OFF safe:mode OFF stunnel 4.04 on x86-pc-mingw32-gnu WIN32

[PHP] Re: file upload

2003-04-05 Thread Alexander Weber
Seems correct to me, try to upload the file with different browsers. Opera, Netscape, M$. e.g. Rich Text could be: application/MSword, text/richtext, and some other "nice" applications ;-) Cheers, Alex "Anders Thoresson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Am

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Alexander Weber
But SERVER PORT is not always 80 using HTTP (not HTTPS). So this way is not really secure. Alex "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I usually just use $_SERVER['SERVER_PORT'] > > -Rasmus > >

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Alexander Weber
e/reliable mechanism. > > -Rasmus > > > > On Sat, 5 Apr 2003, Alexander Weber wrote: > > > But SERVER PORT is not always 80 using HTTP (not HTTPS). So this way is not > > really secure. > > > > Alex > > > > "Rasmus Lerdorf" <[EMAIL

[PHP] Re: error while quering from MSSQL server from a Linux box

2003-04-05 Thread Alexander Weber
Tell us more about your script please. Cheers, Alex "Dhaval" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi All, > > I m trying to build a drop down dynamically. I m quering fields from MSSQL > 2000 Server. Now look wat is happning when i run my php from a Win2K PC and >

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Alexander Weber
For sure, and this port changes every time I make a new request. Alex "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > No, the destination port will not change. You must be looking at the > source port. > > -Rasmus > > O

Re: [PHP] Correct URL's

2002-01-25 Thread Alexander Weber
Stefan Rusterholz wrote: > >Part 1.1Type: Plain Text (text/plain) >Encoding: quoted-printable > What was the best way to check, if the give address really exists? Just try this function: http://www.php.net/manual/en/function.gethostbyname.php It returns the IP address of the

Re: [PHP] Correct URL's

2002-01-25 Thread Alexander Weber
Stefan Rusterholz wrote: > > http://www.php.net/manual/en/function.gethostbyname.php > But if I understand this function right, It will only work for URLs like > http://www.php.net/ - what if the user has a free space from his ISP which > is located in a subdir like http://www.php.net/users/myhome

Re: [PHP] PHP IDE

2002-01-25 Thread Alexander Weber
Rafael Perazzo B Mota wrote: > > Who knows a good Php IDE for linux, like PHP Code ? > Just have a look at www.activestate.com. They sell a product called Komodo. Alexander -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: [PHP] Text editor for linux

2002-02-17 Thread Alexander Weber
Josep Raurell wrote: > > Quoting Torkil Johnsen <[EMAIL PROTECTED]>: > > > Anyone know of a good text editor for linux, WITH syntax highlighting for > > php/html + other languages? > > > > - TOrkil vi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] basename unix/windows

2002-04-25 Thread Alexander Weber
ROBERT MCPEAK wrote: > basename(/usr/blah/doh/yuck/wow/abigfile.html) > > resolves to : abigfile.html > > but > > basename(adirectory\onawindowsbox\abigfile.html) > > does not resovle to abigfile.html. > > Does anybody have a workaround for this? > What about str_replace()? -- PHP General

Re: [PHP] Hashes in strings

2002-05-02 Thread Alexander Weber
Ferry van Steen wrote: > while this one doesn't: > str = "I can NOT use $hash['vars'] in strings"; Try this one: str = "I can NOT use ".$hash['vars']." in strings"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and IBM DB2 / odbc_connect failed

2002-03-07 Thread Alexander Weber
Jerry wrote: > I have IBM DB2 v7.2 FP5 on a Windows 2000 Server > A Linux Web server running with Apache/PHP4 And IBM DB2 V7.2 Client Install > on it. > When I try to use odbc_connect($dbname, $user,$password); > I received the message: > > "Warning: SQL error: , SQL state ¿Ë ?=z@éÿ¿ÛË ?=z@?=z

Re: [PHP] Can anybody tell what is wrong with this file?

2002-03-12 Thread Alexander Weber
Balaji Ankem wrote: It z not displaying the select box..blindly displaying in text format.. (If u want to see open example.jpg) You have to use tags. tags are invalid if they are not within tags. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Parse Error

2001-10-29 Thread Alexander Weber
Just use var $VAL_ID; Names of variables always start with a "$" sign. Alberto wrote: > > Parse error: parse error, expecting `T_VARIABLE' in > /sdr/httpd/Prisa/DATA/private/libs/captura/valores.php on line 18 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: Re: Empty form variables when uploading, Help please???

2001-11-13 Thread Alexander Weber
The Big Roach wrote: > > In a form you can't really have 2 submit buttons. > Either a submit submits or it is just a button. > That's because the var name is already submit (check out your > http_post_vars). > And you have it twice! > Change one of them and make it just a button (HTML4). > Rechec

Re: [PHP] Copying into another table

2001-11-16 Thread Alexander Weber
_lallous wrote: > > Hello! > > Is there is anyway to copy from a table to another but by applying a filter? > > Example: > > SELECT * FROM table1 WHERE (condition) > INSERT INTO table2 (the results of the last query) Just try this one: INSERT INTO table2 SELECT * FROM table1 WHERE (condition)

Re: [PHP] FW: Array problem

2001-11-19 Thread Alexander Weber
Well, I tried the following script which works: "; $i++; } ?> but the following does not: "; $i++; } ?> That is the same code as yours. It generates an array in the first while loop and prints each value in the second one. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: [PHP-DB] MS SQL Server support

2001-11-19 Thread Alexander Weber
Daniel Persson wrote: > > I got this error message when using PHP 4.06 with MSSQL. > > PHP ERROR: PHP build incomplete: the prerequisite MS SQL Server support > required to read the alert database > was not built into PHP. Please recompile PHP with the necessary library > (--enable-mssql). > >