Re: [PHP] 0.0.0.0 iplong()

2012-06-05 Thread jas
On 06/04/2012 12:48 PM, Matijn Woudt wrote: On Mon, Jun 4, 2012 at 8:38 PM, jasjason.ger...@gmail.com wrote: On 06/04/2012 11:33 AM, Matijn Woudt wrote: On Mon, Jun 4, 2012 at 6:54 PM, jasjason.ger...@gmail.comwrote: Not sure if this is a bug or not... I have run into an error when

Re: [PHP] 0.0.0.0 iplong()

2012-06-05 Thread jas
On 06/05/2012 05:40 AM, Matijn Woudt wrote: On Tue, Jun 5, 2012 at 1:07 PM, jasjason.ger...@gmail.com wrote: On 06/04/2012 12:48 PM, Matijn Woudt wrote: On Mon, Jun 4, 2012 at 8:38 PM, jasjason.ger...@gmail.comwrote: On 06/04/2012 11:33 AM, Matijn Woudt wrote: On Mon, Jun 4, 2012 at

[PHP] 0.0.0.0 iplong()

2012-06-04 Thread jas
Not sure if this is a bug or not... I have run into an error when performing a conditional using iplong() and the ~ bitwise operator $ip = '0.0.0.0'; $mask = '24'; $end = (ip2long($ip) || (~ip2long($mask))) + 1; PHP Fatal error: Unsupported operand types I even tried to typecast the mask

Re: [PHP] 0.0.0.0 iplong()

2012-06-04 Thread jas
On 06/04/2012 11:33 AM, Matijn Woudt wrote: On Mon, Jun 4, 2012 at 6:54 PM, jasjason.ger...@gmail.com wrote: Not sure if this is a bug or not... I have run into an error when performing a conditional using iplong() and the ~ bitwise operator $ip = '0.0.0.0'; $mask = '24'; $end =

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

2012-05-24 Thread jas
On 05/23/2012 02:00 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 9:42 PM, Jason Gerfenjason.ger...@utah.edu wrote: 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

[PHP] openssl_sign() openssl_verify() discrepancy

2012-05-23 Thread jas
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 object and proceed to call the openssl_sign() function to obtain a digital signature of a

[PHP] Typecasting question

2012-02-03 Thread jas
I am familiar with typecasting. Booleans, ints, strings, etc. However while using an extension, more specifically the OpenSSL extension I have come across a problem I am not entirely familiar with. I have an array that looks like... array('config' = 'config/openssl.cnf',

[PHP] Executing shell command?

2008-09-23 Thread Jas
Ok I am having problems with a command I would like to execute through PHP. I have tried simple backtick operators on the command, passthru, exec, system all with the same results of 0 return code. Here is an example of the command I am attempting to execute if someone could provide me with

[PHP] Re: Secure Image Storage

2007-10-03 Thread Jas
Well if you have the GD libs installed you could do something with imagecreatefromjpeg() and just send a header with the following before the page is displayed. header(Content-Type: image/jpeg); Kevin Murphy wrote: Hello all, Following up with my success last week with putting downloadable

[PHP] [SOLVED] Re: [PHP] disappearing array?

2007-09-21 Thread Jas
Found the problem. I had a typo on my conditional statement. if( $fix-ValArray( $_POST['add_order_items'] === -1 ) ) { $errors['add_order_array'] = $erlink; } Should have been: if( $fix-ValArray( $_POST['add_order_items'] ) === -1 ) { $errors['add_order_array'] = $erlink; } My eyes need to be

[PHP] disappearing array?

2007-09-20 Thread Jas
I am not sure what the heck is going with this but here is my problem. I am trying to validate the contents of an array, then determine if the errors are with the array or another form submitted variable. The problem is after the code validates the array and other form variables using an if

[PHP] php to generate java-script

2007-08-21 Thread Jas
these actions? Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] system command?

2004-05-10 Thread Jas
/path/to/log'); print = textarea$tailed/textarea; ? Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] system command?

2004-05-10 Thread Jas
and replaced it with a -n 600 (for six hundred lines to be output) and it still wont place the $tailed var into the textarea. It will output to the screen but not to the textarea, I am just going to scrap it and try it a different way. Cheers, Jas Jay Blanchard wrote: [snip] It is now

