Re: [PHP] framework or not

2013-10-26 Thread Stuart Dallas
On 25 Oct 2013, at 15:40, Robert Cummings wrote: > On 13-10-25 10:17 AM, Stuart Dallas wrote: >> On 25 Oct 2013, at 15:01, Robert Cummings wrote: >> >>> On 13-10-24 09:41 PM, Larry Garfield wrote: >>>> On 10/23/2013 08:51 AM, Jay Blanchard wrote: >

Re: [PHP] Persistent connections

2013-10-26 Thread Stuart Dallas
On 25 Oct 2013, at 12:51, Nibin V M wrote: > Thank you for the quick response Stuart...one more doubt..at > http://php.net/manual/en/features.persistent-connections.php they states > > = > This means that when the same client makes a second request to the server, it >

Re: [PHP] framework or not

2013-10-25 Thread Stuart Dallas
writing my own framework to be hugely beneficial to my future productivity, but I might have struggled to justify spending the extra time it took to my employer at the time. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Persistent connections

2013-10-25 Thread Stuart Dallas
will do nothing without complaining. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trying to understand what is happening in this code

2013-10-11 Thread Stuart Dallas
On 11 Oct 2013, at 16:20, Nathan Grey wrote: > Stuart, Jose - Thanks for your quick response. Are you saying that the > processor echos all the html tags it sees. Is it doing something like this to > the script: > > echo > echo The first twenty Fibonac

Re: [PHP] PHP Fatal error: Call to undefined function ()

2013-10-07 Thread Stuart Dallas
On 7 Oct 2013, at 14:34, Michael Alaimo wrote: > On Mon, Oct 7, 2013 at 9:29 AM, Stuart Dallas wrote: >> On 7 Oct 2013, at 14:24, Michael Alaimo wrote: >> >> > We have a server that gets a large number of requests each month. >> > >> > After a perio

Re: [PHP] PHP Fatal error: Call to undefined function ()

2013-10-07 Thread Stuart Dallas
not reference a function, so I found it odd. It did give a line to > a function with array_merge on it. > > Has anyone seen this in the apache error logs? We are using PHP 5.3.3. Show us the line, and a few lines around it. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -

Re: [PHP] Algorithm Help

2013-10-02 Thread Stuart Dallas
dediesel.com/algorithms/building-a-graph-data-structure-in-php/ -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache

2013-09-23 Thread Stuart Dallas
PHP developpers themself should work on this severe security > problem. PHP developers should absolutely validate all content coming in from users in every possible way, but I would be highly dubious about trusting a host who gives the reason above for what I consider a lax and insecure Apach

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Stuart Dallas
e involved in serving a static file, for no reason other than to avoid fixing the web server configuration. A misconfigured web server should be fixed, not worked around. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Stuart Dallas
P's info page then you need to change web host as quickly as possible. I don't care if they fix it - the fact their server was configured to do this by default is enough for me to never trust them again. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] high traffic websites

2013-09-18 Thread Stuart Dallas
server setup, but targeted optimisation is far better than trying generic stuff. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Stuart Dallas
0;less) > > However: PHP should not set the terminal to cooked mode in the first place > > Is there any way in which I can get PHP to not do this ? > > TIA > > I am running PHP 5.3.3 on CentOS 6. Make sure output buffering is off by putting this at the top of your scr

Re: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-04 Thread Stuart Dallas
On 4 Sep 2013, at 00:03, "Daevid Vincent" wrote: >> -Original Message- >> From: Stuart Dallas [mailto:stu...@3ft9.com] >> Sent: Tuesday, September 03, 2013 2:37 PM >> To: Daevid Vincent >> Cc: php-general@lists.php.net; 'Jim Giner' >&g

Re: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Stuart Dallas
at is > also what I illustrated. > > Here is your version effectively: > > private function _normalize_result_set() //Stuart > { > if (!$this->tmp_results || count($this->tmp_results) < 1) > return; > > $new_tmp_resul

Re: [PHP] refernces, arrays, and why does it take up so much memory?

2013-09-03 Thread Stuart Dallas
t when you read it from the source. For example, if reading it from MySQL, $this->tmp_results[$row['id']] = $row when looping around the result set. Also, is there any reason why you need to process this full set of data in one go? Can you not break it up in to smaller pieces that won't put as much strain on resources? -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic Auth

