[PHP] upload problem...

2002-05-21 Thread Jas
somewhere. Any help would be great! Thanks in advance, Jas You did not select a file to upload.<< back"; } elseif (!eregi('.jpg$', $img1_name)) { $error_msg = "You tried to upload an invalid image. File must be a jpg file type.<< back"; } elseif (eregi(&

Re: [PHP] upload problem...

2002-05-21 Thread Jas
other ideas? thanks in advance, Jas "Gerard Samuel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Take a look at move_uploaded_file() > http://www.php.net/manual/en/function.move-uploaded-file.php > > Jas wrote: > > >Ok he

Re: [PHP] upload problem...

2002-05-22 Thread Jas
Yeah I tried that as well, no dice, however here is what I the code that DID work. Hope this helps anyone that is trying to accomplish much of the same. Jas wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wednesday 22 May 2002 07:02, Jas wrote: > > Ok here is

[PHP] tmpfile() errors?

2002-05-22 Thread Jas
} This code is from http://www.sebastian-r.de/. And everything works fine until it hits this function. Could I get some enlightenment on why it cannot create a temp file named $tmp_image? (ecspecially when the permissions for the file are correct?) Thanks in advance, Jas -- PHP General Ma

Re: [PHP] tmpfile() errors?

2002-05-22 Thread Jas
case 1: case 2: case 3: eval(" if (!\$this->image = @imagecreatefrom".$this->image_types[$type]."(\"".$tmp_image."\")) exit(\"This PHP version cannot create image from &

[PHP] writting to files

2002-05-31 Thread Jas
read and write permissions set on the file and the directory. It will not write changes to the file. Any pointers? Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] delete file contents before writing?

