?
If it does, then this would rule out your home network, as 404 is a
response code returned by the webserver.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
flags for these.
Cheers,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
)) {
...
}
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
problem.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is
in. There's probably others.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
string function I want, I can search for *any* string function and
I'll get the list of all of them, along with a quick summary to help me
find the one I want.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that accepting only 12-hour input is part of the brief, Jim
is IMHO doing the right thing.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this. You could also use %-I as this will also
drop leading zeros if present.
I forget where I read about this. I'm almost certain that it was *not* in
any PHP documentation.
HTH,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(and only once) struck a test like this on a New Zealand government
website. I nearly died of shock. And I was able to use it with lynx
with no problems at all.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for unsubscribing involves sending an
email to mailinglist-unsubscr...@example.org, which in this case would be
mailinglist-unsubscr...@lists.php.net which sends back a lovely invalid
email address response).
list-unsubscribe: mailto:php-general-unsubscr...@lists.php.net
Geoff.
--
PHP General Mailing
(America/New_York); echo date (r,
null);'
Wed, 31 Dec 1969 19:00:00 -0500
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
as given above do not match what your script outputs.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
also seen:
Piggott, Ron ron.pigg...@actsministries.org
And that's before you get to people who only use their first name and
people who use some kind of alias.
I think you did well to abandon this.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
won't, and timezones do matter.
I've copied your code to http://quitelikely.com/~geoff/strtotime/
Sorry if any of the visuals are mangled, I had to massage the script a
little to pullin the header and footer, and I downloaded your logo, but I
didn't go and dig out your CSS or javascript
began or not.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that this in fact is not the case.
In case it wasn't obvious in my original post, this worked just fine
during UK summer time. It's only since the clocks changed two weeks ago
that PHP has been thinking that the server timezone is UTC rather than
Europe/London.
Geoff.
--
PHP General Mailing List
to, this won't help in this case.
date_default_timezone_get() is returning the wrong timezone.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
be interested to know if anyone else can confirm this bug and, if
confirmed, what I should do about it.
Thanks,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to view the SQL statement,
and also if there's an error, emit the SQL statement.
I do this. This means that when a user encounters an error, they can
actually give you a meaningful error report which should reduce the time
it takes to fix it by a considerable amount.
Geoff.
--
PHP General
, for example,
does not because Apache loads it into Apache which is already running.
If you're not actually running programs on the host itself via a shell,
then you probably won't need execute permissions most of the time.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
) . ': ' . $$field . 'BR';
The above comes from a function which manages only a single record, so no
real need to use an array. I could of course, e.g. record['title'] etc,
but I don't see much could be gained unless I needed to be able to manage
an entire record as a single unit.
Geoff.
--
PHP General
just to see how it works in practice.
HTH,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
modification.
Of course, it's easier to be cleverer after the event.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
instead of via your webserver. E.g.:
php -f yourscriptname
IMHO, 2 would be the better way to go if you can do this.
HTH,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
surrounding the output from my scripts.
Is there an easy way to include the PHP in a page on their site?
Not sure which version of Drupal they're running, trying to find out.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
//div
/body
/html
?php
} // end if logged in
?
The above also assumes your index_* files are in the webroot, you can edit
the refresh line if this is wrong.
HTH,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that omitting the closing PHP tag
is best practice? Also, are there any 'gotchas' to doing this?
TIA,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for 'Magic Quotes GPC':
http://php.net/manual/en/security.magicquotes.php
However, you may want to rething enabling this as it's deprecated and
judging by the discussions I've seen it will be removed in the not too
distant future.
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net
.
That's the problem. The \ should be a space.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
need.
HTH,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in which we need $konst
END;
A similar approach is to declare a 'pseudo-constant' variable instead
of defining the constant (e.g. $konst=100 instead of the first two
lines of code in the above sample).
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
, this
does require JS on the client and so cannot be guaranteed.
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, and other typos!
I think the moral is that one should never code when tired ;(
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
head. Will this give me
the PayPal transactions that arrived during California's yesterday, or
do I need to change something?
Assuming your timezone is set to California time (
date_default_timezone_set ('America/Los_Angeles') ), then yes.
Geoff.
--
PHP General Mailing List (http
this by putting + at the end of the string.
HTH,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is hosted. But all you need to
do is change hosting providers to one somewhere else, or for someone who's
not careful to mess something up on the system, and the script will break
all because you assumed it would always be right. So better to set it and
know it's right.
Geoff.
--
PHP
of any SEO benefit
- real or imagined.
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gives me 'search-engine-friendly' URIs.
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cart
}
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
); on this machine shows that __DIR__
is undefined. Executing both commands in an intranet-visible, php
script shows the same thing.
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
would help, I may be able to give
this to you off-list.
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, which might well work if
you're clicking on a link to a particular status update.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bother clicking because I know Facebook won't
even try to send me the page I want.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is fine by me.
If you really want a half arsed user experience then set your browser
string ;) Would that not work for you?
It probably would. But this tangent began with the principle of Use IE
or Firefox and how we hated sites that said that. It's the principle of
the thing.
Geoff
need to use their mobile site. Not
a problem - if I try to use their main site and it doesn't work, it
doesn't work. At least they let me try.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/Digital_Millennium_Copyright_Act.
Note that the DMCA is United States legislation and may not be relevant.
Copyright law is pretty universal though and you could get into trouble
with this anyway.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on anything. My prefered
browser does not support javascript, so you look me out of your site if
you use it.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
top-post - it's less work.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
an apology.
Ironicly, it's on by default. It can be turned off, however.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
9. Data transfer complete
So it's definitely secure, but I'm not seeing anything in $_SERVER that
says so. So I'm wondering if Apache is not exporting something properly.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. Surely I can't be the
only person in the universe who has experienced this. I'm running a
minimally-altered stock Debian Apache and PHP setup.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this.
Thanks in advance,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the
webmaster decides to do regarding being secure or not.
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
where m/d/y is the convention will probably
want to alter the tests in the second if ... elseif construct. It's a
bit long-winded, but by all means use or modify if it's any use to
you.
Best regards,
Geoff
---8--
function is_date ($str
to be such a common requirement that I suspect I've missed
something basic. I'd thus be grateful for any pointers as to how to
properly validate user-input string representation of dates.
Cheers,
--
Geoff Lane
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
:
$date = DateTime::createFromFormat('d M Y', '5/2/10')
fails ... (at least, it does on my system :( )
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
before my sojourn into the depths of
ASP to know how I used to do this!
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to date/time. Rather than fail when presented
with an invalid date, strtotime() returns the 'best fit' if possible.
This can be seen from:
$date = new DateTime('30 Feb 1999');
echo $date-format('Y-m-d');
which results in 1999-03-02 even though 30 Feb is an invalid date.
--
Geoff
--
PHP General
rolled up, a large pot of strong, black coffee on the
hob, and me finally trying that little bit harder to get my head
around regular expressions!
I was hoping that PHP would have an equivalent to VBScript's IsDate()
function but it looks like I'll have to roll my own!
Thanks again,
--
Geoff
appreciate
info on why as I need to run some scripts within a validated user
session where those scripts do their processing and then use the
header function to redirect the browser to an appropriate page.
TIA,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
that to:
echo '2011-' . date('Y');
at the first review after the start of 2012!
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Javascript::confirm, so we know the
// use really wants to delete
} else {
// We weren't called via Javascript::confirm, so we need to
// handle the confirmation in PHP
}
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is not
posted. Hence we can use isset($_POST['wehavejs']) to determine
whether or not the browser has JS capability.
Thanks again,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
but if just
set to null or an empty string via Rick's code I suspect it'd return
true.
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
such content work in speech and Braille
browsers. Thus making a site that's unusable without Javascript
doesn't necessarily constitute unlawful discrimination!
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can help avoid coding inconsistencies.
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
straight off and
for sure whether JS was available; but if this isn't possible I guess
it'll be a limitation of HTTP rather than PHP.
Thanks again,
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday, April 4, 2011, Jim Giner wrote:
Actually - I can't seem to find a mysql newsgroup anywhere. The
ones that come up in google search are all dead and buried.
You could try http://forums.mysql.com/ or have a look around Yahoo
groups (e.g. php_my...@yahoogroups.com).
HTH,
--
Geoff
it doesn't let one user have more than one file with the same name
(which might be required for a CMS etc.)
Others can download files by clicking on hyperlinks to the target
files.
HTH,
--
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
' elements,
which many have apparently wrongly taken to mean it's been removed
from hyperlinks (i.e. anchor tags). However, link and a are not
the same thing! An example of each:
link rel=stylesheet type=text/css href=styles.css /
a href=someplace.html target=_blankclick here/a
HTH,
--
Geoff
:
$q = 'select * from director_records ';
$qrslt = mysql_query($q);
$i = 1;
while ($row = mysql_fetch_array($qrslt)){
echo $i++ . '-' . $row['userid'];
if ($row['user_priv']){
echo ( . $row['user_priv'] . );
}
echo br\n;
}
HTH,
--
Geoff Lane
Cornwall, UK
.
--
Geoff Lane
Cornwall, UK
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
There are several PHP Captcha classes available as well.
A few examples are:
http://www.white-hat-web-design.co.uk/articles/php-captcha.php
http://milki.erphesfurt.de/captcha/
http://nogajski.de/horst/php/captcha/
I am no regex expert but wouldn't
preg_match_all( /'([^']+)'/Ui, $theString, $matches);
Be more flexible?
On 8/17/07, Thijs Lensselink [EMAIL PROTECTED] wrote:
If it's only real words this will do:
$theString = 'foo''bar''glorp';
preg_match_all( /'([a-z]+)'/Ui, $theString, $matches);
--
pretty beat to
death.
On 8/11/07, Richard Lynch [EMAIL PROTECTED] wrote:
On Fri, August 10, 2007 6:51 pm, Geoff Nicol wrote:
That was my first thought as well but you will still have to use a
session
variable or cookie for the page following redirect to know it was a
meta-refresh
solution, as people
apparently don't read the thread history ;)
-Geoff
On 8/11/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Sat, 2007-08-11 at 18:26 -0700, Geoff Nicol wrote:
And if they do a manual refresh on the page you re-directed to, the
was_meta_refresh_before flag will be set.
How
as an example of one approach;
kindly confirm all proper licensing requirements prior to making any use of
this applet.
If you do find a solution with a viable license kindly update me (or the
list) as I too would be interested in this.
-Geoff
On 7/30/07, M. Sokolewicz [EMAIL PROTECTED] wrote
the update successfully, no effect on PHP 5.
Perhaps you need to look elsewhere
Geoff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
manageble chunks, then write out each chunk, freeing
its resources before loading the next one.
Geoff.
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
they do not exceed a given
width or height. The images are loaded as true color to preserve the
quality as much as possible during the rescale operation. Currently,
the images can be loaded and saved in the JPEG and GIF formats.
Geoff.
--
PHP General Mailing List (http://www.php.net
/test.php';
?
Geoff.
Thanks
-Will
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 25 Jan 2006 at 15:22, Barry wrote:
Geoff wrote:
On 25 Jan 2006 at 15:19, William Stokes wrote:
Hello,
I Have a web site on one server and a test site on another. How can I build
the hyperlinks so that they work on both servers without modification.
For example build
examples.
Many thanks,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-write(exit);
$telnet-disconnect();
--
In that same manual page, there is lots of other information and
suggestions on making telnet connections.
Note that cURL will also allow telnet.
Geoff.
On 23 Jan 2006 at 9:56, HoWang Wang
that might
push the timestamp over into the next day. A small thing, but since
I deploy code in a number of places, it has saved me countless
headaches.
Geoff.
On 20 Jan 2006 at 13:51, Jeffrey Pearson wrote:
The java mailing list I belong to recently had this same
conversation. I didn't know php
are coming from.
Thanks in advance,
Geoff.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
about what to use, it doesn't have to be PEAR, I
will use any library or code that will do the job. Alternatively, if
it is possible to do this with encode(), I would love to see an
example, as I couldn't get it to work that way myself.
Many thanks.
Geoff.
--
PHP General Mailing List
if the letter has changed.
Geoff.
On 19 Jan 2006 at 10:19, Jeffrey Pearson wrote:
OK. I know I did this a LONG time ago but I don't remember how I did
it. Thus, my post.
I have a list of last names from a MySQL database. I need to display
them grouped by the first letter
to
work in a similar way to fopen, in terms of having wrappers that are
aware of multiple resource types.
It might also be worth taking a look at cURL or similar libraries
that are also multi-resource aware, but give you greater control of
connections parameters and timeouts.
Geoff.
On 19 Jan
server is running.
Geoff.
On 19 Jan 2006 at 16:02, Jedidiah wrote:
I mentioned earlier that I recently switched my site over to PHP. I had a
couple of reasons for this:
1: I was using Server Side Includes, and had been told that PHP includes
were better and definitely more popular.
2: I
Nobody got any ideas on this? I would be interested to hear from
anyone who has successfully adjusted parts of an email message while
it is in transit, by ANY method. I'm getting desparate and will try
anything, even if it is not 100% PHP.
All ideas, suggestions greatly appreciated.
Geoff
that there is SOME kind of software available
to do it...
...but many of them are in commercial packages, or are plugins to
MSExchange or similar. And most of the open-source ones only stick
the footer in the first piece of text/plain that they find, without
being aware of multiparts.
Thanks,
Geoff
want to look into a 3rd party library, or a
command line option like lynx -dump -connect_timeout=n uri which
is multi-resource aware.
Geoff.
On 19 Jan 2006 at 17:28, Richard Lynch wrote:
On Thu, January 19, 2006 4:08 pm, Geoff wrote:
I honestly have no idea if this would work, but maybe
be as a standalone in any case.
Geoff Caplan
Creative Living
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://www.tonymarston.net/php-mysql/workflow.html
Geoff Caplan
Creative Living
Direct: 0121 515 1154
General: 01803 840 607
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of native solutions.
Geoff Caplan
Creative Living
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
VM.
Geoff Caplan
Creative Living
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the
data IS appearing. How do I prevent these error messages?
Geoff M
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can't figure out how.
--
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
!
--
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 241 matches
Mail list logo