Re: [PHP] openssl_sign() openssl_verify() discrepancy

2012-05-23 Thread Jason Gerfen
On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jasjason.ger...@utah.edu wrote: I have run into a problem that I am altogether unfamiliar with. A scenario. I retrieve a users private key from a database. I then use the openssl_pkey_get_private() function to load

Re: [PHP] openssl_sign() openssl_verify() discrepancy

2012-05-23 Thread Jason Gerfen
On 05/23/2012 01:26 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 9:12 PM, Jason Gerfenjason.ger...@utah.edu wrote: On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jasjason.ger...@utah.eduwrote: I have run into a problem that I am altogether unfamiliar

Re: [PHP] filter_var using regex

2011-05-05 Thread Jason Gerfen
On 05/04/2011 03:10 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:46 -0600, Jason Gerfen wrote: On 05/04/2011 01:27 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote: I am running into a problem using the REGEXP option with filter_var(). The string I

Re: [PHP] filter_var using regex

2011-05-05 Thread Jason Gerfen
On 05/04/2011 03:10 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:46 -0600, Jason Gerfen wrote: On 05/04/2011 01:27 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote: I am running into a problem using the REGEXP option with filter_var(). The string I

[PHP] filter_var using regex

2011-05-04 Thread Jason Gerfen
I am running into a problem using the REGEXP option with filter_var(). The string I am using: 09VolunteerApplication.doc The PCRE regex I am using: /^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di The function in it's entirety: return (!filter_var('09VolunteerApplication.doc',

Re: [PHP] filter_var using regex

2011-05-04 Thread Jason Gerfen
On 05/04/2011 01:27 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote: I am running into a problem using the REGEXP option with filter_var(). The string I am using: 09VolunteerApplication.doc The PCRE regex I am using: /^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png

Re: [PHP] PHP URL query

2006-05-10 Thread Jason Gerfen
surrounded by wood into which one pours money. -- Jason Gerfen Student Computing Labs, University Of Utah [EMAIL PROTECTED] I will never tolerate your innocence ~ Blood has been shed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array insights

2006-05-03 Thread Jason Gerfen
am missing a loop, but am unsure of the best practice on it. Thanks in advance -- Jason Gerfen You will never be ready for me. ~ Me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array insights

2006-05-03 Thread Jason Gerfen
a third paramater (true). Hope this helps. On 03/05/06, Jason Gerfen [EMAIL PROTECTED] wrote: I am looking for some information on how to do this the correct way, here is the data I am working with: Array ( [hostname-0] = hostname [mac-0] = 00:0a:b3:aa:00:5d [ip-0] = 192.168.0.1

[PHP] forms and dynamic creation and unique field names

2006-04-27 Thread Jason Gerfen
pointers are appreciated. -- Jason Gerfen You will never be ready for me. ~ Me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forms and dynamic creation and unique field names

2006-04-27 Thread Jason Gerfen
Martin ZvarĂ­k wrote: Jason Gerfen wrote: I have come upon a problem and am not sure how to go about resolving it. I have an web form which is generated dynamically from an imported file and I am not sure how I can loop over the resulting post variables within the global $_POST array due

Re: [PHP] Re: forms and dynamic creation and unique field names

2006-04-27 Thread Jason Gerfen
Oops, I thought there might be an array function that would be better to use then foreach loops. Thanks. Dave Goodchild wrote: Foreach. Please try and read the manual, this is very basic stuff that could be gleaned in 5 minutes. On 27/04/06, Barry [EMAIL PROTECTED] wrote: Jason Gerfen

[PHP] real time output from log file?

2006-04-17 Thread Jason Gerfen
Anyone use php to tail a log file for patterns and perhaps updating a iframe or something similar? If so do you have a link to some resources on it? -- Jason Gerfen You will never be ready for me. ~ Me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Apache/PHP/MySQL/OpenSSL upgrade question

2006-03-24 Thread Jason Gerfen
. Any idea how I can get this to start with SSL enabled on port 443? -- Jason Gerfen You will never be ready for me. ~ Me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Jason Gerfen
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jason Gerfen Student Computing Labs, University Of Utah [EMAIL PROTECTED] J. Willard Marriott Library 295 S 1500 E, Salt Lake City, UT 84112-0860 801-585-9810 You will never be ready for me

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Jason Gerfen
) -- PHP General Mailing List ( http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jason Gerfen You will never be ready for me. ~ Me -- Jason Gerfen You will never be ready for me. ~ Me -- PHP General Mailing List

[PHP] supressing warnings in error_log

2006-03-02 Thread Jason Gerfen
I would like to know how to suppress Warning error_log entries dealing with undefined vars: eg. Undefined index: del_pxe in /test.php on line 33, referer: http://website.com/index.php -- Jason Gerfen Student Computing Labs, University Of Utah [EMAIL PROTECTED] J. Willard Marriott Library 295

[PHP] More CLASS help

2006-02-28 Thread Jason Gerfen
I am not sure if what I am doing here is a problem or not. Pointers? class mySubnet { var $data; function SubnetSettings( $level, $add_vlan, $edit_vlan, $del_vlan ) { $subnets = new mySubnet; } } -- Jason Gerfen When asked what love is: Love is the Jager talking. ~Craig Baldo -- PHP

[PHP] classes and return values

2006-02-27 Thread Jason Gerfen
!/bbrbr; } $data = new myAuthTmplte(); $data-auth_template( 1, NULL, NULL, NULL, $errors ); logs( $error_message['str_chk'] ); } } } -- Jason Gerfen Student Computing Labs, University Of Utah [EMAIL PROTECTED] J. Willard Marriott Library 295 S 1500 E, Salt Lake City, UT 84112-0860 801-585

