Re: [PHP] help with \n\r in strings

2006-12-29 Thread Arpad Ray
Angelo Zanetti wrote: So is there a way to test for \r\n? or what else can I use to delimit these two values (last column of row and first column of next row)? Since it's coming from a file, you might as well just read it with file(), which will split

[PHP] MS Outlook 2003 Options

2006-12-21 Thread Ray Hauge
. 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 Application Development Lead

[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

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- From: Stut

RE: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Ray Hauge
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.americanstudentloan.com -Original Message

RE: [PHP] Curl and cookies

2006-12-15 Thread Ray Hauge
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, 2006 8

[PHP] Newline Before XML Document

2006-12-12 Thread Ray Hauge
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
that 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: Tuesday, December 12, 2006 9:14 AM To: php

RE: [PHP] Ensuring that variable contains a number

2006-12-06 Thread Ray Hauge
; } ? 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 Message- From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Wednesday

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

2006-12-01 Thread Ray Hauge
/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 memory to do that. -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com

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 [0] HTH -- Ray Hauge Application

RE: [PHP] Remote MySQL connection via PHP file

2006-12-01 Thread Ray Hauge
, 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 12:18 PM To: php-general

Re: [PHP] problems with exec() SOLVED

2006-12-01 Thread Ray
/shellscript_howto.html again thanks. Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] LDAP password question

2006-11-30 Thread Ray Hauge
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 Subject: Re: [PHP

Re: [PHP] problems with exec()

2006-11-30 Thread Ray
the command line. as for safe_mode, it's off. Also the whoami in the previous line works as expected. Any pointers would be appreciared. Tia Ray -Original Message- From: Jan Schröter [EMAIL PROTECTED] To: php-general@lists.php.net Date: Thu, 30 Nov 2006 09:09:49 +0100 Subject: Re: [PHP

[PHP] LDAP password question

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

[PHP] problems with exec()

2006-11-29 Thread Ray
' (the username correctly returned from whoami) also files aren't changed. any suggestions, pointers, log files to check would be appreciated as I have spent several hours on google, in manuals, etc. haven't tried the ougi board, but that's about it ;-) tia Ray -- PHP General Mailing List (http://www.php.net

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

2006-11-17 Thread Ray Hauge
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 Subject: Re

Re: [PHP] php cli and mysql

2006-11-14 Thread Tom Ray [Lists]
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200: On 11/14/06, James Tu [EMAIL PROTECTED] wrote: I'm running a php script from the command line (I'm on OS X) and I'm getting ... Warning: mysql_connect(): Can't connect to local MySQL server through socket

Re: [PHP] php cli and mysql

2006-11-14 Thread Tom Ray [Lists]
Chris wrote: Tom Ray [Lists] wrote: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200: On 11/14/06, James Tu [EMAIL PROTECTED] wrote: I'm running a php script from the command line (I'm on OS X) and I'm getting ... Warning: mysql_connect(): Can't connect

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 read than longer code!) BUT until I really understand

RE: [PHP] Zend

2006-11-09 Thread Ray Hauge
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 Message- From: Alain

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

RE: [PHP] Microsoft Partners With Zend

2006-11-06 Thread Ray Hauge
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 Browne [mailto:[EMAIL

RE: [PHP] Microsoft Partners With Zend

2006-11-02 Thread ray . hauge
on 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: steve [EMAIL PROTECTED] Cc: Daevid Vincent

[PHP] Frameworks

2006-11-02 Thread ray . hauge
, 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
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 on the IIS website. Ray -- PHP General Mailing List (http

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

2006-11-02 Thread ray . hauge
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-01 Thread ray . hauge
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 ;) Ray Original

RE: [PHP] Microsoft Partners With Zend

2006-11-01 Thread ray . hauge
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 ;) Ray Original

[PHP] Probably a dumb question but...

2006-10-31 Thread Tom Ray [Lists]
I've just installed PHP 4.4.4 with CLI disabled and CGI enabled. With CLI I can find the PHP executable in $prefix/bin/php but with CGI I can't find it. I need the path to the PHP executable so I can install suPHP but $prefix/bin/php no longer exists and all I have in $prefix/bin is php-config

Re: [PHP] heredoc usage [WAS: OPTION]

2006-10-26 Thread Arpad Ray
Incidentally, a nice side effect of heredoc is that some editors (like vim) recognise EOHTML, EOSQL etc and highlight the contents accordingly. Arpad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

Re: [PHP] Running a Java Program

2006-10-26 Thread Ray Hauge
you should be able to run net start appname' (or something like that. I haven't kept up on your previous post so I may be completely wrong ;) -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http

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 logged into the system

[PHP] Problem compiling PHP 4.4.2 with mcrypt

2006-10-26 Thread Tom Ray [Lists]
I have to get a temporary server in place under a tight time frame and am using a pre-existing server that wasn't configured really for hosting websites. I've upgraded all the services on it like going from Apache 1.3.x to Apache 2.0.59 and PHP from it's old version to 4.4.2 however I need to

[PHP] User question for PHP

