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] 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] 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] 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] 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] +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] 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] 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] 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] 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] 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] 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] 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

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

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

[PHP] LDAP password question

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

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

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

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

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

Re: [PHP] Regular Expression help

2007-01-04 Thread Arpad Ray
Those patterns aren't anchored to the ends of the string, so as long as the string contains one matching character, the succeeds. ^ anchors the pattern to the beginning, \z to the end, so you want: /^[A-Za-z]+\z/ Or test the opposite case to see if it fails: /[^A-Za-z]/ Arpad Chris Boget

Re: [PHP] Regular Expression help

2007-01-04 Thread Arpad Ray
Note that $ allows a trailing newline, but \z doesn't. Arpad Stut wrote: Chris Boget wrote: ?php echo 'Is String: [' . ( is_string( 'a1b2c3' ) preg_match( '/[A-Za-z]+/', 'a1b2c3' )) . ']br'; echo 'Is Numeric: [' . ( is_numeric( 'a1b2c3' ) preg_match( '/[0-9]+/', 'a1b2c3' )) . ']br'; echo

Re: [PHP] Normalized Numbers

2007-01-12 Thread Arpad Ray
Have you checked out the PEAR Validate packages? http://pear.php.net/package/Validate_ISPN in particular might help you along ;) And BTW, most servers are set up to display php files renamed to .phps with syntax highlighting, so give that a try instead of .php.txt next time. Regards, Arpad

Re: [PHP] preg_match problem

2007-01-20 Thread Arpad Ray
Martin Alterisio wrote: Double slash to prevent PHP interpreting the slashes. Also using single quotes would be a good idea: if (preg_match('/[\\w\\x2F]{6,}/',$a)) Just switching to single quotes would do the trick - you don't need to escape anything but single quotes, and backslashes if

Re: [PHP] Objects as array key names??

2008-03-15 Thread Ray Hauge
an interesting idea, but I don't know how practical it would be. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Closures

2008-03-18 Thread Ray Hauge
confusion with people coming from other languages definitely applies though. This article also gives me a second idea for this post. How many people would want closures in PHP? In summary: Would you want closures in PHP, and why? -- Ray Hauge www.primateapplications.com -- PHP General Mailing

Re: [PHP] Closures

2008-03-18 Thread Ray Hauge
I could find was a bunch of bug reports and other stuff that wasn't what I was looking for. I would have thought there'd be a page for it in the manual, but I didn't find one there either. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Ray Hauge
(string)$_POST['param1']. The short answer is you can do it the way you're doing and everything will work out just fine :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] spider

2008-03-21 Thread Ray Hauge
, tedd Have a look at something like this: http://simplehtmldom.sourceforge.net/ I haven't used it, but if it works you should be able to pull up a list of all the a tags quite easily through the DOM ala: foreach($dom-find('a') as $node) echo $node-href . 'br'; -- Ray Hauge

Re: [PHP] google books

2008-03-24 Thread Ray Hauge
-disposition: inline; filename=FileName.pdf); header(Content-length: . strlen($data)); echo $data; /code I just realized that the version of FPDI I've been using is a little old. There's a new update out, so some of the above code might change a little. -- Ray Hauge www.primateapplications.com -- PHP

Re: [PHP] question about linux editor

2008-03-25 Thread Ray Hauge
. I also will typically use SSH + vi, but Zend Studio (not sure about Eclipse) can open an SSH connection and edit files that way. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dates Again

2008-03-31 Thread Ray Hauge
($inputTime); $time = strtotime('-1 day', $time); $outputTime = strftime('%Y-%m%d', $time); I'm not sure which is more efficient, but it helps when you're looking for next thursday or other things like that. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net

[PHP] April Fools Easter Egg

2008-04-01 Thread Ray Hauge
Don't forget to check your phpinfo() page for the annual easter egg. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] April Fools Easter Egg

2008-04-01 Thread Ray Hauge
tedd wrote: At 9:23 AM -0500 4/1/08, Ray Hauge wrote: Don't forget to check your phpinfo() page for the annual easter egg. -- Ray Hauge www.primateapplications.com You got me. Cheers, tedd Here's the image that I see on PHP 5.1.0. My 5.2.5 site has a distorted image instead of the dog

