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 wrote: I'm currently writing a paper on the evolution of PHP and web development/security as a

[PHP] Source code of original PHP release.

2013-05-22 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 o

Re: [PHP] A little confused

2013-04-23 Thread Chris Knipe
Thanks for the replies guys - figured it out! Using date() directly with strtotime() and the appropriate formating works :) date("D, \\t\h\e jS \o\\f M Y", strtotime($_SESSION['ExpiryTime'])) On Tue, Apr 23, 2013 at 12:16 PM, shiplu wrote: > > On Tue, Apr 23, 20

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 wrote: > On 23 Apr 2013, at 11:07, "Chris Knipe

[PHP] A little confused

2013-04-23 Thread Chris Knipe
ven in I've had a look at the date/time function 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] PHP fails to install on Ubuntu 12.10. What's going on?

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

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

2013-02-14 Thread Chris Bergstresser
in Command line code on line 1". What went 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] 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 wrote: > > > > On Tue, Feb 12, 2013 at 7:06 PM, Chris MacPherson wrote: > >> Hi, >> >> Just wondering if anyone can tell me if Kyoto Cabinet support will be >> added >> t

[PHP] Tokyo Cabinet or Kyoto Cabinet support

2013-02-12 Thread Chris MacPherson
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] Can I do this in a single match/replace?

2012-06-27 Thread Chris Testroet
tr_replace. Thoughts? Other ideas? Thanks. Look into preg_replace, with the "e" 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
0.0.0.0 - 255.255.255.255 is denied 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 Purves" 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

[PHP] help with preg_match