[PHP] simple, but missing something?

2004-03-26 Thread Jas
]); } Is there something special I have to do to get variables out of an array for use here? I have used $user = name; and called stuff like @mysql_connect($name); and it has worked before, I think I am missing something here. TIA Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] simple, but missing something?

2004-03-26 Thread Jas
Jay Blanchard wrote: [snip] $cfg['hostname'] = www.server.com; // Server domain or ip address $cfg['username'] = username;// Database user name $cfg['password'] = password;// Database password $cfg['bugemail'] = [EMAIL PROTECTED]; The do something like this: function

[PHP] Re: simple, but missing something?

2004-03-26 Thread Jas
So something like this? function database_connection() { global = $cfg['hostname'],$cfg['username'],$cfg['password']; @mysql_connect($cfg['hostname'],$cfg['username'],$cfg['password']); @mysql_select_database($cfg['database']); } Or could I do an entire array like so... function

[PHP] eregi for alpha-numeric, punctuation whitespace?

2004-03-22 Thread Jas
-9a-zA-Z]{1,40}$,$_POST['input']) Any help is appreciated, right now anything with a space, period, comma etc gets flagged. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting Binaries

2004-02-23 Thread Jas
/manual/en/features.file-upload.php Just a thought, might not be a comlete solution however. HTH Jas Axel Is Main wrote: Guys, this isn't THAT stupid of a question is it? From my perspective, the way PHP seems to see it is that I should already know what kind of file I'm looking at. In most cases

[PHP] Re: Problem with Sessions

2004-02-19 Thread Jas
are there any sess_99898... files? 5. Did you post any examples of your code so we can help pinpoint the exact problem? HTH Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mycrypt 3des (php vs .net)

2004-02-13 Thread Jas
it working and even longer to figure out how it worked. Good luck, Jas Craig wrote: Hi all, I am truly hoping that someone can help with this. I am making the ecommerce site for a product that I had nothing to do with the development of. =) The product is making a licence file using the .net 3des

Re: [PHP] Re: mycrypt 3des (php vs .net)

2004-02-13 Thread Jas
to unlink your variables once data has been passed through your cipher. I would post your problem to the developers of the mcrypt app at mcrypt.sourceforge.net, I have talked with the guys over there and have always gotten help. I am sure they would want to know about this as well. HTH Jas Craig

[PHP] Re: apache2 hanging

2004-02-09 Thread Jas
it keeps hanging. HTH Jas Bryan Simmons wrote: I'm using php 4.3.4 as a loadable module for Apache2 on a Redhat box. It works for the most part except that for about every 5th page that is requested, the server hangs. It always finishes the process and the page but it hangs for like 5 minutes

[PHP] Re: authentication using /etc/passwd

2004-02-05 Thread Jas
Adam Williams wrote: Hi, is there a way to authenticate a username/password someone enters in a form with what is in /etc/passwd? Thanks! Yep, do a search on .htaccess from http://google.com Cheers, jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] mcrypt don't work.