Re: [PHP] Evaluating math without eval()

2008-04-12 Thread Ray Hauge
://sysblogd.wordpress.com/2007/08/26/let-bash-do-the-math-doing-calculations-using-that-bash/ I'm not sure if that's any more secure than eval though. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Should This Newbie Learn From Dreamweaver?

2008-04-22 Thread Ray Hauge
with some little program that you code up for fun to help get you through the learning stages. You'll learn more figuring out how to get something to work than just copying and pasting code. That's my 2 cents. Hope that helps. -- Ray Hauge www.primateapplications.com -- PHP General Mailing

Re: [PHP] peer review (was php framework vs just php?)

2008-04-25 Thread Ray Hauge
on the user logged in. This has helped keep my template files very clean, and I still have full control over the form by not including the fields I don't want. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] getting iostat -x %b with php

2008-05-06 Thread Iv Ray
What is the best way to extract just the drive load information (%b column) from iostat -x (on FreeBSD)? I imagine to exec() the iostat -x and then process the result with regex, but I am not sure if this is the best way - for instance, is %b is aways the Nth column in the returned value?

Re: [PHP] creating an xls file from mysql data

2008-05-12 Thread Ray Hauge
TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' FROM [tables] WHERE [conditions] If you want a header row, then you can use a UNION statement. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] validating textarea using php

2008-05-13 Thread Iv Ray
Sudhakar wrote: i do not want this to happen, if a user simply hits the spacebar and does not type anything i should be able to display an alert message. From usability point of view such check will, in many cases, generate annoyance, and bring nothing. If I do not want to enter anything,

Re: [PHP] validating using php

2008-05-14 Thread Iv Ray
Sudhakar wrote: if( strlen(trim($name) == 0 ) || !preg_match('/^[a-zA-Z ]+$/x', $name) ) { $error.=Name is blank or has special characters ; } You have messed up the brackets. This - strlen(trim($name) == 0 ) should be - strlen(trim($name)) == 0 Then the script does what you want. Iv

[PHP] the class as a namespace

2008-05-15 Thread Iv Ray
Is there a notion of the class as a namespace? My understanding is that the namespaces are intended to help organize the classes in large projects (and are not perfect). Is it considered good style to use a class simply to box related functions? For instance, a class called files, contains

Re: [PHP] Can I install a newer version of php over an older version

2008-05-15 Thread Iv Ray
Tony M wrote: Can I install a newer version of php over an older version? Perhaps what you need is this - Upgrading PHP with the Install To upgrade, run the installer either graphically or from the command line as normal. The installer will read your current install options, remove your old

Re: [PHP] Using SVN w/ Zend Studio for Eclipse

2008-05-15 Thread Iv Ray
I do not want to copy the project into a new directory as the existing directory is where Apache's DocumentRoot is set. And although that's simple to change, I really don't think any IDE should mandate where I set my project's directory on the filesystem. I use PDT, and there is no problem

Re: [PHP] the class as a namespace

2008-05-15 Thread Iv Ray
Richard Heyes wrote: That's a common use of static classes. Eg: HTTP::Redirect($url); In fact this (from the article I've read) is exactly how namespaces will look like. So in the above example, HTTP could be either a namespace or a class. Right. Namespaces do look similar. And PEAR

Re: [PHP] Working with internal data formats

2008-05-15 Thread Iv Ray
John Gunther wrote: What technique can I use to take an 8-byte double precision value, as stored internally, and assign its value to a PHP float variable without having the bytes misinterpreted as a character string. Does it get misinterpreted, or do you just want to be sure? The

Re: [PHP] Working with internal data formats

2008-05-15 Thread Iv Ray
John Gunther wrote: Example: I extract the 8 bytes 40 58 FF 5C 28 F5 C2 8F from an external file You mean you extract 40 58 FF 5C 28 F5 C2 8F, so to speak, as a string, right? Sorry, for asking, but somehow I do not the case. -- -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] changing order of items

2008-05-15 Thread Iv Ray
afan pasalic wrote: this one bugs me for a while. how to change order. I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - status value stored in mysql. I can list tasks per status or all. order number is stored in mysql too. the easiest way to change order is to have form

Re: [PHP] SCanning text of PDF documents