2006-10-19 Thread Tom Ray [Lists]
Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not wwwrun or nobody? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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:

Re: [PHP] exec returns no output?

2006-09-30 Thread Ray Hauge
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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] class usage

2006-09-29 Thread Ray Hauge
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 Lead American Student Loan Services www.americanstudentloan.com 1.800.575.1099

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

2006-09-25 Thread Ray Hauge
Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant It's not the best in the world, but it works. http://xchm.sourceforge.net/index.html But since the documentation is online and always updated that way, I prefer to just use the website. -- Ray Hauge Programmer/Systems Administrator

Re: [PHP] Object to array conversion oddity

2006-09-24 Thread Ray Hauge
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 unsubscribe, visit: http

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Ray Hauge
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

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 doing and using the private variable

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Ray Hauge
waiting for a patch/documentation change. -- 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] +AFs-OT+AF0- Working with version control

2006-09-22 Thread Ray Hauge
-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.americanstudentloan.com 1.800.575.1099 -- PHP

Re: [PHP] PDF.

2006-09-19 Thread Ray Hauge
://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
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.com 1.800.575.1099 -- PHP General Mailing List (http

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
, 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 Services www.americanstudentloan.com 1.800.575.1099 -- PHP

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
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 Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com

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, Im 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 adjustment

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, Im not so sure that's what I was looking for. These loans are student loans, which differ slightly from mortgage loans

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 ?php echo

Re: [PHP] Question on explode and join.

2006-09-14 Thread Ray Hauge
development environment, and it worked just fine. http://www.php-mag.net/magphpde/magphpde_article/psecom,id,637,nodeid,21.html -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net

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 space as the delimiter and then I

Re: [PHP] Iteration through letter

2006-09-14 Thread Ray Hauge
alphabetically is less than Z. You could change your statement to use $letter 'AZ'. I think that would 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

Re: [PHP] Iteration through letter

2006-09-14 Thread Ray Hauge
work like ascii in C). Cheers, Rob. I was typing up my response before yours came in... looks like I made the spoiler ;) Later, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http

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

2006-09-13 Thread Ray Hauge
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 American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net

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

2006-09-13 Thread Ray Hauge
-6700 x154 Fax: (518) 687-6799 Email: [EMAIL PROTECTED] http://www.informed-sources.com You could just try using chmod to change the permissions of the folder. It might not stick after a reboot, but it'll get you working in the mean time. -- Ray Hauge Programmer/Systems Administrator

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

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

2006-09-12 Thread Ray Hauge
(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.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

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

2006-09-12 Thread Ray Hauge
own permissions for files. I'm not sure if they stuck with the BSD type file permissions or implemented their own. I'd check that first. If that doesn't work, what is the error that you get? Access Denied? -- Ray Hauge Programmer/Systems Administrator American Student Loan Services

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

2006-09-12 Thread Ray Hauge
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:46 PM, Ray Hauge [EMAIL PROTECTED] wrote: On Tuesday 12 September 2006 16

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

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] Ajax and PHP: XMLHTTP

2006-09-11 Thread Arpad Ray
Micky Hulse wrote: ?=$_SERVER['PHP_SELF']? 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

Re: [PHP] Newbie question about ?= ?

2006-09-09 Thread Ray Hauge
of templating system instead of adding the complexity of smarty or other templating systems (which are fine). Is it possible, or will it be possible, to use ?php=blah ? -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP

Re: [PHP] Re: Format of Encrypted Password

