RE: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-10 Thread Jay Blanchard
[snip] I wouldn't play with a lawnmower class in the first place. I use PHP to write web applications which deal with database tables, not lawnmowers, and I have yet to find a good reason for using interfaces in such applications. Your contrived examples do not convince me of anything. [/snip]

[PHP] Looking for help with a complex algorithm

2007-10-09 Thread Jay Blanchard
Good afternoon gurus and guru-ettes! I am searching for an algorithm that will take a list of monetary values and determine which of these values totals a value supplied to the widget. 1. I supply a value to the application and give a date range 2. The application will query for all of the

RE: [PHP] Looking for help with a complex algorithm

2007-10-09 Thread Jay Blanchard
[snip] This *IS* the knapsack problem. Just because you specify date ranges to get your values and the value isn't a knapsack doesn't change the fact that it is the same problem :) I remember having fun with genetic algorithms and the knapsack problem back in University. [/snip] You're right save

RE: [PHP] Looking for help with a complex algorithm

2007-10-09 Thread Jay Blanchard
[snip] So imagine the value of all of your items is equal to it's size. Voila, same problem. [/snip] Got it. I was focused to much on the forest and not the trees. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Extracting text from PDF files

2007-10-09 Thread Jay Blanchard
[snip] I need to extract the text from a PDF file for storage in the database. [/snip] It depends. If the PDF is an image file you cannot do it with PHP. http://www.php.net/pdf read the second user note [snip] Madison, WI 53703 [/snip] P.S. Do you know of the Madison Scouts? -- PHP General

RE: [PHP] Looking for help with a complex algorithm

2007-10-09 Thread Jay Blanchard
[snip] what is it suppose to return if it cannot find records that the exact total do not match the total you are looking for? should it return nothing? [/snip] Correct. It should say that there are no records that generate a match. -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Something you can do with AJAX + PHP as well

2007-10-08 Thread Jay Blanchard
[snip] I've made a nice video where you see ajax in combination with php. and it works really well although really is misspelled realy. Here is the video: http://magedb.mageprojects.com/videos/MageDB%202nd%20WIP%20demonstration %20with%20AJAX.mpeg Cool huh? [/snip] It is too bad that the video

RE: [PHP] Something you can do with AJAX + PHP as well

2007-10-08 Thread Jay Blanchard
[snip] I saved it and it played in Winamp, but no audio [/snip] So, is it worth going to all of the trouble to see? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] count vs mysql_num_rows