[PHP] Class calling Class returning 'object'

2006-02-27 Thread Jason Gerfen
myAuthTmplte { var $data; function AuthTemplate( $cmd, $args, $num, $message, $errors ) { $data = I should be seeing this text right here; // This data should be displayed but I am only seeing the word 'object' in the browser return $data; } -- Jason Gerfen When asked what love is: Love is the Jager

[PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
, $args, $num, $message ) { echo pre; print_r( $args ); echo /pre; } -- Jason Gerfen When asked what love is: Love is the Jager talking. ~Craig Baldo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
Tanoor Dieng wrote: Hi, are there some variables in your post array(aka are you sure that $_POST is not empty)? Normally this should works. Tanoor. 2006/2/24, Jason Gerfen [EMAIL PROTECTED]: I am not sure why this is not working. Aren't $_POST vars superglobals? I am trying to pass

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
Vidyut Luther wrote: Since $_POST is a superglobal, it should not lose scope inside a function() call. I could be wrong though. Also, curious if $args is empty.. what is $num and $message. ? Also.. you're calling a function in your return statement ? On 2/24/06, Jason Gerfen [EMAIL PROTECTED

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
. -- Jason Gerfen When asked what love is: Love is the Jager talking. ~Craig Baldo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: 24 February 2006 15:27 To: PHP General (E-mail) Subject: [PHP] $_POST to function? I am not sure why this is not working. Aren't $_POST vars superglobals? I am trying to pass the $_POST array as an argument to a function and nothing is being

Re: [PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
Peter Lauri wrote: Is the function actually returning anything? Aren't you just echoing the content of the $_POST? -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 10:27 PM To: PHP General (E-mail) Subject: [PHP] $_POST to function? I

Re: [PHP] $_POST to function? [SOLVED]

2006-02-24 Thread Jason Gerfen
Peter Lauri wrote: http://th.php.net/manual/en/function.return.php -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Saturday, February 25, 2006 12:29 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] $_POST to function? Peter Lauri wrote

[PHP] databases, loops and tables oh my...

2006-02-23 Thread Jason Gerfen
:/b/tdtd$range1nbsp;-nbsp;$range2/td/tr /table/td . $tr; $i++; } $subnets .= /tr/table; -- Jason Gerfen When asked what love is: Love is the Jager talking. ~Craig Baldo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Jason Gerfen
with. HTH -- Jason Gerfen When asked what love is: Love is the Jager talking. ~Craig Baldo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php ajax

2006-02-15 Thread Jason Gerfen
'\ntheadtrth/thth/thtr/thead\n; foreach ($myBuddyNodes as $node) { echo tr; echo tdfont size='-1'.$node-firstChild-nextSibling-nodeValue./font/td; if($node-firstChild-nextSibling-nextSibling-nextSibling-nodeValue == Online) | -- Jason Gerfen When asked what love is: Love

[PHP] PHP Application Vuln. Testing

2006-02-07 Thread Jason Gerfen
auditing which *specificly searches PHP code for SQL, XSS type of attacks or vulnerabilities? TIA. -- Jason Gerfen the life you live ignoring who, ignoring who you're giving money to. and you, you support the corrupt industries and companies who dont think to care. guilty...guilty...guilty

Re: [PHP] PHP Application Vuln. Testing

2006-02-07 Thread Jason Gerfen
Richard Davey wrote: On 7 Feb 2006, at 16:54, Jason Gerfen wrote: Is there any product available, commercial or free which performs source code auditing which *specificly searches PHP code for SQL, XSS type of attacks or vulnerabilities? TIA. No. But there are people who can perform

Re: [PHP] mcrypt

2006-01-13 Thread Jason Gerfen
= mcrypt_create_iv($iv_size, MCRYPT_RAND); Thanks, Scott Duffy Look at trim(). And your right it does have to do with using ECB. -- Jason Gerfen The charge that he had insulted Turkey's armed forces was dropped, but he still faces the charge that he insulted Turkishness, lawyers said. ~ BBC News

Re: [PHP] Blocking Values From an External Source

2005-12-16 Thread Jason Gerfen
'] Or, something similar. http://us2.php.net/reserved.variables Hth, Cheers, Micky -- Jason Gerfen Oh I have seen alot of what the world can do, and its breaking my heart in two... ~ Wild World, Cat Stevens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread Jason Gerfen
Yeah, I am recieving the same. Jay Blanchard wrote: [EMAIL PROTECTED] ? I am getting failure notices out the wazoo for some very old messages to the general list. -- Jason Gerfen Oh I have seen alot of what the world can do, and its breaking my heart in two... ~ Wild World, Cat

Re: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-07 Thread Jason Gerfen
( $string ) { if( eregi( ^[0-9a-z_ -]$, $string ) ) { return 0; } else { return 1; } } if( chk_input( $string ) == 0 ) { echo valid; } else { echo invalid; } -- Jason Gerfen Oh I have seen alot of what the world can do, and its breaking my heart in two... ~ Wild World, Cat Stevens -- PHP General

[PHP] if statement help

2005-11-03 Thread Jason Gerfen
something fancy } -- Jason Gerfen My girlfriend threated to leave me if I went boarding... I will miss her. ~ DIATRIBE aka FBITKK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] regex and global vars problem

