[PHP] Source code of original PHP release.

2013-05-23 Thread chris
I'm currently writing a paper on the evolution of PHP and web development/security as a whole. One of the things I want to incorporate is snippets of source code to show how things have grown and advanced since the 90's If anyone could help me out I would be much appreciated. All my attempts

Re: [PHP] Source code of original PHP release.

2013-05-23 Thread chris
Thank you Sir. Just what I needed :) I didn't even know there was a museum. Cheers, Christopher Tombleson On 2013-05-24 05:02, Daniel Brown wrote: On Thu, May 23, 2013 at 2:16 AM, chris ch...@cribznetwork.com wrote: I'm currently writing a paper on the evolution of PHP and web development

[PHP] A little confused

2013-04-23 Thread Chris Knipe
list, but I cannot seem to find any way to convert $_SESSION['ExpiryDate'] to an DateTime?? -- Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A little confused

2013-04-23 Thread Chris Knipe
Yes, strtotime() does convert the $_SESSION value to a unix epoc, as expected. However, date_format still complains that the argument is a Integer value, instead of a DateTime. On Tue, Apr 23, 2013 at 12:09 PM, Stuart Dallas stu...@3ft9.com wrote: On 23 Apr 2013, at 11:07, Chris Knipe sav

Re: [PHP] A little confused

2013-04-23 Thread Chris Knipe
PM, Chris Knipe sav...@savage.za.org wrote: echo date_format($_SESSION['ExpiryDate'], D, \t\h\e jS \o\f M Y); Why not construct DateTime object echo date_format(new DateTime($_SESSION['ExpiryDate']), D, \t\h\e jS \o\f M Y); Or $dt = new DateTime($_SESSION['ExpiryDate']); echo $dt-format

[PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Chris Bergstresser
wrong? How can I fix it? -- Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Chris Bergstresser
error message. Good to know. -- Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Tokyo Cabinet or Kyoto Cabinet support

2013-02-12 Thread Chris MacPherson
in the DBA extension README file in the source code I can't see any mention of Tokyo/Kyoto Cabinet, just the qdbm predecessor. Cheers for any help :) Chris

Re: [PHP] Tokyo Cabinet or Kyoto Cabinet support

2013-02-12 Thread Chris MacPherson
Ok will do, thanks for the suggestion. On 12 February 2013 18:25, Matijn Woudt tijn...@gmail.com wrote: On Tue, Feb 12, 2013 at 7:06 PM, Chris MacPherson ch...@kombine.co.ukwrote: Hi, Just wondering if anyone can tell me if Kyoto Cabinet support will be added to the DBM extension

Re: [PHP] Can I do this in a single match/replace?

2012-06-27 Thread Chris Testroet
modifier. It allows you to run php code for every replace. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 0.0.0.0 iplong()

2012-06-05 Thread Chris Knipe
Na-uh. You want 0.0.0.0/0, which is valid. 0.0.0.0/24 isn't valid. -- Regards, Chris Knipe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with preg_match

2012-06-04 Thread Chris Purves
On 2012-06-03 22:37, Robert Williams wrote: On Jun 3, 2012, at 17:28, Chris Purvesch...@northfolk.ca wrote: I know that the text ends 'end', but I don't know what the Something, something is. I am using preg_match as follows: preg_match('/[^]*end/',$curl_response,$matches); I want

[PHP] help with preg_match

2012-06-03 Thread Chris Purves
('/[^]*end/',$curl_response,$matches); I want to match 'end' and everything before it that is not ''. The problem appears to be with the ''. I have tried escaping (\), but it didn't make a difference. The php script hangs when it tries to run this function. -- Chris Purves There's a time

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
into your database - via a re-formed query.  You're giving someone an open invitation. A query string has nothing to do with databases. -Stuart I still haven't been able to find a solution. Is there anyone out there that knows how to keep the query string intact? Thank you, Chris -- PHP

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
On Fri, Apr 27, 2012 at 11:09 AM, Shawn McKenzie nos...@mckenzies.net wrote: On 04/27/2012 10:56 AM, Chris Stinemetz wrote: I still haven't been able to find a solution. Is there anyone out there that knows how to keep the query string intact? Thank you, Chris urlencode($storerow

[PHP] url string being split

2012-04-26 Thread Chris Stinemetz
Communication, LLC - [-_Sprague_Ave] = ) How do I make it so the string isn't split into two elements in the array? I want it to stay instact. Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL table design