2007-10-08 Thread Jay Blanchard
[snip] Is this a joke? You are using a LIMIT 1, so your count is always going to be 1. No, its not a joke. The answer is not going to always 1, its going to be 1 (the value exists in the DB at least once) or 0 (the value doesn't exist in the DB), that's what I am trying to test for. I

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Jay Blanchard
[snip] But why does the ($r=!$r) ternary condition work?. (I understand that it DOES but not WHY.) Because he's rotating between boolean values. $r = true; $r = !$r;// Now $r is false; $r = !$r;// Now $r is true; $r = !$r;// Now $r is false; $r = !$r;//

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Jay Blanchard
[snip] But why does the ($r=!$r) ternary condition work?. (I understand that it DOES but not WHY.) [/snip] Check this out - http://us3.php.net/manual/en/language.operators.assignment.php It says the value of the assignment is the value assigned, so maybe assignments to anything other than 0

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Jay Blanchard
[snip] The value of the expression is the value assigned. Since the ! operator will always return a boolean then the assigned value is going to be a boolean. So $r will always contain a boolean for the purposes of the ternary operation. [/snip] And it also work if the statement is not ternary --

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Jay Blanchard
[snip] The value of the expression is the value assigned. Since the ! operator will always return a boolean then the assigned value is going to be a boolean. So $r will always contain a boolean for the purposes of the ternary operation. And it also work if the statement is not ternary [/snip]

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Jay Blanchard
[snip] if($r = !$r) [/snip] And I hit send before I finished my thought process oh my goodness isn't it five o'clock yet and why do all of these people keep coming by my office distracting me from getting something useful done like replying the PHP list and why doesn't someone bring me a beer?

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Jay Blanchard
[snip] if($r = !$r) it is a conditional test. ? foo : bar; ...is the ternary operation. Just wanted to clean up the usage there. Did I miss something? The code I saw was the following: TR class=?php echo ($r = !$r) ? dataRow1 : dataRow2; ? And that is definitely using the

RE: [PHP] MySQL Identifying worst-performing codes

2007-10-04 Thread Jay Blanchard
[snip] There is  a tool call idera (SQL diagnostic manager). Basically it is a performance monitoring and diagnostics tool. It has a feature;  Identifying of worst-performing codes - Identifies performance bottlenecks such as the worst-performing stored procedures, long-running queries, most

RE: [PHP] strpos error (I'm missing something obvious)

2007-10-02 Thread Jay Blanchard
[snip] !== FALSE is not good either, it is not a valid test strpos returns the numeric position of the first occurrence of needle in the haystack string. Except when needle doesn't occur in string, in which case If needle is not found, strpos() will return boolean FALSE.

[PHP] The Context of 0

2007-10-02 Thread Jay Blanchard
[small rant] This morning's thread on strpos() brings up an interesting point, zero has a context. In certain cases 0 is the equivalent of FALSE and in other cases a 0 is just a 0. In the context of strpos() 0 indicates that the needle is in the first position of the haystack. If the needle is

RE: [PHP] fopen function and charset

2007-10-02 Thread Jay Blanchard
[snip] I want to know, what charset is applied to every file when is created with the fopen function and how can I to manage the charset when I use the fopen function? For example: If i want to create an ISO-8859-2 file, how can I to force, the fopen function to create it? [/snip] This may start

RE: [PHP] strpos error (I'm missing something obvious)

2007-10-01 Thread Jay Blanchard
[snip] I fixed this by changing === TRUE to !== FALSE, so I think I am good to go now. But would still like to know why TRUE doesn't work. Thanks. [/snip] !== FALSE is not good either, it is not a valid test strpos returns the numeric position of the first occurrence of needle in the haystack

RE: [PHP] Conditional jump menu

2007-09-27 Thread Jay Blanchard
[snip] Does anyone know how to create a field based on a menu choice? When the menu is selected, then another field is created with an associated number. For instance: Selection = Collie Field = 1 Selection = AkitaField = 2 [/snip] Javascript, DHTML, and AJAX -- PHP General Mailing

RE: [PHP] Working with sessions

2007-09-21 Thread Jay Blanchard
[snip] I have a question about sessions, I am attempting to store a search term in a session variable to that when it finds the set of records from the database it can export it to excel. The problem I have is that the session variable is 1 search behind... [/snip] When you do the search

RE: [PHP] Working with sessions

2007-09-21 Thread Jay Blanchard
[snip] Wouldn't that be what this code does: ?PHP if ($_SESSION['search'] != NULL){ echo The search string is: strong$search/strong.BR; $qrow[]= mysql_query($qstring) or die(mysql_error()); $qresult = $qrow[0]; $num_rows = mysql_num_rows($qresult);

RE: [PHP] newbie trying to find segfault reasons

2007-09-20 Thread Jay Blanchard
[snip] I'm kinda new at PHP (but not entirely new). I'm having a heck of a time with PHP causing my apache processes to segfault. I've found a few cases where it's something simple, like referring to an object property that does not exist, but it's painstaking work. I'm reduced to

RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Jay Blanchard
[snip] You are right. It segfaults only if the virtual() call comes before creating the XSLTProcessor instance. [/snip] I cannot replicate the problem on Linux. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Jay Blanchard
[snip] You are right. It segfaults only if the virtual() call comes before creating the XSLTProcessor instance. [/snip] I cannot replicate the problem on Linux. So you get the XSLT error messages instead? That's what you should be seeing. {/snip] Yep, no segfault. I do not have a

RE: RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Jay Blanchard
[snip] I'm on Linux too, so never mind Windows for the moment. So what's the difference between our two environments? Try putting something in the problem-include file to verify that virtual is doing what it's supposed to. [/snip] That worked fine. I am sure that there are many differences in

RE: RE: RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Jay Blanchard
[snip] That worked fine. I am sure that there are many differences in our environments. We are running Suse Linux, PHP 5.2.1, Apache 2.2.4. That's close though - my workstation is openSUSE 10.2, PHP 5.2.4, Apache 2.2.4. [/snip] As this installation is on a development box it has nearly every

RE: Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-13 Thread Jay Blanchard
problem code on this list... Jay, this is the same kind of c... that PHP developers have responded with in the past. I'm sorry, but IMO that is entirely unprofessional. OK, so maybe one isn't being paid to write open source software, but that's no excuse for not being professional about it. IMHO

RE: [PHP] GD Library

2007-09-13 Thread Jay Blanchard
[snip] I am running PHP 4.4.7 without the GD Library and need it to run. I am very novice on PHP, and am using a Mac with 10.3.9. Can anyone point me in the right direction? [/snip] http://www.php.net/gd tells you how to get and install the libraries. -- PHP General Mailing List

RE: Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Jay Blanchard
[snip] Anyway, I think it's exceptionally poor show by php to cause a segfault, probably due to user code. I know it does it every now and then, and nobody has ever been interested in looking at the core dump. [/snip] The Dev team looks at core dumps all of the time to try to figure out bugs

RE: RE: Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Jay Blanchard
[snip] [snip] Anyway, I think it's exceptionally poor show by php to cause a segfault, probably due to user code. I know it does it every now and then, and nobody has ever been interested in looking at the core dump. [/snip] The Dev team looks at core dumps all of the time to try to

RE: [PHP] look at all files, then go elsewhere

2007-09-11 Thread Jay Blanchard
[snip] I have a script that I want to check all files in a directory for information, if it doesn't find it when all done, I want it to go elsewhere, however if it does find it, I want it to break out of the search and perform a function. CODE: if ($userinfo == ) { if ($handle =

RE: [PHP] Public Announcement

2007-09-11 Thread Jay Blanchard
[snip] At 11:24 AM +0200 9/11/07, Sascha Braun - CEO @ Braun Networks wrote: If you take 30 seconds for the startpage to load, you can check out http://www.fit-o-matic.com again. [/snip] That is awful. Not only does it take a long time for the start page to load (and there is nothing of any

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] I fixed that but the problem still remains... When I preform the search I get redirected from index.php to edit.php and can't see where that would happen. [/snip] echo $qstring; $search is not NULL because $search is equal to $_GET[search]. $search may be empty though. -- PHP General

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] echo $qstring; produces: SELECT * FROM current WHERE FName like '%%' or LName like '%%' or Add1 like '%%' or Add2 like '%%' or City like '% %' or State like '%%' or Zip like '%%' or XCode like '%%' Which is correct except for it being empty. I tried to echo $search, but since it

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] The problem is there's not... At least there's not supposed to be. The end result that I want is for the search results to end up on the same page if possible... edit.php is a script I use for editing records. Maybe I should just do it on a separate page... It might be easier for

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] Correct. PHP_SELF refers to index.php which is the page that the search is happening on. a few lines above that there is a reference to edit.php and here is the code for it: Sorry for the long cut/paste, but I thought it was important to try and provide it in context, and the line

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] Total length is 293 lines. It redirects before any output of $search is visible. I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone who wants to see the code... I know it repeats it's self, but I couldn't figure out how to get it to log in and stay logged in right

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] tda href='edit.php?Record={$row['Record']}'Edit/a/td is the ONLY reference to edit.php in the entire code of that page. [/snip] No it isn't. edit.php shows up a couple of times, not the least of which is row 218; echo form method='GET' action='edit.php'; Do you know where the closing

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] I took a look and now I can't get my eyes to stop bleeding. The horror, the horror! Mixed PHP/HTML is yucky :) [/snip] 8^{)} Undoubtedly things could be organized better. Jason did you just sit down and code or did you walk it through with paper and pencil (or notepad even)? -- PHP

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] Son of a Bitch... Soon as I closed that down at line 265 the search now isn't redirecting to edit.php Do you debug by hand? Or do you have something that helps you to do that? I've been tearing my hair out for hours trying to find that and I couldn't see it... [/snip] Debugged by

