On Thu, Oct 01, 2009 at 04:23:46PM -0400, Daniel Brown wrote:
> On Thu, Oct 1, 2009 at 16:14, Paul M Foster wrote:
> >
> > Okay, I've figured out how to shove the data through cURL to the
> > receiving URL, but then it occurred to me that the client browser
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote:
> On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote:
> >
> > I'm not sure how to do this. Please no exotic external libraries my
> > shared hosting provider doesn't include. RTFM will be fine; just t
On Thu, Oct 01, 2009 at 12:24:41AM -0400, Daniel Brown wrote:
> On Thu, Oct 1, 2009 at 00:16, Paul M Foster wrote:
> >
> > However, assuming it *wasn't*, I've found the following example from a
> > google search (thank goodness for google's "hinting"
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote:
> On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote:
> >
> > I'm not sure how to do this. Please no exotic external libraries my
> > shared hosting provider doesn't include. RTFM will be fine; just t
do this. Please no exotic external libraries my
shared hosting provider doesn't include. RTFM will be fine; just tell me
which Fine Manual to Read.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
orem ipsum dolor http://www.site.net sit amet';
>
> How can I extract the URL from these strings?
> They can be [http:// + url] or [www. + url].
>
Use the preg_match() function (see
http://us2.php.net/manual/en/function.preg-match.php ) and a good
regular expression from a place lik
e a different field to implement that, such as
"date_added" or "last_name" or something similar. It's best to assume,
when dealing with autoincrement fields, that the numbers placed in them
are random. They are only designed to be unique within that table, to
allow for easy
ue
you set in the value="something" attribute.
Checkboxes and radio buttons are tricky in this way, because they don't
normally return values in the same way an field
does.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sting TCPDF methods to
actually *build* the PDF from scratch, with additional method calls to
put in your content. That is, build and populate each time you need the
form.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I normally browse with Firefox on Linux,
if a site gets pissy with me and insists I use IE or Mozilla on Windows,
I typically don't go there anymore. So if you're interested in driving
off people who are less technologically advanced than you'd like, I
think you'll probably succeed.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Sep 14, 2009 at 08:56:59PM +0200, Andrea Giammarchi wrote:
>
> You are looking for me than, cool!
>
I can vouch for the fact that Andrea believes he's "all that".
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
was not just to
> waste my time guys, and it is open source, maybe next time I'll keep for me
Yeah, we people on this list just don't get it.
So, you're gonna leave the list now, right?
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, Sep 12, 2009 at 10:22:10AM -0400, tedd wrote:
> At 6:02 PM -0400 9/11/09, Paul M Foster wrote:
>>
>> I typically use us2.php.net, which is hosted by Hurricane Electric.
>>
>> Paul
>
> Paul:
>
> I wouldn't use Hurricane Electric if their accoun
ectories. Then use relative or fixed pathing as desired from other
files that include() those files.
If you're using a front controller, then you can use PHP server
variables to get the path to that file, and use that as the reference
for the location of the other files.
(Or maybe I'v
}
>
You should use print_r() or var_dump() to investigate what happens when
you try to cast an array into an object. I myself don't know what would
happen. Also, what's allowed and what effects are produced could depend
heavily on the version of PHP you're running. Version 4
nge the examples on your Google code page to show Javascript
errors, and call it a "Javascript debugger".
If Formaldehyde is really a debugger for PHP code, then call it a "PHP
code debugger". The examples on your Google code page fit this.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the tables, and you're away. The user's ID
and whatever other pertinent information rides along with them in the
session variables. Each page checks to see if the user ID in the session
variable is allowed to access this page, etc.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, Sep 11, 2009 at 08:38:13AM -0700, Tommy Pham wrote:
> --- On Fri, 9/11/09, Paul M Foster wrote:
>
> > From: Paul M Foster
> > Subject: Re: [PHP] Reading files in PHP 5.3.0
> > To: php-general@lists.php.net
> > Date: Friday, September 11, 2009, 8:57 AM
>
nd Yahoo hosting of www.php.net). Maybe I
> should switch to gmail...
I think I'm reading this wrong. Are you saying that php.net is hosted
with *Yahoo*? WTF?
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eigniter. I am still trying to figure out why I
> would want to use it.
Moreover, I'm using CI right now, and as far as I know, it does *no*
user authentication. I had to write my own routines, using their session
class to save the user data.
Paul
--
Paul M. Foster
--
PHP General Maili
On Wed, Sep 09, 2009 at 12:11:14AM -0400, Eddie Drapkin wrote:
> On Wed, Sep 9, 2009 at 12:08 AM, Paul M Foster wrote:
> > On Tue, Sep 08, 2009 at 05:39:43PM -0400, Floyd Resler wrote:
> >
> >> How can I rename a directory with files in it? The rename function
> &
...
>>
>> preg_replace("/([\w\.\-...@[\w\.\-_]+\.\w{2,6})/i",
> You can revised your regex to fit to the new kind of email. But it is
> smarter to use the right tool (like filter_vars).
>
> Yeah, I know, I feel like some spanish windmill hunter.
I
directory.
Oddly enough, I can't find a *nix command which will actually rename a
directory. The man pages for mv, rename and such all refer only to
files, not directories.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> 2) Should I be using sqlite 2 or 3?
Don't use version 2. It's deprecated.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Sep 08, 2009 at 03:27:05AM +0900, Dave M G wrote:
> Paul,
>
> Is there a decent tutorial anywhere on the net for the pop3.class.inc
> available on phpclasses.org?
>
> http://www.phpclasses.org/browse/package/1120.html
>
> Maybe I'm blind, but I just
as plain text.
Your class may be parsing the emails and assigning various parts of them
to various class members. But emails are downloaded as a stream of bits,
sequentially, top to bottom. Somewhere in the class is a routine which
is sucking up that bit stream. At that point, you can capture
ut
the process is complicated, and the mail() function isn't really set up
to do this. I believe the usual suggestion for users who ask this
question is to use the phpmailer package. It does this more easily.
Google for phpmailer.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://
On Fri, Sep 04, 2009 at 08:15:41PM -0400, Robert Cummings wrote:
> Paul M Foster wrote:
>> On Fri, Sep 04, 2009 at 04:22:18PM -0400, Eddie Drapkin wrote:
>>
>>> On Fri, Sep 4, 2009 at 12:02 PM, Lupus
>>> Michaelis wrote:
>>
>>> if you're
than one).
Any time you or someone else would like to backstop me in setting up a
dedicated server on rackspace or somewhere else, for free or really
cheap, you let me know! Otherwise, those of us with less than complete
expertise in server setup are stuck with shared hosting. ;-}
Paul
--
Pau
posted contents. You might
expect this to be governed by the platform the browser is running on,
but no. It inserts CRLF anyway.
Like I said, just a clue.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he primary key on your table. Have an
"extra" field which shows the item number with dashes. You can use this
extra field in printing inventory labels or whatever (I don't recall the
context of your original post).
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ulated that one should research a question as much as possible
before posting to this list. We're not tutors; more like professional
side-checkers.
(Please don't take this the wrong way, newbies. You're welcome to ask
questions here. Just do whatever research you can first, and follow our
advice afterward, to RTFM.)
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Sep 01, 2009 at 06:06:24PM -0400, Eddie Drapkin wrote:
> On Tue, Sep 1, 2009 at 5:16 PM, Paul M Foster wrote:
> >
> > I'm a little fuzzy on some of the PHP implementation details for some
> > stuff. In PHP (5 <= phpversion() < 5.3), I'd like a c
(a subset of the
subset). And *sometimes* I see an "attitude" accompanying the posts (a
subset of the subset of the subset).
Okay? If your native language is English, the above should have been
clear in the first place. And if it's not English, then I've just done
you the favor of parsing it for you. (You can send cash to thank me. ;-)
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ite = true;
elseif (!array_key_exists($index, self::$cfg))
$write = true;
if ($write) {
self::$cfg[$index] = $value;
return true;
}
else
return false;
}
};
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://ww
; >
>
> No. Due to Daylight Saving Time, many time zones have two days each
> year when the number of seconds in a day is not 86400.
This and the "2038" bug are reasons to do this type of calculation with
Julian days, as opposed to seconds.
Paul
--
Paul M. Foster
--
PHP Ge
On Mon, Aug 31, 2009 at 09:10:54PM -0400, Stephen wrote:
> Paul M Foster wrote:
>> I'm sorry, but is anyone else annoyed by people who attempt to use IRC
>> jargon on mailing lists? For example, substituting "u" for "you". Oddly
>> enough, I'
d by English so broken I
don't even bother trying to decypher it, and sometimes an *attitude*
(after which, I blacklist the poster).
Am I the only one? It's okay if I am. Just wondering.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
em
paranoid, but Microsoft has done things like this numerous times before.
If you are running Windows on the server, try exporting the installation
to a Linux server and see if you have the same problem.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
For those of you that remember (not likely but anyway) I am working on
some code that splits CLF records and feeds them into a database.
What I need to do now is automate it.
So what I have is a program (urlsnarf) that redirects its output
(simple "cmd > file.txt") to a file. The script currently
re that this is not the best/recommended way to do this but I'm
> >> hoping someone here will point me in the right direction.
>
> Two options...
>
> 1) if (isset($_POST['username'])) // Specific to any given form
>
> 2) if (count($_POST) > 0) // Just tests whether any data was POSTed
FWIW, the CodeIgniter framework uses this latter method internally.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
iginating SMTP server
to pass on the 5xx error as a bounce message to the originator.
The fact is that, according to what I know of the RFCs, SMTP servers are
supposed to reject bad addresses with a 5xx error during the SMTP
conversation, as you describe. But it appears that a lot of servers
don
On Thu, Aug 27, 2009 at 10:06:03AM -0500, Shawn McKenzie wrote:
> Paul M Foster wrote:
> > On Thu, Aug 27, 2009 at 09:00:24AM -0400, Bob McConnell wrote:
> >
> >> The return code only tells you the local server accepted the mail. It is
> >> unlikely that server k
a
favor to bounce messages to bad addresses. But I got the impression that
his view was a minority one.
It sounds like you're saying his view has become the majority view. Does
your job put you in a position to confirm this with authority?
Paul
--
Paul M. Foster
--
PHP General Mailing Li
Torben Wilson wrote:
2009/8/26 Paul Gardiner :
Paul Gardiner wrote:
I want to write a simple indexing script to display a
directory full of photos as a gallery of thumbnails.
(There are various solutions out there for this, but
they're all a bit more complicated than I need).
I'
On Thu, Aug 27, 2009 at 02:27:32AM +0800, hack988 hack988 wrote:
> this post is away from the point :),but everyone's reply is interesting
>
> 2009/8/27 Paul M Foster :
> > On Wed, Aug 26, 2009 at 09:52:49AM -0700, sono...@fannullone.us wrote:
> >
> >>
>
On Wed, Aug 26, 2009 at 09:52:49AM -0700, sono...@fannullone.us wrote:
>
> On Aug 26, 2009, at 9:28 AM, Paul M Foster wrote:
>
>> and having a great marriage to a woman I can spend hours talking about
>> nothing to.
>
> I'm jealous. Does she have a sister
atabases?
My *opinion* is that you should avoid Microsoft products whenever
possible. BTW, you can also find books on PHP and PostgreSQL, which,
also in my *opinion* is a superior choice over MySQL.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Aug 27, 2009 at 12:25:35AM +0800, hack988 hack988 wrote:
> I'm sorry for my poor English,what is OP? I don't kown what is OP mean.
OP = "Original Poster". That's usually the person who first started
(posted) a thread on a list.
Paul
--
Paul M. Foster
my
own business (and not having to answer to a boss who's an idiot) and
having a great marriage to a woman I can spend hours talking about
nothing to. Etc.
My step-brother is a smart guy. He spends all his waking time trying to
figure out how to make more money. He's rich. I don't, and
Paul Gardiner wrote:
I want to write a simple indexing script to display a
directory full of photos as a gallery of thumbnails.
(There are various solutions out there for this, but
they're all a bit more complicated than I need).
I've added a file in /etc/apache2/conf.d that
looks
ng?
>
> Thanks!
Just a thought... do you really mean $rs->Fields(22) or do you mean
$rs->Fields[22]? The former is a function call and the latter is an
array variable.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t;
> > href="javascript:document.FormName.submit();"
> >
> > Cheers
> > Arno
> >
> >
> And all it takes for that to break is for someone to turn off
> Javascript...
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
Oh no, here we go again
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he mail
server, etc.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
l space after $user['fullname']; and before the tag
closure (?>). But there's no reason to.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
change $_REQUEST above to $_POST (assuming POST method on the
form), and try it.
Also check the return value of the mail() function to see if it thinks
it has succeeded or failed. If it fails, check the mail logs on the
server to find what the mail server thinks is wrong.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
www/htdocs".
$_SERVER[PHP_SELF] is "/cgi-bin/index.php", so no use either.
How can I do this? Is there a way to interrogate the alias,
or can I set a variable in the conf file that PHP can pick up?
Cheers,
Paul.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e are either omitted files or missing tables (or missing
table rows).
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I immediately implement CAPTCHA to block it.
This may not block human-generated spam, but human-generated spam is a
huge minority because it's so labor-intensive.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t's a PHP variable named $user. When you call the execute()
function, it puts the values together with their placeholders, forms a
complete statement, and sends that off to the MySQL database engine.
I haven't followed this thread, so I don't know what you mean by, "I
do not see how there could possibly be a prepared statement for a user
comment." Maybe someone else can answer that part of your query.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I *hate* date pickers. They slow down input. I can type 082309
faster than I can ever do it with a date picker. The date class knows
I'm in America and since it's a six-digit date, it must be mmddyy. (Yes,
for those of you *not* in America, I agree our dates are goofy. I think
we all ough
ble. A given
database may contain a variety of tables. If you simply start firing SQL
commands at a DBMS, it won't know which database to look in unless you
tell it. By contrast, the connection process in PostgreSQL must include
a database; there is no separate database selection function c
21, Aug
> 28, and Sept 4.
>
> I'm curious, how would you guys solve this?
Convert to julian days, then add or subtract days as desired. Then
convert back to gregorian.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
do this. It's quick and simple:
>
> CSS:
> .dataRow1 { background-color: #DFDFDF; }
> .dataRow2 { background-color: #FF; }
>
> foreach ($foo_array as $foo) {
>?>"> ?> }
NO! For the love of God and all that is holy, don't do that ">
gt; probably worth it. Now if only I could get into the habit myself...
This is common practice for a lot of C programmers for exactly this
reason.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Aug 04, 2009 at 06:10:30PM -0400, HallMarc Websites wrote:
> [HallMarc Websites]
>
> God I love this planet. I agree with Paul.
>
Yeah, great planet, this. A little touristy, but still a good travel
value.
;-}
Paul
--
Paul M. Foster
--
PHP General Mailin
denigrate your abilities. You may
be a very nice person, and quite talented at doing the things you're
trained to do. But programming in PHP is apparently not one of them. And
if you're going to be doing this for a living, then you're going to have
to either stop doing this for a living, or actually study the subject.
Because sooner or later, no one here will listen, no matter how nice you
are, and no matter how well you do the other parts of your job.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hter to pieces until she gets to puberty.
Then take your wife and leave the country, no forwarding address.
"Haileigh who?"
;-}
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
know about their space limits.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
arning that quite thoroughly
> through experience.
>
Congratulations! Welcome to the club :) We just had a very similar (we
don't have a basement) experience with baby #2, so I feel you!
It gets better, sleep is for sissies anyway :)
--
-- Paul
http://www.paulscott.za.net/
http://
oading the production version give any visible
> improvement in
> performance?
>
I bow to those who have profiled this, as far as performance goes.
However, remember, you have to *maintain* this code. In a trade-off
between performance and maintainability, I'd opt for maintainabi
n_default, is_nullable,
character_maximum_length, numeric_precision, numeric_scale FROM
information_schema.columns WHERE table_name = 'tablename' ORDER BY
ordinal_position
This will not tell you the relations between tables, nor which columns
are primary keys, etc. There may be another way to
ECT DISTINCT ... LIKE 'Array'"
Try this:
$values = implode(',', $other);
$sql = "SELECT DISTINCT ... LIKE '$values'";
(See documentation for implode().)
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
know what you are
doing :). My coding is limited to hammering away at the search box on
php.net until I get a push in the right direction. It's just a hack
from there.
Using phpster's substr suggestion has already sped this up considerably.
2009/7/31 Ollisso :
> On Sat, 01 Aug 2009 00
Whats the cleanest (I have a really ugly) way to break this:
[21/Jul/2009:00:00:47 -0300]
into:
date=21/jul/2009
time=00:00:47
Caveats:
1) if the day is < 10 the beginning of the string will look like "[1/...
2) the "-0300" will differ depending on DST or TZ. I don't need it
though, it just ha
uests
3. Use an opcode cache like APC
4. Use a RAM based cache system like memcacheD and give your db a breather
5. FINALLY, throw more hardware at it.
--
-- Paul
http://www.paulscott.za.net/
http://twitter.com/paulscott56
http://avoir.uwc.ac.za
--
PHP General Mailing List (http://www.php.
c.
FWIW, my copy of this file is in /usr/share/misc/file/magic, which is
where the man page says it should be. Debian Linux v5.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
original code had two problems. First, you're getting the error
message because you're allowing E_NOTICE level error messages. You can
turn these off with the error_reporting() function.
Second, as written, your page paints the form and then directly tests
the status of the variables before the user can respond; the whole page
of PHP code executes and then waits for user response. It's only when
the user responds and the page is revisited that the variables can
legitimately be tested. That's why Richard's method works. The
variables are only tested when the page is re-entered after the user
responds.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
way to trigger this from PHP, since PHP is server-side
and Javascript is client-side. You might be able to have javascript scan
for the existence/closing of the file in question and then alert the
user. Or you could have PHP, when the file is complete, launch a new
page which contains the javascript
is to honor
the environment locale settings. Having to set the locale within a CLI
is silly and counterintuitive with respect to *nix applications. I can't
speak for Windows here.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ectories
and index.php is not a directory.
The lookback feature can be turned on in the Apache configuration file,
which, on a public server, you have no access to.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
150k file. What happens to
it afterward (compiling, compressing, caching, whatever) is another
issue. You've still loaded 150k of code. The question is whether you
actually need to load 150k of code from the start. If not, why waste the
resources?
Paul
--
Paul M. Foster
--
PHP General Ma
of a site. URLs like this often take advantage of an
Apache feature called "mod_rewrite", which tells Apache how to handle
URLs which look like this. You can look on wikipedia.org for these terms
or google for them, and find full explanations.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n a PHP list, which
isn't the appropriate venue for such a question. Firefox/Mozilla lists
would be a better place to ask.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ich will reach their
capacity, I believe, in 2038. (We'll probably all have 64 bit machines
by then.) Thus, the class generally doesn't consult Unix timestamps This
makes duration and date calculations simple. If you like, I can email
you the class privately.
Store times as a separate fi
t from one to the
> other, rather than leave it to a machine. How complex are the queries
> that you are trying to convert anyway?
I have to agree with Ash here. I was a FoxPro 2.6a DOS programmer (just
at the beginning of VFP). We hired a programmer who did a lot of his
queries in FoxPro's crippled version of SQL, but the rest of us just
used regular FoxPro for queries. Remembering what FoxPro SQL was like,
and now having worked with MySQL and PostgreSQL, I wouldn't wish the
conversion of one SQL dialect to another on anyone.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ew".
So in your constellation of software, would you create a subclass of
genericTable which essentially is a "view"? Otherwise, how would you
handle this?
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, Jul 19, 2009 at 07:18:34PM +0100, Stuart wrote:
> 2009/7/19 Paul M Foster :
> > On Sun, Jul 19, 2009 at 09:30:33AM +0530, kranthi wrote:
> >
> >>
> >> > You do realize that PHP does not parse HTML files, right? The web server
> >> > does tha
greSQL or MySQL? FoxPro is ancient
and decrepit (I used to code in FoxPro).
There is a dBase module for PHP. I don't know if it handles generic
xBase files. I don't know much about the module, but you could check it
out.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.p
on-PHP text to the
browser, which is not parsing it.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e HTML files, right? The web server
does that. In fact, the web server also parses PHP files, using a
different library.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
added a record yesterday, that's a
different story, but should not allow race conditions. A good database
engine should protect you in this area.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Jul 16, 2009 at 12:59:00PM -0300, Martin Scotta wrote:
> Hi all!
>
> I'd like to add php.net to my browser search box.
Gee, I just keep a tab open to php.net at all times. Just like having
"Programming PHP" on my desk at all times.
Paul
--
Paul M. Foster
called.
So if I set up an error handler function like:
function my_error_handler()
{
switch ($errno) {
case E_ERROR:
die('Something or other');
break;
...
}
}
the parts which reference errors like those above won't actually
execute?
out
> of it. So for, lets say 200 dollar, you can have to domainname. And if you
> want, you get the website free with it.
You don't want to make a profit, yet you're selling it for $200? Those
two statements are contradictory.
Paul
--
Paul M. Foster
--
PHP General Mailing Li
On Sat, Jul 11, 2009 at 11:23:11AM -0400, Daniel Brown wrote:
>
> I used $html =<< HTML+PHP in Vim, and as many know, almost everything I do is from the
> command line and Vim.
Vim FTW! (And mutt for the pwnage!)
Paul
--
Paul M. Foster
--
PHP General Mailing List (htt
lse have you read
that makes you discount the use of prepared statements? The PDO class
emphasizes that you're safe from SQL injection exploits, which seems a
big plus.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
aying that the "sqlite_open" is undefined...
>
> so... my question..
>
> how the heck can i resolve this issue!
Try sqlite3_open() just for fun. As I recall, I ran into this at one
point. The documentation for this particular module is rather poor by
php.net standards. It do
mit and wonder
what happened. And besides, I just think $_SESSION should be reserved
for *special* cases.
And, as mentioned before, it's worthwhile asking yourself if you
*really* need to remember a bunch of information from page to page. The
need to do so may well be a result of lazy programming habits.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nd email clients I have ever used
> defaulted to bottom posting. It was only in Outlook 2003 that Microsoft
> finally removed that option completely. Previous versions allowed bottom
> posting and even handled the attribution markup correctly.
Also, Tony's mail reader is broken-- Mic
501 - 600 of 2285 matches
Mail list logo