2012-03-22 Thread Chris Stinemetz
Hello List, Is it possible to create a MySQL table with characters such as . and [] in the column headers? If so would you explain how? Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL table design

2012-03-22 Thread Chris Stinemetz
On Thu, Mar 22, 2012 at 7:42 PM, Stuart Dallas stu...@3ft9.com wrote: On 23 Mar 2012, at 00:10, Chris Stinemetz wrote: Is it possible to create a MySQL table with characters such as . and [] in the column headers? If so would you explain how? Try putting the column names in backticks

Re: [PHP] Numeric help needed

2012-01-15 Thread Chris Payne
rounded up to the next $1000. Maybe i'm just looking at it wrong but i'm stumped. Chris On Sun, Jan 15, 2012 at 8:41 PM, Jason Pruim li...@pruimphotography.com wrote: Sent from my iPhone On Jan 15, 2012, at 8:25 PM, Christopher J Payne oxygene...@gmail.com wrote: Hi everyone, I am

[PHP] Thank you all for your help

2012-01-15 Thread Chris Payne
Hi there, A big thank you to all of you who took time to help me with my numeric problem from earlier, it's been a huge help :-) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5.3.2 max_execution_time

2012-01-02 Thread Chris Tapp
. The file transfer takes place within the context of an RPC callback, so I think this may be a TCP transfer rather than a file upload. This really does seem to be an execution time issue, as shown by the Apache error log entry. Chris -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP 5.3.2 max_execution_time

2012-01-02 Thread Chris Tapp
On 2 Jan 2012, at 13:53, Matijn Woudt wrote: On Mon, Jan 2, 2012 at 10:21 AM, Chris Tapp opensou...@keylevel.com wrote: This really does seem to be an execution time issue, as shown by the Apache error log entry. Chris Are you sure you've checked every possible place for Apache config

Re: [PHP] PHP 5.3.2 max_execution_time

2012-01-02 Thread Chris Tapp
a set_time_limit( 30 ) call in a file related to the transfer that looks like the root of the problem :-) Thanks for the help. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 5.3.2 max_execution_time

2012-01-01 Thread Chris Tapp
. Is there another setting that I need to consider? max_input_time is already set to 60 seconds and there are no local 'php_value' Apache configuration items fighting the ones in php.ini. PHP version is 5.3.2 and is running under a CentOS 6.0 system. Chris Tapp opensou...@keylevel.com www.keylevel.com

Re: [PHP] dev to production server

2011-09-07 Thread Chris Stinemetz
By local, do you mean a local dedicated box, or an everyday use box? It is an everyday use box. The checklist varies quite a bit depending on the results. Also, is your site to be served by standard port 80 traffic? Does your Internet host allow inbound port 80? Yes it will be served by

Re: [PHP] dev to production server

2011-09-07 Thread Chris Stinemetz
On Wed, Sep 7, 2011 at 6:23 AM, James Yerge ja...@nixsecurity.org wrote: On 09/07/2011 12:24 AM, Chris Stinemetz wrote: Does anyone have a procedure or know of any tutorials that explain how to take a mac/apache/php/mysql dev environment and converting it to production environment

[PHP] dev to production server

2011-09-06 Thread Chris Stinemetz
Does anyone have a procedure or know of any tutorials that explain how to take a mac/apache/php/mysql dev environment and converting it to production environment? Basically I want to host my own web site on my local machine now that I have finished developing it. Thanks in advance! -- PHP

[PHP] socket_bind to an ssl:// address

2011-09-04 Thread Chris Bowler
Hi ive been using this no problems $sourceip = 'xx.xx.xx.xx'; //IP to bind $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($sock, $sourceip); socket_connect($sock, 'dac.nic.uk', 3043); But I need to connect to ssl://epp.nominet.org.uk:700 and this fails as it does not

Re: [PHP] Dealing with multiple form submissions