2012-06-03 Thread Chris Purves
s: preg_match('/[^>]*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 whe

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
On Fri, Apr 27, 2012 at 11:09 AM, Shawn McKenzie 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, >

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
is how people hack 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

[PHP] url string being split

2012-04-26 Thread Chris Stinemetz
ay ( [id] => Wiser 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

Re: [PHP] MySQL table design

2012-03-22 Thread Chris Stinemetz
On Thu, Mar 22, 2012 at 7:42 PM, Stuart Dallas 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? > &g

[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

[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] Numeric help needed

2012-01-15 Thread Chris Payne
based on $69000.00 as the amount is always 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 wrote: > > > Sent from my iPhone > > On Jan 15, 2012, at 8:25 PM, "Christopher J Payne&

Re: [PHP] PHP 5.3.2 max_execution_time

2012-01-02 Thread Chris Tapp
und 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

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 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 files? Most dis

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/) To

[PHP] PHP 5.3.2 max_execution_time

2012-01-01 Thread Chris Tapp
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 w

Re: [PHP] dev to production server

2011-09-07 Thread Chris Stinemetz
On Wed, Sep 7, 2011 at 6:23 AM, James Yerge 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? > >

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 ser

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

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

Re: [PHP] Dealing with multiple form submissions

2011-08-24 Thread Chris Stinemetz
On Aug 24, 2011, at 3:46 PM, Ashley Sheridan wrote: > > > Mike Mackintosh wrote: > >> >> >> On Aug 24, 2011, at 11:52, John Black >> wrote: >> >>> On 08/24/2011 03:04 AM, Jason Pruim wrote: Wondering what everyone does to prevent multiple form submissions? My form is simply

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
$selected = 'selected'; } echo '', htmlspecialchars($market_name[$key]), ''; } ?> I am using the folling on the posted page. if (! array_key_exists($_POST['market'], $market_name)) { echo "You did not select a ma

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
can't embed div containers within 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

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 subm

Re: [PHP] form handling

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

[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

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

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: Maxim

Re: [PHP] text insertion

2011-08-10 Thread Chris Stinemetz
No luck. Thanks. On Aug 10, 2011 4:17 PM, wrote: > > how about > > echo nl2br($your_content); > > > > > - Original Message - > From: Chris Stinemetz > Date: Wednesday, August 10, 2011 5:09 pm > Subject: Re: [PHP] text insertion > To: "D

Re: [PHP] text insertion

2011-08-10 Thread Chris Stinemetz
> >    Use HTML 'pre' tags: > >         > I just tried that and that puts all the text on a single line. echo ' ' . $posts_row['first_name'] . ' ' . $posts_row['last_name'] . ' ' . date('m-d-Y h:iA', strtotime($posts_row['store_date'])) . ' Broad Band test results: ' . $posts_row['store_tptest

Re: [PHP] text insertion

2011-08-10 Thread Chris Stinemetz
tml source code to see what 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

[PHP] text insertion

2011-08-10 Thread Chris Stinemetz
ion; But when I call the data 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] pass text variables to next page

2011-08-09 Thread Chris Stinemetz
ere, but I can't find it. echo '' . $storerow['store_subject'] . ' at ' . date('m-d-Y', strtotime($storerow['store_date'])); The query: $sql = "SELECT store_id, store_subject FROM stores WHERE store_subject = '

[PHP] pass text variables to next page

2011-08-08 Thread Chris Stinemetz
ay ( [id] => Loma 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 R

[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 die(rep

Re: [PHP] control structure

2011-08-04 Thread Chris Stinemetz
he computer way too 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: http://www.php.net/uns

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 wrote: > On Tue, Jul 19, 2011 at 4:28 AM, Chris Stinemetz > wrote: >> >> Hello, >> >> I am building some select menu's dynamically from a mysql database and >> am cour

[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. $value) {

[PHP] chained select with ajax

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

[PHP] PHP control structure

2011-07-12 Thread Chris Stinemetz
se share. Thank you, Chris public function ShowType() { $sql = "SELECT DISTINCT store_type FROM store_list WHERE id_markets=$_POST[id]"; $res = mysql_query($sql,$this->conn);

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 Mailin

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 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 worked fine up t

Re: [PHP] Installing PHP

2011-07-04 Thread Chris Stinemetz
0, but you may want to double check. Since 2.2 requires php5apache2_2.dll to work correctly. Just a thought, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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" wrote: > Shawn, > I added my php folder to the path but no change. > > "Shawn McKenzie" wrote in message

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

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] 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] php hide menu

2011-06-07 Thread Chris Stinemetz
handle 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

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

[PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Chris Knipe
se I'll have 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] "My truth comes out" [1]

2010-10-21 Thread chris h
ions that should be taken advantage of before 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

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. Chris. On Tue, Oct 19, 2010 at 4:54 PM, chris h wrote: > > Can you paste the index page's code here? If t

Re: [PHP] simple class & constructor

2010-10-19 Thread chris h
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 wrote: > Hi everyone, > > I've been really good at googling to find my a

Re: [PHP] require_once

2010-10-19 Thread chris h
l) and not worrying about requiring all your files is a plus. Chris. On Tue, Oct 19, 2010 at 10:00 AM, jim 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

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] Execute a php page and don't wait for it to finish

2010-10-19 Thread chris h
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 wrote: > Hi List, > > I have a php page that updates data from one database to another w

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

2010-10-14 Thread chris h
#x27;s hard to maintain, scale, 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] Text messaging from the web

2010-10-14 Thread chris h
west: 10digitphonenum...@qwestmp.com > > Larry, it seems like 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] 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 wrote: > On 10/13/2010 10:48 PM, Mattias Thorslund wrote: > >> Hi List, >> >&

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

2010-10-14 Thread chris h
use sign-on data. Additionally, the layout of your page should 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] 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 wrote: > On Tue, Oct 12, 2010 at 4:45 AM, c

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

2010-10-12 Thread chris h
I'm calling 1 user function (the construct) for each set, for a total of 3,684 calls. Of course a down-side is that if there's any logic in your setters then that needs to be replicated in your construct. Another method is to use a single object for all 3684 records. Perhaps you can use the built in Iterator interface which lets your class's objects be used as if they were an array for the purposes of foreach loops. http://php.net/manual/en/language.oop5.iterations.php You would set a pointer to the record you wish to use, and your getters and setters would key off that element of the master array. This should be a fast solution, while still giving you the power of encapsulation, getters and setters. Hope that helps! Chris.

Re: [PHP] Array / form processing

2010-10-07 Thread chris h
I don't know what the context is like, but you may be better off just using an entire form here with hidden fields. i.e. 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] Array / form processing

2010-10-07 Thread chris h
]) && isset($value[2]['quantity']) ) { $personal_quantity = $value[2]['quantity']; } 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.

Re: RES: [PHP] Class mysqli not found

2010-10-06 Thread chris h
Are you doing phpinfo() off the CLI or via apache mod? Is it the same way you are running the actual script that's calling on mysqli? On Wed, Oct 6, 2010 at 4:58 PM, sueandant wrote: > phpinfo() includes mysqli in its detailed output: > > mysqli > MysqlI Support enabled > Client API libr

Re: [PHP] Class mysqli not found

