Re: [PHP] switch it button

2006-08-23 Thread Arpad Ray
Ford, Mike wrote: How about something like: switch Beware that PHP_SELF is injectable like several other $_SERVER variables, so you must at least encode it to prevent XSS attacks. Eg. http://example.com/foo.php/";>

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
col_1'] == 'value_1' > is true 2nd case will never be executed? > Does it mean I CANNOT use switch() in this case? > > -afan Using a switch like this is more equivalent of if(something){ // true } else { // false } You're doing : if(something1){ // true 1 } if(s

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
On Tuesday 29 August 2006 13:44, Ray Hauge wrote: > Using a switch like this is more equivalent of > > if(something){ > // true > } else { > // false > } Actually, it's more like an if/elseif/else (if you use default:) or if/elseif (without default:) -- Ra

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
On Tuesday 29 August 2006 14:12, [EMAIL PROTECTED] wrote: > No. They are two if statements because they are indepedent. > > > On Tuesday 29 August 2006 13:44, Ray Hauge wrote: > >> Using a switch like this is more equivalent of > >> > >> if(something){ &

Re: [PHP] Re: Format of Encrypted Password

2006-09-06 Thread Ray Hauge
y offloaded creating passwords to htpasswd. I would suggest looking at the code where new accounts are created (if there is code to do that). That should tell you what's going on. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.80

Re: [PHP] Newbie question about

2006-09-09 Thread Ray Hauge
reasons for not using short tags are: 1) Not everyone has access to the ini file, and might not be able to use short tags. If you're releasing your code to the public, you want to work in as many places as possible, so then you should use -- Ray Hauge Programmer/Systems Administrator

Re: [PHP] Ajax and PHP: XMLHTTP

2006-09-11 Thread Arpad Ray
Micky Hulse wrote: Can I replace the above with some sort of XMLHTTP request? As noted, that's a javascript question. However your PHP code is vulnerable to XSS attacks; you should at least encode the output with htmlspecialchars() so that URLs like "foo.php/alert('hi');" are safe. eg. A

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
ed-sources.com First I would check to make sure that permissions are set correctly. PHP doesn't (necessarily) run under your user account. Other than that I have no idea. HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
00 Federal Street, Suite 201 > Troy NY 12180 > > Tel: (518) 687-6700 x154 > Fax: (518) 687-6799 > Email: [EMAIL PROTECTED] > http://www.informed-sources.com This may be due to my huge lack of experience with Mac OSX, but I would think it has its own permissions for files. I'

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
e been provided to the Mac OS X > user for that share. > > This is the error I get: > Warning: dbase_open() [function.dbase-open]: unable to open database > /Volumes/foresight/2qc0831.dbf in > /Library/WebServer/Documents/site.com/folder/file.php on line 29 > > On 9/12/06 5:4

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
Hmmm... That's odd. I would use your terminal program, then change directory to the location of the file, and do "pwd". That should give you your working directory. If you can get to it on OSX, and PHP is on OSX, then PHP should be able to see the file in the same path.

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
You could try getting a directory listing with PHP to see if you can see what files are in there, or if you can access that directory through PHP. http://us2.php.net/manual/en/function.opendir.php -- Ray Hauge Programmer/Systems Administrator American Student Loan Services

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
> 716.856.9675 > [EMAIL PROTECTED] nice catch. My suggestion would be to change the group to the group the webserver runs as (nobody, www, etc.) and allow read and write access to the group level as well. That should solve your problem. -- Ray Hauge Programmer/Systems Administrator Am

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
l S. Johari > Supervisor, Internet & Administration > Informed Marketing Services Inc. > 500 Federal Street, Suite 201 > Troy NY 12180 > > Tel: (518) 687-6700 x154 > Fax: (518) 687-6799 > Email: [EMAIL PROTECTED] > http://www.informed-sources.com You could just try usi

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
chmod 770 foresight does that do anything? If not, try it as the root/admin account. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 On Wednesday 13 September 2006 12:57, Rahul S. Johari wrote: > I think that is

Re: [PHP] Question on explode and join.

2006-09-14 Thread Ray Hauge
s[$i] = "*"; > } > } > > $newcomments = join(" ",$words); > > return $newcomments; > } This website answered a lot of my questions about the same situation. I tested it on my development environment, and it worked just fine. h