2011-08-24 Thread Chris Stinemetz
On Aug 24, 2011, at 3:46 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Mike Mackintosh mike.mackint...@angrystatic.com wrote: On Aug 24, 2011, at 11:52, John Black s...@network-technologies.org wrote: On 08/24/2011 03:04 AM, Jason Pruim wrote: Wondering what everyone

Re: [PHP] chained select with ajax

2011-08-14 Thread Chris Stinemetz
I was able to figure it out. Discovered the very useful tool firebug! Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form validation

2011-08-12 Thread Chris Stinemetz
]), '/option'; } ? /select I am using the folling on the posted page. if (! array_key_exists($_POST['market'], $market_name)) { echo You did not select a market.; } Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] form handling

2011-08-11 Thread Chris Stinemetz
I have two forms on the same php script. Is it possible to submit both forms to the same action=processform.php with a single submit button? If so would you give me examples on how to handle this? I will also continue searching google. Thank you, Chris -- PHP General Mailing List (http

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
ideas?? Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
Chris, By definition, a 'submit' button submits a form.  Not 2 forms.  Each form has to have it's own form. It is not feasible to submit two forms - since the conversation from your client pc is going to be garbled even if you could (JS?) do the second submit.  One transactiion is going

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
a table without affecting the whole table. At least that is what I found out tonight. Please correct me if I am wrong. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] text insertion

2011-08-10 Thread Chris Stinemetz
with php from the database the format it was inserted is not preserved. Is there a way to make sure when a user adds new paragraphs or indentation it will be preserved? Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] text insertion

2011-08-10 Thread Chris Stinemetz
is actually being output. Thanks Ashley Source is showing indentation and new paragaraphs just as I inserted the text. How can I get HTML output to show same format? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] text insertion

2011-08-10 Thread Chris Stinemetz
   Use HTML 'pre' tags:        pre?php echo $your_content; ?/pre I just tried that and that puts all the text on a single line. echo 'tr class=topic-post td class=user-poststrong' . $posts_row['first_name'] . ' ' . $posts_row['last_name'] . ' ' . date('m-d-Y h:iA',

Re: [PHP] text insertion

2011-08-10 Thread Chris Stinemetz
No luck. Thanks. On Aug 10, 2011 4:17 PM, hdede...@videotron.ca wrote: how about echo nl2br($your_content); - Original Message - From: Chris Stinemetz chrisstinem...@gmail.com Date: Wednesday, August 10, 2011 5:09 pm Subject: Re: [PHP] text insertion To: Daniel P. Brown

Re: [PHP] Problem with inserting numbers...

2011-08-10 Thread Chris Stinemetz
basically all I'm trying to do is generate the last 4 digits starting at and going up to . for testing purposes I'm just echoing back but will eventually insert the complete number back into the database as a 7 digit string. The error I'm getting is: Fatal error: Maximum

[PHP] concatenating

2011-08-10 Thread Chris Stinemetz
Is it possible to concatenate a string and an element from a mysql_fetch_assoc array? I haven't had much luck searching google. Such as concatenating results with ' . $posts_row['store_tptest'] . ' so that if there are no elements returned nothing will be displayed? Thank you, Chris -- PHP

Re: [PHP] pass text variables to next page

2011-08-09 Thread Chris Stinemetz
= ' . mysql_real_escape_string($_GET['id'].'); Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form hidden value

2011-08-08 Thread Chris Stinemetz
I'm trying to pass a hidden value with my form submission. Not sure what I am doing woring, but the value is not being passed. Query is___ $query = SELECT id, store_name FROM store_list WHERE store_type = '$type' AND id_market = '$market' ; $result = mysql_query($query) or

[PHP] pass text variables to next page

2011-08-08 Thread Chris Stinemetz
Vista 8712 Blue Ridge Blvd ) $sql = SELECT store_id, store_subject FROM stores WHERE store_subject = . mysql_real_escape_string($_GET['id']); The query works fine When I run the command in console and place '' around Loma Vista 8712 Blue Ridge Blvd Thank you, Chris -- PHP General Mailing

Re: [PHP] control structure

2011-08-04 Thread Chris Stinemetz
long! Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP frameworks

