[PHP] Form security

2001-05-24 Thread phpman
Since nobody answered my last question (or any of them for that matter). Let me rephrase it a little different. Other then checking the referer (to make sure the posted data came from the right page) and user agent (to see if it exists), is there any other way to secure a form from having other

Re: [PHP] Form security

2001-05-24 Thread phpman
vars are sent in is the same! Aauuugg! -dave phpman [EMAIL PROTECTED] wrote in message 9ejeqp$gm7$[EMAIL PROTECTED]">news:9ejeqp$gm7$[EMAIL PROTECTED]... Since nobody answered my last question (or any of them for that matter). Let me rephrase it a little different.

[PHP] trying to mimic a form

2001-05-23 Thread phpman
hello, I'm trying to use cURL to mimic a browser requesting data from UPS' web site. Here's the link (for getting a shipping rate)... http://wwwapps.ups.com/servlet/QCCServlet I try to fake sending all the post vars with cURL, however it doesn't work. Here's my code... // declare var vals

Re: [PHP] xmlHTTP.send equiv?

2001-05-21 Thread phpman
Does anyone have info on doing this with a secure server? Michael Conley [EMAIL PROTECTED] wrote in message 2102328FD2ECD411879E00609737BFD10BE2AD@FATBOY">news:2102328FD2ECD411879E00609737BFD10BE2AD@FATBOY... does anyone have info on this? -Original Message- From: Todd Kennedy

Re: [PHP] HTTP socket connection

2001-05-20 Thread phpman
I've been working with curl as well. It allows a pretty easy method to access https, however it is limited as far as encrypting data and sending to an https server. So now i'm experimenting with snoopy to simulate a web client. I'm trying to link up with UPS online tools, but the sob's only know

[PHP] Has anybody linked with UPS online tools?

2001-05-17 Thread phpman
Has anyone done a XML linking with UPS online rates tool? Please respond to me - i need help! -dave -- 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:

[PHP] SSL and CURL question --

2001-05-15 Thread phpman
CURL is realy cool, lets me do easy socket stuff, especially with ssl, which leads me to my question: How on God's green earth do I send more then simple requests to a SSL server? Here's my basic request... POST /apps.here/xml/Rate HTTP/1.1 Content-Type: application/xml Content-Length: 1074

Re: [PHP] Newbie-Continue Line of Code

2001-05-15 Thread phpman
it doesn't matter. the thing in php that separates lines (actually commands) is the -- ; semicolan. In theory you could put all your code on one line. Mike Maki [EMAIL PROTECTED] wrote in message 9dsbhr$52j$[EMAIL PROTECTED]">news:9dsbhr$52j$[EMAIL PROTECTED]... How do I continue a line of

[PHP] OpenSSL compile option

2001-05-07 Thread phpman
Anyone familiar with the new OpenSSL support to work as far as opening and communicating via a SSL socket? I saw info regarding it at http://www.php.net/manual/en/ref.openssl.php however cannot get the functions to work. i'm just clueless about how to get it functional. -dave -- PHP

[PHP] working with SSL

2001-04-17 Thread phpman
How do I establish an SSL socket connection with PHP? I have PHP compiled in an Apache Mod_SSL server. Do I need to compile PHP with some sort of open_ssl option? I have --enable-sockets in the command line. Please help!!! -dave -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] variables empty

2001-04-17 Thread phpman
hey, try this... $the_path = "/home/H0RNET/ftp/" . $jaar . "/" . $vak . "/"; unlink ($the_path . $d); ""Dennis Haller"" [EMAIL PROTECTED] wrote in message 9bharm$1td$[EMAIL PROTECTED]">news:9bharm$1td$[EMAIL PROTECTED]... Hi all, I've got this problem with variables. In the code below

[PHP] SSL SSL SSL SSL -- READ THIS!!!!!!

2001-04-17 Thread phpman
How do I establish an SSL socket connection with PHP? I have PHP compiled in an Apache Mod_SSL server. Do I need to compile PHP with some sort of open_ssl option? I have --enable-sockets in the command line. Please help!!! -dave -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Stored Procedured

