you should use
Content-type: text/plain
Content-Transfer-Encoding: 7bit (or 8bit, depends)
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
']}' and
password='{$_SERVER['PHP_AUTH_PW']}';
Note that I used single quotes within the array - it's for the paranoid
like me only, it's a few nanosecs faster :)
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http
object is global - there is a public
wrapper function around it to return a reference to the global cache
object. Currently we have approx. 85,000 lines of code, and absolutely no
global variable of our own...
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http
) not read/writable by anyone else
and you are (relatively) secure.
--
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
?!
[snip]
hmm - it's a little bit inefficient in terms of nanosecs, but syntactically
correct. You simply have 18 successive empty statements...
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General
believe your HREF contains a closing quote somewhere before
the parameters (maybe in any parameter value). To avoid this, use
urlencode() vor all parameter values you use to construct a link with.
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at
amp;age = d
)
--
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
misinformation.
--
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
,$rest) = preg_split(/\s+/, $text, 4);
print($rest);
will correctly output I tell 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
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
[*] item 2
[*] item 3
[/list]';
echo ubb2ul($ubb);
?
--
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
, without any error.
A small glitch: in case dirname($_SERVER['PHP_SELF']) is empty (root
directory), your header would look as:
http://www.yourdomain.com//relative.php
Note the double slash...
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at
here/a to',
'continue (sorry folks)';
}
// else no error - continue
?
Hope this helps,
--
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
At 23:57 09.11.2002, Ernest E Vogelsinger said:
[snip]
?php
if ($we_found_an_error) {
$url = 'http://' . $_SERVER['SERVER_NAME'] .
'/my_error_handler.php?any_parameters_you_need';
echo 'script language=JavaScript
- continue
?
--
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
could:
$arwords = split(' ',$sentence);// make an array
$arwords = array_slice($arwords, 0, 4); // return the first 4 entries
echo join(' ', $arwords); // and show them
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http
); clearstatcache(); }
while(filesize(index.php 10) { usleep(100); clearstatcache(); }
This will sleep for 0.1 seconds, not really notable. Note that I put the
call to clearstatcache() _after_ the sleep...
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http
, by setting the header yourself:
header('Content-type: text/vnd.wap.wml');
Have fun (and post the URL when finished .-) )
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
a charm until you mess up at a
single location. Well, having made my way from C/C++ to PHP I'd rather deal
with pointers, but unfortunately PHP doesn't have them. So keep an eye open .-)
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General
caching.
No-cache MIME headers are:
header('Pragma: no-cache');
header('Cache: none');
--
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
correctly.
Usually Apache runs as system, so make sure you're giving the system
user full rights (or at least r/w/d) to this directory.
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
($buffer, $mode) {
$fp=fopen(cachefilename(), w);
if($fp)
fputs($fp,$buffer);
return ob_gzhandler($buffer, $mode);
}
But I doubt this would change anything here... ob_gzhandler _should_ return
some value. You have some output in the file do you?
--
O Ernest E
be somewhere in the outer logic - the
callback you showed doesn't do any discrimination if it has a cache file or
not. Check here, I'd suggest...
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
? so that the
interpreter doesn't take it as the end of the script ! Any idea ?
[snip]
Try
echo 'form action=', '', '?', 'php echo $PHP_SELF', '?', '', '';
This should work (untested)
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http
to predefine variables
since they're auto-initialized with NULL when used first. These notices are
only for the development cycle, to aid us in spotting a problem where you
expect some data to be there, but it aint because the variable name has
been mistyped...
--
O Ernest E. Vogelsinger
:)
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
are required to be prototyped that way - this helps
you not to forget to pass by reference. You really should modify your
functions using reference parameters when declaring them, if you're using
references...
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
the actual flushing for what
reason ever. I don't believe PHP buffers files differently if they are
accessed using an fopen url wrapper.
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
a notice
Product();
// will fail
Product('ger');
If you keep your code like it is be warned that it may break with a future
version of PHP.
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
:
echo 'Unsupported status!';
}
}
else echo 'No status sent!';
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
can you pass GET variables to other page without setting
register_globals=on?
What do you mean by pass it on to other page? I'm afraid I don't get you.
What are you trying to accomplish?
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
A reference like foo($a) and have the
opportunity to choose at runtime if I want to use a reference here or not,
but it's how they say...
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
register_globals=off?
?php
$parms = null;
foreach ($_GET as $p=$v) {
if ($parms) $parms .= '';
$parms .= $p=.urlencode($v);
}
?
...
a href=p02.php??php=$parms?
This will do what you want (untested, but should work)
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http
]
you need to restart apache since your php is a loaded module:
/usr/sbin/apachectl restart
--or--
/sbin/service/httpd restart
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net
have a lot of comment, then it's usually
faster ;-)
Honestly - you need to profile this to get a real answer. If you have a
library with a bunch of functions it would be better to include only a
subset of functions when you need them.
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
]
Make your command like this
c:/abc/hello.exe 21
to see if some error is given... might be a problem with environment space?
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
trailing whitespaces; and
PHP will even ignore a newline character following immediately a closing tag:
--[html]-
xmpOutside?php
echo 'Inside';
?
Outside/xmp
--[html]-
will correctly produce this:
OutsideInsideOutside
--
O Ernest E. Vogelsinger
(\)ICQ
**';
$pass = '**pass**';
$ftphost = 'ftp_host';
$ftpfile = '/www/sample.html';
$fp = ftp_connect($ftphost);
if ($fp) {
$login = ftp_login ($fp, $user, $pass);
ftp_delete ($fp, $ftpfile);
ftp_quit($fp);
}
else die('Cannot connect to FTP');
--
O Ernest E
fantasy for both cases you sent.
--
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
), and it doesn't suffer from MySQL's
self-admitted limitations, mainly the lack of stored procedures and triggers.
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
:
ob_start();
print_r(your_array);
$result = ob_get_contents();
ob_end_clean();
--
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 your template like this:
img src=?php echo $root_path/$agent_name?r=, random();?
This will result in something like
img src=/www/special_projects/Elkhart/your.agent.jpg?r=17382
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
, at this time the
server has already forgotten about the request...
There cannot (CANNOT) be any interaction between client-side Javascript and
any server-side application. These two are effectively independent!
Hope this clears things up...
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
, but not outside your home directory.
Could it be that the correct path for your statement _should_ be
/home/cwiltgens/.pix?
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
[EMAIL PROTECTED]
--
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
in my include statement (?).
Odd. Many thanks for the response!
[snip]
Now _THAT'S_ odd - hmm... no explanation. *shrug*
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http
data to extract it
helps to specify MYSQL_ASSOC as result_type, this will omit the numerically
indexed data from the fetched array, which isn't used by extract() anyway.
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
)) {
$i = 1 ($seq-1); // assuming ID's are 1-based
$result += $i;
}
}
return $result;
}
$a = array(1,3,5,9);// 1 0001 0101 = 0x115
echo 'xmp', sprintf('0x%x', makebits($a)), \n/xmp;
?
--
O Ernest E
At 13:39 06.11.2002, Marek Kilimajer said:
[snip]
Do you have libcurl intaled?
Ernest E Vogelsinger wrote:
Hi list,
maybe someone has a simple answer to this:
I am running Apache 1.3.22 with libphp4.so. Everything's fine, but when
starting php from
))
$result .= '1';
else
$result .= '0';
}
return $result;
}
if you need this as a number, simply return (int)$result, but beware that
this breaks if there are more than 32 digits (highest value 32).
--
O Ernest E
. Try to check the docs with your aquirer.
--
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
=CREATE TABLE {$_POST[table_name]} ((;
--
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 correct path for apache
extensions on RedHat), and in /usr/lib/apache (from the default compile).
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
/libk5crypto.so.3 (0x4064a000)
libcom_err.so.3 = /usr/kerberos/lib/libcom_err.so.3 (0x4065c000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)
libssl.so.0 = /usr/lib/libssl.so.0 (0x4065f000)
libcrypto.so.0 = /usr/lib/libcrypto.so.0 (0x4068c000)
--
O Ernest E
after all?
foreach ($_GET as $name = $value) {
global $$name;
$$name = $value;
}
Have fun,
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
, exactly. However if you're going to fiddle around with $_GET
(checking for allowed input) while allowing any $_POST'ed data, you might
prefer this solution...
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
// prints $0, not the content (wrong)
echo $0;// error unexpected T_DNUMBER
--
O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
).
If you did you'd get a decent parser error - but unfortunately your data
hides behind these identifiers.
If register_globals is off I have absolutely no idea why you still have
them available. Please recheck your testing code - I'm sure you'll notice
the glitch...
--
O Ernest E. Vogelsinger
;$ftphost$ftpfile, 'w');
if ($fp) {
fwrite($fp, $x, strlen($x));
fclose($fp);
header(Location: http://$wwwhost$wwwfile;);
}
else die('Cannot create file via FTP');
?
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP
to...)
[snip]
Would curl be an option? Do they have this?
You could, however, always write a tempfile, then exec your ftp client for
a transfer...
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http
;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list
--
O Ernest E. Vogelsinger/~\ The ASCII
(\)ICQ #13394035\ / Ribbon Campaign
^ X Against
be taken from:
select orders.orderid from orders, email where orders.orderid = email.orderid
and email.checked='no'
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
d of "", this should work as intended...
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
manual talks about php4 syntax only. How am I going to do that?
[snip]
do nothing, PHP will assign the value for you.
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Ma
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
implementations might not properly support these lengths.
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
and register the
data to be remembered with the session, it will be available when the
browser comes back again (and presents the appropriate PHPSESSID value, of
course).
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing
$str = "blah";
print $monday;
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To cont
for .php extensions:
Executable: %phppath%\php.exe %s %s
Both "%s" must exist, or PHP will do nothing at all.
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
s_ip("210.176.142.255", "255.255.255.192", $REMOTE_ADDRESS))
{
header("403 Forbidden");
echo "h1Access Forbidden/h1You may not come here from outside our
domain";
exit();
}
process_domain_app();
?
...ebird
O Ernest E. Vogelsinger
(\)http:
;
session_start();
session_register($value);
}
?
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
.
http://www.myhost.com/myapp.php?rv=0987412...other parameters
Your application must ensure that the random value is as random as
possible. This makes the URL "unique" and will bypass any ill-behaved cache
(it won't help if the user hits the back button, of course...)
...ebir
"blah2",
"some_value2")));
print(showArray(null, $a);
?
this should recursively go into multi-dimensional arrays and construct an
output similar to your requirements.
...ebird
O Ernest E. Vogelsinger
r
Enter Network: input type="text" name="network" value="?=$network?"br
Enter Subnetmask: input type="text" name="subnet" value="?=$subnet?"br
input type="submit"
/form
/body
/html
[snip]
]
Visit PHPEd home page at http://www.soysal.com/PHPEd
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
At 19:07 22.02.2001, Joe Stump said:
[snip]
I'll take an extra bazillionth of a second to know for sure
I have what I need
[snip]
Do you really know _how_ right you are?
g
...ebird
O Ernest E
uot;l dS of F Y h:i:s A");
echo "a href=\"$PHP_SELF?gettime=";
// this line will work everywhere
echo rawurlencode($time);
// this line will work with MSIE only
// echo $time;
echo "\"";
echo $time;
echo "/abrgettime = $gettime";
?
/body/h
a filter, and
crashed being used as MIME plugin latest at the 6th page access.
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
ever tried or consideredmaking money
using the
medium of the internet? Are you marketing or promoting a business
opportunity or product
[trash]
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
195.130.35.5
SAVA.UTIC.NET.BA 195.130.35.3
NS.EU.NET192.16.202.11
NS.RIPE.NET 193.0.0.193
AUTH03.NS.UU.NET 198.6.1.83
MUNNARI.OZ.AU128.250.1.21
...ebird
O Ernest E. Vogelsinger
to the 404 handler. Within the
404 handler, parse the url, extract the session id and parameters, and
execute the theapp.php file.
Just as an example,
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http
]
Have you checked the rights the PHP-User has on the directory and file?
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
[snip]
You're missing a double quote at the gmdate phrase. Use
header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
...ebird
O Ernest E. Vogelsinger
(\)http://www.1-at-web.at/
^ ICQ# 13394035
--
PHP G
501 - 585 of 585 matches
Mail list logo