2011-07-21 Thread Chris Stinemetz
Hello all, I am thinking about venturing into PHP frameworks, but I would like to get advice on what the correct selection would be for someone that is about intermediate in PHP knowledge. Thank you, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] default option

2011-07-18 Thread Chris Stinemetz
Hello, I am building some select menu's dynamically from a mysql database and am courous how to give the menu a default option Choose. Below is what I have so far for one of my menu's. Thank you in advace. select name=market id=market

Re: [PHP] default option

2011-07-18 Thread Chris Stinemetz
Thank you Stuart. That did the trick. On Mon, Jul 18, 2011 at 10:38 PM, Stuart Dallas stu...@3ft9.com wrote: On Tue, Jul 19, 2011 at 4:28 AM, Chris Stinemetz chrisstinem...@gmail.com wrote: Hello, I am building some select menu's dynamically from a mysql database and am courous how to give

[PHP] chained select with ajax

2011-07-17 Thread Chris Stinemetz
appreciated. Please excuse the incorrect indentions. For some reason gmail changes it. Thanks, Chris ajax code... script $(document).ready(function(){ $(select#type).attr(disabled,disabled); $(select#store).attr(disabled,disabled); $(select#market

Re: [PHP] A Question On Web Graphics

2011-07-12 Thread Chris Stinemetz
  Also I have successfully experimented with Apache and PHP but have not yet identified graphics applications for this venue either! Ideas? You may want to look into PHP:GD link to manual: http://php.net/manual/en/book.image.php HTH, Chris -- PHP General Mailing List (http://www.php.net

[PHP] PHP control structure

2011-07-12 Thread Chris Stinemetz
, Chris public function ShowType() { $sql = SELECT DISTINCT store_type FROM store_list WHERE id_markets=$_POST[id]; $res = mysql_query($sql,$this-conn); $Type = 'option value=0store type.../option

Re: [PHP] Linking A C Program Example to PHP

2011-07-11 Thread Chris Stinemetz
On Sun, Jul 10, 2011 at 4:56 PM, Thomas Dineen tdin...@ix.netcom.com wrote: Gentle People:   Please Help!   I am attempting to link a C Program example to PHP using the tutorial shown at the link below: http://voloreport.com/making-a-c-extension-for-php-in-11-easy-steps   Everything

Re: RES: [PHP] Installing PHP

2011-07-04 Thread Chris Stinemetz
Jim, What is your server root set up too? I would put the apache configuration back to the way it was and then place php script with phpinfo() function in it. Try to run it and see if that works. HTH, Chris On Jul 4, 2011 8:14 AM, Alejandro Michelin Salomon (Hotmail) amichel...@hotmail.com

Re: [PHP] Re: Installing PHP

2011-07-04 Thread Chris Stinemetz
What is your document root set to in your httpd.conf file? By default it should be htdocs subdirectory in apache program files. Sent from my iPod On Jul 4, 2011, at 12:10 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Shawn, I added my php folder to the path but no change. Shawn

Re: [PHP] Installing PHP

2011-07-04 Thread Chris Stinemetz
, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Chris Stinemetz
That worked perfectly! Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Chris Stinemetz
radio select validation What I am doing wrong? I want to make sure a radio button is selected, but my current code allows insertion even when radio button isn't selected. My code is: //Generating radio buttons for store type with array

Re: [PHP] php hide menu

2011-06-07 Thread Chris Stinemetz
this? Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php hide menu

2011-06-06 Thread Chris Stinemetz
I have three drop down menus in my form. How do I make it so the second and third menus are only visible once the prior menu was selected? Below is the first two drop down menus. Thanks in advance. // Generating first menu using array. $markets = array('MCI' = 'Kansas City',

[PHP] PHP delete confirmation

2011-04-28 Thread Chris Stinemetz
I have been trying to figure out how to add delete confirmation for the bellow snippet of code. I would prefer not to use javascript. Can anyone offer any advise on how to right the delete confirmation in PHP? Thank you in advance. P.S. I apologize for the indention. For some reason gmail messes

[PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Chris Knipe
to code some ..NET application to act as a gateway between the PHP interface and Active Directory, but naturally I would like to do as much as possible from within PHP itself. Many thanks, -- Regards, Chris Knipe

RE: [PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Chris Knipe
Hi, Chris, 1) Shouldn't the OU security permissions be set within the AD itself? 2) If the above is done, then the user account that's being authenticated shouldn't be able to access privileged information. 1) Not sure. The permissions I'm after is similar to that of NTFS permissions

Re: [PHP] My truth comes out [1]

2010-10-21 Thread chris h
jumping onto regex. Chris. On Thu, Oct 21, 2010 at 6:01 AM, a...@ashleysheridan.co.uk a...@ashleysheridan.co.uk wrote: That's as bad as an if! What about using settype() on the string? I've not tested it, but it looks like it should do the trick. Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread chris h
. The next time the background script checks if it needs to do anything, it sees the tripped flag and preforms the relevant database copy - or whatever :-) Chris. On Tue, Oct 19, 2010 at 9:20 AM, Ferdi ferdinan...@printo.in wrote: Hi List, I have a php page that updates data from one database

Re: [PHP] require_once

2010-10-19 Thread chris h
I'm having a problem including files using Zend Framework. I have in a controller file this Jim why not use the Zend autoloader? Chris.

Re: [PHP] require_once

2010-10-19 Thread chris h
) and not worrying about requiring all your files is a plus. Chris. On Tue, Oct 19, 2010 at 10:00 AM, jim jbw2...@earthlink.net wrote: I am following an example. Also, doesn't that require the class name to be something like models_members? Jim On 10/19/2010 09:40 AM, chris h wrote: I'm having

Re: [PHP] simple class constructor

2010-10-19 Thread chris h
of these are in the php.ini file, though sometimes they can be overridden by apache directives (depending on the setup). http://php.net/manual/en/ini.core.php Chris. On Tue, Oct 19, 2010 at 4:12 PM, David McGlone da...@dmcentral.net wrote: Hi everyone, I've been really good at googling to find my answers

Re: [PHP] simple class constructor

2010-10-19 Thread chris h
Also wanted to point out that you can check the error reporting level and log file location (really all of the php's settings) by calling phpinfo(); in your code. ?php phpinfo(); ? Chris. On Tue, Oct 19, 2010 at 4:54 PM, chris h chris...@gmail.com wrote: Can you paste the index

Re: [PHP] Buffering output to allow headers late in code?

2010-10-14 Thread chris h
not necessarily dictate the order of any tasks (i.e. the sign-on box being below the welcome box should not mean that the sign-on task gets done before the welcome task). Hope that helps! Chris.

Re: [PHP] floored by floor()

2010-10-14 Thread chris h
floor(32703) is different then floor(327.03 * 100). The former is an int, while the later is a float. Read those links that were sent :) Chris. On Thu, Oct 14, 2010 at 2:14 AM, Glen Fuller glenmful...@shaw.ca wrote: On 10/13/2010 10:48 PM, Mattias Thorslund wrote: Hi List, I'm having

Re: [PHP] Text messaging from the web

2010-10-14 Thread chris h
this method would only be useful if you knew the carrier of a specific number. Do you know of a way to determine that? Chris.

Re: [PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread chris h
, and train new developers on. I'd imagine it also adds overhead, though I don't know how much - my guess is negligible. OB can be a great tool, but it shouldn't be a hack to get around sloppy architecture. Just my 2 cents :) Chris.

Re: [PHP] class object vs array for db table model

2010-10-12 Thread chris h
and setters. Hope that helps! Chris.

Re: [PHP] class object vs array for db table model

2010-10-12 Thread chris h
hehe that's pretty funny; also funny oversight of mine in regards to isset()... so I guess we're both comedians today? ;-) Glad you got that worked out Tommy! Chris. On Tue, Oct 12, 2010 at 8:46 AM, Tommy Pham tommy...@gmail.com wrote: On Tue, Oct 12, 2010 at 4:45 AM, chris h chris

Re: [PHP] Array / form processing

2010-10-07 Thread chris h
']; } Technically the above IF's are optional, but they are proper syntax. I don't know how you are with OOP, but you may have more luck using objects instead of a complex array. Chris H. On Thu, Oct 7, 2010 at 3:35 PM, Ron Piggott ron.pigg...@actsministries.orgwrote: I am writing a custom shopping cart

Re: [PHP] Array / form processing

2010-10-07 Thread chris h
=1234 / input type=submit value=Remove class=place_order/ /form Without knowing what else is going on in your page, and how the request is being handled on the server, it's kind of hard to give exact advice. :) Chris H.

Re: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-05 Thread chris h
If I paste the script into a web page What do you mean by paste the script into a web page? Can you tell us exactly what you are doing when you do that? Chris. On Tue, Oct 5, 2010 at 7:54 AM, Col Day colind...@aol.com wrote: Hi Shreyas, Ok, as far as I can tell the script should show

Re: [PHP] which one is faster

2010-10-05 Thread chris h
Benchmark and find out! :) What are you using this for? Unless you are doing something crazy it probably doesn't matter, and you should pick whichever you feel looks nicer / is easier to code in / etc. Chris H. On Tue, Oct 5, 2010 at 3:23 PM, saeed ahmed saeed@gmail.com wrote: $a = 'hey

Re: [PHP] which one is faster

2010-10-05 Thread chris h
(29) By concat op: 2.1521489620209 string(27) By string: 2.2470209598541 string(29) By concat op: 2.1347990036011 string(27) By string: 2.1982681751251 I would say that under virtually all cases that difference is less then negligible. Chris H. On Tue, Oct 5, 2010 at 3:35 PM, Ashley Sheridan

Re: [PHP] which one is faster

2010-10-05 Thread chris h
On Tue, Oct 5, 2010 at 3:53 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2010-10-05 at 15:46 -0400, Steve Staples wrote: On Tue, 2010-10-05 at 20:35 +0100, Ashley Sheridan wrote: On Tue, 2010-10-05 at 15:28 -0400, chris h wrote: Benchmark and find out

Re: [PHP] Variable (Class instantiation) collision

2010-10-05 Thread chris h
Just to clarify, both packages are instantiating and calling their respective database classes from the $db var, which is in the global scope. Is this correct? This is why I hate the global scope, I hate it, I hate it! On Tue, Oct 5, 2010 at 3:47 PM, Brian Smither bhsmit...@gmail.com wrote: I

Re: [PHP] which one is faster

2010-10-05 Thread chris h
On Tue, Oct 5, 2010 at 3:58 PM, Steve Staples sstap...@mnsi.net wrote: On Tue, 2010-10-05 at 20:53 +0100, Ashley Sheridan wrote: On Tue, 2010-10-05 at 15:46 -0400, Steve Staples wrote: On Tue, 2010-10-05 at 20:35 +0100, Ashley Sheridan wrote: On Tue, 2010-10-05 at 15:28 -0400, chris h

Re: [PHP] Variable (Class instantiation) collision

2010-10-05 Thread chris h
Short of refactoring ApplicationB, can you set it up as a SOAP/REST service that AppA calls? On Tue, Oct 5, 2010 at 5:02 PM, Brian Smither bhsmit...@gmail.com wrote: Just to clarify, both packages are instantiating and calling their respective classes from the $db var, which is in the global

[PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread chris h
NOT an on-demand service. That is, when someone uploads a file they get a task_id which allows them to check the status of their excel file. So the solution does not need to be a fast one! Thanks, Chris.

Re: [PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread chris h
Thanks Jessen/Marc, though the user provided format can be in xls, xlsx, or csv. So i need a solution to support all formats. Thanks for the ideas shiplu I'll get with the team and see if there's anything there we aren't trying. Chris. On Mon, Oct 4, 2010 at 3:01 PM, shiplu shiplu

Re: [PHP] Syntax Error

2010-10-03 Thread chris h
syntax looks right. Chris.

Re: [PHP] Little Parsing help...

2010-10-02 Thread chris h
-replace.php I gotta run (else I would type some more) but let me know if you want any advice on using those! Chris. On Fri, Oct 1, 2010 at 11:20 AM, Don Wieland d...@pointmade.net wrote: The logic I need is pretty straight forward, but I am having a hard time replicating it using PHP functions. I

Re: [PHP] Scraping Multiple sites

2010-10-02 Thread chris h
it a list of the urls you want it to hit. It can crawl one url, record the findings, move to the next, repeat. Chris.

Re: [PHP] Array question

2010-09-25 Thread chris h
'; - And yes, in your example $results[] would be equivalent to $results[$j] For more reference: http://www.php.net/manual/en/language.types.array.php Chris H. On Sat, Sep 25, 2010 at 4:31 PM, MikeB mpbr...@gmail.com wrote: I have the following code: $query = SELECT * FROM classics; $result

Re: [PHP] Re: Copying an Object

2010-09-24 Thread chris h
On Fri, Sep 24, 2010 at 8:35 AM, Peter Lind peter.e.l...@gmail.com wrote: On 24 September 2010 14:22, Bob McConnell r...@cbord.com wrote: From: David Hutto On Fri, Sep 24, 2010 at 4:09 AM, Gary php-gene...@garydjones.name wrote: Daniel Kolbo wrote: Say you have two classes: human

Re: [PHP] Re: Copying an Object

2010-09-24 Thread chris h
Gang of Four http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612 An excellent book on OOP. Chris H. On Fri, Sep 24, 2010 at 9:34 AM, Bob McConnell r...@cbord.com wrote: From: chris h On Fri, Sep 24, 2010 at 8:35 AM, Peter Lind peter.e.l...@gmail.com

Re: [PHP] if/elseif being treated as if/if

2010-09-24 Thread chris h
Andy I see no reason why both echo's would fire; unless this block of code gets executed multiple times. can we see more of the code? Chris H. On Fri, Sep 24, 2010 at 1:50 PM, Andy McKenzie amckenz...@gmail.com wrote: Hey folks, Here's the deal. I have the following code: if($col_vals

Re: [PHP] Copying an Object

2010-09-22 Thread chris h
if I'm wrong. Is it possible that there's a more elegant solution to your problem that does not include a mass copy of all an object's properties? (e.g. using statics like Mr Bungle suggested or perhaps some nifty design pattern?) Chris H. On Wed, Sep 22, 2010 at 7:35 AM, Daniel Kolbo kolb0

Re: [PHP] Adjusting Session Times

2010-09-14 Thread chris h
may want to set some checks to ensure that the client's preference is within a specific range (e.g. between 30 minutes and 16 hours). Chris.

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread chris h
; ... etc. This would put the consequences of the system off on the client. Because if this system works then there will be consequences and you'll look like a jerk :-) Btw, are there no cron / batch jobs that need to run over night? Chris

Re: [PHP] newbie question about code

2010-09-10 Thread chris h
I would check this out to give you a decent understanding of php's oop. http://php.net/manual/en/language.oop5.php Chris. On Fri, Sep 10, 2010 at 2:27 PM, Adam Williams adam_willi...@bellsouth.netwrote: I'm looking at someone's code to learn and I'm relatively new to programming

Re: [PHP] Zend framework

2010-09-10 Thread chris h
Thanks for the info everyone, this is pretty much what I was expecting to hear about it. I think I'll probably stick to using it as a toolkit. Thanks, Chris. On Fri, Sep 10, 2010 at 3:01 PM, Daevid Vincent dae...@daevid.com wrote: Sorry wrong thread. Damnit. I meant that link for the guy

[PHP] Zend framework

2010-09-09 Thread chris h
that is strict and uses OOP MVC well, and I hear it does; though I also have the impression that it's slow and bloated... Anyways, I was curious if any of you have some general advice / good things / horror stories on the Zend framework? Thanks, Chris.

Re: [PHP] Reformat array result.

2010-09-08 Thread chris h
] ); } Now if $timestamp[ $i ] does NOT correspond to $eventCount[ $i ] then I think we'll need you to explain how that relationship works, unless I missed something :) Chris. On Wed, Sep 8, 2010 at 1:02 PM, Paul Halliday paul.halli...@gmail.comwrote: I have been

Re: [PHP] Hi

2010-09-06 Thread chris h
You can check the extension of the uploaded file http://www.php.net/manual/en/features.file-upload.post-method.php But to be sure that it's truly a zip file you could actually open the file with php's zip function. http://php.net/manual/en/ref.zip.php Chris. On Mon, Sep 6, 2010 at 9:46 AM

  1   2   3   4   5   6   7   8   9   10   >