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 Gerfen wrote: On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jaswrote: I have run into a problem that I am altogether unfamiliar with. A scenario. I retrieve a users private

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, jas 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 it as a resource objec

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 probl

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 probl

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: &

[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', FILTER_

Re: [PHP] PHP URL query

2006-05-10 Thread Jason Gerfen
those gets passed to the php script. The files are hosted on a local Debian etch server running apache 2.0.54 and php 4.3.10. Is there something I need to check/change in the config files of apache or php? Regards, IraqiGeek www.iraqigeek.com Boat: A hole in the water surrounded by woo

Re: [PHP] array insights

2006-05-03 Thread Jason Gerfen
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] =&

[PHP] array insights

2006-05-03 Thread Jason Gerfen
if( eregi( 'group', $key ) ) { echo "GROUP: " . $key . " => " . $value . ""; $arr[$x] = $value; } $x++; } $data = $arr; return $data; } ?> I realize I 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] 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

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 to

[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

[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, v

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

2006-03-24 Thread Jason Gerfen
epreciated. 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
</tt><tt>suggestions, please let me know. </tt><tt> </tt><tt>Thank you! </tt><pre style="margin: 0em;"> </pre><tt> </tt><tt>On 3/17/06, *Jason Gerfen* <[EMAIL PROTECTED] </tt><tt><<a rel="n

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

2006-03-17 Thread Jason Gerfen
p.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." ~ Me -- PHP Gener

[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 Bal

[PHP] Class calling Class returning 'object'

2006-02-27 Thread Jason Gerfen
ta; // If I do echo $data I can see the results of calling the myAuthTmplte Class } // myAuthTmplte class class myAuthTmplte { var $data; function AuthTemplate( $cmd, $args, $num, $message, $errors ) { $data = "I should be seeing this text right here"; // This data should be displaye

[PHP] classes and return values

2006-02-27 Thread Jason Gerfen
!"; } $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

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

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

Re: [PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
ssage- 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 nothin

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] 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 &l

[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 try

[PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
$cmd, $args, $num, $message ) { echo ""; print_r( $args ); echo ""; } -- 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
. 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

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

2006-02-23 Thread Jason Gerfen
DNS:$dns01 DNS:$dns02 Gateway:$router Vlan:$vlan Scope:$range1 - $range2 " . $tr; $i++; } $subnets .= ""; -- Jason Gerfen "When asked what l

Re: [PHP] php & ajax

2006-02-15 Thread Jason Gerfen
x27;#616042'>\n\n"; foreach ($myBuddyNodes as $node) { echo ""; echo "size='-1'>".$node->firstChild->nextSibling->nodeValue.""; if($node->firstChild->nextSibling->nextSibling->nextSibling->nodeValue == &

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

[PHP] PHP Application Vuln. Testing

2006-02-07 Thread Jason Gerfen
code 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...gui

Re: [PHP] mcrypt

2006-01-13 Thread Jason Gerfen
ething? When I encrypt/decrypt same script it works fine. Maybe something to do with these? $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); Thanks, Scott Duffy Look at trim(). And your right it does have to do with usi

Re: [PHP] Blocking Values From an External Source

2005-12-16 Thread Jason Gerfen
$_SERVER['DOCUMENT_ROOT'] 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/unsub.php

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

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

[PHP] if statement help

2005-11-03 Thread Jason Gerfen
quot; ) ) { // do 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] str_split() and errors?

2005-10-26 Thread Jason Gerfen
str_split() 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] regex and global vars problem

2005-10-26 Thread Jason Gerfen
rned from 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() functi

Re: [PHP] regex and global vars problem

2005-10-26 Thread Jason Gerfen
uot;$mac2 is valid."; } if( chk_mac( $mac3 ) != 0 ) { $mac = fix_mac( $mac3 ); echo $mac3 . " converted to " . $mac . ""; } else { echo "$mac3 is valid."; } if( chk_mac( $mac4 ) != 0 ) { $mac = fix_mac( $mac4 ); echo $mac4 . " converted to " . $mac . &qu

[PHP] regex and global vars problem

2005-10-26 Thread Jason Gerfen
$mac = fix_mac( $mac2 ); echo $mac2 . " converted to " . $mac . ""; } else { echo "$mac2 is valid."; } if( chk_mac( $mac3 ) != 0 ) { $mac = fix_mac( $mac3 ); echo $mac3 . " converted to " . $mac . ""; } else { echo "$mac3 is valid.&qu

Re: [PHP] Question on functions

2004-11-10 Thread Jason Gerfen
quot;hostname", "1" => "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 G

Re: [PHP] Remote computer name?

2003-11-20 Thread Jason Gerfen
= $_SERVER['HTTP_HOST']; // 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 Comput