Re: [PHP] Question on explode and join.

2006-09-14 Thread Ray Hauge
On Thursday 14 September 2006 09:47, Ray Hauge wrote: > On Wednesday 13 September 2006 11:51, Beauford wrote: > > Hi, > > > > I have a form which I want to check for inappropriate words before it is > > posted. I have used explode to put the string into an array using a

Re: [PHP] Iteration through letter

2006-09-14 Thread Ray Hauge
and Rasmus helped us all understand it. The reason that happens is the next "letter" after Z is AZ, which alphabetically is less than Z. You could change your statement to use $letter < 'AZ'. I think that would work. -- Ray Hauge Programmer/Systems Administrator Ameri

Re: [PHP] Iteration through letter

2006-09-14 Thread Ray Hauge
t; > appreciate any guesses or explanations. > > Read the manual and search the archives, this was beaten to a bloody > pulp several months ago. (Hint: this DOESN'T work like ascii in C). > > Cheers, > Rob. I was typing up my response before yours came in... looks like I m

Re: [PHP] correctly reading binary data from http post

2006-09-15 Thread Arpad Ray
Marek 'MMx' Ludha wrote: I need to send large binary data over http post (so that urlencoding or base64 encoding is not an option). I use request like this: http://people.ksp.sk/~mmx/request (there is a zero byte between A and B). There are 3 bytes of data, but when I do it yields 1 (it trunca

Re: [PHP] PDF.

2006-09-19 Thread Ray Hauge
on top of it. I use it a lot at work. http://fpdi.setasign.de/index.php -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
e again, and so on. That differnce in payment is pretty close to the graduation factor. It's probably off due to the rounding. Thanks for placating me when grasping for straws ;) -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
m, loan > balance, and initial interest rate. > [/snip] > > It is called amortization ... I should have known that ;) That's what happens when you're looking too closely at a problem. thanks! -- Ray Hauge Programmer/Systems Administrator American Student Loan Service

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
tandard repayment type, but this repayment type was a bit different in that the payment changes, and I had to find out the rate of that change. I think what I was looking for was: http://en.wikipedia.org/wiki/Amortization_%28business%29 Thanks for the help -- Ray Hauge Programme

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
On Tuesday 19 September 2006 10:34, Ray Hauge wrote: > http://en.wikipedia.org/wiki/Amortization_%28business%29 Actually, I"m not so sure that's what I was looking for. These loans are student loans, which differ slightly from mortgage loans. Usually the market determines the

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
On Tuesday 19 September 2006 10:38, Ray Hauge wrote: > On Tuesday 19 September 2006 10:34, Ray Hauge wrote: > > http://en.wikipedia.org/wiki/Amortization_%28business%29 > > Actually, I"m not so sure that's what I was looking for. These loans are > student loans

Re: [PHP] +AFs-OT+AF0- Working with version control

2006-09-22 Thread Ray Hauge
the command line. http://www.alwins-world.de/programs/kdesvn/ If you use SVN+SSH, and you run kdesvn from the command line, then it will ask you for your password on the command line. Just a little hint. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstude

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Ray Hauge
would guess that it does this to make sure you know what you're doing and using the private variable like that. I'm just guessing at that point though. Try a test with multiple public and multiple private variables. If the format of the array keys stays the same, then you should have your answer. HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Ray Hauge
On Saturday 23 September 2006 10:04, Marcus Bointon wrote: > On 23 Sep 2006, at 15:51, Ray Hauge wrote: > > To me it looks like they append the name of the class to any private > > variables. I would guess that it does this to make sure you know > > what you're >

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Ray Hauge
stripping off the class name from the private variables and stripping off the * from the protected ones, to give you what you expected. Not exactly what you're looking for, but it would probably help to keep the changes to your existing code down while you're waiting for a patch/do