2002-06-03 Thread Jas
s of right now it opens the file and writes your changes, however it simply goes to the end of the file then begins writting. I would like to delete the contents of the file, then write the changes. Any help or pointers are appreciated! Jas -- PHP General Mailing List (http://www.php.net/) To u

[PHP] delete file contents before writing?

2002-06-03 Thread Jas
s of right now it opens the file and writes your changes, however it simply goes to the end of the file then begins writting. I would like to delete the contents of the file, then write the changes. Any help or pointers are appreciated! Jas -- PHP General Mailing List (http://www.php.net/) To u

[PHP] RegEx problems...

2002-06-03 Thread Jas
t;<"), $file_open, stripslashes($passwords)); print ("$passwords was written to $file_name"); So far nothing has worked, actually the last example overwrites the file with nothing. Anyone come across a problem similar to this? If so how did you solve it? Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array HELL!!!!

2002-02-22 Thread jas
me pointers on what the hell I am doing wrong please let me know, I would be very glad to hear your opinion and the correct way to accomplish this. (And, yes I went through just about every tutorial I could find on how to delete records, which by the way did nothing for putting the results of a select statement into an array or variable for futher processing.) Have a good weekend everyone!!! Pissed and frustrated... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to question...

2002-03-05 Thread jas
This may seem a bit unorthodox but I am wondering if there is a simple way to take an existing web site done in mostly html and wrap that code in php so that when a user goes to view source they get nadda... Remember I said a "simple way". Thanks in advance. Jas -- PHP General Ma

[PHP] Verify script location...

2002-03-05 Thread jas
possible and if so could someone give me some more insight or a tutorial on this? Thanks in advance... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Verify script location...

2002-03-05 Thread jas
and I wanted to include brownstones.com database.inc file in one of my own scripts so I could run searches on their inventory from my domain. Is this or is this not possible? Thanks in advance, Jas "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 000301c1c477$aaf1cc10$68

Re: [PHP] Verify script location...

2002-03-05 Thread jas
Essentially what I would like to do is to prevent this kind of thing from happening to my own website, just to clear up my example. =) Jas "Jas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > Ok I think I am a little confused... with regards to include() an

Re: [PHP] Verify script location...

2002-03-05 Thread jas
A Mr. Sheets gave me this snippet to use... if ($_SERVER["SERVER_ADDR"] != 'ip address of server') { echo "You are attempted to use this file from an unauthorized host exit; } "Jas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > Essen

[PHP] calculation based on checkbox

2002-03-22 Thread jas
will need to subtract a certain amount if a checkbox is checked. I am assuming that the IF statement would be something like... IF $variable = 1; { $variable - $total = $total2 ) Else do the rest of the code... I am still a newbie to php so any help would be great. Thanks in advance, Jas --

[PHP] Directory to array to select box...

2002-04-05 Thread Jas
t box but so far I have not been able to have it actually work so any help would be great.. Thanks in advance, jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Directory to array to select box...

2002-04-05 Thread Jas
closedir($dir); ?> If anyone knows how to do this in a better way please let me know, but this works and all it needs is some hidden fields (i am assuming here) so that the item that the user selects from the list can be further processed, like sticking the file path (not the actual file) into

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
it along to another form which will stick it into a database, not the file mind you, i simply need to stick the path of the file into a database table. If you have any suggestions on how to do this that would be great. Thanks again, Jas -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
So adding a hidden field would definately pass the contents of the select box to the other script so I am not doing anything wrong with this portion, but what if I wanted to append the path of the file name? Any tips? Thanks, jas -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
Sorry, here is what I have thus far... everything is working except I am just not sure how to pass the result of the users selection to another script, I have added the hidden input type to try and solve it but I think I am doing something wrong, maybe I need to put the hidden input type on the se

[PHP] php and html image tag...

2002-04-08 Thread Jas
is is a valid piece or not, any help would be great. Thanks in advance. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php and html image tag...

2002-04-08 Thread Jas
it is as follows... Hope this helps some other people that might want to do the same type of thing... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Appending url to file name...

2002-04-08 Thread Jas
e I am stuck append the file path, i.e. the complete url to the db entry and I am not quite sure how to accomplish this, if anyone has a tutorial or even an example to show me I can figure it out from there... this is the piece of code I am using on the "index_done.php3" file. 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] Appending url to file name...

2002-04-08 Thread Jas
So putting it into an UPDATE statement it would be something like this right? UPDATE CONCAT $table_name SET ('http://localhost/images') ad01="\$ad01\""; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Appending url to file name...

2002-04-08 Thread Jas
Actually, I tried it a different way and I got the results I needed... this is what I did, $file_var = "http://www.bignickel.net/full_ad/";; $db_name = "db_name"; $table_name = "table_name"; $connection = @mysql_connect("localhost", "user_name", "password") or die ("Could not connect to database.

[PHP] Assigning unique form names...

2002-04-08 Thread Jas
if (($file_name != ".") && ($file_name !="..")) { $file_list .= "$file_name"; } } $file_list .= ""; closedir($dir); ?> Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
How about this... Would I be able to create an array based on the 12 different http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
ustrates what I am trying to accomplish which would be to place all the files I need into an array named $file_array and then where I begin to create my form I figure I could pull the array contents then count up 1 for each form I make, not sure if this will work and if it doesn't please tell me

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
ble to make each select box within its own unique form. I hope this clears things up as to what I am trying to accomplish. Any help or pointers would be a great help at this point. Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysql question

2002-04-08 Thread Jas
You can use an id field in your table structure that is set to auto increment for each entry into database then just do a query on the id number you wish to view... of course this would mean that you would need to create a new field on your table but that should get you what you need. Jas

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
Yeah I have tried $file_name but the problem stems from the while ($file_name = readdir($dir) being called after the creation of the form in $file_list. Is there a way to put the ($file_name = readdir($dir) before the $file_list function? I have tried to do it a couple of different ways such as

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
name and path into the appropriate field in table) based on the unique action file name. I know why it doesn't work and that would be because upon the creation of the form the $file_name variable reads the directory and places the results into the select boxes AFTER the form is made. Now

[PHP] another try...

2002-04-08 Thread Jas
Ok I know you guys are tired of hearing from me on here but I tried to do it a different way and now I am getting a parse error on line 6... here is the code, $file_name "; closedir($dir); ?> Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Re: another try...

2002-04-08 Thread Jas
Ok I have it working to a point... how can I impliment a loop to count the files in the directory, right now it only pulls the first file into the select box. Here is the code: $file_name "; } } closedir($dir); ?> Thanks, in advance Jas -- PHP General Mailing Li

[PHP] String?

2002-04-10 Thread jas
Is this a correct string to show only files that look like so: *_.jpg if ($file_names != "." && $file_names !=".." && ereg('(^[0-1231]$).jpg$',$file_name)) 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] String?

2002-04-10 Thread jas
the contents of a directory in select box but I want to filter out any files that dont meet this criteria *_.jpg and nothing is working for me, any help or good tutorials on strings would be great. Jas "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

Re: [PHP] String?

2002-04-11 Thread jas
followd by p, followed by g. g has to be at the end of the > > string, because of the $. > > or you can use: > > ereg('^\.*_[0-9]{4}\.jpg$', $file_name); > > > > this will meen : > > any characters at the beginning between 0 and unlimited times, then > f

[PHP] string...

2002-04-11 Thread jas
followd by p, followed by g. g has to be at the end of the > > string, because of the $. > > or you can use: > > ereg('^\.*_[0-9]{4}\.jpg$', $file_name); > > > > this will meen : > > any characters at the beginning between 0 and unlimited times, then > f

[PHP] Re: include through HTTP

2002-04-12 Thread Jas
Maybe try a require hth Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] eregi() problems...