2013-08-28 Thread Stuart Dallas
is a pretty antiquated way to handle authentication these days. Whatever you're using, I wish you all the best with it. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
On 27 Aug 2013, at 17:28, Jim Giner wrote: > On 8/27/2013 11:56 AM, Stuart Dallas wrote: >> Oops, sent this message from the wrong email address, so the list rejected >> it. >> >> Begin forwarded message: >> >>> From: Stuart Dallas >>> Sub

Fwd: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
Oops, sent this message from the wrong email address, so the list rejected it. Begin forwarded message: > From: Stuart Dallas > Subject: Re: [PHP] Basic Auth > Date: 27 August 2013 16:36:27 BST > To: jim.gi...@albanyhandball.com > Cc: php-general@lists.php.net > > On 27 Au

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
On 27 Aug 2013, at 15:51, Jim Giner wrote: > On 8/27/2013 10:39 AM, Stuart Dallas wrote: >> On 27 Aug 2013, at 15:18, Jim Giner wrote: >> >>> On 8/27/2013 10:14 AM, Stuart Dallas wrote: >>>> It's not really confusing so long as you understand how P

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
On 27 Aug 2013, at 15:18, Jim Giner wrote: > On 8/27/2013 10:14 AM, Stuart Dallas wrote: >> It's not really confusing so long as you understand how PHP works. Each >> request is brand new - nothing is retained from previous requests. The two >> variable you're c

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
On 27 Aug 2013, at 15:06, Jim Giner wrote: > > On 8/27/2013 9:46 AM, Stuart Dallas wrote: >> On 27 Aug 2013, at 14:37, Jim Giner wrote: >> >>> I"m using basic auth for a few of my pages that I want to limit access to - >>> nothing of a sensitive n

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
ve your log out link call a Javascript function which sends an XMLHttpRequest with an invalid username and password. The server will return a 401 which you ignore and then take the user to whatever URL you want them to see after they log off. Not pretty, but it works. -Stuart -- Stuart Dalla

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Stuart Dallas
blic site, and that's without getting into all of the improvements that PHP5 has introduced over the past five years! -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Stuart Dallas
On 20 Aug 2013, at 22:00, Ashley Sheridan wrote: > On Tue, 2013-08-20 at 21:44 +0100, Stuart Dallas wrote: >> On 20 Aug 2013, at 21:30, Dan Munro > > wrote: >> >> >> in my opinion, that would be like asking "how big is the internet?". >> &g

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Stuart Dallas
addresses and doesn't come close to answering "how big is the internet," assuming that means how many sites are there rather than how many publicly responsive edge servers exist. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Stuart Dallas
eit incredibly slowly. If he means Java is the most popular as in "developers would prefer to use it" then I'd definitely disagree, but I wouldn't necessarily say that PHP is at the top of that list either. Ultimately I'd want to know what he's trying to prove b

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Stuart Dallas
On 19 Aug 2013, at 16:24, Matijn Woudt wrote: > On Mon, Aug 19, 2013 at 5:20 PM, Stuart Dallas wrote: > On 19 Aug 2013, at 15:56, Matijn Woudt wrote: > >> >> On Mon, Aug 19, 2013 at 11:54 AM, Stuart Dallas wrote: >> On 19 Aug 2013, at 10:49, aesbovis wrote: >

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Stuart Dallas
On 19 Aug 2013, at 15:56, Matijn Woudt wrote: > > On Mon, Aug 19, 2013 at 11:54 AM, Stuart Dallas wrote: > On 19 Aug 2013, at 10:49, aesbovis wrote: > > > I know Javascript can solve it, but I don't want to use Js. > > Thank you all the same. > > I know

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Stuart Dallas
On 19 Aug 2013, at 10:49, aesbovis wrote: > I know Javascript can solve it, but I don't want to use Js. > Thank you all the same. I know you've had the right answer, but I think it's worth pointing out that use of JSON in no way requires Javascript, despite its name.

Re: [PHP] Session_unset - session_destroy issue

2013-08-15 Thread Stuart Dallas
lling session_start will populate it with an existing session, and when the request ends the contents will be stored. Once you've closed or destroyed the session it does not stop working because it's nothing more than a superglobal variable, it just won't be stored at the end of the request. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ambiguous?