RE: [PHP] Reg.Photo Upload Tool

2007-09-07 Thread Jay Blanchard
[snip] Any opensource or PHP applicaiton is available for Photo upload tool?. [/snip] Easy to do yourself http://us2.php.net/manual/en/features.file-upload.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Flow chart graph library

2007-09-06 Thread Jay Blanchard
[snip] Does anybody know a PHP library to create Flow chart graphs?? I need it to do something like this: (yes) Is it true ? --- Update | (no) | | Cancel Thank you in advance!

RE: [PHP] Opening a file

2007-09-05 Thread Jay Blanchard
[snip] I did a if ($lines === false) { echo lines is false; } like you suggested and it displays that text...but it still make no sense. mypage.php and fruits.txt are in the same folder, on the same server. There isn't any permissions issues. So, if mypage.php and fruits.txt are in the same

RE: [PHP] Dealing with auto-increment in MySQL

2007-09-04 Thread Jay Blanchard
[snip] Do you use logic in your code to find a missing ID and insert new records based on that? Or do you just ignore it, let mysql handle the numbering and go on with your lives? [/snip] The answer is B. There is a long standing discussion on this right now. -- PHP General Mailing List

RE: [PHP] Dealing with auto-increment in MySQL

2007-09-04 Thread Jay Blanchard
[snip] I was wondering if people is asking this in the belief that the autoincrement field is the record position in the database table and that by not reusing those positions, the space of the deleted records is wasted. Perhaps when they say renumbering what they are meaning is compacting the