2002-04-15 Thread jas
types... filename_logo.jpg filename_0103.jpg Could anyone enlighten me on how this is not working? Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] credit card validation

2002-04-15 Thread jas
, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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 Gerfen wrote: 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, jas wrote

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

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, jas 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 = (ip2long($ip

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, jas wrote: On 06/04/2012 11:33 AM, Matijn Woudt wrote: On Mon, Jun 4, 2012 at 6:54 PM, jaswrote: Not sure if this is a bug or not... I have run into an error when performing a conditional using iplong() and

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, jas wrote: On 06/04/2012 12:48 PM, Matijn Woudt wrote: On Mon, Jun 4, 2012 at 8:38 PM, jaswrote: On 06/04/2012 11:33 AM, Matijn Woudt wrote: On Mon, Jun 4, 2012 at 6:54 PM, jas wrote: Not sure if

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

[PHP] system command?

2004-05-10 Thread Jas
Anyone know what this wouldn't work? I have tried using a couple of functions defined at http://us2.php.net/manual/en/ref.exec.php and none seem to have the desired effect. $tailed"; ?> Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] system command?

2004-05-10 Thread Jas
-f 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] php to generate java-script

2007-08-21 Thread Jas
help me or point me in a better direction for performing these actions? Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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

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

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

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

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

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

2004-01-27 Thread Jas
shell script checks to see if a temporary file is present and if it is executes the command on the server as the root user. No privledge escalation 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 with mcrypt_encrypt and mcrypt_decrypt.

2004-01-28 Thread Jas
it is not recommended to use 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 Mail

[PHP] PHP to Exim?

2004-01-28 Thread Jas
oogle, 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] HELP <> PLEASE PHP

2004-01-29 Thread Jas
t combine them all like so... if((empty($_POST["$firstname"]) || (emtpy($_POST["$lastname"])) || ... { $message = "nothing filled out... HTH Jas if ($firstname <= "") $message = "Please enter your first name."; else if ($lastname <= "&qu

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 Mc

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 to

[PHP] php to send emails using exim?

2004-01-29 Thread Jas
ts 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/)

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
th"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem _ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH _ENV["PATH_INFO"] /phpinfo.php _ENV["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSupDev\\phpinfo.php _ENV["PROCESSOR_ARCHITECTURE"] x86 _ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10, GenuineIntel _ENV["PROCESSOR_LEVEL"] 6 _ENV["PROCESSOR_REVISION"] 080a _ENV["ProgramFiles"] C:\\Program Files _ENV["REMOTE_ADDR"] 10.16.2.55 _ENV["REMOTE_HOST"] 10.16.2.55 _ENV["REQUEST_METHOD"] GET _ENV["SCRIPT_NAME"] /phpinfo.php _ENV["SERVER_NAME"] opsup_dev.telaurus.net _ENV["SERVER_PORT"] 80 _ENV["SERVER_PORT_SECURE"] 0 _ENV["SERVER_PROTOCOL"] HTTP/1.1 _ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0 _ENV["SystemDrive"] C: _ENV["SystemRoot"] C:\\WINNT _ENV["TEMP"] C:\\WINNT\\TEMP _ENV["TMP"] C:\\WINNT\\TEMP _ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices _ENV["windir"] C:\\WINNT Jeff McKeon IT Manager Telaurus Communications LLC [EMAIL PROTECTED] (973) 889-8990 ex 209 ***The information contained in this communication is confidential. It is intended only for the sole use of the recipient named above and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication, or any of its contents or attachments, is expressly prohibited. If you have received this communication in error, please re-send it to the sender and delete the original message, and any copy of it, from your computer system. Thank You.*** -- PHP General 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://www.php.net/unsub.php

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 t

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

2004-02-02 Thread Jas
-9]{16}$",$_POST['cc'])) || eregi("^[0-9{2}/+[0-9]{2})) { echo "Your card is a Mastercard"; } ?> You 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 b

[PHP] Regular expression help?

2004-02-02 Thread Jas
characters 0-9a-fA-F 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 b

Re: [PHP] mcrypt don't work.

2004-02-03 Thread Jas
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/) To unsubscribe

[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

[PHP] Re: apache2 hanging

2004-02-09 Thread Jas
y 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 min

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

2004-02-13 Thread Jas
et 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

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

2004-02-13 Thread Jas
unset() call 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.

[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

Re: [PHP] Detecting Binaries

2004-02-23 Thread Jas
an check for the mime types... http://us4.php.net/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 k

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

2004-03-22 Thread Jas
t;^[0-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

[PHP] simple, but missing something?

2004-03-26 Thread Jas
e],$cfg[username],$cfg[password]); @mysql_select_database($cfg[database]); } 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 someth

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 data

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

<    1   2