Hello and thanks in advance,
I have a problem with the cache in Internet Explorer version 6.0
When I put these lines in the page
header ("Expires: Mon, 1 Jan 1997 01:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
Hi, Shawn and all:
I tried to run the script using the method you suggested for Windows, but it
gives me this:
'http' is not recognized as an internal or external command, operable
program or batch file.
I could telnet and ping to the server using #80 to where the script
calculate.p
> -Original Message-
> From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2008 9:02 AM
> To: Shawn McKenzie; php-general@lists.php.net
> Subject: RE: [PHP] Re: exec() Error
>
> Hi, Shawn and all:
>
>I tried to run the script using the method you suggested for
>
> -Original Message-
> From: Boyd, Todd M. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2008 9:10 AM
> To: Wei, Alice J.
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Re: exec() Error
>
> > -Original Message-
> > From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
> > Sen
> I have a problem with the cache in Internet Explorer version 6.0
>
> When I put these lines in the page
>
> header ("Expires: Mon, 1 Jan 1997 01:00:00 GMT");
> header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> header ("Cache-Control: no-cache, must-revalidate");
> header ("Pragma:
Hi,
I have a $string and i want to know if it contains Hebrew characters in it,
I wrote the following:
> function containHebrewChars ($string)
> {
> $chars = "אבגדהוזחטיכלמנסעפצקרשת"; // ABC of hebrew chars (AlefBet)
> $chars =
> preg_replace("/([\xE0-\xFA])/e","chr(215).chr(ord(\${1})-80)",$char
If your goal is to eventually convert Hebrew chars to something else, you could
just use str_replace or stri_replace and have each Hebrew char as an array
element, replaced by another array element as a match.
Example in English:
str_replace(array('a','b','c'),array('t','u','v'),$string);
Thi
or do the same but with strtr()
Will Fitch wrote:
If your goal is to eventually convert Hebrew chars to something else, you could
just use str_replace or stri_replace and have each Hebrew char as an array
element, replaced by another array element as a match.
Example in English:
str_replace(
The strtr will be better as he's not looking to actually replace the
characters.
Looping through each character and running strtr will work, but you should run
a timer on both the regex and strstr. See which is faster.
-Original Message-
From: M. Sokolewicz [mailto:[EMAIL PROTECTED]
PEAR Text_LanguageDetect
Nitsan Bin-Nun wrote:
Hi,
I have a $string and i want to know if it contains Hebrew characters in it,
I wrote the following:
function containHebrewChars ($string)
{
$chars = "×�×‘×’×“×”×•×–×—×˜×™×›×œ×ž× ×¡×¢×¤×¦×§×¨×©×ª"; // ABC of hebrew chars
(AlefBet)
$chars =
pre
Thanks, Todd.
I will be starting to use cURL based on your explanations.
Alice
==
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
[EMAIL PROTECTED]
From: Boyd, T
Wei, Alice J. wrote:
> I have got a task from my client asking me to build something
> that allows the variables in the PHP file passed to another
> PHP file or a file in a different computer language to perform
> some operations on another remote machine. According
___
From: Per Jessen [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2008 3:47 PM
To: php-general@lists.php.net
Subject: Re: [PHP] exec() Error
Wei, Alice J. wrote:
> I have got a task from my client asking me to build something
> that allows the va
Guys,
Perhaps I'm missing something or just trying with the wrong tools...
But the thing is, I have two arrays and want to know what values are in one
that aren't in the other.
They're very long arrays (label files for translation)
--
Thiago Henrique Pojda
Thiago H. Pojda wrote:
Guys,
Perhaps I'm missing something or just trying with the wrong tools...
But the thing is, I have two arrays and want to know what values are in one
that aren't in the other.
They're very long arrays (label files for translation)
You know, in the manual array_diff is
*accidentally sent*
Guys,
Perhaps I'm missing something or just trying with the wrong tools...
But the thing is, I have two arrays and want to know what values are in one
that aren't in the other.
They're very long arrays (label files for translation) and the array_diff()
is returning null, eve
> -Original Message-
> From: Thiago H. Pojda [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2008 3:10 PM
> To: php-general@lists.php.net
> Subject: [PHP] array_diff()?
>
> *accidentally sent*
>
> Guys,
>
> Perhaps I'm missing something or just trying with the wrong tools...
>
> B
On Wed, Jun 25, 2008 at 4:08 PM, Wolf <[EMAIL PROTECTED]> wrote:
>
> So, where is your code that isn't working right?
Yeah, come on, Thiago, show code. You know better than that! ;-P
And by the way, I *believe* that as long as your arrays are <=
65,355 entries - while it will be slow an
Actually that was a miss when I was "translating" var names.
Here follows the code again, untouched this time:
File _pt has ~2300 lines while file _es has ~1700. Not a chance of them
having the same labels :)
On Wed, Jun 25, 2008 at 5:18 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:
> > -O
I just hit tab and space at once and gmail just sent it ;)
Well, I'm not reaching that size, hehe.
Btw, PHP Version 5.2.6
On Wed, Jun 25, 2008 at 5:19 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Wed, Jun 25, 2008 at 4:08 PM, Wolf <[EMAIL PROTECTED]> wrote:
> >
> > So, where is your code th
> -Original Message-
> From: Per Jessen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2008 2:48 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] exec() Error
>
> Wei, Alice J. wrote:
>
> > I have got a task from my client asking me to build something
> > tha
Ok, forget everything... it was just a user (programmer) problem..
while in translation process, labels_es became a copy of labels_pt :P
Sorry about the noise.
PS: Hoorray: again in list _o/
On Wed, Jun 25, 2008 at 5:24 PM, Thiago H. Pojda <[EMAIL PROTECTED]>
wrote:
> I just hit tab and sp
From: Boyd, Todd M. [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2008 4:25 PM
To: Per Jessen; php-general@lists.php.net
Subject: RE: Re: [PHP] exec() Error
> -Original Message-
> From: Per Jessen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25,
On Wed, Jun 25, 2008 at 4:31 PM, Thiago H. Pojda <[EMAIL PROTECTED]> wrote:
>
> PS: Hoorray: again in list _o/
Yeah, I noticed your softpartech address was closed out.
--
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VP
Thiago H. Pojda wrote:
Ok, forget everything... it was just a user (programmer) problem..
while in translation process, labels_es became a copy of labels_pt :P
Sorry about the noise.
PS: Hoorray: again in list _o/
On Wed, Jun 25, 2008 at 5:24 PM, Thiago H. Pojda <[EMAIL PROTECTED]>
wrot
> -Original Message-
> From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2008 3:31 PM
> To: Boyd, Todd M.; Per Jessen; php-general@lists.php.net
> Subject: RE: Re: [PHP] exec() Error
---8<--- snip
> > Well, "http://www.mysite.com/calculate.php"; is not an executabl
Hi all:
We are use PHP PDO's Prepared statement to send SQL query to Mysql server.
According to PHP PDO doc, Prepared statement are fast for executing multiple
SQL queries with same parameters. "by using prepared statement you avoid
repeating the analyze/compile/optimize cycle"
Our application i
I am running a hybrid environment.
Box A: PHP 4.3.9
Box B: PHP 5.1.6
Box C: Memcached 1.2.2
When I set a key in memcache(Box C) from Box A, I am unable to read
it from Box B and vice versa.
I did not see any such issues mentioned in the PHP documentation.
Has anyone seen something similar? Do
ctx2002 wrote:
> Hi all:
>
> We are use PHP PDO's Prepared statement to send SQL query to Mysql server.
> According to PHP PDO doc, Prepared statement are fast for executing multiple
> SQL queries with same parameters. "by using prepared statement you avoid
> repeating the analyze/compile/optimize
I mean for each different requests/connection how can i use same prepared
statements object that was
generated by PDO lib/mysql Server.
is Mysql server cache prepared statement plan?
for example:
client one connect to our site, and send a prepared statement to our mysql
DB, now the DB will c
ctx2002 wrote:
>
> I mean for each different requests/connection how can i use same prepared
> statements object that was
> generated by PDO lib/mysql Server.
You can't.
Resources/connections are done per request and can't be shared - it's
done that way by design.
--
Postgresql & php tutorial
so only benefit for use prepared statement in Web environment is to prevent
SQL
injection?
regards
chris smith-9 wrote:
>
> ctx2002 wrote:
>>
>> I mean for each different requests/connection how can i use same prepared
>> statements object that was
>> generated by PDO lib/mysql Server.
>
On Wednesday 25 June 2008 8:24:06 pm ctx2002 wrote:
> so only benefit for use prepared statement in Web environment is to prevent
> SQL
> injection?
>
> regards
It's somewhat more complicated than that. (The following is based on my own
experiences with PDO and a conversation with PDO's original
Boyd, Todd M. wrote:
>>
>> Well, "http://www.mysite.com/calculate.php"; is not an executable.
>> Try this instead:
>>
>> exec("php /calculate.php");
>
> I still don't think this is how exec() should be used when executing
> remote PHP scripts via HTTP, since the web server is not going to give
34 matches
Mail list logo