RE: [PHP] Heredocs

2007-08-29 Thread Jay Blanchard
[snip] Are heredocs supported by PP 5.2.3 running in WinXP/Apache2.2.4 ? I prrint via heredocs and its not working. Print with single quotes and double quotes work. p h6string init method 3: heredocs/h6 ?php print END

RE: [PHP] Pragmatically changing a Record Number

2007-08-29 Thread Jay Blanchard
[snip] Is there away with PHP that I can pragmatically change that value to the total records in the database more so then a representation of the actual record number? [/snip] 1. Changing the values in an auto-increment column is just Bad[tm], especially if you are using it as a unique

[PHP] Perhaps an incomplete $_POST

2007-08-29 Thread Jay Blanchard
I just noticed something a little odd, and maybe there is a simple solution. Given a form; form name=foo action=foo.php method=POST The attributes, especially the name foo, never appear in any variables array. I am thinking that this might be handy to have for several reasons when processing the

RE: [PHP] why?

2007-08-28 Thread Jay Blanchard
[snip] Yes, a single sign-on it is... It doesn't work together with Windows (and PHP) you mean? [/snip] No, not really. You can run PHP on a Linux or a Windows server and it does not have access to the initial login values (press cntl alt del to login) although ASP and .Net (auth_user, etc) do.

RE: [PHP] why?

2007-08-28 Thread Jay Blanchard
[snip] i know there is an apache NTLM(1) module for this. i don't believe it requires anything other than a connection to a domain authentication server and the ability to send headers and read the reply (challenge/response) - i don't think the registry is needed at all on the client or the

RE: [PHP] Building Web Site with Member Area in PHP (and MySQL) - Howto

2007-08-28 Thread Jay Blanchard
[snip] Can anyone recommend resources that I can use to learn about doing this? Are then any open source scripts that demonstrate this kind of site? [/snip] Google is your friend http://www.google.com/search?hl=enq=PHP+MySQL+login -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Why not user...?

