On Tue, Jul 5, 2011 at 3:29 PM, wrote:
> Anyone know how to make Outlook changes its reply position.
>
> I am using outlook 2007 and I do not find an option for this.
>
Google delivers...
http://sourceforge.net/apps/mediawiki/macros4outlook/index.php?title=QuoteFix_Macro
-Stuart
itable? what should i do for resolve my problem?
the the title
7-6-2011
book 1
author 1
book 2
auther 2
END;
$xml = simplexml_load_string($data);
$arr = array();
foreach ($xml->data->book as $book)
{
$arr[] = array('name' => (string)$book->name, 'author' =>
(string)$book->author);
}
var_dump($arr);
?>
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
On Tue, Jul 5, 2011 at 4:48 PM, Jim Giner wrote:
>
> "Stuart Dallas" wrote in message
> > If you're looking for a sane reason why Microsoft software is popular in
> > the
> > business world you're not going to find one. >
>
> No - you missed m
-worthy amount of time!
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
On Tue, Jul 5, 2011 at 5:10 PM, Jim Giner wrote:
> "Stuart Dallas" wrote in message
> news:CAJgGj58OkZLiakMMo8qmuhg68BamYOi+TLNGyzze=iyppbj...@mail.gmail.com...
> > Again, please include the list when replying!
> >
>
> But don't include the poster's
On Tue, Jul 5, 2011 at 6:43 PM, Tamara Temple wrote:
>
> On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote:
>
>
>> $arr[] = array('name' => (string)$book->name, 'author' =>
>> (string)$book->author);
>> }
>>
>
> Interesti
hat the preceding $ causes PHP to interpret the next token
"{XYZ}" as a variable or a constant, but without that preceding $ it has no
way to know you're trying to use a constant. As Curtis points out, the only
way to insert a constant into a string is through concatenation.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
On Wed, Jul 6, 2011 at 3:01 AM, Kirk Bailey wrote:
>
>
> On 7/3/2011 4:53 PM, Stuart Dallas wrote:
>
>> Only allowing them to access the URL once is a bad idea. If their download
>> fails, is corrupt, or any number of other things go wrong (think
>> accelerators, b
On 6 Jul 2011, at 20:03, "Jim Giner" wrote:
> Frankly, I don't know why you are getting mail from me - I'm not sending you
> any.
FFS and for the last time... THIS IS A MAILING LIST which you access through a
newsgroup gateway. It is NOT a newsgroup!
-Stuart
--
S
On Wed, Jul 6, 2011 at 8:25 PM, Jim Giner wrote:
>
> "Stuart Dallas" wrote in message
> news:e73bd95e-0524-4743-92be-ae211b57e...@3ft9.com...
> On 6 Jul 2011, at 20:03, "Jim Giner" wrote:
> > Frankly, I don't know why you are getting mail from me - I
On Wed, Jul 6, 2011 at 6:16 PM, Kirk Bailey wrote:
> **
>
> On 7/6/2011 9:31 AM, Stuart Dallas wrote:
>
> On Wed, Jul 6, 2011 at 3:01 AM, Kirk Bailey wrote:
>>
>>
>> On 7/3/2011 4:53 PM, Stuart Dallas wrote:
>>
>>> Only allowing them to access t
s want to share the asset(s) they're downloading,
they will. Nothing you can really do about that.
> On 7/6/2011 4:34 PM, Stuart Dallas wrote:If you read back you'll note I
> said "generate a unique token linked to their account." At no point did I
> say the to
Again, please include the list when replying.
On Thu, Jul 7, 2011 at 1:06 AM, Kirk Bailey wrote:
> **
>
>
> On 7/6/2011 6:08 PM, Stuart Dallas wrote:
>
> Please include the list when replying.
>
> On Wed, Jul 6, 2011 at 10:20 PM, Kirk Bailey wrote:
>
>> Um,
to the card holder, is
prohibited.
Legal issues aside, it's still just bits and bytes. Watermarks can be
removed.
Now, what do I win?
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
On 7/6/2011 8:28 PM, Stuart Dallas wrote:
>
> Again, please include the list when replying.
>
>
you want.
This has nothing to do with PHP (did it ever?), so I suggest you find a
snort mailing list and ask there.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
PulledPork to update the rules since it seems to be the
officially supported method? PHP can shell out to a Perl script in exactly
the same way it can shell out to wget.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
9480af637e53c7aae823a40a131edc1343db5. That means you can't simply
download from that URL, you'll need to programatically log into the website,
find the link and then do the download.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
id watermark.
The legal issues aren't the main point. It doesn't matter what you watermark
it with, the watermark can be removed!
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
On 7/7/2011 10:07 AM, Stuart Dallas wrote:
>
> PLEASE INCLUDE THE LIST WHEN REPLYING!
>
> On
On Tue, Jul 12, 2011 at 2:40 PM, Kirk Bailey wrote:
>
>
> On 7/11/2011 4:00 AM, Stuart Dallas wrote:
>
>> Why do you insist on not including the list when replying to me??
>>
> I was attempting to be polite. Recall that I was criticizing your response,
> an
5] =>
> Yeast )
>
> The most popular word is “Parable”. I would like it to be the first result.
> Then the second most popular word is “Lost”.
> Then all the remaining words are only used once.
If I'd have spent two minutes reading the array section of the manual first I
On Thu, Jul 14, 2011 at 1:37 PM, Steve Staples wrote:
> On Wed, 2011-07-13 at 23:27 +0100, Tim Streater wrote:
> > A valid variable name starts with a letter or underscore
>
> If I am not mistaken, $_1 is not a valid variable name.
You are mistaken. Try it.
-Stuart
--
Stuart
ould have
> > back-frickin-tracked from the principle, to the meaning, to the word
> itself.
> > That would have been so much more efficient... NOT!
>
> Have I told you lately you can bite me?
Haven't you been told before that offers of and requests for services
tain HTML-like code.
Choose...
$value)
{
$selected = '';
if ($value == $market)
{
$selected = 'selected';
}
echo '',
htmlspecialchars($value.' : '.$market_name[$key]), '';
}
?>
-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
>>
>
> This appears like a typical JavaScript thing to me. If you insist on not
> using JS, you could probably use AJAX+PHP to do it.
> However, Jav
/gist.github.com/1124666. I haven't used it for a little while so there
are probably new devices out there that it can't detect but it should give you
a good starting point.
-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
. There is one
exception, if var is NULL, 0 will be returned."
IOW, if you pass it a variable, that has one element, so it returns 1. An array
may have 0 to many elements, and null, logically, has none. Rocket science this
ain't!
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
-
trap unexpected basic types - or at
> least to document what is expected.
>
> To confuse me a bit further, I can't find a definitive list of the
> basic type names. For example, is it "integer" or "int"?
The manual says...
"Type Hints can only be of the o
ions spring to mind...
1) Combine them into one form in the HTML.
2) Run some JS on submit that combines the values into one form and submits
that.
3) Use AJAX to submit the forms separately but simultaneously.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List
request, and serialised and written back at the end. In fact, with
larger amounts of data you may find file-based storage to be faster.
-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
t; As I said, I prefer working with $_SESSION instead storing data into session
> table, but always wondered is that correct approach.
Whatever session storage mechanism you use, you can continue to use $_SESSION.
The process Chris describes in his post replaces the engine that loads and
saves the contents of $_SESSION. You might want to read a lot more about how
sessions work before you consider customising the storage mechanism.
-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
. A script that stops unexpectedly is almost certainly due to a fatal
error, and if you're not seeing the error message because either of those
settings are not set to display them, you're coding blind!
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List (http://www.
is open I need the FOREACH (above) to parse the content which
> ends with an “INSERT INTO” for a mySQL table.
Look at the manual pages for glob and readdir - both will do what you need.
-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
inutes. You
can then watch the server and tune the number of concurrent job processors so
you get the optimum balance between load and speed.
-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
1], and an equivalent C
script gave the same result so it's not a bug in PHP. Locales can't define
rounding rules, so it's not related to that.
Googling for strfmon rounding errors doesn't get any useful results, so either
this is by design or it's never caused anyone a prob
Oops...
On 16 Sep 2011, at 16:36, Stuart Dallas wrote:
> On 16 Sep 2011, at 15:58, Cyril Lopez wrote:
>
>> Can someone help me understand how money_format() rounds numbers ?
>>
>> > setlocale(LC_ALL, 'fr_FR.UTF-8');
>> $price = 12.665;
>> echo
. You can use
gzopen to open gzipped files and manually feed the data into xml_parse. Be sure
to read the docs carefully because there's a lot to be aware of when parsing an
XML document in pieces.
-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
these 'slashed' vars into the database.
> But when I go to phpadmin on my site the table does not contain any slashes.
>
> Where are they going?
1. Why are you using addslashes?
2. MySQL will strip one level of backslashes.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http:/
ysql_real_escape_string() instead of addslashes()
http://stut.net/2011/09/15/mysql-real-escape-string-is-not-enough/
-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
On 4 Oct 2011, at 20:44, Jim Giner wrote:
> "Stuart Dallas" wrote in message
> news:da8b3499-4d11-4053-9834-68b34d030...@3ft9.com...
> 1. Why are you using addslashes?
>
> 2. MySQL will strip one level of backslashes.
> *
>
>
> I thought you
On 5 Oct 2011, at 00:04, Mark Kelly wrote:
> Hi.
>
> On Tuesday 04 Oct 2011 at 21:39 Stuart Dallas wrote:
>
>> http://stut.net/2011/09/15/mysql-real-escape-string-is-not-enough/
>
> Thanks. I followed this link through and read the full message (having missed
> it
On 5 Oct 2011, at 00:45, Tommy Pham wrote:
> On Tue, Oct 4, 2011 at 4:11 PM, Stuart Dallas wrote:
> On 5 Oct 2011, at 00:04, Mark Kelly wrote:
>
> > Hi.
> >
> > On Tuesday 04 Oct 2011 at 21:39 Stuart Dallas wrote:
> >
> >> http://stut.net/2011/09
On 5 Oct 2011, at 01:13, Tommy Pham wrote:
> On Tue, Oct 4, 2011 at 4:49 PM, Stuart Dallas wrote:
>
> On 5 Oct 2011, at 00:45, Tommy Pham wrote:
>
>> On Tue, Oct 4, 2011 at 4:11 PM, Stuart Dallas wrote:
>> On 5 Oct 2011, at 00:04, Mark Kelly wrote:
>>
>&g
On 5 Oct 2011, at 02:02, Tommy Pham wrote:
> On Tue, Oct 4, 2011 at 5:51 PM, Stuart Dallas wrote:
> On 5 Oct 2011, at 01:13, Tommy Pham wrote:
>
>> On Tue, Oct 4, 2011 at 4:49 PM, Stuart Dallas wrote:
>>
>> On 5 Oct 2011, at 00:45, Tommy Pham wrote:
>>
&
On 5 Oct 2011, at 02:07, Jeremiah Dodds wrote:
> On Tue, Oct 4, 2011 at 7:51 PM, Stuart Dallas wrote:
>> As for the overhead I very much doubt there's much difference between that
>> and the overhead of prepared statements.
>
> Probably not. As an aside, I'm r
On 5 Oct 2011, at 02:16, Jeremiah Dodds wrote:
> On Tue, Oct 4, 2011 at 8:10 PM, Stuart Dallas wrote:
>> Prepared statements incur an additional hit against the DB server to prepare
>> the statement.
>
> But only once, right? This could, of course, still be a downside
&
ess, they'll simply be able to open your PHP file and see it
there. Even if you're using something like Zend Guard, the string literal will
not be difficult to extract.
-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
die("problem with sql: $alias_sql_stmt");
> }
>
> Could you please tell me what's wrong with the line 1050 ? I've been
> pulling my hair out (figuratively speaking) trying to understand why the
> compiler sees this line as a problem. Tha
ing or similar error, the
highlighting should tell you where that problem is.
-Stuart
> From: Stuart Dallas [mailto:stu...@3ft9.com]
> Sent: Thu 10/13/2011 12:04 PM
> To: David Savage
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] FW: parse error
>
> On 13 Oct 2011, at 18
correct, so try these changes...
> $im = dirname(__FILE__).'/'.$_GET['im'].'.png';
and...
> $save = dirname(__FILE__).'/cache/'.$_GET['im'].'_'.$degrees.'.png';
You also have a pretty major hole here because you're
e on a black screen).
As I said, get one. There are loads of free editors for all operating systems
that do syntax highlighting for PHP. Get one, load the file up in that and have
a look.
-Stuart
> From: Stuart Dallas [mailto:stu...@3ft9.com]
> Sent: Thu 10/13/2011 1:43 PM
> To: Da
buffered_query carefully before you start
using it: http://php.net/mysql_unbuffered_query
> 3) Finally, what is the efficient way to retrieve thousands or records which
> need to be processed at once? Using LIMIT?
Yes, use mysql_buffered_query, or mysql_query with limit to work through the
entary coming right through to
>> the next Friday.
>> Nice :)
>
>This is nothing compared to how it used to be ~2007-08. ;-P
Ahh, the "good old days"!
-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
fore the session_start tag... have fixed that. Any info is
> appreciated.
You have PHP errors somewhere on your site. The error messages contain links
that could result in those URLs. Find out what pages are linking to those URLs
and check them for errors.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://
lookup of web1/web2 being performed? Have you tried the lookup on the
server?
Alternatively try connecting to the memcached servers using netcat or telnet -
does that exhibit the same delay?
-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
errors but others here may be able to
help you with that.
As far as your task goes it seems pretty straightforward. Use unlink() to
delete the existing file if file_exists() returns true, then use touch() to
create the new, empty file. Simples.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.co
P I use the Mailparse extension: http://php.net/book.mailparse
Here's a (somewhat over-complicated) example from an old version of TwitApps
when I processed Twitter email notifications: https://gist.github.com/1360403
-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
awake. I kind of get it right
> now, but I need to look more closely.
Good stuff. I've resurrected an article that used to be on my site that
explains that example code in a bit more detail:
http://stut.net/2011/11/12/handling-email-notifications/ - hopefully that will
make it less o
elevant.
I'm curious to know what your "well-developed sense of all of that" does when
in lieu of auto-incrementing fields, and why.
The only legitimate reason I've ever come across to avoid them is when you
expect to need to partition data across multiple master DB servers.
to comment
on their current mathematical difficulties.
Hmm.
D'oh!
But the point still stands: -1 !== null.
-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
On 17 Nov 2011, at 16:33, Tedd Sperling wrote:
> On Nov 17, 2011, at 11:07 AM, Stuart Dallas wrote:
>> On 17 Nov 2011, at 16:01, Tedd Sperling wrote:
>> To all:
>>>
>>> Okay, so now that we have had people reply, here's my take.
>>>
>>>
y evidence!
> It's another nail in the coffin of deity constructors.
Not even slightly.
But none of this has anything even vaguely related to 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
On 17 Nov 2011, at 20:17, Tedd Sperling wrote:
> On Nov 17, 2011, at 11:58 AM, Stuart Dallas wrote:
>> The epoch specifies the exact time that 0 represents. It makes no claims as
>> far as that being the start of anything...
>>
>> "defined as the number o
ing to do with what I
>> observed nor addressed in my post.
>
> My observations are demonstrated here:
>
> http://www.webbytedd.com//strtotime/index.php
Your test code is flawed because strtotime returns an error when you pass it
null. Your code is passing that false to getdate, which is interpreting it as
an integer, which would be 0.
-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
Hostname($full = false)
{
$retval = `hostname`;
if (!$full) {
$retval = array_shift(explode('.', $retval));
}
return $retval;
}
-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
On 26 Nov 2011, at 00:24, Stuart Dallas wrote:
> On 26 Nov 2011, at 00:14, Andreas wrote:
>> Hi,
>> how could I identify the server the script runs on?
>>
>> I've got a testserver on Windows and a remote system on Linux that need a
>> couple of different set
On 26 Nov 2011, at 00:24, Stuart Dallas wrote:
> On 26 Nov 2011, at 00:14, Andreas wrote:
>> Hi,
>> how could I identify the server the script runs on?
>>
>> I've got a testserver on Windows and a remote system on Linux that need a
>> couple of different set
ed
them from somewhere when the user logged in, so simply store a user identifier
in the session and use that to retrieve the DB access details.
You appear to be wanting to overcomplicate your application for no good reason
that I can see. Beyond the fact that you think it's duplicating fu
tead of storing
them in the session?
-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
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
On 3 Dec 2011, at 18:07, Andre Majorel wrote:
> On 2011-12-03 17:41 +0000, Stuart Dallas wrote:
>> On 3 Dec 2011, at 16:57, Andre Majorel wrote:
>>
>>> Hello all. I need to purge old records from application tables
&g
read it, though.
>
> So how would I store it and restrict access to it?
Put it outside the document root so it can't be accessed directly. The only
chance of it being displayed to a user then is via a really bad
mis-configuration of the web server, or an error in the code, neither o
code.
>
> I've done some web searching, looked through the PHP docs and had a
> look through the archives here, but not managed to find anything
> (sorry if I've missed anything obvious).
$url = str_ireplace('webcal://', 'http://', $url);
-Stuart
--
Stua
On 6 Dec 2011, at 11:05, Davo Smith wrote:
> On Tue, Dec 6, 2011 at 11:01 AM, Stuart Dallas wrote:
>> On 6 Dec 2011, at 10:57, Davo Smith wrote:
>>
>>> Does anyone know if there is a simple way to convince
>>> 'file_get_contents' to treat webcal u
On 6 Dec 2011, at 11:05, Davo Smith wrote:
> On Tue, Dec 6, 2011 at 11:01 AM, Stuart Dallas wrote:
>> On 6 Dec 2011, at 10:57, Davo Smith wrote:
>>
>>> Does anyone know if there is a simple way to convince
>>> 'file_get_contents' to treat webcal u
construct($db = 'mysql')
{
require __DIR__.'/db/'.$db.'.php';
$this->db = new MySQL();
}
}
$test = new application('mysql');
$test->db->connect();
-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
27;re doing, an array would be a lot
more efficient...
$saving_list_options = array(
'FR' => 148,
'EN' => 147,
);
$saving_list = isset($saving_list_options[$_POST['custom']]) ?
$saving_list_options[$_POST['custom']] : 152;
Thinking a little beyond that, is that list of options really hard coded or do
they exist elsewhere (e.g. in a database)? If they do then you really should be
getting the value from there.
-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
so have access to
your source code (since the web user must be able to read both), especially if
you're using a shared host. If you're using a dedicated server then you should
address the reason you're worried about people having access to session files
first.
-Stuart
--
Stuar
ol over it).
If I'm interpreting the requirement correctly my solution is almost certainly
overkill, and a simple Javascript solution would be more than sufficient.
-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
/mail.aol.com/34188-111/aol-6/en-us/Suite.aspx";
> "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
One point of clarity... the browser sends the referrer header, not the page
that contains the link, whether it's a simple website or an application.
Websites have absolutely no control over 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
type thing?
if (mysql_num_rows($result) > 0) {
...
}
http://php.net/mysql_num_rows
And while you're there, have a browse of the function list in the left column.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
essions but I highly doubt
there is anything significantly different in there to the way PHP does it. For
all intents and purposes the isolation of a given user's session is guaranteed
by the use of cookies. As I mentioned earlier, the session ID is stored in a
cookie. Cookies are not sh
On 17 Jan 2012, at 02:21, Haluk Karamete wrote:
> Well Stuart,
>
> When I said this
>
>> In ASP, I create a virtual app at the IIS server - assigning a virtual
>> dir path to the app, and from that point on, any page being served
>> under that virtual path is trea
g the data will be retained on the server.
If you want a full description of how the session cleanup logic works I'm happy
to provide it, but you should be able to work it out by looking at the
descriptions of the gc_probability, gc_divisor and gc_maxlifetime settings on
this page:
http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
according to your
timescale. In the meantime please understand that nobody is getting paid to
improve the NNTP server, and since it's in no way a priority it lives at the
bottom of a very large pile of things to do.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
print "Dosya yüklenemedi. Tekrar deneyiniz";
>
> }
>print "";
> }
>
> ?>
>
> method="post">
>Select image:
>
s($path)) {
> require_once $path;
> }
> }
> ?>
>
> As stated, when I change __autoload to spl_autoload_register I get the can't
> be redeclared error. Any ideas?
spl_autoload_register is a function you call, not a function you define. See
the
age:
>>
>
> You can not use
>action="upload_file.php?upload=1"
>
> together with
>method="post"
>
> and you have to use
>
>
>
There is nothing stopping you doing this. Mixing GET and PO
ere.
}
// Clean up the statement
$stmt->close();
}
return $message
}
Also, I know this is probably just an example, but based on the function
parameters either your SQL is wrong or the order of the parameters is wrong
when binding, possibly both.
-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
ly based upon the size of the display.
Responsive designs such as that described in the A List Apart article Mari
posted are fantastic tools for achieving this goal.
-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
rt of thinking is what
resulted in goto gaining a tarnished reputation because people abused the
feature.
Language features don't write bad code... programmers do!
-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
antage of the additional
features of mobile devices where it makes sense because that's where the real
game-changing power lies.
-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
nts must be given a default value...
function my_func(&$arg1, $arg2, $arg3, $arg4 = null, $arg5 = null, &$arg6 =
null)
Note that passing a default value by reference was not supported prior to PHP5.
All the relevant details are here: http://php.net/functions.arguments
-Stuart
.
The only thing you need to bear in mind if you're going to modify them is that
other code that's using them will also see your changes, so beware of knock-on
effects.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
27;
'.escapeshellarg('C:/Program
Files/GAMS23.7/trnsport_php.gms').' 2>&1';
$out = `$cmd`;
var_dump($out);
Try that, then you can build logic that checks the output for errors. You may
also want to make sure that safe_mode is disabled, though I doubt that's the
problem.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
a command and return the output:
http://php.net/language.operators.execution
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
e after it.
> On Fri, Feb 17, 2012 at 4:10 PM, Negin Nickparsa wrote:
> ok sorry,I tried yours It generates Null.
>
>
> On Fri, Feb 17, 2012 at 4:06 PM, Stuart Dallas wrote:
> Please quote the relevant parts of the email you're replying to - your emails
> have mass
\ but leave the space after it.
>
>> On Fri, Feb 17, 2012 at 4:10 PM, Negin Nickparsa wrote:
>> ok sorry,I tried yours It generates Null.
>>
>>
>> On Fri, Feb 17, 2012 at 4:06 PM, Stuart Dallas wrote:
>> Please quote the relevant parts of the email you
ould prevent issues
like this being deployed to your production servers. Sure, instrument to help
resolve these issues now, but if I were you I'd be putting a lot of effort into
improving your development process. Contact me off-list if you'd like to talk
about this in more 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
On 29 Feb 2012, at 01:13, Daevid Vincent wrote:
>> -Original Message-
>> From: Stuart Dallas [mailto:stu...@3ft9.com]
>>
>> Seriously? Errors like this should not be getting anywhere near your
>> production servers. This is especially true if you
ar, and compare that figure to what a SaaS solution
will cost for one year. Unless your requirements are sufficiently different to
that which already exists, or you want to develop this as a learning
experience, grab a wheel off the shelf.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.c
ost for their site so it responds to two
domain names. Firstly their actual domain name, and secondly something like
theirdomain.com.preview.techsware.in (this would be *.preview.techsware.in in
your zone file). That way they just need to visit
http://theirdomain.com.preview.techsware.in/ and th
801 - 900 of 1126 matches
Mail list logo