2004-02-03 Thread Jas
is already installed simple do a find find / | grep libmcrypt from a command prompt to find the libraries, if you cannot find it them install it, or just re-compile php to include support. Hope this helps, it took me awhile to figure it out too. Jas -- PHP General Mailing List (http://www.php.net

[PHP] Re: How check credit card or magnetic card number.

2004-02-02 Thread Jas
get the idea, you may to need to Google around for the various credit card types and how the need them to be formatted, and my regular expressions may need to be adjusted as I have not tested them out. But that is just an example of how you would accomplish your goal. HTH Jas -- PHP General

[PHP] Regular expression help?

2004-02-02 Thread Jas
each block of 2 characters is followed by a : and repreated in 6 blocks. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular expression help?

2004-02-02 Thread Jas
Adam Bregenzer wrote: On Mon, 2004-02-02 at 14:15, Jas wrote: I have tried this but its not working. !eregi(^[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}$,$_POST['mac']) so it should match 2 characters 0-9a-fA-F each block of 2 characters

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread Jas
filled out... HTH Jas if ($firstname = ) $message = Please enter your first name.; else if ($lastname = ) $message = Please enter your last name.; else if ($homephone = ) $message = Please enter your home phone number.; else if ($address = ) $message = Please enter your current home

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
prior to 4.x echo $HTTP_SESSION_VARS['variablename']; 4.x and later echo $_SESSION['variablename']; Double check the path in PHP.INI then look at the permissions of that folder and make sure the IIS user can write to it, I think it is IUSER_WIN2k or something. HTH Jas Jeff McKeon wrote: Further

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread Jas
Man, you really are a card Erik. Fellow manual reader, Jas [EMAIL PROTECTED] wrote: Hello Patrick, I have good news and even better news for you. The good news is that you can make all your form-related woes disappear in less than a day. The even better news is that everything you need

[PHP] php to send emails using exim?

2004-01-29 Thread Jas
to the current exim binary, and call the mail() function from php. tried to do a system() to the exim binary as well as exec(/path/to/exim -io -T, $msg) All with no luck, could anyone give me an example of how to accomplish this? Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Well in that case do a dump_vars($_session[],$_session[]) for each session variable you register and see if anything is listed. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
John Nichel wrote: Chris W. Parker wrote: C'mon dude. Some of use are on dialup (not me now, but when I get home) and that email REALLY needed to be trimmed. Chris. I remember back in the day We used to do stuff like this. To

[PHP] Re: Problem with mcrypt_encrypt and mcrypt_decrypt.

2004-01-28 Thread Jas
it. * MCRYPT_MODE_NOFB (output feedback, in nbit) is comparable to OFB, but more secure because it operates on the block size of the algorithm. * MCRYPT_MODE_STREAM is an extra mode to include some stream algorithms like WAKE or RC4. HTH Jas -- PHP General Mailing List (http://www.php.net

[PHP] PHP to Exim?

2004-01-28 Thread Jas
, php and exim's websites and have not found an example of how to accomplish this. Thanks, jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP to Exim?

2004-01-28 Thread Jas
Brent Baisley wrote: Look at SquirrelMail. It's an open source PHP web front end to a mail system. You can look at the source code and see how they do things. On Jan 28, 2004, at 4:44 PM, Jas wrote: Not sure if anyone has run into this and I have only found methods of managing users

Re: [PHP] su idn't working from within php

2004-01-27 Thread Jas
holes. Hope this helps, let me know if it doesn't or if you don't have dedicated hosting. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-26 Thread Jas
Murray @ Planetthoughtful.Org wrote: Hi All, I'm trying to implement encryption on certain data fields in my MySQL database and I'm experiencing ongoing problems. I seem to be able to encrypt the data without issues, but can't figure out how to decrypt the data. My field in my test

[PHP] Re: Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-26 Thread Jas
Jas wrote: Murray @ Planetthoughtful.Org wrote: Hi All, I'm trying to implement encryption on certain data fields in my MySQL database and I'm experiencing ongoing problems. I seem to be able to encrypt the data without issues, but can't figure out how to decrypt the data. My field

[PHP] Re: variable container?

2004-01-26 Thread Jas
http://us4.php.net/manual/en/function.var-dump.php HTH Jas Jake McHenry wrote: Is there some global variable container that I can print_r out to show me all the variables that are being used on a page? In my efforts of converting from globals over to sessions, I've been getting a little mis

[PHP] Re: Function for crypt and decript.

2004-01-23 Thread Jas
/manual/en/ref.url.php crypt() http://us2.php.net/manual/en/function.crypt.php mcrypt() - Must have packages installed, but works very well http://us2.php.net/manual/en/ref.mcrypt.php openssl() - Also must have packages installed http://us2.php.net/manual/en/ref.openssl.php Hope this helps... Jas -- PHP

[PHP] Re: Suggestion on executing external programs from within php

2004-01-23 Thread Jas
restart a service. just 2 cents Jas Ammar Ibrahim wrote: maybe if you put Call1 and Call2 in seprate PHP files, and you call both of them. i guess it would work Ammar John Clegg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I would like to be able to execute 2 system calls

[PHP] Re: Ip Tracking Utilities

2004-01-20 Thread Jas
++) { $result = system(ping $network[$i]) if($result != ) { echo host $network[$i] responded; } } HTH Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic Forms

2004-01-15 Thread Jas
] $_POST[var02]; } echo $form; ? Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] permissions with bash scripts in php?