2007-08-27 Thread Jay Blanchard
[snip] Why is it so that I get this error. I'm using Windows Integrated authorization-method for actual webb I'm testing on. Notice: Undefined index: PHP_AUTH_USER in C:\www\utveckling\username.php on line 2 [/snip] Hmm, can only take a guess since we do not see what sets PHP_AUTH_USER, but

RE: [PHP] xml reader/writer

2007-08-27 Thread Jay Blanchard
[snip] So I don't have to reinvent anything, does such a thing exist anywhere that anyone knows of: I'm looking for a php script that will read any xml file, display the contents in html, with the option of adding an entry (in the same scheme, whatever that might be) or deleting existing

RE: [PHP] why?

2007-08-27 Thread Jay Blanchard
[snip] I can't figure the thing with Windows Integrated authentication... I have checked a website for doing this. I still have to enter username and password even if I'm on the local computer (through a VPN though) This would be the same as using computer locally on the network, but I have to

RE: [PHP] why?

2007-08-27 Thread Jay Blanchard
[snip] ... be the same as using computer locally on the network, but I have to enter username and password. I'm sure I have checked the Windows Integreated authenication - checkbox for the website it's about. When I have entered username and password I can go on and do whatever I want on that

RE: [PHP] using disable_functions silently

2007-08-23 Thread Jay Blanchard
[snip] Unfortunately we would need a solution without changing the PHP code of our users. No way to do that? [/snip] Not really. You could auto-prepend all of the PHP files with the necessary PHP files, but that may not be a really good solution. -- PHP General Mailing List

RE: [PHP] [mssql_connect] Interfaces File?

2007-08-23 Thread Jay Blanchard
[snip] I am trying to connect to a mssql server from php 4.3.9. mssql_connect('IP_ADDRESS:PORT_#',LOGIN,PASSWORD) or die(Could not connect to the mssql server); is failing... after doing a little bit of research, I found this on php.net *mssql_connect()* establishes a connection to a MS SQL

RE: [PHP] SQL Distinct-like behaviour

2007-08-23 Thread Jay Blanchard
[snip] How could I iterate over the files in a directory and build a list of unique filenames? Take the following filelist: file1_01.jpg file2_01.jpg file2_02.jpg file2_03.jpg file3_01.jpg file3_02.jpg file3_03.jpg file4_01.jpg file4_02.jpg file4_03.jpg I would like to build an array like this:

RE: [PHP] mail() issue