Re: [PHP] Object to array conversion oddity

2006-09-24 Thread Ray Hauge
n before submitting the bug... from my understanding. I don't want to put words in Marcus' mouth -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Re: Re: Frustrated trying to get help from your site

2006-09-25 Thread Ray Hauge
e not found it. > > I like to have html files which I can put on my internal > documentation server. > > Greetings > Michelle Konzack > Systemadministrator > Tamay Dogan Network > Debian GNU/Linux Consultant It's not the best in the world, but it works. http

Re: [PHP] class usage

2006-09-29 Thread Ray Hauge
; then you're probably headed in the wrong direction, at which point I step back and look at the big picture again. In short, OOP is something to be used to your advantage, but if overused can just cause unnecessary overhead and confusion (IMO) -- Ray Hauge Application Development L

Re: [PHP] exec returns no output?

2006-09-30 Thread Ray Hauge
ancing.com/user/1 Do you use generated keys without a password for logging in? Otherwise exec() is just going to sit there while the scp command waits for a password. -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP G

Re: [PHP] Date verification

2006-10-09 Thread Arpad Ray
Ron Piggott (PHP) wrote: Is there a PHP function which verifies a valid date has been entered (-MM-DD)? Ron preg_match('/^(\d{4})-(\d\d)-(\d\d)\z/', $s, $m) && checkdate($m[2], $m[3], $m[1]) Arpad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] heredoc usage [WAS:

2006-10-26 Thread Arpad Ray
Incidentally, a nice side effect of heredoc is that some editors (like vim) recognise <

Re: [PHP] any one can give an idea on this question ?

2006-10-26 Thread Arpad Ray
Sancar Saran wrote: For example I had a several php pages. In this page there was an array named $arrHede It has lots of values. in index.php $arrHede['antin']='yada'; in config.php $arrHede['kuntin']='bada'; and so. So I want to write a scrpit check all those files to get all $arrHede keys

Re: [PHP] Running a Java Program

2006-10-26 Thread Ray Hauge
intervention when the program stops. Although... you could probably to an exec() and if it was installed as a service you should be able to run "net start ' (or something like that. I haven't kept up on your previous post so I may be completely wrong ;) -- Ray Hauge Applica

Re: [PHP] Running a Java Program

2006-10-26 Thread Ray Hauge
On Thursday 26 October 2006 7:28 pm, Prathaban Mookiah wrote: > Ray, > > Nope - I cannot have the program running all the time because the port that > it this program will connect to will be accessed by other programs too. So > it needs to run only when the user is online and

RE: [PHP] Microsoft Partners With Zend

2006-11-01 Thread ray . hauge
platform. You might see some changes in the future that pertain to Active Directory integration for single sign-on (other than ldap) and a few other Win32 based technologies. For Zend... you get more people using PHP, because now they can use PHP with confidence and ditch ASP if they need to ;)

RE: [PHP] Microsoft Partners With Zend

2006-11-01 Thread ray . hauge
platform. You might see some changes in the future that pertain to Active Directory integration for single sign-on (other than ldap) and a few other Win32 based technologies. For Zend... you get more people using PHP, because now they can use PHP with confidence and ditch ASP if they need to ;)

RE: [PHP] Microsoft Partners With Zend

2006-11-02 Thread ray . hauge
n the Windows server, which its track record isn't exactly as good as Linux/BSD systems. Ray > Original Message > Subject: Re: [PHP] Microsoft Partners With Zend > From: "Curt Zirzow" <[EMAIL PROTECTED]> > Date: Wed, November 01, 2006 4:53 pm > To

[PHP] Frameworks

2006-11-02 Thread ray . hauge
our application. Your thoughts? Thanks, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Microsoft Partners With Zend

2006-11-02 Thread ray . hauge
re about? Yeah, the "kernel" caching is through Microsoft's FastCGI implementation, not something from Zend. There might have been something in IIS 7 that deals with this, but I'm not completely sure on that. If people were interested MS said that the FastCGI stuff was available