2006-09-06 Thread Ray Hauge
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.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
doing : if(something1){ // true 1 } if(something2){ // true2 } hope that helps. -- 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

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:) -- Ray Hauge Programmer/Systems Administrator

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){ // true } else { // false } Actually, it's

Re: [PHP] switch it button

2006-08-23 Thread Arpad Ray
Ford, Mike wrote: How about something like: a href=?php echo $_SERVER['PHP_SELF'] ??session_switch=?php $_GET['session_switch']?0:1 ?switch/a Beware that PHP_SELF is injectable like several other $_SERVER variables, so you must at least encode it to prevent XSS attacks. Eg.

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread Arpad Ray
?php foreach ($strings as $key = $string) { $strings[$key] = 'em' . $string[0] . '/em' . substr($string, 1); } ? Micky Hulse wrote: Hi, It is getting late, and I do not think I am thinking clearly... What would be the best way to wrap em/em tag around the first letter of a string? I

Re: [PHP] Overriding core functions

2006-08-22 Thread Arpad Ray
You can't just define a new function with the same name. The only way I know to literally redefine the function is using the runkit extension - http://pecl.php.net/package/runkit That allows you to rename functions as well as moving them, so you could rename it to something like

Re: [PHP] Overriding core functions

2006-08-22 Thread Arpad Ray
Brad Bonkoski wrote: Some already good workarounds given for this question... BUT. Is it even possible to override a core function? Like I wrote a function called 'exit' and I got a parser error, which leads me to believe it is not even possible to override the core functions. Is this true of

[PHP] Script timing out.

2006-08-20 Thread Tom Ray [Lists]
I just installed PHP Open Chat and I'm getting an error when I log in about the script being unresponsive. Anyone ever run into this? Or could shed a light as to what causes this error? I've never seen it come up before.I'm running PHP 4.4.2/Apache 2.0.5 -- PHP General Mailing List

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ray Hauge
a library to do what you want though. It could be as simple as using a div, and then the buttons change text with innerHTML (as long as you're not expecting to use that text after the submit). -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com

Re: [PHP] Creating User Friendly URLS

2006-08-17 Thread Ray Hauge
to this. Mostly it's about how to force a download with a correct filename, but the last part of the article should get you pointed in the right direction if you don't want to use mod_rewrite with apache. http://richardlynch.blogspot.com/ -- Ray Hauge Programmer/Systems Administrator American

Re: [PHP] active directory and PHP

2006-08-17 Thread Ray Hauge
that would make it more secure. Kerberos is more secure than LDAP, and you _could_ set it up so that the browser forwards the ticket on to mod_kerb for authentication, thus not needing a sign-on other than to the domain. From my experiences that isn't exactly easy to set up though. -- Ray

Re: [PHP] Capturing System output

2006-08-15 Thread Ray Hauge
, but it should at least point you in the right direction. Just do a search for stderr and you should find some good info. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net

Re: [PHP] Capturing System output

2006-08-15 Thread Ray Hauge
. -Brad Best example I found was: $shell_return = shell_exec($shell_command. 21); that should redirect stderr to stdout and thus you'd get both. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List

[PHP] Max File Upload

2006-08-15 Thread Tom Ray [Lists]
Is there anyway to overwrite the max file upload in php.ini per instant? I'd like to have users controlled on a certain website to have more then average uploads but the site runs on a shared hosting environment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Compiling and iconv

2006-08-14 Thread Ray Hauge
On Sunday 13 August 2006 22:00, Chris wrote: Ray Hauge wrote: I use Slackware linux, and XMLRPC is not compiled in by default with my distro, so I'm compiling PHP myself. It's always been a simple enough task. First I get and install the required xmlrpc-epi libraries, and then I compile

[PHP] OT? XUL XML-RPC Client

2006-08-14 Thread Ray Hauge
with XUL? 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

[PHP] Compiling and iconv

2006-08-11 Thread Ray Hauge
all the iconv_* and iconv compiler flags etc. I can also vouch that using iconv on the command line works just fine. 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

[PHP] Problem Loading Extension

2006-08-11 Thread Ray Hauge
? 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] Problem Loading Extension

2006-08-11 Thread Ray Hauge
On Friday 11 August 2006 18:15, Michael B Allen wrote: On Fri, 11 Aug 2006 17:50:12 -0500 Ray Hauge [EMAIL PROTECTED] wrote: Hello everyone, I successfully compiled PHP 4.4.3 and PHP 5.1.4 today. I'm having a problem with loading the PDFLib extension (pdflib_php.so). It works fine

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Ray Hauge
... specifically mb_convert_encoding: http://us2.php.net/manual/en/function.mb-convert-encoding.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

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Ray Hauge
you want. This allows you to keep your install as minimal as possible for your needs, which increases the performance of 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

Re: [PHP] Cron running 'Hello world' script dies with Could not startup.

2006-08-08 Thread Ray Hauge
/executable, as well. I think he's asking if the php program is executable to you, the user. It is possible that it would only have execute for owner and group, not other. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099

Re: [PHP] Cron running 'Hello world' script dies with Could not startup.

2006-08-08 Thread Ray Hauge
On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: Does the user running the cron have permission to execute the php binary? Yes, the file's owner is me and it's my

Re: [PHP] writing to fild on another server

2006-08-04 Thread Ray Hauge
. -- 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] Retrieving response headers from an off-site page

2006-07-31 Thread Ray Hauge
;) 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] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Ray Hauge
technically get you to call the script from the cli, but it should clear the webserver cache. Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic PHP knowledge test

2006-07-20 Thread Ray Hauge
at least the fundamentals of PHP security. -- 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] Session breaks when form data submitted

2006-07-20 Thread Ray Hauge
the PHPSESSID via a form. That leads to people being able to hijack sessions from file='php.ini' ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. session.gc_maxlifetime = 1440 /from HTH -- Ray Hauge Programmer/Systems

Re: [PHP] Return XML using PHP and Content-Type with UTF-8 breaks the UTF-8

2006-07-19 Thread Ray Hauge
=1.0 encoding=utf-8? 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] Basic PHP knowledge test

2006-07-19 Thread Ray Hauge
. I'd definitely be interested in that info though, because we're still looking, and I'm not totally happy with mine, as I didn't have a whole lot of time to write it. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP

Re: [PHP] Basic PHP knowledge test

2006-07-19 Thread Ray Hauge
. I did basic questions to show they understood OOP, recursion, pass-by-reference, etc. I also had to be in the interview. There were a lot of odd moments of silence when people were looking at me to ask some questions. I just wanted him to do the quiz and that was pretty much it ;) -- Ray

<    1   2   3   4   5   6   7   8   9   >