2004-01-13 Thread Jas
Jason Wong wrote: On Tuesday 13 January 2004 06:46, Jas wrote: [Please trim your posts!] Just tried that and I am getting the same error. I guess what I am really looking for is a way to have apache restart the service without adding the apache user in the 'sudoers' file. If you

[PHP] permissions with bash scripts in php?

2004-01-12 Thread Jas
this service please point me to the tutorial Thanks a ton. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] permissions with bash scripts in php?

2004-01-12 Thread Jas
Jake McHenry wrote: - Original Message - From: Jas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 12, 2004 4:47 PM Subject: [PHP] permissions with bash scripts in php? Something I have never tried... seems fairly straight-forward but I am running into problems. My

[PHP] Not working?

2004-01-08 Thread Jas
files into the directory and delete files form the directory using the 'unlink()' command but the rename function I am having problems with. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looping problem?

2004-01-06 Thread Jas
$subbrnetmask $msk {broption domain-name-servers $dns01, $dns02;broption routers $rtrs;brrange $rnge;br}br; } } // Write everything out formated... echo $vlans[$z]br /\n; Right now it only pulling the last record??? Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Checkboxes?

2004-01-05 Thread Jas
something to do with the naming or values of the checkboxes but if someone could shed some light on it that would be great. jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] looping problem?

2003-12-30 Thread Jas
; fixed-address 155.97.15.11; } Any help is appreciated... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function problem?

2003-12-30 Thread Jas
Not sure why the last section won't work... /* Function to search for hosts */ function search_dhcp() { if ((empty($_POST['search'])) (empty($_POST['hosts01'])) (empty($_POST['hn'])) (empty($_POST['ma'])) (empty($_POST['i'])) (empty($_POST['v']))) { unset($_SESSION['search']);

[PHP] post var check failing?

2003-12-22 Thread Jas
Not sure why it isn't checking my post vars correctly... any help is appreciated. Thanks in advance Jas while($a = mysql_fetch_array($x)) { list($_SESSION['id01'],$hn,$ma,$i,$v) = $a; } $_SESSION['search'] = ...new form with listed vars...; } elseif ((empty($_POST['hosts01'])) (empty($_POST

Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Jas
Jas Haseeb Iqbal wrote: how can i do that? btw the script runs on a local machine but updates the records on a webserver i mean live server. this is also a factor for the timeout. the script was running smoothly for 24000 recods before but now it suddenly timeout after 800records. i dont know what

[PHP] Re: Security Question

2003-12-18 Thread Jas
session_start(); $_SESSION['auth'] = base64_encode(1); //encoded var to deter session hijacking } else { header(location: login.html); } ? Hope this helps a bit... more info on stuff like this is available at google.com. =) Jas Thomas Andersen wrote: Hello, I'm trying to develop a secure web based

[PHP] Re: Script timeout Problem