2013-08-09 Thread Stuart Dallas
ans with "ambiguous" here? The field exists in both tables, so you need to specify which one you mean. Please learn how to use Google, it knows the answer to almost everything! -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Stuart Dallas
ur code there is something that is assigning to $hello. Find everything that's doing that and look at each instance in detail. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Stuart Dallas
a chat system I'm curious as to how it works, since presence is usually tied closely to how the client is detecting new messages. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 13:25, Karl-Arne Gjersøyen wrote: > 2013/7/22 Stuart Dallas > On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen wrote: > > > 2013/7/22 Stuart Dallas > > > >> > >> On 22 Jul 2013, at 08:04, Tamara Temple wrote: > >> > &

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen wrote: > 2013/7/22 Stuart Dallas > >> >> On 22 Jul 2013, at 08:04, Tamara Temple wrote: >> >>> On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen >> wrote: >>> >>>> Hello agai

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
time to help me. >> >> Karl' > > Either the code you posted isn't the actual code, or if it is, the errors > should be rather obvious. Post *actual* code. The error is rather obvious: it loops around an array running an update statement that will modify a single row in the table, so it's not surprising that it appears like only the last entry in the array has been stored. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:24, Karl-Arne Gjersøyen wrote: > 2013/7/5 Stuart Dallas > >> On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen wrote: >> >>> 2013/7/5 Stuart Dallas >>> >>>> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen >> wrote: >&

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen wrote: > 2013/7/5 Stuart Dallas > >> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen wrote: >> >>> Hello. I have a form in HTML/PHP with for loops that generate a selected >>> list like this: >>> for($

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
8">2829 value="30">3031 value="32">3233 value="34">3435 value="36">3637 value="38">3839 value="40">4041 value="42">4243 value="44">4445 value="46">4647 value="48"

Re: [PHP] Last Record INSERT

2013-06-26 Thread Stuart Dallas
On Wednesday, 26 June 2013 at 19:01, Tedd Sperling wrote: > On Jun 26, 2013, at 1:56 PM, Stuart Dallas (mailto:stu...@3ft9.com)> wrote: > > On Wednesday, 26 June 2013 at 18:39, Tedd Sperling wrote: > > > Let me add, currently I am inserting an email address into a database.

Re: [PHP] Last Record INSERT

2013-06-26 Thread Stuart Dallas
How are you doing the insert? If you're inserting with mysql_query() then that's just as deprecated as mysql_insert_id(). -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Stuart Dallas
g the index is NOT > possible -- this is a relational table thing. > > So, is there a way (programmatically) to set the next number in an > auto-increment? > > Something like: > > alter table abc auto_increment = 2301; > ALTER TABLE tbl AUTO_INCREMENT = 2301; -Stuar

Re: [PHP] Fwd: Is it possible???

2013-06-24 Thread Stuart Dallas
e is going on to give you 227, but variable names are case sensitive which is why you're not getting what you expect. Output: int(223) int(7) -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > -- Forwarded message -- > From: Karl-Arne Gjersøyen > Date: 2013/6/2

Re: [PHP] Is it possible???

2013-06-24 Thread Stuart Dallas
tem_amount_in_store and $update_item_amount_in_store as if PHP should know you mean the same thing. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Strange Problem

2013-06-20 Thread Stuart Dallas
file(__DIR__.'/docs/admin-email.txt'); Prior to 5.3: $fcontents = file(dirname(__FILE__).'/docs/admin-email.txt'); -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP is Zero

2013-06-13 Thread Stuart Dallas
tically, be more explicit. It's fine to be interested in the reasons why it does what it does, but if it's causing you problems then the issue is with your code not being explicit enough, not PHP. -Stuart [1] http://php.net/language.types.string#language.types.string.conversion -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] htaccess to make html act as php suffixed files

2013-06-11 Thread Stuart Dallas
In a .htaccess file. > > However, it works on one site, but not on another -- any ideas as to why? At a rough guess there's an AllowOverride line in the main Apache config that's restricting what you can do in the .htaccess file. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 12:22, Richard Quadling wrote: > On 31 May 2013 12:17, shiplu wrote: > >> On Fri, May 31, 2013 at 5:12 PM, Stuart Dallas wrote: >>> That is not entirely correct. It must be a literal value. The expression >>> 'a'.'b' is

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 12:17, shiplu wrote: > On Fri, May 31, 2013 at 5:12 PM, Stuart Dallas wrote: >> That is not entirely correct. It must be a literal value. The expression >> 'a'.'b' is a constant value. >> I may be being overly picky here, but I think

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
here, but I think it's an important distinction. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
string to a static property ... > >static protected $s_NormaliserScript = __DIR__ . '/normalizedError.php'; > > And I was just surprised. > > That's all. Yes, it has. Initial values class constants and member variables must be literal values. If you need to do that use a constructor. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
On 29 May 2013, at 18:16, Jim Giner wrote: > On 5/29/2013 12:51 PM, Stuart Dallas wrote: >> Please find your caps-lock key and turn it off! >> >> Also, please include the list when replying, or expect an invoice for my >> consulting services. >> >> On 29

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
are legion, try: http://support.simplemachines.org/ -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
a rough guess you mean worthy, not wordy. Worthy of what? You have nothing to prove to me other than the ability to make sense and ask a question that can be answered without four tonnes of interpretation. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > On Wed, May 29, 2013 at 5:30 PM,

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
P you'll probably need to pony up some cash. If you want someone to help you while you're learning, show us that you're working on it and we'll be happy to help. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random

2013-05-23 Thread Stuart Dallas
On 23 May 2013, at 21:51, Last Hacker Always onpoint wrote: > Hey I need code for random number 1-30 for my site. Seriously? Did you try to find out how to do this yourself before asking here? http://php.net/rand And, more generally: http://php.net/docs -Stuart -- Stuart Dallas 3

Re: [PHP] Simple objective which always seems to make me think I'm doing it wrong.

2013-05-23 Thread Stuart Dallas
On 23 May 2013, at 15:54, Richard Quadling wrote: > I'm building an XML file. > > It is within an OOP structure and is pretty simple. > > The method is ... > >/** > * Turn an error from the W2GlobalData service into normal document as > this will make it easier to integrate downstream.

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-17 Thread Stuart Dallas
On 17 May 2013, at 15:04, Tedd Sperling wrote: > Stuart: > > You said: > >> An interface does what it says on the tin: it describes an interface that a >> class can then tell the world it implements. >> >> An abstract class provides functionality as well

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-17 Thread Stuart Dallas
classes so there's no need to publish an interface for them to use. Does that help at all? -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread Stuart Dallas
Globals being used in a function. -Stuart On Tue, May 7, 2013 at 11:06 PM, Jay Blanchard wrote: > I know that I must be missing something really ridiculous, but when I > print_r these arrays they are empty. I have confirmed that $arrayElement > is properly formed, it just s

Re: [PHP] A little confused

2013-04-23 Thread Stuart Dallas
y and didn't realise you were trying to use DateTime objects. $datetime = new DateTime('2013-04-23'); If all you're doing is formatting the date you'll find using date($unix_timestamp) far more efficient than date_format($datetime_object). -Stuart -- Stuart Dalla

Re: [PHP] A little confused

2013-04-23 Thread Stuart Dallas
r: PHP Warning: date_format() expects parameter 1 to be > DateTime, integer given 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?? http://php.net/strtotime -Stuart --

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
ment tool than connecting to a MySQL server and running queries. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
mebody else has built is not. Or, if it makes more sense substitute a car and inventing wheels. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
ationship between PHP and C is the same as that between assembly and C? Hell, take it all the way to punch cards if you want -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Stuart Dallas
ace the first parameter to your mysql_connect call with 'instance43490.db.xeround.com:8904' and it will probably work. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
t an @ in it. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
orthwhile. Also, how well tested is your script? I don't know but I can say with absolute confidence that phpMyAdmin has been tested far more. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > On Apr 21, 2013, at 12:46 PM, David OBrien wrote: > >> Not meaning to beat t

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Stuart Dallas
better a magnum of decent champagne that it works. It's very rare (and pretty stupid) for a web host to allow remote servers to connect to their MySQL instances, unless they have a shared MySQL instance for all of their customers. Given that you have command line access to the MySQL server,

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 21 Apr 2013, at 15:46, tamouse mailing lists wrote: > On Sun, Apr 21, 2013 at 9:12 AM, Tedd Sperling > wrote: >> On Apr 21, 2013, at 9:32 AM, Stuart Dallas wrote: >>> However, a more important question for me is why you are doing this. You >>> say

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Stuart Dallas
you'll "deal with that later," but I question how you're going to deal with it. What exactly are you developing that requires DB credentials to come from a form on a web page? -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Stuart Dallas
form. There are very few legitimate reasons to be doing this, so the question is well worth asking. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] timezone

