meout: The number of seconds before receives and sends time out.
#
Timeout 300
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
h created the cookie
>to begin with), the cookie has the value that it was set with.
[snip]
That's it - cookies will only be sent to the same domain (hostname) they
have been generated at. You cannot pass cookies between domains (hostnames).
--
// this avoids array access if the key is not set,
// OTOH the receiving variable might be undefined
if (array_key_exists('nonexisting_key', $array))
$test = $array['nonexisting_key'];
// this is a simple, elegant, and even self-documenting solution
$t
ile($morerows=mysql_fetch_array($another_query)) {
// array_push($transactions[$row[dealercode],
//$morerows[country]=>$morerows[amount];
$transactions[$row['dealercount']][$morerows['country']]
= $morerows['amount'
[snip]
You could do that without too much effort. Export the data to be synced
from MS Access to a CSV style export format, upload it to the server and
process it. There are a couple of examples how to handle CSV style data on
SourceForge, I believe.
--
>O
meone I'd do business with.
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ve the acknowledging mechanism
doesn't really work.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at I don't have control of the PHP configuration on the
>server, does anyone have any idea of how I could handle this parsing
>problem, still being able to define the file as XHTML?
Within your PHP code:
echo 'O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.
aScript "OnLoad" handler:
...[page contents]...
...[more page contents]...
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
),
),
array('expr'=> '!empty(\$_REQUEST[\'Jfirstname\'])' .
' && in_array(\$_REQUEST[\'Jtowhompaid\'],' .
' array(\'Renting\', \'Lease\', \'Buying House
W/Mortgage\'))',
'pattern' => 'Enter Cobuyer\'s [%s]',
'check' => array('Jtowhompaid' => 'To Whom Paid',
'Jpaymentaddress' => 'Home Payment Address',
'Jpaymentcity'=> 'Home Payment City',
'Jpaymentstate' => 'Home Payment State',
'Jpaymentzipcode' => 'Home Payment Zip Code',
),
),
array('expr'=> '!empty(\$_REQUEST[\'Jfirstname\'])',
'pattern' => 'Enter Cobuyer\'s [%s]',
'check' => array('Jincome' => 'Income',
'Jtypeofincome' => 'Type of Income',
'Jbankname' => 'Bank Name',
),
),
);
function run_test(&$map)
{
foreach ($map as $check) {
if (eval("return ({$check['expr']});")) {
foreach ($check['check'] as $field => $msg) {
if (empty($_REQUEST[$field])) {
echo sprintf($check['pattern'], $msg);
return false;
}
}
}
}
return 'Pass';
}
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e(',',$data);
array_unshift($atmp, $key);
$array_output[] = $atmp;
}
May I ask why you're reformatting the array - maybe you could avoid this step?
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
inks" is null,
you will see nothing between ** START DUMP ** and ** END DUMP **. Once you
have this info you can investigate further.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ilable allows to run more than one session from a single
browser instance.
HTH,
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
llowed directories:
open_basedir = /tmp:/www/yourvirtualhost
This should give you access to both trees.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
& AUTH_APP_C)
header('Location: main_menu.php');
// on top of AppD
if (!($admin->GetAccountRights() & AUTH_APP_D)
header('Location: main_menu.php');
This is fairly crude but quite efficient.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ple on my server:
http://www.vogelsinger.at/protected.html
This should do just what you need, some explanations are within the source
code.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To
red in anyone's history files. Well... why
protect it anyway?
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hat the _client_
needs to transmit the auth credentials to the server.
What you can do however is to somehow include the page contents in your PHP
output. In case the .htaccess-protected content is a simple html page you
could e.g. readfile() it, or process it in a similar way.
HTH,
-
ettings. Being a
HTTP equivalent this also means you can transmit it as MIME header as well:
header('Refresh: 5;URL="http://www.microsoft.com";');
echo 'Transferring you to Microsoft in 5 seconds...';
exit;
HTH,
--
>O Ernest E. Vogelsinger
(\)ICQ #13
"From: [EMAIL PROTECTED]" .
"Reply-To: [EMAIL PROTECTED]" .
"X-Mailer: PHPSpam/" . phpversion() . "\r\n",
"[EMAIL PROTECTED]");
The last parameter is a sendmail parameter which may be omitted (doesn't
work in safe mode an
time is ', date('H:i:s'), '';
EOC;
eval($code);
The complexity is up to you ;-)
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
($this), "::Set: class variable
doesn't exist: $varname]";
}
}
$sc = new CSampleClass();
echo "m_a = ", $sc->Get('m_a'), ", m_b = ", $sc->Get('m_b'),
", other = ", $sc->Get('other'), "\n&qu
don't you want to "impress your girlfriend"?
*ducking away*
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y[] = ' . $out[2][$i] . ';');
After this eval, the $replace_by array will contain the correct value.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oop I use this array to modify the HTML code to read
(pre-match)#linked-text# [#url#]...
which is what you want, after all.
>
>On Tue, 2003-06-03 at 11:59, Ernest E Vogelsinger wrote:
>> At 18:43 03.06.2003, Jackson Miller said:
>> [snip]--
.= $aresult[1];
if ($aresult[2] && $aresult[3]) $result .= $aresult[3] . ' [' .
$aresult[2] . ']';
$html = $aresult[4];
}
$result .= $html;
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
like to share, please do.
[snip]
This should work:
$result = null;
while (preg_match('!(.*)<.*?a.*?href\s*=\s*"(.*?)".*?>(.*)!i', $html,
$aresult)) {
$result .= $aresult[1];
if ($aresult[2]) $result .= ' link name [' . $aresult[2] .
php.net/manual/en/ref.curl.php) how to do this.
HTH,
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s is what
you're looking for.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nsolicited and impolite spams
camouflaged as "auto-reply".
Thank you for consideration.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t when the user leaves the field blank, not to
>change that field in MySQL.
[snip]
Try something like
if (!empty($_REQUEST['fieldname']))
dbupdate('fieldname');
http://www.php.net/manual/en/function.empty.php
--
>O
all successive objects make sure they have
// the same class (or at least derived from).
if (is_object($hObj))
return (!count($this->arObj) || is_a($hObj,
get_class($this->arObj[0])));
return false;
}
--
>O Ernest E. Vogelsinger
ew CExtendedTest(2));
$tee->attach(new CBaseTest(3));
$tee->attach(new CExtendedTest(3));
$tee->attach(new CBaseTest(4));
$tee->attach(new CExtendedTest(4));
echo ''; $res_hello = $tee->call_method('hello', 'Called hello() (both
base and extended)
t. All pages
went fine when using a synchronous connection (in == out).
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$start = microtime();
for ($i = 0; $i < 1; ++$i)
$n = getdate(time());
$end = microtime();
list($s0, $s1) = explode(' ', $start);
list($e0, $e1) = explode(' ', $end);
echo sprintf('This page took %.2f seconds to generate',
($e0+$e1)-($s0+$s1));
--
)) {
$cmd = "return sprintf(\$string, '" . join("','",
$params) . "');";
$string = eval($cmd);
}
if ($passes)
$x = sprintf("%f secs (%f mse
$wd = "9"; }
(08 => decimal 0, 09 => decimal 1). In this case your last statement will
trigger for _any_ day in June.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
guage inventors allow functions to continue after they call
others... Maybe you mixed this up with gotos, these never return. Thanks to
Andi Gutman and Zeev Suraski that there's no goto in PHP *smile*
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vog
ects
in favour of sequentially numbered arrays?
Just wondering...
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
IME compliant message, including all headers, yourself. For more
information on MIME you should consult RFC822.
Do yourself a favour and check out the relevant PEAR classes (Mail/Mime and
Mail). http://pear.php.net/packages.php?catpid=14&catname=Mail. Performs
just great ;-)
--
>O
e[idx])');
echo "-\n";
runtest('$ostore[] = new TEST()', 'Created $i object entries');
runtest('$ostore[$i]->a["rid"] = $i', 'Write-Accessed $i object values
using direct access');
runtest('$ostore[$i]-&
session data go to if you're redirecting to plain html?
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
created within the
included file are within the function's scope. If included outside, they're
on a global scope - you would need to use either the $GLOBAL superglobal
array, or to declare them being global within the function that uses them.
--
>O Ernest E. Vogelsinger
the same
physical directory.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
code as to MHO.#
Either this guy is trying to deceive his own weak code, or he doesn't have
a clue of how PHP works. I'd reconsider hiring such a "developer".
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General
gn to interactive stuff, e.g. a
chatroom for your partners.
All prices excl. VAT, of course. Additional National Fees may apply.
Just drop me a note...
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (htt
case you're on Linux, and may run externals, you could
du -s . (prints kilobytes)
du -s -b (prints bytes)
list($dusage, $dir) = explode(' ', `du -s -b .`);
echo sprintf('The current directory has %d kB (%d bytes)', $dusage / 1024,
$dusage);
--
>O
// a ends before B
elseif ($A['ENDDATE'] == $B['ENDDATE']) { // ends at the
same day
if ($A['ENDTIME'] < $B['ENDTIME']) return -1; // a ends before B
elseif ($A['ENDTIME'] == $B['ENDTIME']) {
gt;apache; it doesn't seem to be making any difference.
Check the permissions on the files too, they should be -rw-rw---, or
-rw--, at least (best...)
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://w
/mysql), you need to specify the
correct directory when configuring php.
The next issue may be if you have multipls PHP versions (from RPM, or from
your own builds) on your system - check which version Apache is using.
Check your httpd.conf what installation it uses.
--
>O Ernest E. Vogelsinge
compile make sure Apache uses the module you have just compiled.
Have a look at phpinvo() and check the build date to see if it's using the
very last buld.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www
if (!ereg("^[0-9)(xX -]{7,20}$",$phone))
>{
>unset($do);
>$message_new = "$phone is not a valid phone number.
>Please try again.";
>include("login_form.inc");
>exit();
directly here af
8
columns indentation width.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t resist...)
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the intranet DB,
formatted in a way easy to parse by an intranet script (e.g. ini style, or
xml, whatever). On the intranet box have a cronjob running that polls once
per minute.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP Gener
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d button ;-)
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
should be in curly quotes then:
echo "{GLOBALS['$key']} = $value\n";
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ficate to
authenticate itself. AFAIK this can be done with cURL.
HTH,
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nal input?
[snip]
nl2br()
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eg("^[0-9]*$",$phone)) {
You could also check if anything _not_ being a number exists within $phone:
if (ereg("[^0-9]",$phone)) {
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
f ($fp)
{
fputs( $fp, "GET ".$file." HTTP/1.0\r\n" .
"Host: $hostname\r\n" .
"Accept: text/html\r\n" .
"Accept: text/plain\r\n\r\n" );
$src = '';
while (!feof ($fp))
xception of omitting the headers, but without looking).
So in fact an fopen() to a non-existing page will be seen as successful by
fopen(). This is by design and afaik documented somewhere.
To actually check on the HTTP status codes you need to run your own, either
using cURL, or by doing you
1300+ mails when the script is supposed to
send 1000 there's certainly something wrong ;-)
Try to mark the first message so you can possibly see where it's about to
start over again. Then hook in here with your debug efforts to see as to
why it starts over.
--
>O Ernest E.
mailing process starts again?
[snip]
From what you've said it looks as if your script is running in an endless
loop. You may debug it by _not_ actually sending the mail, but echoing the
mail() command to the browser, together with the vital variab
7;,'windo...
Should make for a valid URL then. However don't forget that passing
application data via URL could pose a security risk to your application,
depending on what the data actually represents, and how it is worked on.
Consider also that URLs have some size limit (don't have t
/manual/en/function.setcookie.php):
"secure" indicates that the cookie should only be transmitted over a secure
HTTPS connection. When set to 1, the cookie will only be set if a secure
connection exists. The default is 0.
Sorry if I'm OT here but you didn't mention https in
onnection
You see the main recipient is listed in the MIME header ("To:"), but the
Bcc recipient ([EMAIL PROTECTED]) is not; it only shows up during the SMTP
conversation (the "envelope" part).
AFAIK it's a feature of the mail client; be it an email program or a mailer
class.
snippet that I could use to convert a temp file to use
>all \n based line endings for consistency?
[snip]
$in = array("/\n\r/", "/\r\n/", "/\r/");
$out = array("\n", "\n", "\n");
$cleaned = preg_r
t_ID) VALUES
>('".$_GET[user_id]."', '".$fields[$i]."')";
> }
>}
[snip]------------
Shouldn't that be
if ($values[$i] != 0){ //line 137
Note the curly vs. square brackets in $values
--
>O Ernes
T_ALLOWED_EXTENSION' => "Not Allowed File Extension, the
following filetypes are allowed : ({$this->type})\n",
);
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s $i: ".$_POST['address']['address'][$i];
echo "city $i: ".$_POST['address']['city'][$i];
}
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;));
To insert the home address you'd create an SQL statement like this:
for($i = 0; $i <= $number_of_addresses; ++$i) {
$sql = "insert into address(adress, city) values (" .
"{$_REQUEST['address']['address'][$i]}," .
"{$_REQUEST
() and class_exists() o test against needed
implementations. Some extensions may have functions returning the installed
version as well.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To un
7;t grant "write" permission to the webserver user, or
the subdirectory below (...ies/philips) does not (yet) exist.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nously) transaction data via SSL. You might consider using cURL
for this kind of stuff; most of them have working examples in Java, PHP,
ASP, etc.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To un
file, or copy/paste its contents into
your own code.
// The next lines are just to test the stuff - adjust the Content-Type
header to your needs:
header('Content-Type: image/gif');
eval($asc); // this will render the binary content into $img_data
echo $img_data; // send it
refresh its content - that's where you can come in.
I've answered a similar question a week ago that you might find in the
archives - look for "OT Inactivity Timeout". Should give you a starter.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger
mber. If you would just add the titles up ($this->all_productions[] =
$row['title']), PHP would choose an index key for you - the most general
thing it can do is to enumerate it. Basically what it does is
array[count(array)] = new_element
So much for the "theory" - wh
be
sure in a general way, except your application is designed in a way that
uses always non-numeric keys for associative arrays.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he code you present must be for a
different processor that I don't know... well, haven't programmed in asm
since - wait let me think - 85? Have still some asm manuals around, but I
don't think the timing numbers are still relevant for todays caching cpu's...
--
>O
the valid numeric equivalent of the IP address.
>
>Isn't that what ip2long() does?
>
>Also, the man page on ip2long() has some good notes and code that may
>help the OP.
>
>http://www.php.net/manual/en/function.ip2long.php
[snip]
T
d notation to aid us
miserable human beings.
$abytes = explode('.', $ip); // explode the IP string
$ip = 0;
foreach ($abytes as $byte) $ip = ($ip << 8) + $byte;
This will give you the valid numeric equivalent of the IP address.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
languages the differences will rocket skyhigh
compared to compiled executables.
Well, it's still to be measured in nanoseconds for a single instance,
thanks to modern processor power...
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Apache's mod_rewrite to rewrite the URL, or use an
ErrorDocument handler to deliver the correct page.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ic link to the /scripts
directory, within their domain tree.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
keys = array_rand (array_keys($input), 2);
print $input[$rand_keys[0]]."\n";
print $input[$rand_keys[1]]."\n";
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hen, I believe.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ransfer rate. If you still encounter big holdups for other
processes you might consider using usleep() every 10th chunk or so, but use
your calculator to check how that would extend the overall transmission
time. For example, for a 100MB file, going to usleep for 50 msec after each
9kb chunk would mean that your process will sleep for 1.82 hours (!!) until
the file is delivered...
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cter" to
"or a period" (in this context) so I believe that's what you want to do.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uot; and a version number (I believe).
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ocation of
another frame, something like that (untested):
hFrame = parent.topframe; // topframe is the "name" of the frame
if (hFrame) hFrame.location.href = 'otherurl';
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.
--
Maybe you could send some code snippets what you're trying to do, or
elaborate a bit more so we can help you. POST'ing web forms is said to
work, I've heard.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsing
code to accomplish this,
you may find it in {php_source_directory}/ext/session.c, _php_create_id(),
and {php_source_directory}/ext/standard/lcg.c, php_combined_lcg()).
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing Li
;);', '', $header);
> $footer = str_replace('include("$footer");', '', $footer);
>}
>
>include("$header");
>?>
>
>// html
>
>
----[snip]
Hmm - can't work be
sions, end extensions for these extensions,
must be written in a thread-safe way.
While the PHP core group as to my knowledge has already implemented PHP
(4.3.0 that is) in a thread-safe way, most of PHP extension modules are not
(yet?) thread safe.
Might get you into a core dump I suppose...
--
ttempt to
create a database-independent layer for PHP - it works with most major
databases (including ODBC) and keeps you off the hassles of implementing
database-specific code. (Disclaimer - this is not, and cannot be, valid for
non-standard SQL extensions offered by any particular database
eblogize_links');
function weblogize_links($buffer)
{
// parse the output $buffer and modify all links
}
A special gotcha may come in here: take care to only rewrite links that
point to your own site.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://w
POST array (e.g.
unchecked checkboxes are _not_ sent by the browser).
You should rather have a list of input variables that need to be filled and
compare $_POST against this.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General
1 - 100 of 594 matches
Mail list logo