2007-08-22 Thread Jay Blanchard
[snip] PHP Warning: mail() [function.mailhttp://develop1/credit%20card%20processing/Submit/ChildSu pport/function.mail]: SMTP server response: 504 br /: Recipient address rejected: need fully-qualified address. The value of $user_email when it is echoed out above is [EMAIL PROTECTED] [/snip]

RE: [PHP] mail() issue

2007-08-22 Thread Jay Blanchard
[snip] The . (period) is simply the end of my sentance in the email.   The From address is specified in the php.ini and is fully qualified.   If I hard code the value of $to into the mail function it works fine.   $user_email = [EMAIL PROTECTED] $to = [EMAIL PROTECTED]   mail($to, $subject,

RE: [PHP] ptting the variable inside the input

2007-08-22 Thread Jay Blanchard
[snip] echo $title=$row['title']; echo trtdinput name=\title\ type=\text\ value=\$title\ //td; [/snip] echo trtdinput name=\title\ type=\text\ value=\.$title.\ //td; You have to concatenate the value $title into the string -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] ptting the variable inside the input

2007-08-22 Thread Jay Blanchard
[snip] [snip] echo $title=$row['title']; echo trtdinput name=\title\ type=\text\ value=\$title\ //td; [/snip] echo trtdinput name=\title\ type=\text\ value=\.$title.\ //td; You have to concatenate the value $title into the string [/snip] Actually don't have to do that, it was just one of the

RE: [PHP] Table shows even when if () is false

2007-08-22 Thread Jay Blanchard
[snip] $deferred_comments= SELECT * FROM comments WHERE credit_card_id = '$credit_card_id' AND request_type = 'D'; $result_deferred_comments = mssql_query($deferred_comments) or die(mssql_error()); if(!empty($result_deferred_comments)) { [/snip] $result_deferred_comments is not empty, a query

RE: [PHP] Table shows even when if () is false

2007-08-22 Thread Jay Blanchard
[snip] [snip] $deferred_comments= SELECT * FROM comments WHERE credit_card_id = '$credit_card_id' AND request_type = 'D'; $result_deferred_comments = mssql_query($deferred_comments) or die(mssql_error()); if(!empty($result_deferred_comments)) { [/snip] $result_deferred_comments is not empty, a

FW: [PHP] getting from one table listing from another

2007-08-20 Thread Jay Blanchard
[snip] Question -- is it redundant to say: FROM table a LEFT OUTER JOIN table b ON(a.column = b.column) when table a appears first? Wouldn't that be the same as: FROM table a OUTER JOIN table b ON(a.column = b.column) [/snip] An OUTER JOIN is essentially a FULL OUTER JOIN which will include

RE: [PHP] Best Practices for calling 'setup' classes that extend 'parent' classes?

2007-08-20 Thread Jay Blanchard
[snip] What is the best practice for correctly targeting 'include' paths when using Initialization/Setup classes that extend Parent classes? In my extend_parent_class.php file, I have to provide an incorrect relative path. Apparently, the path (that does work) is relative to php file that

RE: [PHP] getting from one table listing from another

2007-08-19 Thread Jay Blanchard
[snip] At 6:12 PM -0500 8/18/07, Jay Blanchard wrote: [snip] I know this is kinda crazy but I need it :P I have one table that lists name's and I have another table that has the name's and points I want to know how to list the name's of the first table by the points of the second table [/snip

RE: [PHP] getting from one table listing from another

2007-08-19 Thread Jay Blanchard
[snip] However, the LEFT and RIGHT will take me a while to figure out. [/snip] FROM table a LEFT OUTER JOIN table b ON(a.column = b.column) Just follow the order tedd, a is on the left and b is on the right LEFT OUTER - a - b (what may be in a might not be in b) a - b - RIGHT OUTER (what may be

RE: [PHP] getting from one table listing from another

2007-08-18 Thread Jay Blanchard
[snip] I know this is kinda crazy but I need it :P I have one table that lists name's and I have another table that has the name's and points I want to know how to list the name's of the first table by the points of the second table [/snip] Not crazy, pretty standard from a database point of

[PHP] Regular Expression just one step away from what I need....

2007-08-17 Thread Jay Blanchard
Given the string 'foo''bar''glorp' (all quotes are single quotes)I had hoped to find a regular expression using preg_match that would return an array containing just those words without having to go through additional gyrations, like exploding a string to get an array. I have only had limited luck

RE: [PHP] Regular Expression just one step away from what I need....

2007-08-17 Thread Jay Blanchard
[snip] I am no regex expert but wouldn't preg_match_all( /'([^']+)'/Ui, $theString, $matches); Be more flexible? [/snip] Thanks all, I completely forgot about greedy/ungreedy. That is what you get for being rusty! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP Books - A poll of sorts

2007-08-12 Thread Jay Blanchard
practices book would you buy it? (I am showing complete disregard for the thread on copyright infringement v. theft.) Or do you rely on other sources like this list, articles, etc to derive your own set of practices? Thanks for indulging me. Thanks Jay -- PHP General Mailing List (http

RE: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Jay Blanchard
[snip] I could do something complicated and store the $_POST vars in $_SESSION[], but what I'd rather do is simply add a var to $_POST[] and resubmit this to the same .php. Is their any way to do this, or do I need to rethink things? [/snip] Put the processing in a function, run the post

RE: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Jay Blanchard
[snip] Yes I am hijacking a thread just to screw with all the people who use threaded e-mail viewers and because I'm mean like that :P [/snip] To answer your question, because hijacking threads is much harder than typing the e-mail address in the To box, Duh. -- PHP General Mailing List

RE: [PHP] Thoughts about music library

2007-08-06 Thread Jay Blanchard
[snip] I'm building an web interface for my music collection. [/snip] Have you seen Ampache - http://www.ampache.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Premature Ajax-ulation

2007-08-03 Thread Jay Blanchard
One of my developers saw the following article; http://arstechnica.com/news.ars/post/20070802-security-experts-warn-deve lopers-about-the-risks-of-premature-ajax-ulation.html How are you securing Ajax? I know that for the most part we send data to a PHP script for processing, so all of the

RE: [PHP] function - action

2007-08-03 Thread Jay Blanchard
[snip] I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as functions. Is there a chance that PHP can use the word action as function? E.g.: public function doSomething() { } public action doSomethingElse() { ... }

RE: [PHP] Premature Ajax-ulation

2007-08-03 Thread Jay Blanchard
[snip] First, the subject title is LOL. [/snip] I know... I wish I had thought of it! [snip] Second, I don't know about others but every ajax post/get data received is treated like any other post/get data -- it's validated and scrubbed. Most ajax data provided in my scripts are there to

RE: [PHP] Cut text from a string

2007-08-02 Thread Jay Blanchard
[snip] hi all, am trying to cut some texts from a serries of string values e.g. this is how we do (50 cents feat. the game) give it to me (nelly feat timerland) let me hold you (bow wow feat omarion) i want to cut off the text between the comas and i've seen some examples [/snip] Comas? Do you

RE: [PHP] addSlashes Question

2007-08-01 Thread Jay Blanchard
[snip] $first = '.addslashes($_POST['firstname']).'; $last = '.addslashes($_POST['lastname']).'; $email = '.addslashes($_POST['email']).'; $address = '.addslashes($_POST['address']).'; $city = '.addslashes($_POST['city']).'; $state = '.addslashes($_POST['state']).';

RE: [PHP] Reading registry values

2007-07-30 Thread Jay Blanchard
[snip] I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? [/snip] PHP is server-side and cannot read client side info. You would

RE: [PHP] OOT - Ajax definitiondear all,

2007-07-27 Thread Jay Blanchard
[snip] We all knew that AJAX is an achronym of Asynchronous Javascript And XML. When I use another data format like YAML or CSV, will it still be called as AJAX? Or just yet another asynchronous method? [/snip] AJAX makes a good catch-all term since the API is called XMLHttpRequest and the API

RE: [PHP] DOM

2007-07-27 Thread Jay Blanchard
[snip] Out of curiosity, is there any effort in creating a new DOM that's easier for application builders (something like Visual Foxpro)? Does Web 2.0 or maybe 3.0 offer some new input types, say something like a real grid, or maybe a modal child popup? [/snip] [potential holy war bits] There is

RE: [PHP] import spreadsheet

2007-07-27 Thread Jay Blanchard
[snip] Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table that has 10 fields and if the file thats being imported only has 4

RE: [PHP] need insights on encrypting and uploading ASCII file using PHP

2007-07-27 Thread Jay Blanchard
[snip] We have various labs that submit coliform sample results in an ASCII file, quoted/comma delimited.   We are being asked to encrypt this file for internet transfer. We are also being asked to create a secure process by which to transfer this file across the interent.   Currently: the lab

RE: [PHP] Authentication

2007-07-27 Thread Jay Blanchard
[snip] My application is only used within my company. I want to pull the NT Authenticated user that is logged in, cross reference that user with what I have pulled from ldap and verify the user's name is valid. If the username is valid I will assign it to a variable and use that variable to store

RE: Re[2]: [PHP] Pirate PHP books online? OT

2007-07-25 Thread Jay Blanchard
[snip] Sorry, I've been up for 48 hours -- it's a boy, 8 lb 9 oz -- time to get some sleep. Maybe tomorrow my son will finally decide on a name -- the ninth grand-kid. Maybe he'll name him Rasmus. God, I hope not. :-) [/snip] Congrats! How about Tedd II - Electric Boogaloo (yes, I know, I

RE: [PHP] Objects

2007-07-25 Thread Jay Blanchard
[snip] Is there anyone here interested in teaching (lond distance, off course) OOP? I would like to learn how to use objects (I have been working all my life using structured language). All the books I have tried just talk about theory not practical issues. I intend to pay for the classes.

RE: [PHP] Pirate PHP books online?

2007-07-24 Thread Jay Blanchard
[snip] Rasmus Lerdorf and the Deathly Hallows Rasmus Lerdorf and the Order of the PHP Rasmus Lerdorf and the Order of Function Arguments Rasmus Lerdorf, Lord of the Code Rasmus Lerdorf and the Half-Assed Coder [/snip] Rasmus Lerdorf and The Coders're Stoned Arrays 11 Lerdorf - A PHPdoc

RE: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Jay Blanchard
[snip] Artificially created by the law, yes. [/snip] Just curious, if this artificiality did not exist what could an author's reasonable expectation be? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Save email as .eml file

2007-07-18 Thread Jay Blanchard
[snip] Is there a way to create e-mail with PHP and save it to .eml file (without sending)? [/snip] Yes, there is a way. http://www.google.com/search?hl=enq=save+as+.eml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Jay Blanchard
[snip] ...all manner of interesting debate... [/snip] What, exactly, is the difference between this particular brand of copyright infringement and taking the book from a bookstore without paying for it? Am I committing copyright infringement by standing in the store and reading the book? -- PHP

[PHP] ldap_search(): Partial search results returned: Sizelimit exceeded

2007-07-17 Thread Jay Blanchard
Perhaps mistakenly for a project that I am trying to do I want to list all users in the Active Directory. It works pretty well with one exception, the error ldap_search(): Partial search results returned: Sizelimit exceeded. Now, I know that I can page through (I would have to figure out a clever

RE: [PHP] Time formatting issues

2007-07-14 Thread Jay Blanchard
[snip] I have a DB with a field type DATE (called TideDATE) and a field type TIME (one of which is called highFIRST) How can I format the time fields from displaying 00:00:00 (a 24 hour clock) to HH:MM am/pm format? [/snip] Have a look at http://www.php.net/mktime -- PHP General Mailing

RE: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Jay Blanchard
[snip] Mine was trying to go for an old funk song that starts: What goes up, must come down. Spinning wheel got to go 'round Drop all the painted ponies by the riverside. [mumble] let the spinning wheel slide. Only later did I realize I broke the cardinal rule of Name That Tune and have NO IDEA

RE: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Jay Blanchard
[snip] ? $evil[] = 6; $evil[] = 6; $evil[] = 6; for($i=0;$icount($evil);$i++) { $_ = sqrt($evil); } ? It was supposed to be money is the root of all evil, but the code above wouldn't work correctly anyway, as each time through the for() loop it'll try to get the square

RE: [PHP] SMS questions

2007-07-12 Thread Jay Blanchard
[snip] ...schtuff [/snip] Please, do not cast aspersions upon the telcos, for those of us who work in the industry cannot even get some of what you are talking about. We have a vendor that provides the SMS part and they will not expose the SMS API to us (not all SMS platforms are equal

RE: [PHP] About Eclipse JVM Termination

2007-07-10 Thread Jay Blanchard
[snip] Do you know the cause of this error? I'm trying to run it on 64bit Fedora 7. I have AMD64 and JRE 1.6.0_02 64bit is installed. Do you know how to fix the following error? if yes how? ** JVM

<    1   2   3   4   5   6   7   8   9   10   >