2013-04-15 Thread Stuart Dallas
of $tz = date.timezone (which makes no sense anyway) But UCT is not the timezone. When this app runs in New Mexico (where I am) it's Mountain time. When it runs in NY it's Eastern. When it runs in Tokyo it's JST, etc. The user has the option of setting the timezone all times are displayed in. They can select any timezone regardless of where they are. The app displays the last update time in the user selected TZ. So I have to convert the time I get from the server to th...@lsces.co.uk>@gmail.com>@gmail.com> You don't need to convert anything! Store as unix timestamps, and call date_default_timezone_set with the user's selection before you use any other date-related functions and everything will just work. This is not as hard as everyone seems to think!​​​-Stuart ​— Sent from my leaf blo...@gmail.com>@lsces.co.uk>@gmail.com>​@lsces.co.uk>@gmail.com>

Re: [PHP] JPGraph new GanttBar ... bar caption on left, right side

2013-04-09 Thread Stuart Dallas
r JPGraph. https://groups.google.com/forum/?hl=en-GB#!forum/jpgraph Would you email the Oxford English Dictionary for help with using the English language? -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Set process custom identifier

2013-04-02 Thread Stuart Dallas
Seriously, PIDs are the way to go! Based on what you've put above you already have some sort of storage that's tracking threads (they have a hash), so why not add the PID to that? Or, even better, use the PID as that hash? -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > On Tue,