RE: [PHP] Closing a connection to browser without exiting the script

2006-11-02 Thread ray . hauge
" table. Say the "user" table has a column "processing" with three possible values. 0 (not processed), 1 (in processing), 2 (finished processing). You could probably expand upon that idea quite a bit more if you need to. It's no single magic bullet function call, but that's how I'd probably do it. Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Microsoft Partners With Zend

2006-11-06 Thread Ray Hauge
retty sure that Zend Core can be freely downloaded as well. http://www.zend.com/products/zend_core/windows_preview Ray PS. Sorry about the top-post, but I recently moved to Outlook, and I haven't bothered to configure it for bottom-posting yet. -Original Message- From: Rory B

RE: [PHP] Zend

2006-11-09 Thread Ray Hauge
the end of your current .ini file. I'm not sure what it does on Windows. In any case, I'd check with Zend. They'd be a lot more knowledgeable about their own applications than we are... not to mention that you have a support contract with the Studio license. HTH Ray -Original

Re: [PHP] http_build_query ... argh

2006-11-09 Thread Arpad Ray
Jochem Maas wrote: function inputPostQueryUnBorker($s) { return preg_replace('#(\?|&(?:amp;)?)([^=]*)=#eU', "'\\1'.str_replace(array('%5B','%5D'), array('[',']'), '\\2').'='", $s); } so how bad is it This is a bit more concise. I d

Re: [PHP] http_build_query ... argh

2006-11-10 Thread Arpad Ray
Jochem Maas wrote: Arpad Ray wrote: return preg_replace('#%5[bd](?=[^&]*=)#ei', 'urldecode("\0")', $s); could you explain your regexp - I'd like to replace my version with your (if for no other reason than that shorter code is easier to rea

RE: [PHP] Additional query for number of records in table

2006-11-17 Thread Ray Hauge
have been returned without the LIMIT clause. There's no way to do it with one query though... at least easily or quickly. Ray -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: Friday, November 17, 2006 1:57 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net S

[PHP] LDAP password question

2006-11-29 Thread Ray Hauge
Thanks! -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com

RE: [PHP] LDAP password question

2006-11-30 Thread Ray Hauge
SSL when using ldap_bind(). Thanks, -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com From: Alain Roger [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 6:15 AM To: Ray Hauge; PHP General List Su

RE: [PHP] EZ array problem - What's wrong with my brain?

2006-12-01 Thread Ray Hauge
associative keys or numeric keys. http://www.php.net/manual/en/language.references.php PHP.net can explain how references work better than I can. Basically it creates a "symbolic link" (to use a *nix term) to the key "1.2". It shouldn't take up too much memo

RE: [PHP] EZ array problem - What's wrong with my brain?

2006-12-01 Thread Ray Hauge
I forgot to mention that you won't be able to use "0", "1", etc. as PHP will convert those to integers. If you do use them, then they will replace [0] with whatever you put in there, and if you are using the references, it will replace both instances with your new

RE: [PHP] Remote MySQL connection via PHP file

2006-12-01 Thread Ray Hauge
ng it on an NFS share, or maybe FTP. Something that requires authentication would be best. -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com -Original Message- From: Scott [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006

RE: [PHP] Ensuring that variable contains a number

2006-12-06 Thread Ray Hauge
ring. I'd have to test, but anyway you could do something like this: That should work. There might be a bug in there, but I'll leave that up to people to test it ;) -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com -Original Mes

[PHP] Newline Before XML Document

2006-12-12 Thread Ray Hauge
else run into this problem? As far as I can tell this document starts on line 1. Thanks, -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com

RE: [PHP] Newline Before XML Document

2006-12-12 Thread Ray Hauge
there was an extra line after the closing '?>' in that file. That was causing the extra "invisible" line to show up. -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com -----Original Message- From: Ray Hauge Sent: Tues

RE: [PHP] Curl and cookies

2006-12-15 Thread Ray Hauge
could then put that information back into the cookie file(s) with file_put_contents() [PHP5] -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com -Original Message- From: Fernando M. M. [mailto:[EMAIL PROTECTED] Sent: Friday, December 15, 2

RE: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Ray Hauge
PHP 5.2 supports JSON internally now, so you don't have to use XML. There's pros and cons associated with JSON, but that was possible with PHP4 as well. -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com -Original Message-

RE: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Ray Hauge
me issues, but they could have been from things most people don't do. I'm pretty sure that people don't install 5.0.x anymore, but 5.1 is a lot better (from what I've heard anyway. I never used 5.0.x) -- Ray Hauge Application Development Lead American Student Loan Services www.a

[PHP] MS Outlook 2003 Options

2006-12-21 Thread Ray Hauge
nd is bottom posting. Is there any way to get Outlook to put my reply at the bottom of the page? Again with the Kmail :-) I've been looking for information on these for the past hour or so, but my searching powers aren't working Damn kryptonite! Thanks! -- Ray Hauge

