ksort won't do what he wants... Look at usort, and something like this:
function cmp($a, $b)
{
return strcmp($a['Country'], $b['Country']);
}
usort($array, "cmp");
Andrew
- Original Message -
From: "Jay Blanchard" <[EMAIL PROT
You can use a regular expressions with a function called preg_match to
find the values. For example,
(Assuming your sql statement is $sql)
preg_match("/(tbl_chassis.chasis_model LIKE \'\%[a-zA-Z0-9-]+\%\'/)",
$sql, $matches);
That will return $matches[0] with the matched data. Similarly,
pre
Divide by 1024 and you get KiB
Divide by 1000 and you get KB
Read: http://physics.nist.gov/cuu/Units/binary.html
Andrew
- Original Message -
From: "André Medeiros" <[EMAIL PROTECTED]>
To: "weetat" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, July 25,
Hi all,
I need to implement AES decryption algorythm on client side (in browser).
I tried javascript but it is too slow.
Does anybody have others ideas how to decrypt data transfered by from
server to client in browser?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
On 7/31/06, Ray Hauge <[EMAIL PROTECTED]> wrote:
On Monday 31 July 2006 17:36, John Gunther wrote:
> I'm trying to programatically retrieve a sales tax lookup page using
> file_get_contents() but the page doesn't return data unless a session id
> is first retrieved and then supplied.
>
I deal wi
Hi all,
I need to get local user IP, but server with apache and php is in
another subnetwork.
So from server environment I can get only router's IP.
The only solution that I see - is getting with some magic algorithm
local IP from brouser and sending it to server.
My application is for intrane
Better yet, don't allow the user to enter a From address. Simply give
them subscribe and unsubscribe radio buttons, and make sure the
un/subscribe-ee gets a confirmation email. And certainly check your
input fields for newlines. :)
On 8/7/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Mon, A
I'll bet your hosting environment has not installed the php sources.
If the server is shared with other clients, you'll probably need to
download the source and compile php in your user space and run it as a
CGI (if your host allows this configuration). Hopefully they have
some allowances for thi
Based on the general description you've given, I could imagine adding
a 'step number' in your session. Then validate it against what step
is being loaded. So, if you set your Session 'step' variable to 5,
and page 6 is loaded, that would seem OK. If your Session 'step'
variable is 6, and page 2
For what it's worth, I like Jochem's solution much better than the one
I gave you. :)
On 8/11/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
a very crude idea below (you have to add a request variable named 'ordertransid'
in all links pointing to pages that have to act on an existing order
transac
I would hope that MD5 hashing is MD5 hashing no matter where it
originates. However, I think it's better to use the database server's
implementation. I believe it is less likely to be changed in future
versions, and it removes some processing time from the front end.
Additionally, if you ever mo
On 8/18/06, Chris W. Parker <[EMAIL PROTECTED]> wrote:
Ideas:
1. Use flash to allow the user to draw an image. If the original image
created during signup is within an acceptable range of the image used to
authenticate, let them in.
2. (I saw this somewhere else... don't remember where or what
Given that Weblogic is an application server, I don't think you're
going to have much luck. PHP is typically installed directly on the
web server (Apache, or similar).
On 8/20/06, BKruger <[EMAIL PROTECTED]> wrote:
Could anyone please direct me to installation instructions for PHP on BEA
Weblog
Could it be a 3rd party cookie problem? Does IE display the little
eyeball privacy icon on the troubled user's browser status bar? I
seem to remember having issues when Microsoft started supporting the
cookie privacy stuff.
On 8/23/06, Dave Goodchild <[EMAIL PROTECTED]> wrote:
Hi all. I mailed
On 8/30/06, Miguel Guirao <[EMAIL PROTECTED]> wrote:
> Once the file has been created and saved as I doc file (not a doc
format!),
> I e-mail it!
>
> When the client gets the e-mail, he/she should open the file either by
> saving the file to the local system or openning the file directly from the
One thing that jumped to mind from my PHP 4 days -- do you have output_gzip
(or similar) enabled in your PHP.ini? I seem to remember having a similar
problem a while back, and disabling the gzipped output fixed it for me.
Also, is it possible to browse the website from the web server itself? Tha
://uk2.php.net/header and googling for no cache
will help.
Andrew
- Original Message -
From: "Benjamin Adams" <[EMAIL PROTECTED]>
To: "php php"
Sent: Tuesday, October 10, 2006 4:17 PM
Subject: [PHP] Disable all caching
I have a php (ver 4.x) script that is b
-- Forwarded message --
From: andrew newman <[EMAIL PROTECTED]>
Date: Oct 20, 2006 2:30 PM
Subject: Parsing and using URL variables
To: php-general-digest@lists.php.net
Hello
I am very new to PHP and I am trying to parse the values of variables
from a URL into a web pa
This login script works when I use Snoopy (php http class), but here
with php curl the response is the redirected page. The script is
following a 302 redirect and I don't want it to because I need some
header info from the 302 page. The curl_setopt($ch,
CURLOPT_MAXREDIRS, 0); doesn't seem t
Actually, the problem is that the site isn't recognizing my cookies.
Is there anything wrong with the below code? Same thing in Snoopy
works perfectly. Going to stick with Snoopy.
$the_headers = array(
"Language: en",
"Accept: */*",
"User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS
oops... I see my mistake:
foreach($restored_cookies as $name=>$value)
array_push($the_headers, "Cookie: ".$name.'='.$value);
should be:
$cookie='';
foreach($restored_cookies as $name=>$value)
$cookie .= "$key=$value; ";
$cookie = substr ($cookie,0,-2);
Then ei
I'm having a problem setting the return-path using the mail function. I seem to
be able to modify any of the other header information I want, but not this one
item.
Here's my code:
$headers = "Return-Path: Test \r\n" .
"From: Test \r\n" .
"Reply-To: Test \r\n";
$sub="Test sub";
$msg="Te
getimagesize() can obtain the image type as well as the dimensions of the
image. Once the file is uploaded us this to check the extension is correct
and that the image is not too large.
php.net/getimagesize
Andrew
- Original Message -
From: "Rosen" <[EMAIL PROTECTED
as been to lazy until now, or is there a
real reason that I'm missing that has made such structures pointless.
thanks for any comments/replies
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It
sounds to me more like it is a single password shared with all the
people who should have access to a specific, non-personalized area of
the site. It certainly wouldn't be my preferred way to set up
security, but depending on the level of risk involved it may be
sufficient.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
>> > > if (($_SESSION['userpass'] == $login) or ($_SESSION['userpass'] ==
>> $login2))
>> > > {
>> > > $_SESSION['authuser'] = 1;
>> > > ?>
>> >
>> > Try this:
>> >
>> > &g
wed by
their Creator with certain unalienable Rights, that among these are
Life, Liberty and the pursuit of Happiness." It has been a cornerstone
of our society from the beginning that no one has to EARN freedom.
Nevertheless, I have the utmost respect for those who have sacrificed
to ensure that lib
-
I don't know about "ugly," but I agree it "feels" wrong. I feel like
I'm using Yoda-speak when reading code like that:
If 'yes' is you_can_read_this, 'Stop standing on me' I say.
or
If 0 is my_pulse then 'dead you are' should say you.
:-D
--Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, Jun 28, 2008 at 1:33 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
> Robert Cummings wrote:
>>
>> On Sat, 2008-06-28 at 11:27 -0400, Andrew Ballard wrote:
>>>
>>> On Sat, Jun 28, 2008 at 9:44 AM, Colin Guthrie <[EMAIL PROTECTED]>
>>> wrot
is ASP.NET's way of preserving the view state of a web form from
one request to another. I'm not positive, but I think it's just a
base64 encoded string. It isn't the equivalent of sessions in PHP, as
ASP.NET has its own session handler. I think it would be more
equivalent to storing a Zend_Form object in PHP sessions so that it
can handle events from page to page.
Andrew
= $value;
> }
>
> // I'm using so it will echo and be obvious that there are two spaces
> between words.
> $scramble_phrase = implode(' ',$array_phrase);
>
> echo $orig_phrase;
> echo '';
> echo $scramble_phrase;
>
> Everything
agine with some kind of regular
expression ) to achieve in php a search and replace
accent-insensitive, so that i can find the word 'cafe' in a string also if it is 'café', or 'CAFÉ', or 'CAFE', and vice-versa.
[/quote]
The best I can think of right now is something like this:
$0', $string);
}
$string = "now my problem is to find a way ( I imagine with some kind
of regular expression ) to achieve in php a search and replace
accent-insensitive, so that i can find the word 'cafe' in a string
also if it is 'café', or 'CAFÉ', or 'CAFE', and vice-versa.";
echo highlight_search_terms('cafe', $string);
?>
Andrew
On Tue, Jul 15, 2008 at 12:30 PM, tedd <[EMAIL PROTECTED]> wrote:
> At 10:15 AM -0400 7/15/08, Andrew Ballard wrote:
>>
>> On TueWell, OK, I can think of one optimization. This takes advantage of
>> the
>> fact that preg_replace can accept arrays as parameters. In
#x27;, 'french'), 'cafe', 'cafe') FROM ...
In this case, he should get all instances of each word highlighted,
but the accented characters would again be replaced with a particular
style. (Not to mention the size and complexity of the query being
passed from PHP to the database or the potential size of the result
being passed from the database to PHP since it now could have lots of
formatting text embedded in it.)
Andrew
gt; To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Does changing the value of 'precision' in php.ini make a difference?
Mine is set to 14, and had no problem rendering that number in
standard notation.
I'm not sure what kind of problems you're having with this
econds, please repost your message every 90 seconds until someone
> does. When in doubt, hijack a thread.
>
> --
>
> Better prices on dedicated servers:
> Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
> Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
> Dedicated servers, VPS, and hosting from $2.50/mo.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Bad day Dan? :-)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;t care about security
> issues much less know anything about them.
>
> -Stut
>
A DBA can go pretty far to prevent SQL injection by setting
appropriate rights on the accounts that applications will use to
interact with the database: denying direct access to tables, allowing
access to only the necessary stored procedures, thereby forcing
developers to design products using only those procedures for all data
access. Of course, a lot of developers would complain under this level
of security, and I suspect a lot of frameworks that are out there
would be much less "useful" to lazy programmers.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Jul 17, 2008 at 2:48 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Thu, 2008-07-17 at 12:32 -0400, Andrew Ballard wrote:
>> On Thu, Jul 17, 2008 at 12:02 PM, Stut <[EMAIL PROTECTED]> wrote:
>> >
>> > On 17 Jul 2008, at 15:31, David Girago
I've not used XAMPP, but someone added a comment on the doc page
(http://www.php.net/manual/en/domdocument.construct.php) that might
shed some light on the subject. Is it possible you've got the wrong
library installed?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at
least calling session_write_close()?) It sounds like the client is
handling the redirect and calling the new resource before your server
has finished the process and written the session to disk.
I'm pretty sure in ASP that when you call Response.Redirect(...some
resource...) that that call automatically exits the script, but PHP
continues processing the current script (at least until the server
becomes aware that the client is no longer listening).
You could write your own redirect function that does all of this for you:
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Thus two domain and two sessions.
>
> Thanks for bringing that to my attention. It's always nice to finally
> understand something.
>
> Cheers,
>
> tedd
>
You can fix that, too, but setting session.cookie_domain to
'webbytedd.com' rather than letting it de
or me on a project I'm working on.
>
>
I wouldn't consider it a hack. I know some people on the list don't
care for redirects, but I tend to use them this way to keep page
functions in line with the semantics of GET (request data) and POST
(modify state/data).
Andrew
--
PHP Ge
> header("Location: a.php"); after the insert statement? Or is that too ugly
>> of a hack? :)
>>
>> It works for me on a project I'm working on.
>>
>>
(I hope this doesn't get lost in all the top posting on this thread.)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Regards,
> --
> Thiago Henrique Pojda
>
Are you sure the accented characters you are using are part of
ISO-8859-1 and not UTF-8? I don't have your data set, but I ran your
code with a list of country names some of which include accented
characters. It worked fine if I set the XML doc
ent-type: text/xml; charset = ISO-8859-1');
It should be:
header('Content-type: text/xml; charset=UTF-8');
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
# get the next message number
> $nextday=getnextday(stripslashes($this_row['emailcampaign']),stripslashes($this_row['members_id']),stripslashes($this_row['email_number']));
> # get the new dates
> $newdate=getnewdate(stripslashes($this_row['emailstarted
ile as -r didn't seem to work...
>
> Feel free to change $c to 10 to get a faster answer...
>
> Can 'date' really take almost a full second to execute in Doze?...
>
> That seems pretty whack...
>
I just ran your test code inside Zend Studio under Windows X
0.12271404266357 seconds, or rougly 1/10,000th of the time Doze
> takes.
>
Interesting. Just for comparison, I ran it directly with the binaries
(disabling the debugger) for PHP 4.4.4 and 5.2.0 on my machine.
4.4.4 - in the order of 4.5E-6 - 5.0E-6
5.2.0 - right around 1.0E-4
Andrew
-
dminstrative disticts/etc. that belong
to that country?) I know the order is "backward" from how one
typically writes an address on paper, but otherwise your state list
will be HUGE and often your country list would only have one value
after the user selects a state.
Andrew
--
P
document.getElementById("countyDiv").innerHTML =
>xmlHttp.responseText;
>}
>}
>
>// request counties from web server
>xmlHttp.open("GET", "county.php?state=" +
>stateList.options[stateList.selectedIndex].value, true);
>xmlHttp.send(null);
> }
>
>
> ---
>
> I'll leave the PHP implementation up to you... but it'll look something
> like this:
>
> county.php
> ---
>
> // perform query here.
>
>for(a = 0; a < mysql_num_rows($result); a++) {
>$row = mysql_fetch_array($result);
>echo " value=\"{$row['countyId']}\">{$row['countyName']}"
>. "";
>}
> ?>
>
> ---
>
> HTH,
>
>
> Todd Boyd
> Web Programmer
>
You MAY want to use an existing library like YUI for this. I've found
that a lot of the simple AJAX examples I've found on the net have
memory leaks, especially in IE. The YUI kit seems to avoid these; I
can't speak for other libraries that are available. Plus, you get an
API to (hopefully) simplify things.
http://developer.yahoo.com/yui/
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t's not clear to me from your example.
>
> b
>
Nice! I'll have to look into this library some time. How do you
control it to prevent sending the same message though? I can't imagine
this is called from a web page, because I'm guessing it would take a
few minutes to finish. If it's called from a cron job, don't you still
have to somehow flag the message as having been delivered so that the
next process doesn't come along and send the same thing all over
again?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ct Lists - 1st Selection Effects 2nd!
>>
>> What I usually do is default to the most common country and show the
>> associated states.
>> You can change the states if they change the country.
>>
>> Thank you,
>> Micah Gersten
>> onShore Networks
>> Inter
On Thu, Jul 31, 2008 at 4:24 PM, brian <[EMAIL PROTECTED]> wrote:
> Andrew Ballard wrote:
>>
>> On Thu, Jul 31, 2008 at 1:27 PM, brian <[EMAIL PROTECTED]> wrote:
>>>
>>> Richard Kurth wrote:
>>>>
>>>> I want to limit these scr
27;t determine timing by simply calling each function one time. I
changed your script to the following:
MB_STRLEN took : '.(($e_t - $s_t)*1000/$iterations).'
milliseconds';
$s_t = microtime(true);
for ($i = 0; $i < $iterations; ++$i) {
strlen('œŸŒ‡Ņ');
}
$e_t = microtime(true);
echo 'STRLEN took : '.(($e_t - $s_t)*1000/$iterations).' milliseconds';
?>
I ran this script several times, and the results below are fairly typical:
MB_STRLEN took : 0.054733037948608 milliseconds
STRLEN took : 0.037568092346191 milliseconds
The multi-byte function is slower, but not even by a factor of 2 on my
development machine.
Andrew
On Fri, Aug 1, 2008 at 12:34 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Fri, 2008-08-01 at 11:12 -0500, Boyd, Todd M. wrote:
>> > -Original Message-
>> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yeti
>> > Sent: Friday, Augu
On Fri, Aug 1, 2008 at 2:30 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Fri, 2008-08-01 at 13:24 -0400, Andrew Ballard wrote:
>> On Fri, Aug 1, 2008 at 12:34 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>> > On Fri, 2008-08-01 at 11:12 -0500, Boyd, Todd M
ement that way. I prefer using the "prepared
statement" method as it decreases the exposure and risk to SQL
injection.
I'd like to see an option like the Microsoft ADO library so that I can
prepare the statement if I will be running it several times with
different parameter values
t more (but not less) results
than you desired or intended, but it will still work. However, if you
fail to escape literal delimiters like single quotes, your query will
not (usually) run at all. (And if it does run, it will likely produce
undesired results or side effects, which is the definition of SQL
injection.) As I see it, this is one of the purposes of prepared
statements.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
iations to test.)
IF the file is located at E:\wamp\www\hello.php AND PHP is configured
correctly AND your web server's document root is E:\wamp\www\, THEN
opening http://localhost/hello.php should work.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
8 bytes exceeds the limit
> of -1149239296 bytes in Unknown on line 0, referer
>
>
> /Per Jessen, Zürich
Just a guess 3000MB exceeds the value of a 4-byte integer when
converted to bytes. -1149239296 is the signed equivalent of
3145728000, which is 3000 * 1024 * 1024. I'm guessing that since the
upload size is greater than a (really large) negative number, PHP is
throwing an error. That's probably where the 2GB figure comes from.
Andrew
you to use Content-Range in the request
headers that your client sends to PUT/POST the same way the server
sends them in the response headers when serving a GET request.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e tags out, it makes
sense to do this before you save the value so they only need to be
stripped out once.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Aug 12, 2008 at 4:53 PM, Philip Thompson <[EMAIL PROTECTED]> wrote:
> On Aug 12, 2008, at 2:10 PM, Andrew Ballard wrote:
>
>> On Tue, Aug 12, 2008 at 2:47 PM, Philip Thompson <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Hi all.
>>>
>>
.php.net/unsub.php
>
I'm NOT looking to unsubscribe, but I am curious about something. How
come Ash's message has the list footer (complete with the unsubscribe
link) and Ronald's does not? I thought it was supposed to get appended
to all messages from the list. (Actually,
- Forwarded message --
> From: "Andrew Ballard" <[EMAIL PROTECTED]>
> To: "PHP General list"
> Date: Fri, 22 Aug 2008 09:38:31 -0400
> Subject: Re: [PHP] Unsubscribe issues
> On Fri, Aug 22, 2008 at 9:10 AM, Ashley Sheridan
> <[EMAIL PROTECTED]>
On Fri, Aug 22, 2008 at 9:51 AM, Maciek Sokolewicz <[EMAIL PROTECTED]> wrote:
> Andrew Ballard wrote:
>>
>> On Fri, Aug 22, 2008 at 9:10 AM, Ashley Sheridan
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> I assume Ronald won't see this, but I'v
On Fri, Aug 22, 2008 at 10:10 AM, Ashley Sheridan
<[EMAIL PROTECTED]> wrote:
> Hence my response of read the headers ;)
>
> Ash
> www.ashleysheridan.co.uk
>
> -- Forwarded message --
> From: "Andrew Ballard" <[EMAIL PROTECTED]>
> To: &
zeros are significant,
not just filler. Keep in mind that ZIP codes ARE NOT numbers at all,
even if they look like numbers in the US. They are postal codes, which
are a string of character data even if all the characters are numeric
digits. Just expand your database to include Canada and it will become
abundantly clear that a numeric data type is not correct for postal
codes.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can see use for things like
InvalidArgumentException, OutOfRangeException or the like in some
cases. In no case would I send something so low-level back to the
user, but they can be useful in input validation for functions to make
sure the data you are processing is what it should be.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27;foo' and text3 =
'foo' ", so I'm not sure if you wanted a union (OR) or an intersection
(AND) of the two matching sets.)
I see in your script that you are only echoing rows where the value of
$apcount is >= 100. Why not limit your query to that? Then you aren
ion.
>
> Cheers,
>
> tedd
Wait a minute - you're going to rail on for ever on another thread
about web in-accessibility with CAPTCHA and then you're going to
propose something that relies on color coding for something that
important? What about all those with red/green color blindness?
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e
others to prevent confusion while still remaining accessible. In that
sense, they have already taken his idea and done something much
simpler: they've simplified the character set. No additional colors,
no extra icons to have to decipher, etc.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, Aug 31, 2008 at 9:53 AM, tedd <[EMAIL PROTECTED]> wrote:
> At 2:21 PM -0400 8/30/08, Andrew Ballard wrote:
>>
>> On Sat, Aug 30, 2008 at 11:38 AM, tedd <[EMAIL PROTECTED]> wrote:
>> > I think making the URL RED would be a better warning than showing
&
I tried to grab it, but it seems that my employer is protecting me
from it. Interesting.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Sep 3, 2008 at 1:33 PM, Wolf <[EMAIL PROTECTED]> wrote:
> Since gmail won't take exe files...
>
> http://lonewolf.homelinux.net/ChromeSetup.exe
>
> Andrew Ballard wrote:
>> I tried to grab it, but it seems that my employer is protecting me
>> from it
Sorry, but sarcasm doesn't quite come across email very effectively.
2008/9/8 Richard Heyes <[EMAIL PROTECTED]>:
> Hi,
>
>> I think he is asking whether people are using Internet Explore 8 Beta 2
>
> I am. That would be an obscure sense of humour.
>
>> No I'm not using it, I still haven't ugraded
I think he is asking whether people are using Internet Explore 8 Beta 2
No I'm not using it, I still haven't ugraded to IE7 yet, and probably
won't while I use Firefox 3, and am quite happy with FF3.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
nt or not. The problem is that you're
confusing the SQL syntax inside your statement:
INSERT INTO purl.schreur (FName, LName, email, phone, record,
subscribed, date, IPAddress, Business, Address1, City, State, Zip,
Coffee, Meeting, areaPlans) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
or
UPDAT
code can see that you actually thought about
what should/would happen if none of the other conditions were true
rather than ignoring those conditions.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Sep 16, 2008 at 10:02 AM, tedd <[EMAIL PROTECTED]> wrote:
> At 10:14 AM +1000 9/16/08, Andrew Barnett wrote:
>>
>> Has anyone got any example integration of PHP with the Paypal API?
>>
>> I'm looking to build a site where people register for a nomin
. See
> RFC1034. Then look up the A record.
>
>
>
> /Per Jessen, Zürich
>
I don't know that it would add much benefit, but you could
periodically download a TLD list from IANA and compare that last
segment to the list.
Andrew
It sounds like there is a space or output before the :
> No puedes tener ningun espacio en blanco delante de session_start();
>
> Sorry for my english:
> you cant have any blank spaccing before SESSION_START()
>
>
> Prueba:
> TRY:
>
> session_start();
>
> echo 'Welcome to page #1';
>
> $_SESSION['
be encrypted,
encrypt only the data in those columns. If you're worried about
someone reading the physical data files I would look at encrypted
storage or a DBMS that offers encryption so it can handle these
details internally.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tart IIS on the affected machine(s).
So, I'm left wondering what that leaves. Is there anything currently
available that could be considered stable for a production
environment, supports parameterized queries and is not slated to be
mothballed in the near future?
Andrew
--
PHP General Mailin
l MS version, but unfortunately, we're one
of those shops that is still running 2000 since a couple of our more
obscure commercial vendor products don't support 2005 (at least not
the version we have).
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Sep 23, 2008 at 10:43 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote:
> Andrew Ballard wrote:
> [snip]
>>
>> 4K limit on TEXTSIZE
>
> [/snip]
>
> As far as I was aware this was a PHP thing that can be changed in your
> php.ini [mssql.textlimit and mss
AR/TEXT or NCHAR/NVARCHAR/NTEXT. (We also have a
commercially written site that uses ColdFusion - I'm much less than
impressed and can't wait until it gets replaced.)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n Windows)
and that is also wasn't quite production quality.
> I nearly got the extension to compile but never cracked it fully before time
> ran out.
Yeah - time is definitely a factor. I know since we're on Windows
there is always COM to hook into ADO, but that just seems sticky. It's
starting to seem like maybe I need to brush up on .NET. :-/
> In any case, good luck!
>
> Jason
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ermitted in PHP. The Zend Framework team has just adopted a
standard that they are not to be used within the framework codebase
itself, for the reasons stated in the rest of the quoted reference.
Thus, within their standard, the closing tag is never permitted. :-)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ee for yourself.
>
> Cheers,
>
> tedd
tedd,
Is there any chance that session variables are getting auto
registered? The fact that the second time through the loop is
outputting the second letter of each name looks like $first_name is
bound to $_SESSION['first_name'] and
0; $i < $num_users; $i++)
{
$_SESSION['last_name'] = $_SESSION['last_name'][$i];
$_SESSION['first_name'] = $_SESSION['first_name'][$i];
echo("{$_SESSION['last_name']} {$_SESSION['first_name']}");
}
?>
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
test that on mysql, but that is how
>> MS SQL works...
>
> Int's don't need quoting in mysql (or postgres, or oracle).. not sure why
> ms-sql would need that.
>
MS SQL doesn't need them for integer values either. I'm not sure why
you would want to do that.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ce in a script.
> But tell me, how often do you get a NULL value from $_GET or $_POST ?
> Because let me tell you, I don't see such a value...ever... And even if I
> did see it, it would not be a VALID value.
I agree you should never see NULL in either of those arrays (unless
you modify them in your code to put a null in one of them). However,
array_key_exists() appears to ALWAYS return the correct value whereas
isset() has one specific case where it is different. When you factor
that there appears to be negligible difference in performance between
the two, isset() is adequate but I see no reason to prefer it over
array_key_exists().
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ou care to explain a little further what you are trying to do.
I can't tell from your post what you mean by an "aggregate variable"
or the "sum of some smaller variable." What are you passing this
to/from? Are you looking for something like this?
http://www.php.net/manual/en/fun
n this site a couple weeks ago when the site was crashing routinely
using both PDO_MSSQL and PDO_ODBC due to a (possibly misconfigured?)
spider that was hitting (I should say hammering) our site. Since
switching, the site has not crashed once. The Microsoft extension also
implements connection p
ns using array_key_exists() in 1.7125430107117 seconds.
Average time per function call: 3.4250860214233E-005
Based on these results, I'd hardly use the "language construct versus
function call" optimization argument to make my decision. I'm not sure
if this is a testament to impro
n execute something like this
(MySQL):
UPDATE product, pending_updates
SET product.name = pending_updates.name,
product.description = pending_updates.description
WHERE product.EAN = pending_updates.EAN
AND pending_updates.sequence_no = ?;
...and then either delete the rows from pending_updates or set
On Tue, Oct 14, 2008 at 10:29 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> Andrew Ballard wrote:
>>
>> I've heard that a lot, but I just don't see it. I'm sure some of you
>> can come up with better tests than this, but here is what I used:
>
>
>> >
>> > That will remove any output buffers and your script should then
>> output
>> > stuff as it happens.
>> >
>> > -Stut
>> >
>>
>> Or you could add
>>
>> flush();
>>
>> after your output, which will flush the output buffer and force it to
>> display.
>
> I did that as well as stut's suggestion. And I tried ob_flush() (just in
> case). Tried a few combinations
>
> Personally I think I sometimes have a negative effect on these things
>
> Dan
>
Did you also read the notes in the description for flush()?
http://www.php.net/manual/en/function.flush.php
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
wnload full documents all at once rather
than in delayed increments and they want to eliminate a lot of
unnecessary page reflows as content is being delivered. I think I've
even seen a FF extension that waits to display anything until the full
page has been downloaded since it makes pages appear to download
faster.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1301 - 1400 of 1549 matches
Mail list logo