Re: [PHP] Set process custom identifier

2013-04-02 Thread Stuart Dallas
just wanting to monitor it from the process that forked it then you don't need to store the PID anywhere other than a variable, and you don't need to wait for it. If you absolutely must do this then the only way is via an extension such as proctitle: http://php.net/setproctitle -St

Re: [PHP] target question

2013-03-25 Thread Stuart Dallas
FORM). > > In the current HTML5 draft, target is explicitly a permitted > attribute of the form tag -- although I believe it was originally > marked as deprecated. Indeed. In fact w3schools.com is known to be a very unreliable source of information these days. My advice would be to avoid

Re: [PHP] application level variable file

2013-03-22 Thread Stuart Dallas
gt; this file like Web.config file for ASP.Net and Application.cfm for > ColdFusion? No. Without the use of extensions, PHP follows a shared-nothing architecture. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Stuart Dallas
y. http://php.net/intro.mysql This issue is problematic for exactly the reason Norah demonstrates above: "it's working." Great that in this case it hasn't been left at that, but most will see it work and think they've "got it right." I believe the community has

Re: [PHP] actually HTML again; resizeing images

2013-03-17 Thread Stuart Dallas
tual image, whether that's due to width and height attributes on an img tag, or CSS styles, or whatever. The specific algorithm used (which I'm guessing is what you mean by "how" is up to the browser and cannot be controlled. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.

Re: [PHP] rather a HTML Q; however 2-FRAME

2013-03-15 Thread Stuart Dallas
wo frames? For that you'll need to use Javascript, or reload the parent frame, neither of which involve PHP. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Accessing Files Outside the Web Root

2013-03-15 Thread Stuart Dallas
ossible. As a professional photographer I made the latter choice a long time ago and haven't looked back since. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Introduction ... !

2013-03-02 Thread Stuart Dallas
gain with php for the past 4.5 >> years but choose to just monitor the list and haven't participated much. >> Perhaps I should participate more. But yeah, I've been here like 12 years >> or so. God I'm getting old. >> [/snip] > No - Tedd is old. The rest of

Re: [PHP] phpinfo()

2013-02-20 Thread Stuart Dallas
> >> Try $_POST['button2'] >> >> Best regards. >> Steven >> > > $_POST['button2'] does not exist. I'm using radio to get aorund it for now. A > button would have been cleaner. You were given the answer, did you not try it? Starting with the code in your original post: 1) Change the type to submit. 2) Remove the onclick. 3) Job done! -Stuart -- Sent from my leaf blower -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined Variables