2001-04-17 Thread phpman
i'm not sure what you're asking. maybe this? $result = odbc_exec($conn, "execute" . odbc_exec($conn,"execute sp_list $quantity") . $last_name); // I don't know much about odbc api, but that's how you execute a func in a func "Juan Andres" [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Screen Resolutions

2001-04-17 Thread phpman
script language=javascript type="TEXT/JAVASCRIPT" !-- widthvar = screen.width heightvar = screen.height // -- /script or something like that "Martín Marqués" [EMAIL PROTECTED] wrote in message 01041718172501.16385@bugs">news:01041718172501.16385@bugs... On Mié 18 Abr 2001 00:15, Michael Geier

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread phpman
hold on here, XML and HTML have, as far as I'm concerned, nothing to do with each other. I'm using XML to link databases on the sites I write (with PHP) with disparate databases on other Inernet servers. A good example would be linking up with UPS's online rates application server. I send an XML

[PHP] how to get num of sessions vars?

2001-04-13 Thread phpman
I thought this would work.. $num = count($HTTP_SESSION_VARS); ..but it doesn't. I can access the session vars themselves, so I know they're there. Help. -Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] how to get num of sessions vars?

2001-04-13 Thread phpman
yur Kalaria"" [EMAIL PROTECTED] wrote in message 006501c0c42e$ba839860$2d64a8c0@office">news:006501c0c42e$ba839860$2d64a8c0@office... Hey Dave, you can try the following: num = sizeof($HTTP_SESSION_VARS); regards keyur - Original Message - From: "phpman"

[PHP] XML via socket connection

2001-04-13 Thread phpman
All the docs i've looked at for parsing XML takes a file as input. What's the proceedure for opening a socket connection and doing XML transmissions via TCP/IP. Do I need to do socket calls through PHP to open an XML connection (manually send all the HTTP headers and such?). Is there a built in

Re: [PHP] how to get num of sessions vars?

2001-04-13 Thread phpman
nevermind ""phpman"" [EMAIL PROTECTED] wrote in message 9b78hr$uvb$[EMAIL PROTECTED]">news:9b78hr$uvb$[EMAIL PROTECTED]... Thanks, another quick question. That works and I can access the variables still but this for ($x=0;$x$s;$x++) { $tmp = $HTTP_SESSION_VA

[PHP] sort multidimensional array?

2001-03-27 Thread phpman
Hello, i have this code: while ($row = mysql_fetch_array($results)) { $tmp = get_item_reorder_priority($row["item_sku"]); $list[$r]["priority"] = $tmp[0]; $list[$r]["sku"] = $row["item_sku"]; $r++; } $list = array_multisort($list["priority"], SORT_NUMERIC, SORT_DESC);

Re: [PHP] sort multidimensional array?

2001-03-27 Thread phpman
I'm still confused. I'm looking to sort the list[$r] part of the array based on what value $list[$r]["priority"] is. What would the function's arguments be? ""Stuart J. Browne"" [EMAIL PROTECTED] wrote in message 99rajk$i0v$[EMAIL PROTECTED]">news:99rajk$i0v$[EMAIL PROTECTED]... while ($row =

[PHP] how do i get a variable type? - not that simple

2001-03-18 Thread phpman
don't work for this. ""phpman"" [EMAIL PROTECTED] wrote in message 99132e$ol8$[EMAIL PROTECTED]">news:99132e$ol8$[EMAIL PROTECTED]... hello all, let's say i have this: $a="varone=hello world|vartwo=2.44|varthree=100|"; now i do this: $b=explode('|',$a);

[PHP] how do i get a variable type?

2001-03-17 Thread phpman
hello all, let's say i have this: $a="varone=hello world|vartwo=2.44|varthree=100|"; now i do this: $b=explode('|',$a); $z=count($b); for ($x=0;$x$z;$x++) { $tmp=explode('=',$b[$x]); and i want to find out if $tmp[1] is a string or an integer (that's really all I need to determine