1548332245&w=2
-- you can easily extend the technique to set both flags.
header('Set-Cookie: cookie_name=value; secure; HttpOnly');
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pg";
/>'"
onmouseout="this.innerHTML='an angel'"
>
an angel
So then I tried a mixed approach and it seems to work in all of them:
http://imagecache2.allposters.com/images/PF_New/102008/3070943.jpg";
/>'"
onmouseout="this.innerHTML='an angel'"
>
an angel
YMMV
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
self has a large amount of other PHP classes
which it calls which obviously aren't prefixed with '\'
Is there a way i can tell PHP any class name that get's instanciated
with 'Sabre_' should resolve to '\Sabre' ?
Many thanks
Andrew
--
PHP General Mailin
We've got a problem with PHP 5.3.8 and a third party (open source)
library (WSo2 SOAP).
At some point during the request to the PHP script, some structures seem
to be getting corrupted causing PHP to crash.
Depending on the code in the PHP script, it's either crashing during in
a print_r/var_
>Hi Andy,
>Have you tried running it with valgrind? (See [1] for tips).
>Otherwise, you might have more luck at php-internals mailing list,
>since it is related to PHP development if you intend to fix either PHP
>or the plugin.
>
>Matijn
>[1] https://bugs.php.net/bugs-getting-valgrind-log.php
Than
And again to the list, since for some reason "Reply-to-all" did not do
as intended this time.
-- Forwarded message ------
From: Andrew Ballard
Date: Fri, Mar 9, 2012 at 12:53 PM
Subject: Re: [PHP] Function mktime() documentation question
To: Tedd Sperling
On Fri, Mar
s FALSE on
>> errors, including End Of File.
>>
>> [/snip]
>
> I am using it in a loop. End Of File is an error?
Yes. "fgetcsv() returns NULL if an invalid handle is supplied or
FALSE on other errors, including end of file."
I usually use it in a while loop like this:
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
orrect longitude. Did you want a location in
northern China (as you entered above) or near Dansville, MI (in which
case I believe your longitude above should be negative rather than
positive)?
http://maps.google.com/maps?q=42.57,84.3320&hl=en&sll=42.57,-84.332&sspn=0.023008,0.038581&
t;
> tedd
That's the spirit! Truly world-class education!
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
memory_limit in php.ini, it always crashes with the same
error.
TIA,
--
Andrew Hill
Software Developer
Awarez Ltd.
Kirkman House, 12-14 Whitfield Street, London W1T 2RF
T: +44 (0)20 7299 7367 F: +44 (0)20 7299 7374
IRC: #max on freenode.net
--
PHP General Mailing List (http://www.php.net/)
Marek Kilimajer wrote:
> Andrew Hill wrote:
> > The problem is that in my php.ini file, I have the line:
> >
> > memory_limit = 8M
> >
> > So, why is PHP reporting that the allowed memory size is 256M?
> > The phpinfo() function correctly reports that memo
> > Andrew Hill wrote:
> > > The problem is that in my php.ini file, I have the line:
> > >
> > > memory_limit = 8M
> > >
> > > So, why is PHP reporting that the allowed memory size is 256M?
> > > The phpinfo() function correctly r
I have two text files with two rows of data on each line sperated by a tab for about
20 lines in each file. Would it be faster accessing this data by putting it in a mysql
table?
-
Yahoo! Messenger - Communicate instantly..."Ping" your friends
I'm trying to set the following two vars on one page then read their
values on another like this:
page1.php...
ob_start();
session_start();
$_SESSION['member_id'] = $member_id;
$_SESSION['password'] = $password;
ob_end_flush();
page2.php...
ob_start();
session_start();
$member_id = $_SESSION
Using a cookie which is shown in my browser as PHPSESSID
Yes they're on the same domain but no there's nothing being passed
accross the URL. Should there be?
AW
On 14 May 2004, at 21:59, John W. Holmes wrote:
- Original Message -----
From: "Andrew Wood" <[EMAIL
Either typing the URL directly or by using a hyperlink.
On 14 May 2004, at 22:09, John W. Holmes wrote:
From: "Andrew Wood" <[EMAIL PROTECTED]>
Using a cookie which is shown in my browser as PHPSESSID
Yes they're on the same domain but no there's nothing being passe
:48, Andrew Wood wrote:
I'm trying to set the following two vars on one page then read their
values on another like this:
page1.php...
ob_start();
session_start();
$_SESSION['member_id'] = $member_id;
$_SESSION['password'] = $password;
ob_end_flush();
Where are $membe
I found this thread in a php news archive. I am fairly
new to compiling php on a Unix system, and I am having
the same problem described in this thread. I am trying
to compile php 4.3.4 on a Solaris 9 system. I have
fixed my path, and I do not have GNU sed installed on
the system. I am still gettin
sult, in order to be certain of correctly serialising the file locking
and output process, it would be necessary to use a separate lockfile,
which is opened and locked *before* the file to be written to is opened,
written, and then closed, after which the lock on the lockfile can be
released.
Can
r);
Thanks for any help with this!
Andrew Nagy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
odify the declaration of call_user_func()" ... how would i do this?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
echos 0 and not 1. I am using 4.3.7 with all
warnings on.
Does anyone know how to use this function or anything similiar with
passing by refernce. Since the call-time pass by reference is
deprecated, this practice is no longer valid, but there must be a work
around?
Thanks for any assis
Curt Zirzow wrote:
* Thus wrote Andrew Nagy:
How do you use the call_user_func function with call-time
pass-by-reference deprecation?
For example:
function fun(&$arg) {
$arg++;
}
$var = 0;
call_user_func("fun", $var);
echo $var; //echoes 0 instead of 1
$func_call = 'fu
I'm trying to use PHP to read text from an HTML textarea form field and
store in in MySQL using the longtext data type but it's cutting off
everything after the first carriage return. I suspect I need to
iterate through the text looking for CRs then do something? But I
don't know what.
Can anyone
That only seems to work for quotation marks and apostrophes etc. Not
carriage returns? Unless I'm missing something.
On 15 Jul 2004, at 20:23, Vail, Warren wrote:
http://www.php.net/manual/en/function.addslashes.php
Warren Vail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
Umm this is very weird - I've checked the database and the string is
only stored upto the first carriage return everything else appears to
be missing, BUT, when I display it in the webpage (using
stripslashes()) the entire original message is intact - but on a
single line!!! :S
On 15 Jul 200
PHPMyAdmin access to the database? Could it be that your
string
is being stored OK, and the problem is on the retrieval end?
Warren Vail
-Original Message-----
From: Andrew Wood [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 1:22 PM
To: php-gen
Subject: Re: [PHP] Storing text wit
If the primary key in a MySQL DB is an autoincrementing integer, is
there anyway of automatically getting it back when I do an insert in
PHP. In other words taking the status returned by mysql_query and
extracting the PK of the record we just entered?
--
PHP General Mailing List (http://www.ph
Thanks. When it says 'the last insert' is that just the last insert my
PHP script did, or the last insert on the DB as a whole?
On 16 Jul 2004, at 11:40, [EMAIL PROTECTED] wrote:
If the primary key in a MySQL DB is an autoincrementing integer, is
there anyway of automatically getting it back whe
> ... but the
> second comment seems helpful.
>
> [1] http://www.php.net/manual/en/function.mssql-connect.php
For SQL Server 2005, getting the right version of that ntwdblib.dll is
crucial. However, Microsoft has apparently abandoned the NTWDBLIB
library, so I have begun working with PDO ODBC inst
That is not valid, the Location field must contain the full URL, so
/path/to/file.php
should be
http://yourserver/path/to/file.php
Read RFC rfc2616, section 14
Will help find it:
http://www.google.com/search?hl=en&q=HTTP+Header+Field&btnG=Google+Search
Andrew
- Original
y;
rather, they only work for accessing private members. If a property is
declared public, it does not need the __get and __set, so they aren't
used. Likewise, $bar->y is public since it was added dynamically
outside the class.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I'm seeing
> 11/4 twice for example. Sometimes dates are missing from the list. The
> results change from day to day.
>
That would be DST. The number of seconds per day changes on Nov. 4,
2007 in the US local time zones.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
My problem is, I do not know how to make the Else statement...
How do I get it to open a new url?
I want it IF yes open this page, else open this page
Andrew Prostko
AProstko @ verizon.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What do I have to do to get off this list. Murder someone?
Please take me off the list as I have already tried to unsubscribe several
times.
The email is registered under [EMAIL PROTECTED]
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 20, 2007 4
Ok, so I started using the header code that was suggested:
And I get this error:
Parse error: parse error, unexpected '{' in
/home/char-lee/public_html/beta/1.php on line 3
This is the code:
---
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
Wow, it really must be late, Thank you for pointing out that missing
parenthesis
... 330am and now I can go to bed happy... TY VM
Ending Code for anyone listening:
Get PW from another .php page using:
What is the Password?:
This is the passwordcheck.php code:
--
PHP General Mailing Lis
I would like to change the email address this list is sending to,
I sent mail to '[EMAIL PROTECTED]' but I haven't received
anything back.
Can anyone tell me how to do this real quick?
Having this email account on my Treo is kind of overwhelming.
Andrew Prostko
1445
Kevin Murphy wrote:
> > The problem is IE7. All browsers work with this code as is but IE says
> > "Internet Explorer cannot download test.pdf from XXX"
The problem with IE was when you told it not to cache the document. If
you just want the browser to download the file rather than let the
Ad
may not even be sent at all
by legitimate clients because of various browser and/or personal
firewall options.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 10/2/07, Al <[EMAIL PROTECTED]> wrote:
> I didn't mean that the function was foolproof, only the match function itself.
Understood. :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ther thread:
http://phpsec.org/projects/guide/ )
So yes, if you don't use diligence to filter that stuff out before you
send it to the browser, someone could study your mail interface well
enough to do anything they want by impersonating the user viewing the
messages -- just for starters.
Andrew
grass with a push mower, too -- but I tend to like
my lawn tractor much better.
However, thank you for demonstrating that I need to be MUCH more
careful when building objects to validate member values each time they
are used, and not just when they are set.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
iolate an
objects contract -- which I guess goes back to Tony's point whether
the language "enforces" private members/functions or whether they are
simply regarded that way by the developers using them. I would prefer
both, honestly. :)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nt what's currently in
> the buffer to be sent to the browser, so I don't want to have to call
> ob_clean. Any thoughts?
I don't know about the behavior, but if you want the contents to be
sent, you can flush them using ob_flush() instead of clearing them
with ob_clean().
On 10/15/07, Philip Thompson <[EMAIL PROTECTED]> wrote:
> Hi.
>
> Before I try and reinvent the wheel, I thought I'd query the list. I want to
> take this string:
>
> thisIsAStringIHave
>
> and turn it into:
>
> This Is A String I Have
>
> Essentially, I want to capitalize the first letter (ucfirst
there a way to mkdir or fopen a file dynamically, without
pre-creating a directory with 777 permissions?
Thanks for the help,
Andrew
On 10/22/07, Adam Williams <[EMAIL PROTECTED]> wrote:
> I have an html page with checkboxes:
>
>
> Modern
> Mississippi
> Civil Rights
> MilitaryHistory
>
>
> and mailform2.php containing:
>
> echo "you selected: ";
> /* line 81 */ foreach ($_POST[option] as $a)
> {
> echo "$a";
>
On 10/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Tue, 2007-10-23 at 17:34 +0200, Julien Pauli wrote:
> > > echo "coucou " . print('v ' . print('u ' . print('toctoc ') . 'hihi
> > ') ) .
> > 'tata ' . print('zozo ' . print('pupu '));
>
> That's not cool, that's a mess. Why doe sit happe
this will be false.
*/
if (array_key_exists('option', $_POST)) {
// include the quotes as already mentioned
echo "you selected: ";
foreach ($_POST['option'] as $a)
{
echo $a;
}
}
else
{
echo 'you did not select any options.';
}
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
values. I guess that's the part I
didn't understand about the difference between a function and a
language construct in PHP.
As for the OP, I still don't know why anyone would even dream of
creating code that does this other than "to see what would happen if
we " :-)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oaded, it could also timeout just trying to
read the file remotely as well.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ither a web
path or some sort of file share or local file path. So if the server
can see the file as http://remoteserver/remotefile.csv,
\\remoteserver\remotefile.csv, etc., you can use that path.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This should work:
ORDER BY CASE WHEN id = 3 THEN 0 ELSE 1 END, name
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 10/31/07, Jake <[EMAIL PROTECTED]> wrote:
> What is a =20 at the end of a line in an email?
It is a space character when the message is encoded using
quoted-printable encoding.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm hoping you guys can help me out.
I'm not sure if you can do this, but i'm trying to create a class
that is build of another class. I also want to be able to do
functions on the class1 from within class2.
example:
class fruitBasket{
private $fuit = array(); //this is a class
mySecondClass.php
---
On Nov 1, 2007, at 7:35 AM, Sebastian Hopfe wrote:
Dear Andrew,
I think normaly it isn't possible to use another class in a class,
without using extends. But you should use your array as a
container. After you use as a container, you can mak
tions it isn't
an option because the PHP server and the MySQL server are not able to
read from a common location.)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
) or
mysql_escape_string() does not mean the value is stored with the extra
escape characters, so there are no extra characters to remove when you
select it from the database.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ant to send once. Also, if you
aren't using any of the XML writers or DOM libraries to build your
document, you should account for the possibility of invalid XML
characters like ", <, >, and & in the content that you are writing and
make sure they are converted to the ap
On Nov 10, 2007 12:56 AM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote:
> Andrew Ballard wrote:
> Ronald,
>
> On Nov 9, 2007 9:05 PM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote:
>
>
> I tried to use echo statements for debugging and found that it seems I
> d
Agent, appName,
appVersion, platform, vendor and vendorSub properties of the built-in
navigator object in JavaScript.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;New value for b'
)
This way, if nothing in the record has changed, you still have a trip
to MySQL but MySQL has very little work to do since it will find the
record by the primary key, then see that no values have changed, and
update nothing. No indexes need updated and even your `updated` field
is not changed.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of rounding to
> introduce the bias I found and thus for most applications using the
> round() function (always round down) will suffice.
>
> Cheers,
>
> tedd
>
> --
> ---
> http://sperling.com http://ancientstones.com http://earthstones.com
>
>
> --
>
ically in a single currency and then
convert the price to any other currency by passing the stored price
and the exchange rate into a function?
function exchangeCurrency($amount, $exchange_rate) {
return $amount * $exchange_rate;
}
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Dec 3, 2007 3:29 PM, tedd <[EMAIL PROTECTED]> wrote:
> At 2:04 PM -0500 12/3/07, Andrew Ballard wrote:
> >
> >Oh, man I'm having flashbacks to a flame war that broke out on a
> >SQL Server board I read related to "bankers rounding" versus
&g
occasional changes
to the beginning/ending dates for DST like happened this year for the
US.
I know this probably muddies your original question even further, but
I'll say again -- there is not much "simple" when it comes to
calendars.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
simple one-time
events are pretty easy. Beyond that, all I'm saying is that you have
to make a design decision based on your needs as to whether you store
a lot to avoid repeating calculations or calculate more to store less.
In any event, the biggest troublemaker I've had to deal with when it
comes to calendars have been related to time zones and daylight saving
time.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
> is it possible?
>
> thanks.
>
> -afan
The only way I've seen to do this is to first execute the query
DESCRIBE `my_table` and then examine the value of the `Type` column
that is returned for the row that represents the column you are
examining in your regular query. You just have t
o permit
detection of fields; also, they present to higher-level parsers
an image of each field as fitting on one line.
field = field-name ":" [ field-body ] CRLF
(http://www.faqs.org/rfcs/rfc822.html)
That said, I can't recall having problems with a simple
ed to account for people who decide to book a
> date a year ahead, in which case this approach will break since all
> timestamp date ranges (except for $date[4]['end']) are set to the
> current year.
>
> any suggestions on how i should approach this problem?
>
>
>
>
Will the boundary dates for each season change from one year to the
next? If so, I would probably store the seasons in a database table
and then just query from that table where the user-entered date is
between the season start and end dates. The table of seasons could
have dates configured as far out into the future as desired. If the
boundary dates are the same every year, you can ignore the year and
just compare the month/day of the user-entered date with the month/day
of the season boundaries.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1. Dec. 30 is
not in the 53rd week of 2007; it is in the first week of 2008
according to the ISO, so a week number of 1 is correct.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
one file (if not an error), and that
that file would contain either A) only the contents of the first or
last file pushed to the client or B) the contents of all the files,
munged together in one chunk.
However, your message prompted me to find this on Google. (It's ASP,
but should be easily converted).
http://www.motobit.com/tips/detpg_multiple-files-one-request/
I haven't tried it, so I can't really say if it works, but it's the
only way I could expect it to work.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I actually read anything on your
site at all -- just that I requested some pages and that the time
between my first request and last request was one hour in your
example. If you really need to know when I "close my browser or just
go to another site" you'll need to add some JavaScript
at least allows a way for your code to enforce the interface on
an as-needed basis and recover gracefully.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Actual code from a live page of mine. Just because I could. ;-P
>
> if(!stristr($_SERVER['HTTP_USER_AGENT'],"mozilla")) {
> die("We only allow Mozilla browsers in here!\n");
> }
> ?>
>
> DISCLAIMER: Yes, lawyers, I'm awar
default port (pretty simple, but I've seen it
trip a few folks up) and using SQL Authentication rather than Windows
(trusted) authentication. If you are ultimately looking to connect
from a Linux box I am guessing this is already the case.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n't take 1-15-2008. Once you validate it, you
can always assign it to a variable as either a timestamp or a DateTime
object and then format it however you want when you display it, send
it to a database, or whatever you are doing with the date.
FWIW, what you have above will also accept 42-75-
On Jan 15, 2008 11:51 AM, Adam Williams <[EMAIL PROTECTED]> wrote:
>
>
> Andrew Ballard wrote:
> > Just curious why you won't take 1-15-2008. Once you validate it, you
> > can always assign it to a variable as either a timestamp or a DateTime
> > object and th
On Jan 15, 2008 1:31 PM, Adam Williams <[EMAIL PROTECTED]> wrote:
> Andrew Ballard wrote:
> > All the more reason I would turn it into a timestamp or DateTime
> > object in PHP first. That will prevent trying to insert something like
> > what I used above. Then I
e
fields with the popup calendars and made several of the text fields
readonly (because we wanted users to use the calendars so we could
reduce entry errors). After a while, we had so many requests to make
the fields editable again that we did just that.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Jan 15, 2008 2:38 PM, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Tue, January 15, 2008 12:31 pm, Adam Williams wrote:
> > Andrew Ballard wrote:
> > I don't see the point in needing to convert it to a timestamp. The
> > length_start and length_end fie
image...") to your
> form. It eliminated comment junk when I added one to my website.
>
Depending on what it is for, make sure if you use CAPTCHA that you
provide an accessible alternative, as I'm sure NU would hate to run
afoul of the ADA.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uot; By Self Since
> Nineteen-Seventy-[mumble].
>
And then periodically Dan will stand up in the middle of the room and
tell everyone how many times each person has spoken since his last
count. This will, of course, prompt someone in the back of the room to
complain because he didn't want anyone to know he was even in the room
in the first place. :-D
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;t
> show me the benefits of estrogen treatments :)
>
>
>
> --
>
> Jason Pruim
> Raoset Inc.
> Technology Manager
> MQC Specialist
> 3251 132nd ave
> Holland, MI, 49424
> www.raoset.com
> [EMAIL PROTECTED]
>
Which is why Google is friendly enough to provide a link to a map of
your address when I view this thread, or track packages any time
someone posts a large number (e.g. in a script example) that happens
to match a pattern that any of several major companies like UPS or
FedEx. As for the sponsored links? Five ways from Sunday to search for
e-mail addresses.
I can understand why they want to put the links there. It's just that
there are so many places (especially in e-mail) where the links aren't
going to make sense.
Andrew
On Jan 29, 2008 1:53 PM, Christoph Boget <[EMAIL PROTECTED]> wrote:
> Constructors return the object, correct?
Actually, I don't think so. I believe constructors return void, while
the 'new' keyword returns a copy of the object.
Andrew
--
PHP General Mailing List
t;a database connection IS-A database
configuration". It isn't. You might say that "a database connection
HAS-A database configuration." Actually, your code says that "a
database connection IS-A database configuration that HAS-A database
configuration" since dbconfig is bo
ery web site where they came from. There doesn't
have to be anything nefarious.
Personally, I haven't munged with my referer any, but I do think it
should be easier for users to choose whether it should be sent
regardless of which browser they are using.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RER to determine whether you were allowed to submit to
the form, and was bugged at why I kept getting messages saying I
wasn't authorized when I know I came from an "authorized" page. Turns
out, the value of REFERER was blank.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
le information
> correctly.
>
Ok, so this isn't a PHP issue, but I have a feeling that a lot of (not
all) people who list houses on those sites tend to put stuff in the
wrong place so that the search tools available don't work right. I'm
not sure if they are too lazy to put things in the right fields, if
they think they are better at advertising the qualitites of a listing
by writing their own newspaper style ad, or if they are purposely
munging the listings so that they are so generic that they never get
filtered out of the search results. At any rate, all equally annoying.
Come to think of it, it's hardly unique to real estate, either. :-(
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
like
htdig is that they already provide a good combination of indexing and
advanced search operators.
Andrew
>
> Andrew Ballard wrote:
> > On Feb 4, 2008 3:13 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
> >> If there aren't many files and you don't intend to gro
ot;table", "body",
"style", "background", etc. These could be perfectly legitimate search
terms, but without the right filter they would match every document in
the site rather than just those that contain these terms in the actual
content rather than the markup.
Andr
#x27;t available yet or perhaps they simply had not been
applied, but in that case it was sure nice that PHP handled the dates
correctly regardless of the OS. That said, I can certainly see an
advantage to having everything run from a well updated OS.
Andrew
any columns in the SELECT clause unless
they are either included in the GROUP BY clause or else use one of the
aggregate functions like COUNT, SUM, AVG, etc. (I'm not sure of the
actual SQL standard on this point, but SQL Server insists on it.)
SELECT name, size
FROMwine
GROUP BY name
On Feb 6, 2008 11:20 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Feb 6, 2008 10:59 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote:
>
> > Of course, in this case you could just avoid all the confusion with
> > this statement as well:
> >
> > SELECT DISTI
are different files. It would depend
on your system's configuration whether one would be the folder index
for the directory, and whether .php4 is even processed by PHP.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
seen discussions where in GROUP BY can be faster than DISTINCT
depending on whether the query uses things like correlated subqueries,
but this is not applicable in the current case. At any rate, I don't
want to stray the conversation any further away than I already have.
Andrew
--
PHP Gen
efore the mysql statement is very complicate and long. that's why i
> don't want to pass via url.
>
> is there way to do within this page???
>
> t. hiep
>
>
How are you passing the parameters to THIS page? The solution Per
presented would either require the same para
On Feb 9, 2008 7:39 PM, Larry Garfield <[EMAIL PROTECTED]> wrote:
> http://www.php.net/pdo
>
> All the cool kids are doing it.
>
>
Tried it. (Actually, I am using it for some stuff.) But I seriously hope it
works better for MySQL than it does for SQL Server.
Andrew
;
>
I don't think extra whitespace will do that. Even comments after the
closing element tag should be OK. This looks more like a document with
multiple "root" elements or other non-whitespace characters after the
closing root element tag.
Andrew
1101 - 1200 of 1549 matches
Mail list logo