[PHP] Test

2006-12-21 Thread Ray Hauge
Hey guys, I just switched email accounts, so I'm testing to make sure that the subscription worked. Thanks, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Test

2006-12-21 Thread Ray Hauge
Hello everyone, I just switched to one of my personal accounts. Just making sure that the subscription went well. Thanks, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] CLI utility

2006-02-21 Thread Ray Cantwell
Hello again, I was wondering if any of you knew of a good command line utility for php5 on linux? The box i write on has no X-windows. Ray. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (array)

2006-02-22 Thread Ray Hauge
t; -- > John C. Nichel IV > Programmer/System Admin (ÜberGeek) > Dot Com Holdings of Buffalo > 716.856.9675 > [EMAIL PROTECTED] I was curious about this myself, so I took a look at the "Types" section of the PHP manual, and an array is really a compound type. With that in

Re: [PHP] CLI utility

2006-03-03 Thread Ray Cantwell
Indeed i am looking for a tool to write my code with on a box that has no gui environment, However if a Jihad is going to ensue because of it, i shall withdraw my question, head bowed. RTC Kevin Kinsey wrote: John Nichel wrote: Ray Cantwell wrote: Hello again, I was wondering if any of

Re: [PHP] Mysql Rows

2006-03-06 Thread Ray Hauge
a "deleted" or "removed" column. That way all the IDs are still valid, but you also have a way of knowing what's current and what is not. Just a thought. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services http://www.americanstudentloan.com

Re: [PHP] Re: what is wrong with my big array

2006-03-07 Thread Ray Hauge
il', 24 =>'North Ayrshire > Council', 25 =>'North Lanarkshire Council', 26 =>'Orkney Islands Council', > 27 =>'Perth & Kinross Council', 28 => 'Renfrewshire Council',29 =>'Scottish > Borders Council', 30 = >

RE: [PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread ray . hauge
loop inside of a loop instead of just one loop (while or for) then it's going to be slower... no matter if it's compiled beforehand or at runtime :) Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread Ray Hauge
iling though ;) I find that the Optimizer has value. If you wanted to cache on top of that you could probably speed it up even further with cached responses (APC or I think Zend has one too) -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script to sanitize variables

2006-03-28 Thread Ray Hauge
e Request Forgeries and Security Corner: Data Filtering and Security Corner: SQL Injection Also, make sure to check out http://phpsec.org HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (htt

Re: [PHP] int to string

2006-04-05 Thread Ray Hauge
1 would work just yet, but it's not far off" 2 = 'twenty' 3 = 'thirty' and for the Ones place another switch statement 1= "One" 2 = "Two" I think the Ones place would be special depending on if the tens place is a 1 I hope I explained it good enough... working under a deadline at work ;) -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IF or SWITCH