2008-05-15 Thread Ray Hauge
be read without OCR. I got stumped on that one for a while when I was doing something similar :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] changing order of items

2008-05-16 Thread Iv Ray
Eric Butera wrote: I use this: http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html Looks good. I still can't decide for one of these big libraries, prefer to use small things which I can fix/change, if the author does not have time or desire. -- -- PHP General Mailing List

Re: [PHP] changing order of items

2008-05-16 Thread Iv Ray
afan pasalic wrote: But, actually, I need something more simple. Nothing fancy :D. I thought so from the beginning, just thought - it does not hurt to show different possibilities. May be you will not implement it now, but when you know about it, it might give you ideas in future. -- --

Re: [PHP] changing order of items

2008-05-16 Thread Iv Ray
Jason Murray wrote: I am assuming that each time you click the up or down arrow you are re-loading the page (via a GET request). A simple solution to this, would be to adjust the URLs assigned to the up and down arrows to carry an extra variable, the item either directly above or directly below

Re: [PHP] question about validation and sql injection

2008-05-16 Thread Iv Ray
Hej Sudhakar, what a long e-mail ;) ! I would suggest you use e-mail address as user name. There are many good reasons why to do so, I will give you some, if you wish. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SetEnv directives in VirtualHost configuration not accessible in PHP

2008-05-16 Thread Iv Ray
I had similar problem some time ago, and there was some solution, which I can't remember now. Do you still have the problem? I'll can have a look, if still needed. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML file locking

2008-05-19 Thread Iv Ray
Kaja wrote: Does anyone know if any of the PHP 5 XML libraries use flock() internally? I'd like to use XMLReader and XMLWriter but I need to make sure theres no writing going on while reading and no more than one writer at time. And if I have to use DOM, does DOM lock the file when it calls

Re: [PHP] XML file locking

2008-05-19 Thread Iv Ray
bruce wrote: Couldn't you also create a rather simple test to determine if the locking of the file takes place? I personally do not trust file system level locks. Even if a software is not intended to be portable across operating systems, it is possible to use different file systems under

[PHP] Enterprise

2008-05-20 Thread Ray Hauge
healthcare systems are further behind in the technology adoption, but having to deal with workarounds all day long sure gets old. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] use of static methods after namespaces arrive

2008-05-28 Thread Iv Ray
In which situation would somebody use a static method, instead of a function in a namespace, after the namespaces arrive with 5.3? Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT Smarty problem

2008-05-28 Thread Iv Ray
Hi George, I tried your code and it works. If you have some way of remote assistance I can have a look on-site, if you like. But it could be that you just need a good sleep, and then look again ;) Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] OT Smarty problem

2008-05-28 Thread Iv Ray
Gabriel Sosa wrote: try doing this.. {if $clearance eq 0} instead use == i saw that some version of smarty has a bug related to this issue BTW .. you could use the options helper [1] saludos gabriel Right... I forgot to ask which Smarty version you have. I tried it with the last.

Re: [PHP] use of static methods after namespaces arrive

2008-05-28 Thread Iv Ray
Adam Richardson wrote: If the functionality doesn't conceptually promote the inclusion of the variables it works on (i.e., no class variables), doesn't conceptually fit a scheme where instances can exist, and likely won't benefit from refactoring into component methods, then I could see using

Re: [PHP] Bulk Email Problems

2008-06-10 Thread Iv Ray
Hi Andre, I am not sure I understand what is the problem. What does it mean - that worked fine for the last few years resulting in many requests for forgotten passwords and renewed site activity. And what does it mean - Last year, we sent it again, after a few minor code changes, and had

Re: [PHP] class? package?

2008-06-10 Thread Iv Ray
If you are designing with OO principles, could you give an explanation of what is the difference classes and packages? A class is a language construct, classes are processed/executed by php. A package is an architectural approach - this is how you combine your code/classes. When I was

Re: [PHP] class? package?

2008-06-12 Thread Iv Ray
Shelley wrote: Probably you have noticed this: The classes in a package are reused together. If you reuse one of the classes in a package, you reuse them all. If that's the case, then why not just use one class as one package? What's the point of splitting a package into several classes? :-(

<    1   2   3   4   5   6   7   8   9   >