2005-10-26 Thread Jason Gerfen
. br; } else { echo $mac3 is valid.br; } if( chk_mac( $mac4 ) != 0 ) { $mac = fix_mac( $mac4 ); echo $mac4 . converted to . $mac . br; } else { echo $mac4 is valid.br; } ? -- Jason Gerfen My girlfriend threated to leave me if I went boarding... I will miss her. ~ DIATRIBE aka FBITKK -- PHP

Re: [PHP] regex and global vars problem

2005-10-26 Thread Jason Gerfen
); echo $mac4 . converted to . $mac . br; } else { echo $mac4 is valid.br; } ? Jasper Bryant-Greene wrote: On Wed, 2005-10-26 at 11:15 -0600, Jason Gerfen wrote: I am having a problem with a couple of function I have written to check for a type of string, attempt to fix it and pass it back

Re: [PHP] regex and global vars problem

2005-10-26 Thread Jason Gerfen
the fix_mac() function as an empty string. Jasper Bryant-Greene wrote: On Wed, 2005-10-26 at 12:07 -0600, Jason Gerfen wrote: Um I did actually, but I will re-interate the problem with more detail. the vars $mac1, $mac2, $mac3 are to get passed to the chk_mac() function which determines

[PHP] str_split() and errors?

2005-10-26 Thread Jason Gerfen
() in file.php on line 21 -- Jason Gerfen My girlfriend threated to leave me if I went boarding... I will miss her. ~ DIATRIBE aka FBITKK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question on functions

2004-11-10 Thread Jason Gerfen
= username, 2 = password ); function database() { You need to declare it global within the function... function database() { global $array; ... thanks, it figures it is something easy like that... =) -- Jason Gerfen [EMAIL PROTECTED] And remember... If the ladies don't find you handsome, they should

Re: [PHP] Remote computer name?

2003-11-20 Thread Jason Gerfen
']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1) jas HTTP_HOST returns the name (or ip) of the machine on which php is running. REMOTE_ADDR will return the ip of the client accessing the document. -- Jason Gerfen Student Computing Group Marriott Library University