2006-04-05 Thread Ray Hauge
s) > 1 && $enumFFELP + $numFFELP == $numTotal){ $retVal = array(TRUE, 'A'); }elseif($numFFELP > 0 && $numCONS > 0 && count($FFELP_Lenders) > 1 && $numFFELP + $numCONS == $numTotal){ etc. Any suggestions? Thanks, -- Ray Hauge Programmer

Re: [PHP] IF or SWITCH

2006-04-05 Thread Ray Hauge
; Yeah it's vertically sprawling, yeah it looks tedious to type, but damn > is it clear *lol*. Once you get into a habit it becomes second nature. > > Cheers, > Rob. Thanks for the input. I especially like the Wheee part. Maybe I'll add that in there... it's been a long day *lol* -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] IF or SWITCH

2006-04-05 Thread ray . hauge
> Original Message > Subject: Re: [PHP] IF or SWITCH > From: Chris <[EMAIL PROTECTED]> > Date: Wed, April 05, 2006 8:32 pm > To: Ray Hauge <[EMAIL PROTECTED]> > Cc: PHP-General > > Ray Hauge wrote: > > Hello World! wait, not codi

RE: [PHP] IF or SWITCH

2006-04-06 Thread ray . hauge
ub.php Thanks for all the info. I think I am going to take a lot of this information in mind to make it more readable... possibly even use a switch statement, because I know that this logic is going to change, and I WILL have to come back to this. Such a pain to completely cover every possibilit

Re: [PHP] IF or SWITCH

2006-04-06 Thread Ray Hauge
there before. :-) > > tedd > -- > --- >- http://sperling.com I'm pretty sure he's ONLY talking about IF/ELSEIF and not IF in general. That's what I got from the message. Correct me if I'm

Re: [PHP] IF or SWITCH (asinine?)

2006-04-07 Thread Ray Hauge
ick with what works for me. I cleaned up a lot of the totals and counting, so it's MUCH easier to read now :) To imitate Tedd... Thanks to all who replied -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP Gen

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Ray Hauge
t; which can be used in date calculations. The same thing would apply if you wanted a column named "create". I would agree with John on the POST data. Make sure you at least run mysql_real_escape_string(). -- Ray Hauge Programmer/Systems Administrator American Student Loan Servic

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Ray Hauge
On Friday 07 April 2006 12:56, Chrome wrote: > Of course if the field in the DB isn't numeric this would be > '{$_POST['model']}' > > Dan That's what I was thinking. Even if data is a number, I still generally put quotes around it to make sure I don&

[PHP] Zend Certification

2006-04-07 Thread Ray Hauge
have it be "outdated" because it was for PHP4, and not PHP5. Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend Certification

2006-04-07 Thread Ray Hauge
On Friday 07 April 2006 15:24, Rory Browne wrote: > having both will give you that long_time_user status. Good point. Thanks :) -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (h

Re: [PHP] IF or SWITCH (asinine?)

2006-04-07 Thread Ray Hauge
ngle value comparison than ELSEIF. I think that by now people will have been able to form their own conclusions as to which style they prefer, and either is probably more readable than putting everyone all on one line :-P -- Ray Hauge Programmer/Systems Administrator American Student Loan

Re: [PHP] A question about max_execution_time

2006-04-10 Thread Ray Hauge
such as system calls using system(), stream operations, database queries, etc. is not included when determining the maximum time that the script has been running." HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A question about max_execution_time

2006-04-10 Thread Ray Hauge
On Monday 10 April 2006 11:48, Eric Butera wrote: > Ray, > > Thank you for your response. I did read that in the manual, I promise. > That is why I included the sleep function in my example. Shouldn't the > sleep function count as execution time? One thing I didn't

Re: [PHP] function by reference

2006-04-10 Thread Ray Hauge
------ > >--- http://sperling.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > Like Music? > http://l-i-e.com/artists.htm I believe you're thinking more of the C++ style of returning by reference. This article should help explain how references work, and how to return references... most specifically check the "Returning References" section. http://www.php.net/manual/en/language.references.php HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function by reference

2006-04-10 Thread Ray Hauge
n/language.references.php > > HTH > -- > Ray Hauge > Programmer/Systems Administrator > American Student Loan Services > www.americanstudentloan.com > 1.800.575.1099 nevermind... I what I read and what was actually written seem to have been two entirely different things ;)

