|
| JavaScript doesn't implement any kind of one-way hashing. But that's for a
| good reason: suppose JavaScript encoded your password and sent it encoded to
| the server. The in-between hacker would retrieve the encoded password as it
| is sent to the server and simply pass that as the pa
use EXPLAIN to get more information about how postgres executes this query.
I'm not sure about this, but there are some issues with fields of type int8.
It may help to cast explicitly the fields involved in join like:
WHERE bible.book::int4 = books.id::int4
Ask it the postgres mai
array_walk($ar, array(&$object, 'methodname'));
- Original Message -
From: "Jeff Levy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 13, 2001 1:17 PM
Subject: [PHP] array_walk() + class methods
| I'd like to call a class method with array_walk(). Is this
What do you get as result from a 'Show source...' in your browser?
AFAIK, NS4.76 does not display unrecognized HTML element, and it
treats your script's output as HTML source.
try:
- Original Message -
From: "con pulpa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Satu
there is an example in the apache docs or httpd.conf samples
how to pass to error script the original request uri, ins't there any?
- Original Message -
From: "Ashley M. Kirchner" <[EMAIL PROTECTED]>
To: "Daniel Urstöger" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Satu
maybe this is what you need.
- Original Message -
From: "Chris Allen" <[EMAIL PROTECTED]>
To: "Dan McCullough" <[EMAIL PROTECTED]>; "PHP General List"
<[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 11:21 PM
Subject: Re: [PHP] Need a script that will read Apache Log files and
| That means that you should create a .htaccess file containing that:
|
| php_value allow_call_time_pass_reference 1
|
| That should work :)
But as the errormessage mentioned it may not supported in future version.
I think if you declare your function arguments to be passed by variables
PHP automatically calls the appropiate function instead if you.
But consider that the save handler is not called on individual
session_register functions, only when all output is gone, and
the whole session - each registered variable - must be saved.
Note: The "write" handler is not ex
Hello,
The manual says that parse_str does it. (btw, I didn't try it)
Look on the second sentence pasted here.
void parse_str (string str, array [arr])
Parses str as if it were the query string passed via an URL and sets variables in the
current scope. If the second parameter arr is
or in general the following simple PHP function may suffice for you:
function array_innermost($array) {
if (is_array($array)) {
return array_innermost(array_unshift($array));
}
else {
return $array; // exactly not an array now but its 1st element
}
}
try, assert() instead of echo()ing error messages.
assert('is_object($obj)');
and write your error handler code or use mine :)
or am i missing something?
Papp Gyozo
- [EMAIL PROTECTED]
- Original Message -
From: "SafeV" <[EMAIL PROTECTED]>
To:
> I just want to know how to make a inside a get to respond or
> dont make any browser errors?
This is prohibited by either SGML DTDs if HTML
4.01(http://www.w3.org/TR/html4/interact/forms.html#h-17.3):
and XML DTDs of XHTML 1.0 (http://www.w3.org/TR/xhtml1/#prohibitions)
"form
> Hi,
>
> I used
> header("content-type:text/html;charset='windows-1256'");
> and header("content-language:'fa'");
I suggest to try "Content-Type" "Content-Language"
with initial capitals rather than all lowercase and
simply fa, without qoutes.
header("Content-Type: text/html; char
Oops...
> have you tried /e modifier?
>
> preg_replace("//e",'${$1}', $curline);
preg_replace("//e",'${$1}', $curline);
>
> it's just a tip.
>
>
> - Original Message -
> From: "Jeff Lewis" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, November 17, 2001
have you tried /e modifier?
preg_replace("//e",'${$1}', $curline);
it's just a tip.
- Original Message -
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 2:25 PM
Subject: Re: [PHP] Question on variable variables
> Thanks
OK, I found some hints in the annotated manual.
BTW, I'm looking for hearing any comments on this ...
- Original Message -
From: "Papp Gyozo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 11:19 AM
Subject: [PHP]
ve already read Sablotron's documentation, but some help
will be appriciated, especially for xslt_transform().
Papp Gyozo
- [EMAIL PROTECTED]
[^>]*)>.*'.$quoted.'(?>[^<]*)!Ui', $source, $matches);
?>
good point to start:
http://www.php.net/manual/en/ref.pcre.php
- Original Message -
From: "Martin Thoma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 8:30 AM
Subject: [PHP] Regular expre
>
> I know how to make an error message when the connection is lost with the
> database, with the @ and the OR DIE in the connection with the database.
>
>
> Is there also a way to display a custom error message when this error is
> displaid?
i wrote a more or less simple class to wrap
if (!defined('_SYS_TYPES.H')) {
include('sys/types.h');
}
- Original Message -
From: "Briet Vincent" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 15, 2001 10:31 AM
Subject: [PHP] multiple include
> Hi all,
>
> I would like to do som
Nonetheless sometimes it is more efficient to use a template engine.
(IMHO)
Papp Gyozo
- [EMAIL PROTECTED]
- Original Message -
From: "Jason G." <[EMAIL PROTECTED]>
To: "Brad Melendy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesd
or name it in PHP.ini:
session.name
> What you can do is not to name session at all :-) It's easyer :-)
> J
> "Jtjohnston" <[EMAIL PROTECTED]> ha scritto nel messaggio
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks Dav,
>
> You caught me while I was debugging. But I learned
date("z"); // the today's ordinal number
z - day of the year; i.e. "0" to "365"
if you want the ordinal number of other days different than the current one
you can play with mktime or strftime or strtotime to make an appropiate
timestamp as you did in your earlier codes.
- Ori
I've not found the original post, I've just figured out from what Stig underlined.
what about traversing an array like that:
foreach (array_keys($arrC) as $key) {
$arrC[$key]; // do some stuff with array values...
}
This statement always traverse the array with its keys, no matter
PHP 4.0.5, as far as I know.
- Original Message -
From: "Brian Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 11, 2001 6:15 AM
Subject: [PHP] e modifier
> Does anyone know when the PCRE modifier 'e' was added into PHP? Is it
> version dependant, or
EditPlus (http://www.editplus.com) on windows
HTML-Kit (http://www.chami.com/html-kit/)
- Original Message -
From: "Eugene Mah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 3:32 PM
Subject: Re: [PHP] Text Editor with Highlighting
> At 10:02 PM 11/01/2001
and what about array_slice(), array_splice(), array_pop() or
array_unshift()?
Please read the corresponding pages of the manual!
- Original Message -
From: "Christian Reiniger" <[EMAIL PROTECTED]>
To: "Jason Caldwell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 20
check: http://www.php.net/manual/en/function.ini-set.php
- Original Message -
From: "Valentin V. Petruchek" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Thursday, October 18, 2001 4:00 PM
Subject: [PHP] Help, please!
> Hello, Professionals!
>
> I've such problem
> First some basic questions:
> (1) Can you create an unitialised array ?
do you mean:
$array = array(); // creates an empty array;
> (2) Can an unitinialised array be a class member variable ?
for( $i = 0 ; $i < 5; $i++)
$array[] =& new User();
I think it should work.
>
> I have a class
session_register() registers the _global_ variable named by it with the
current session.
So if these globals are not set, you 're out of luck, I think.
- Original Message -
From: "Bradley Goldsmith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 3:13 AM
Subjec
Hi,
I suggest to you:
var_dump($sybase_query);
It may help you to make wellformed query-string.
- Original Message -
From: Caleb Carvalho <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 11:04 AM
Subject: [PHP] Warning: Sybase message: Incorrect syntax near
LC_* are predefined constants, so:
setlocale(LC_ALL, "LT");
- Original Message -
From: Veniamin Goldin <[EMAIL PROTECTED]>
To: php <[EMAIL PROTECTED]>
Sent: Thursday, August 30, 2001 11:37 AM
Subject: [PHP] Locale Month Name
> Hello !
>
> Please help me,
>
> How to get Month name accor
I also can hardly believe the 84+ sec. In such case all PHP template
engines may run for a thousand years.
- Original Message -
From: nick <[EMAIL PROTECTED]>
To: 'nick' <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, September 02, 2001 2:56 PM
Subject: RE: [PHP] php's future
Hello,
check it in the manual: http://www.php.net/manual/en/function.ereg.php
If you don't pass the third -- optional -- argument, then it's true.
Otherwise not.
I don't know this book, but you may keep in my mind that PHP is evolving,
so the online manual can be its most up-to-date documentati
Hi,
On Linux/Unix systems you may use Semaphore and shared memory functions.
http://www.php.net/manual/en/ref-sem.php
or simply use sessions. However, session variables are stored in flat files
or in db.
- Original Message -
From: senthilvellan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]
,
Papp Gyozo
- [EMAIL PROTECTED]
- Original Message -
From: Jon Thompson Coon <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 01, 2001 4:14 AM
Subject: [PHP] passing variables between scripts?
> I can't cope the fact that I loose my variables eve
http://www.phpbuilder.com/columns/chriskings20001128.php3
- Original Message -
From: Jason Radley <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 5:11 PM
Subject: [PHP] Cookies
> Does anyone know how to share cookies between servers.
> What I want to do is set a
$GLOBALS[substr($string, 0, 1)]
or :
$tmp = substr($string, 0, 1);
${$tmp} = 'add whatever value you want';
- Original Message -
From: Stig-Ørjan Smelror <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 9:35 AM
Subject: [PHP] help with strings...
> Hei all.
>
yes, in_array($person, $people)!
however, you may take a look into the manual.
- Original Message -
From: Joseph Bannon <[EMAIL PROTECTED]>
To: PHP (E-mail) <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 5:40 PM
Subject: [PHP] array search
> I have an array of names, like below...
>
I think it's very simple to do it.
';
// new Type list
echo '' . $row['Type'];
}
// print out the rest of the row like :
// Place Name and Place Abbr and ther link
echo ''.$row['place name'];
echo ' jump '.$row['place abbr'].'';
//...
}
//...
?>
or maybe I
Well,
T1 INNER JOIN T2
For each row R1 of T1, the joined table has a row for each row in T2 that
satisfies the join condition with R1.
T1 LEFT OUTER JOIN T2
First, an INNER JOIN is performed. Then, for each row in T1 that does not
satisfy the join condition with any row in T2, a joined row is re
yes, you just declare the default value of the arguments such as :
my_function ($first = 'no-value', $second = 0, $third = null )
Note that the default value must be a constant expression and any defaults
should be on the right side of any non-default arguments
or you can achieve the very prett
Hi,
use:
preg_match('/\Wgood\W/',$var);
or
preg_match('/\bgood\b/',$var);
I don't know exactly.
- Original Message -
From: Brandon Orther <[EMAIL PROTECTED]>
To: PHP User Group <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 12:02 AM
Subject: [PHP] Check if a word is in my
Hi,
There is a few scripts on Zend pages.
I'm sure, this one of them will be very helpful:
http://www.zend.com/zend/tut/authentication.php
- Original Message -
From: Rene Fournier <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 9:24 PM
Subject: [PHP] htaccess
Hi,
try to change the line in that loop to this one:
$sql .= $key.' = '.$$key.', ';
- Original Message -
From: P.Agenbag <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 7:54 PM
Subject: [PHP] Putting variables in a string
> I am trying to make a string that w
Hello,
you should check the latest version of the manual:
http://www.php.net/manual/en/language.types.integer.php
more precisely and specifically the "integer overflow" section.
I think, you should use the arbitrary precision integer extension.
http://www.php.net/manual/en/ref.gmp.php
hth
---
46 matches
Mail list logo