2013-02-14 Thread Stuart Dallas
On 14 Feb 2013, at 20:57, Al wrote: > On 2/14/2013 1:54 PM, Stuart Dallas wrote: >> Sorry for the top post! >> >> I don't know numbers, but my gut instinct is that the cycles wasted raising >> the notice (it gets raised even if it goes nowhere so turning displa

Re: [PHP] Undefined Variables

2013-02-14 Thread Stuart Dallas
notices. If you're one of them and this statement offends you, you probably know it's right! -Stuart -- Sent from my leaf blower On 14 Feb 2013, at 18:04, Roman Gelfand wrote: > Is there a performance hit when a variable is undefined? or, perhaps, > aside from the obvious

Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-11 Thread Stuart Dallas
On 10 Feb 2013, at 06:57, AmirBehzad Eslami wrote: > Stuart, thanks for your detailed response. > > >> I find it unlikely that Apache is your bottleneck, > >> especially with a service involving MySQL. > >> How have you come to this conclusion? > > A

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Stuart Dallas
On 9 Feb 2013, at 21:00, Jonathan Eagle wrote: > Stuart, > > Thanks for getting back to me you were right - I had misread the > headers_sent() Return Value statement. When I went back and tested > it turns out that the 'initialize' routine is somehow prematurely &

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Stuart Dallas
lp or guidance that can be offered will be greatly appreciated. Check the output buffering settings. You say no errors are displayed, but are you sure that errors are set to be displayed? You mention the headers_sent() result immediately after the header() function call is true. If the header() function call had worked it would not be true, it would be false. You have output being sent to the client before that header() function call. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-09 Thread Stuart Dallas
e data when it's requested, shifting as much of the work as possible to when it is written (assuming a mostly-read service). -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pear Page2

2013-01-06 Thread Stuart Dallas
lvio said "All websites are created manually. (nano + html/css Tags)" he meant "All of the websites are created manually. (nano + html/css Tags)" meaning the sites he's working on rather than every site in existence. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9

Re: [PHP] variable placeholders in a text file

2012-12-31 Thread Stuart Dallas
Please excuse the top post, but this may be helpful: http://stut.net/2008/10/28/snippet-simple-templates-with-php/ -Stuart -- Sent from my leaf blower On 31 Dec 2012, at 19:59, Ashley Sheridan wrote: > On Mon, 2012-12-31 at 13:39 -0600, Nelson Green wrote: > >> Hello, >>

Re: [PHP] Can't use the SNMP class

2012-12-04 Thread Stuart Dallas
The class is only available in PHP 5.4+. http://php.net/snmp.construct -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: shared memory on php servers?

2012-12-04 Thread Stuart Dallas
are separate daemons so you can access them from multiple servers. Also, as Sebastian says, a database is another option unless you have a good reason to want the data in shared memory rather than a DB. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Stuart Dallas
a lot of > people did 30 years ago on 280), not 100, and to make judgements accordingly. > Equally, I have certain expectations when I see a switch statement; it trying > hard to look like if-elseif-etc is not one of them. Why is it their fault for doing 100mph and not yours for assuming they're only doing 70mph? I'm not saying they're right to be doing 100mph, but I'm definitely saying you're wrong for assuming they're only doing 70mph. Assumptions are the mother of all f*** ups. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread Stuart Dallas
lance providing a fast, efficient, correct solution and minimising maintenance issues. I see neither side being compromised by using a switch statement in this manner, in fact I see both sides potentially getting a boost. Just because the usage is unfamiliar or even surprising to you doesn't mean it's wrong. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-11 Thread Stuart Dallas
On 11 Nov 2012, at 19:24, "Terry Ally (Gmail)" wrote: > I reversed it as you suggested and every future show is displaying as having > ended. In that case the code you're showing us is not the code you're running, because that's the obvious error in test.php.

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-11 Thread Stuart Dallas
rrent time is later than the end date of the show, tell them the date of the show hasn't arrived yet. What you mean is: if the current time is later than the end of the show, tell them the show has ended. if ($todaydate < $showenddate): echo "The date of the show has not yet arr

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-11 Thread Stuart Dallas
On 11 Nov 2012, at 19:00, "Terry Ally (Gmail)" wrote: > Hi Shiplu and Stuart, > > Comparing timestamps was my first option. I've reinstated it. Have a look > at http://www.lakesidesurrey.co.uk/test.php (show_source included) and you > will see that PHP is st

  1   2   3   4   5   6   7   8   9   10   >