Re: [PHP] Compacting multiple spaces...

2006-04-14 Thread Ray Hauge
ECT now doesn't > match what is in the database. > > Is there a way to override this behavior? > > Thanks, > Geoff Quelch > > -- > Geoff Quelch > Email: [EMAIL PROTECTED] I would suggest replacing spaces with their HTML equivalent ( ). You could either store it

Re: [PHP] Table formation...

2006-04-17 Thread Ray Hauge
at. Reply to all is definitely easier than taking out the person's email address. Probably a good rule to make sure posts are posted to the list, and not just the person who you're replying to ;) -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americ

[PHP] PDF to Text

2006-04-20 Thread Ray Hauge
nd on the net for something similar that might work. Anyone know of something like that? Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PDF to Text

2006-04-20 Thread Ray Hauge
On Thursday 20 April 2006 18:06, Ray Hauge wrote: > Hello List, > > I am trying to find a way for a program to search through the text on a > PDF. My first thought was to use pdftotext, but the PDFs generated by our > commercial scanner/copier/printer machine do not seem to work w

Re: [PHP] PDF to Text

2006-04-21 Thread Ray Hauge
image and puts that on the PDF. I'll have to look into GOCR, or just scrap the idea I had. Luckily I'm still just in the planning stage and we haven't figured out how all the processes are going to work :) Thanks again, -- Ray Hauge Programmer/Systems Administrator America

RE: [PHP] re: undefined variable

2006-04-30 Thread ray . hauge
$textbox']) ? $_REQUEST['$textbox'] : 0; You should use $_REQUEST[$textbox] or $_REQUEST["$textbox"]. Variables are not converted within a single-quoted string. HTH, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Imagemagick Displaying Images

2006-05-02 Thread Ray Hauge
-' makes it display the contents of the image to stdout. I want to caputre that binary data and somehow display the images inline with the website. Is this possible, or am I living in a dream world ;) Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services ww

Re: [PHP] Imagemagick Displaying Images

2006-05-02 Thread Ray Hauge
On Tuesday 02 May 2006 18:19, Ray Hauge wrote: > I have an application that shows thumnails of PDF files in different > directories. I have so far decided that I can use "convert" from > imagemagick to get a .jpg, .png, .gif, etc. to display as the image. The > problem I&#x

Re: [PHP] Imagemagick Displaying Images

2006-05-02 Thread Ray Hauge
On Tuesday 02 May 2006 18:24, Ray Hauge wrote: > On Tuesday 02 May 2006 18:19, Ray Hauge wrote: > > I have an application that shows thumnails of PDF files in different > > directories. I have so far decided that I can use "convert" from > > imagemagick to get a .j

RE: [PHP] PHP-Jabber

2006-05-03 Thread ray . hauge
I've been using this library for a while. I don't need to do much, so I don't know first hand how well all the features work, but it definitely will get you a list of people online and let you send messages to them. http://cjphp.netflint.net/ HTH, Ray > ---

[PHP] PHP Upgrade Question

2006-05-03 Thread Tom Ray
Hey all- I'm running a SuSE 9.1 box that was built from the RPMs from the CD with Apache2.0 and PHP 4.3.4. I've made modifications to the server over the last year without using the CD's and justing installing from the source. However, I just installed PHP 4.4.2 and I used all the same path calls

Re: [PHP] PHP Upgrade Question

2006-05-03 Thread Tom Ray
On 05.03.2006 at 16:46:21, Eric Butera <[EMAIL PROTECTED]> wrote: > On 5/3/06, Tom Ray <[EMAIL PROTECTED]> wrote: > > > > Hey all- > > > > I'm running a SuSE 9.1 box that was built from the RPMs from the CD with > > Apache2.0 and PHP 4.3.4. I

<    2   3   4   5   6   7   8   9   >