2003-12-18 Thread Jas
content=2; URL=mypage.php?nLoopStart=?=$nLoopStart;? ? } else { // all records updated so redirst to calling page. ? meta http-equiv=Refresh content=2; URL=main.php?nStatus=1 ? } ? Haseeb That might help out with the timeouts too. Jas -- PHP General Mailing List (http://www.php.net

[PHP] Re: picking up a form name

2003-12-18 Thread Jas
(!empty($_POST['variable_001']) { // Do positive result code ... Or if it the name of the actual form you want try setting a hidden field with the same name as the form. ex. form name=form_001 action=nextpage.php input type=hidden name=form_001 value=form_001 HTH Jas Php wrote: Hi, If I have more

[PHP] Re: Script timeout Problem

2003-12-18 Thread Jas
Let me know if that solves your problem if you would be so kind... I am sure it will but I just want to make sure. Jas Jas wrote: Have you tried setting a limit on your MySQL insert and update statements to limit the amount trying to be processed? Haseeb Iqbal wrote: hi, i need to update

[PHP] var check not working...

2003-12-15 Thread Jas
it works except when selecting an item from the select box it will only display the first form when there are $_post vars present. I think I am missing something, could someone look over my code? Thanks in advance, Jas function vlans_dhcp() { $lvl = base64_decode($_SESSION['lvl']); if ($lvl

[PHP] Re: Q on RegExp extended Char

2003-12-15 Thread Jas
Well have you thought about maybe an array of illegal or extended characters and simply replacing them? eg. $b = $_POST['whatever_variables_you_have']; $match = array(ö,ç,ä); $replace = array(o,c,a); $z = str_replace($match,$replace,$b); Might not be exactly what you want but hope it helps. Jas

[PHP] Re: var check not working...

2003-12-15 Thread Jas
Sven wrote: Jas schrieb: For some reason this will not work... my $_POST variables check for no form variables and display a form... if they choose an item from a select box it queries the database for a field matching the $_post var and builds a new form creating 8 separate $_post variables

[PHP] Re: 4 project questions - help appreciated

2003-12-15 Thread Jas
(uniqid(microtime($rand_image),1)); } echo $hash; ? [end snippit] Hope that helps some... Jas Ryan A wrote: Hi, I am making a personal project like so: I enter something in the text box (eg. PHP REALLY ROCKS!!!) then the program checks if that string already exists in the database

[PHP] Re: php compile error with mysql undefined reference to `mysql_real_escape_string'

2003-12-15 Thread Jas
information on the different options available for your ./configure. HTH Jas Ivone Uribe wrote: Hi all! I'm installing php4.3.3, apache 1.3.28 with mysql3.22.32 I'm using this option --with-mysql=/usr/local/mysql But when I compile the php code, I get this error: ext/mysql/php_mysql.o: In function

[PHP] session var not being passed?

2003-12-12 Thread Jas
New set of eyes maybe or maybe I am indeed regressing... Page calling functions looks like such... ?php require 'sessions.php'; require 'inc.php'; if (($_SESSION['user'] == ) || ($_SESSION['pass'] == ) || ($_SESSION['lvl'] == )) { $_SESSION['msg_01'] = You have not entered the correct

Re: [PHP] (0/T) executeing script below public

2003-12-12 Thread Jas
LMAO, I am in concordance. Jas Ryan A wrote: One wonders how two retards got together to give birth to a bigger retard like you. Hi, I am a bit puzzled here, I have to wipe my a$$ after taking a $hit...but I have to wipe while i'm on the toilet! My usual way is to stand up and do it. I

Re: [PHP] Array problem....

2003-12-11 Thread Jas
on using numbers instead of names for my session vars. Jas Chris W. Parker wrote: Jas mailto:[EMAIL PROTECTED] on Wednesday, December 10, 2003 3:44 PM said: having no idea you could use numbers as session variable names I kinda feel like a retard right now. You solution worked, thank you very

[PHP] Re: How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Jas
Can we get the code posted so we know what is going on? Sometimes there are a dozen different ways to accomplish the same objective and looking at what your code is doing may assist us in assisting you. Jas Taualex wrote: Hello! I'm having a problem with my php script on my linux web server

Re: [PHP] Array problem....

2003-12-11 Thread Jas
works better for this page. Thanks again. Jas Chris W. Parker wrote: Jas mailto:[EMAIL PROTECTED] on Thursday, December 11, 2003 7:21 AM said: Well just so you understand why I needed something like that here is the finished result below [snip] $i = 0; while(list(...) = mysql_fetch_row

Re: [PHP] How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Jas
Well have you tried to define one function to include the for all variables that require mt_rand()? Jas Brent Baisley wrote: Personally, I wouldn't worry about it unless it is actually interfering with other processes. The OS will give any process or thread 100% of the CPU if there is nothing

Re: [PHP] How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Jas
then listing the contents of the array (with new values) it might improve cpu performance but then again. I am still fairly new to php. Jas Jas wrote: Well have you tried to define one function to include the for all variables that require mt_rand()? Jas Brent Baisley wrote: Personally, I

Re: [PHP] php .htaccess autologin

2003-12-11 Thread Jas
var then just write a function to look on the users machine for a cookie from your site with auth=1, then if you see that present simply authenticate the user. HTH Jas Evan Nemerson wrote: On Thursday 11 December 2003 04:17 pm, ROBERT MCPEAK wrote: I've dug around quite a bit and can't figure

[PHP] Array problem....

2003-12-10 Thread Jas
) = mysql_fetch_row($sql_subs)) { $_session['something to automaticly increment session var'] = $sub+$msk+$dns01... } I have been scouring the various functions and as of yet have yet to accomplish what I need. Any help would be great. Thanks in advance, jas -- PHP General Mailing List (http://www.php.net

Re: [PHP] Array problem....

2003-12-10 Thread Jas
having no idea you could use numbers as session variable names I kinda feel like a retard right now. You solution worked, thank you very much. Jas Chris W. Parker wrote: Jas mailto:[EMAIL PROTECTED] on Wednesday, December 10, 2003 3:21 PM said: while(list($id,$sub,$msk,$dns01,$dns02,$rtrs

[PHP] Re: password protection/encryption

2003-12-06 Thread Jas
here. http://www.webopedia.com/TERM/S/SSL.html Hope this helps Jas Chris Mach wrote: Greetings, I'm working on a project that involves a password protected area of a website. Some one also involved brought up the point that this area should be secure (Whit the lock icon indicating it is encrypted

[PHP] new set of eyes?

2003-12-06 Thread Jas
($v) = explode(},$ar); } print_r($v); } I am hoping to get something like array([0]=first row of data[1]=second row of data) Any help would be great... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] new set of eyes?

2003-12-06 Thread Jas
such as a eregi statement, explode etc. and so far explode has done what i need it to by separating one db entry into multiple components for editing. Jas David Otton wrote: On Sat, 06 Dec 2003 11:38:18 -0700, you wrote: I think I am loosing my mind this afternoon... could someone review

Re: [PHP] new set of eyes?

2003-12-06 Thread Jas
this: Array ( [0] = Array ( [0] = Array ) ) 1Array So it sees 1 array and inside are two indexes both containing a new array... now I need to know how to pull the contents out of the second arrays. Sorry, still trying to figure out arrays. Jas -- PHP General Mailing List (http://www.php.net

[PHP] Regular expression assistance...

2003-12-05 Thread Jas
, or maybe some insight into the various characters used (besides the basic, ^, $, +, etc). Thanks in advance. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function problems...

2003-12-03 Thread Jas
I call this function it checks a session variable then displays 1 of 3 menus... for some reason it will only display the first menu regardless of the results of my decoded session var. Any help or just a new pair of eyes would help. Thanks in advance. jas function menu() { $lvl

[PHP] Re: function problems...

2003-12-03 Thread Jas
Nevermind, I got it to work... cheers Jas wrote: I call this function it checks a session variable then displays 1 of 3 menus... for some reason it will only display the first menu regardless of the results of my decoded session var. Any help or just a new pair of eyes would help. Thanks

[PHP] eregi function?

2003-11-25 Thread Jas
,$vlan02,$hosts02,$vlan03,$hosts03,$vlan04,$hosts04,$vlan05,$hosts05,$vlan06,$hosts06,$vlan07,$hosts07,$vlan08,$hosts08,$vlan09,$hosts09,$vlan10,$hosts10)) // insert line break here } Any help with this would be appreciated Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Session vars not echoing?

2003-11-20 Thread Jas
is appreciated... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session vars not echoing?

2003-11-20 Thread Jas
Yeah I did that, sorry I just didn't note it in the snippit.. and it is now working with the $_SESSION function, i just had to restart the browser to clear the cache after updating the code. jas Pete M wrote: need to issue a session_start() at top of page Pete Jas wrote: Not sure why

[PHP] Remote computer name?

2003-11-20 Thread Jas
I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1) jas -- PHP General Mailing List (http

Re: [PHP] mcrypt libraries?

2003-11-19 Thread Jas
Evan Nemerson wrote: On Tuesday 18 November 2003 01:13 pm, Jas wrote: Curt Zirzow wrote: * Thus wrote Jas ([EMAIL PROTECTED]): I am not sure if I should post my question here but I will anyways. Ok, I have compiled the mcrypt libraries on a Redhat 9 box running apache 2 with php4. And I need

Re: [PHP] mcrypt libraries?

2003-11-18 Thread Jas
Curt Zirzow wrote: * Thus wrote Jas ([EMAIL PROTECTED]): I am not sure if I should post my question here but I will anyways. Ok, I have compiled the mcrypt libraries on a Redhat 9 box running apache 2 with php4. And I need to know the next step(s) in getting php to use the libmcrypt libraries

[PHP] mcrypt libraries?

2003-11-17 Thread Jas
pointers (other than reading the manual) I would appreciate it. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form not working...

2003-11-10 Thread jas
For some reason my form to edit selected items is not working, I think I need a new set of eyes. Any help is appreciated... Jas // inc.php function db_retrieve() { require 'dbase.inc.php'; $tble = $_SESSION['table']; $show = @mysql_query(SELECT * FROM $tble LIMIT 0, 15,$db)or die(mysql_error

Re: [PHP] IIS Ports

2003-09-30 Thread Jas
box http://www.nsa.gov/snac/index.html // for windows and linux HTH Jas Stephen Craton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm not sure where he tried to find the ports that were open but I'd guess from his apartment in Lafayette. We have a hardware firewall protecting

[PHP] Passing hidden form var?

2002-08-09 Thread Jas
I think I am just over looking something here, a new pair of eyes would be useful. Thanks in advance. The var $ipaddy is not getting passed to code listed below /* Form for IP checking */ $table = cm_sessions; $record = mysql_query(SELECT * FROM $table,$dbh); while ($row =

[PHP] dir to array?

2002-07-31 Thread Jas
Not sure why this isn't working, any help is appreciated. I am trying to read the files in a directory and place them into an array. Here is the code: /* Function to create array of directory contents */ function dCNTS($files) { $dir = opendir(/path/to/directory/); while($imgs =

Re: [PHP] dir to array? - SOLVED

2002-07-31 Thread Jas
I got it fixed, thanks again. Just in case anyone else needs help with this type of item look at readdir() at http://www.php.net Jas Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thursday 01 August 2002 03:00, Jas wrote: Not sure why th

[PHP] Parse error - new set of eyes?

2002-07-25 Thread Jas
I am getting a parse error on line 14, I am trying to make sure session vars are being set before rendering the page. This is lines 12,13,14 15. Any help is appreciated. Jas if ((!$u_name) || (!$p_word)){ header(Location: index.php); session_destroy(); exit; } /* Check for missing session

[PHP] Re: sessions

2002-07-23 Thread Jas
You forgot the session_start(); call. You will have to do that before you can tap into registered vars. Hope that helps. Jas Alexander Ross [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm trying to understand sessions so I can set session variable

[PHP] Credit card checks?

2002-07-23 Thread Jas
Just wondering if anyone has come across the need to develop a class to test a string of numbers based on a credit card type. If you have where would I be able to get information on what string of numbers is consistent with each of the different credit cards? Any help would be appreciated! Jas

Re: [PHP] Credit card checks?

2002-07-23 Thread Jas
So there is no way to use some sort of string comparison to check the number then? I would have to have a merchant account? Sorry for being nieve, just never tried to work with credit card numbers etc. Jas Kristopher Yates [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">new

Re: [PHP] Credit card checks?

2002-07-23 Thread Jas
Yeah, I have looked at that class file and I don't want someone elses example to use, I want to build my own but have no way of knowing what makes up a valid visa number etc Jas Richard Baskett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Try this

[PHP] timer on sessions?

2002-07-17 Thread Jas
problem is finding the correct way to check the seconds in php. Any help or pointers is appreciated. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] timer on sessions?

2002-07-17 Thread Jas
a check on the session var (seconds) vs. the seconds var + 5*60 (or 5 J minutes) to time out the session and force the user to log back in. My J problem is finding the correct way to check the seconds in php. Any help or J pointers is appreciated. J Jas time() will give you a UNIX timestamp. Use

  1   2   >