2010-10-06 Thread chris h
/manual/en/mysqli.connect.php Chris. On Wed, Oct 6, 2010 at 4:33 PM, Alejandro Michelin Salomon < amichel...@hotmail.com> wrote: > Sueandant : > > mysqli is set of functions not a class. The name to connect is > mysqli_connect > /** > * > * > * @version $Id$ >

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 wrote: > > >Just to clarify, both packages are instantiating and calling their > >respective classes from the $db var, which is in the global scope. > >Is t

Re: [PHP] which one is faster

2010-10-05 Thread chris h
On Tue, Oct 5, 2010 at 3:58 PM, Steve Staples 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

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 wrote: > I am running into a v

Re: [PHP] which one is faster

2010-10-05 Thread chris h
On Tue, Oct 5, 2010 at 3:53 PM, 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 wrote: > > > > > > > Bench

Re: [PHP] which one is faster

2010-10-05 Thread chris h
ing(30) "By concat op: 2.2123351097107" string(27) "By string: 2.2798750400543" string(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"

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 wrote: > $a = 'hey&#

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 wrote: > Hi Shreyas, > > Ok, as far as I can tell the s

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 w

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

2010-10-04 Thread chris h
is also 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] Syntax Error

2010-10-03 Thread chris h
tSQLValueString($_POST['submitted'], "date")); > > mysql_select_db($database_local, $local); > $Result1 = mysql_query($insertSQL, $local) or die(mysql_error()); > > $insertGoTo = "family_LogIn.php"; > if (isset($_SERVER['QUERY_STRING'])) { > $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; > $insertGoTo .= $_SERVER['QUERY_STRING']; > } > header(sprintf("Location: %s", $insertGoTo)); > } > ?> > > Thanks again for the help. > > Gary > > > > __ Information from ESET Smart Security, version of virus signature > database 5499 (20101003) __ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > MySQL is not liking a query. It looks to be this one: $insertSQL = sprintf("INSERT INTO family (firstname, lastname, email, password, relationship, story, image, ip, submitted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)", I would echo or log $insertSQL just before you pass it to mysql_query() and see if the SQL syntax looks right. Chris.

Re: [PHP] Scraping Multiple sites

2010-10-02 Thread chris h
would be to attempt to create an application that can craw all the sites, without specifics for each one. You could fire it with a single cron job, and give 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] Little Parsing help...

2010-10-02 Thread chris h
nction.str-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 wrote: > The logic I need is pretty straight forward, but I am having a hard time > replicating it using PHP function

Re: [PHP] Array question

2010-09-25 Thread chris h
#x27;; $normal[1] = 'b'; $normal[2] = 'c'; - 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 wrote

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 wrote: > Hey folks, > > Here's the deal. I have the following code: > &

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 wrote: > From: chris h > > > On Fri, Sep 24, 2010 at 8:35 AM, Peter Lind > w

Re: [PHP] Re: Copying an Object

2010-09-24 Thread chris h
On Fri, Sep 24, 2010 at 8:35 AM, Peter Lind wrote: > On 24 September 2010 14:22, Bob McConnell wrote: > > From: David Hutto > > > >> On Fri, Sep 24, 2010 at 4:09 AM, Gary > wrote: > >>> Daniel Kolbo wrote: > >>> > Say you have two classes: human and male. Further, say male extends >

Re: [PHP] Copying an Object

2010-09-22 Thread chris h
ferent class - please correct me 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

Re: [PHP] PHP Email Question

2010-09-20 Thread chris h
r yet use something like phpmailer as Tom suggested. Chris. On Sun, Sep 19, 2010 at 6:37 PM, TR Shaw wrote: > > On Sep 19, 2010, at 6:00 PM, Joe Jackson wrote: > > > Hi > > > > Sorry for the simple question but I am trying to get my head around PHP. > I > >

Re: [PHP] How to store data that doesn't change?

2010-09-18 Thread chris h
On Sat, Sep 18, 2010 at 12:37 PM, Ashley Sheridan wrote: > On Sat, 2010-09-18 at 12:21 -0400, chris h wrote: > > When you really NEED a global resource I'm a fan of a registry class. It's > a little slower but not noticeable in most cases. > > With a registry you ca

Re: [PHP] How to store data that doesn't change?

2010-09-18 Thread chris h
When you really NEED a global resource I'm a fan of a registry class. It's a little slower but not noticeable in most cases. With a registry you can store all global data in a single, controlled area. You can also store arrays and resources instead of just strings. One down side to most registr

Re: [PHP] 1984 (Big Brother)

2010-09-18 Thread chris h
each minute. When the boss leaves the cron doesn't find the file and shuts down the DB, when the boss comes in the cron will see it and starts it up. But Tedd, I'm still thinking that a "dead man's switch" is the way to go. :) Chris. On Sat, Sep 18, 2010 at 8:03 AM, TR Sh

Re: [PHP] Adjusting Session Times

2010-09-14 Thread chris h
ours if he doesn't have one. You 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.

  1   2   3   4   5   6   7   8   9   10   >