edit php.ini, then he can also execute "find" to, well, find it in the
first place. So it absolutely doesn't matter whether that info is
displayed or not.
btw - No user should get a warning on your pages anyway :)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgd
re expression evaluates to that
value (i.e. the return value of mysql_query).
> if( $i = "bob" ) {
> // this will always run.
yes, because "bob" evaluates to true :)
>
> }
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Even idiots can hand
it...?
What about simply using preg_match_all() ?
Or do you specifically need the positions of the matches (instead of the
values)?
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Even idiots can handle computers, and many do.
--
PHP General Mailing List (http://www.php.net/)
To un
isn't there a better way to handle MS SQL error messages? I can't even
fetch them...
look at these warnings... they only show in development side, I don't want
warnings on the production site, so I turn them off with error_reporting()...
Warning: MS SQL message: There is already an object named
On Saturday 31 March 2001 03:34, you wrote:
> as for the pl{x} notation, i ask what is the rc{x} notation ?
Release Candidate
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Even idiots can handle computers, and many do.
--
PHP General Mailing List (http://www.php.net/)
/fo2pdf.php:1.5
php4/pear/Experimental/XML/fo2pdf.php:1.6
--- php4/pear/Experimental/XML/fo2pdf.php:1.5 Fri Mar 30 04:55:07 2001
+++ php4/pear/Experimental/XML/fo2pdf.php Sat Mar 31 05:38:58 2001
@@ -15,7 +15,7 @@
// | Authors: Christian Stocker <[EMAIL PROTEC
s were lost...
maybe I didn't implement it the best way... I don't know... but I really
tried every way I can possibly imagine, and it didn't work.
thanks anyway...
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
ctly, PHP is working fine...
what may be wrong?
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
of course...
it's while loading apache that the error message appears...
>restart apache/php?
>
>-jack
>
>Christian Dechery wrote:
> >
> > I posted a message a while ago about having trouble loading php_mssql.dll
> > extension.
> > It gave me that erro
Has anyone successfully handled MS SQL error messages?
some articles? or code? anyone?
thanks...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
$step_times_array=unserialize($step_times);
$step_times_array[$step]=$total_time;
$step_times=serialize($step_times_array);
}
why doesn't $step_times gets registered correctly? it always register an
empty var...
___
imit = 8M
> post_max_size = 8M
>
> file_uploads = On
> upload_max_filesize = 2M
> Warning: Max file size of 2 bytes exceeded - file [image1] not saved in
> Unknown on line 0
PHP doesn't process the "M". Specify the sizes in bytes
--
Christian Reiniger
LGDC Webm
up?
> what did I do wrong? Jack
Use session_start();
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of power information technology puts in our hands
these days.
- Securityfocus on probing 3600 hosts for known problems in 3 weeks
--
PHP General Mail
On Monday 02 April 2001 10:44, you wrote:
> What does global and session_register do?
RTFM
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of power information technology puts in our hands
these days.
- Securityfocus on probing 3600 hosts for kn
t get registered...
BTW... the commented echo above outputs:
step_times="a:1:{s:8:"download";d:4.8891049623489;}"
what is wrong with my code?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
Why does system() - or any of its cousins, I've tried them all: exec(),
passthru(), backtick operator, etc - doesn't output anything when running
on a Win2k/IIS5 machine?
I ran the exact same script on a WinME/Apache, and the output was perfect
____
.
On Monday 02 April 2001 18:37, you wrote:
> Thank You Steve!
> Here is my php
>
> $fillista = "fillista.xml";
> $fp = @fopen($fillista,r);
> $count = fgets($fp,filesize($fillista));
use fread ()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/
On Tuesday 03 April 2001 01:42, you wrote:
> Hello
>
> In PHP there is an instruction : nl2br .
> Does anybody know if there is something similar in Perl???
Well, you'd think Perl experts would know this a bit better that PHP
experts, hm?
--
Christian Reiniger
LGD
her not... the code will be heaps cleaner
> without it.
Three solutions:
(1) Open a telepatic connection to the users browser and appeal to its
sense of duty to go to the new page
(2) Rewrite the thing
(3) Use output buffering
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
On Tuesday 03 April 2001 14:39, you wrote:
> Christian Reiniger wrote:
> > (1) Open a telepatic connection to the users browser and appeal to
> > its sense of duty to go to the new page
>
> that sounds about as reliable as javascript :P
>
> > (2) Rewrite the thing
; little more. ? thanks
use strip_tags()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
CPU not found. retry, abort, ignore?
--
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]
setting by default.
Don't worry about that. The difference won't be noticeable anyway (well,
perhaps the difference in required processing power could be seen...)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
CPU not found. retry, abort, ignore?
--
PHP General Mailing L
t;, "send.php?addr=" .
> hash_func("\\1@\\2.\\3"), $text);
>
> I can't seem to get this to work... it is just hashing the static text
> within the function, not the replaced values.
>
> Can this just not be done?
It can. But only with preg_replace.
--
at seemed to work. oi, regex is bad stuff, haha.
$body = preg_replace ('/]*>.*?/i', '', $body);
is a bit more robust.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
CPU not found. retry, abort, ignore?
--
PHP General Mailing List (http://www.php.net/)
To u
erator / ... to get the output of the
grep call as array, one line per entry
(2) do a
foreach ($TheOutput as $Line) {
if (preg_match ('/^\s*(\d+)/', $Line, $Matches)) {
$PID = $Matches [1];
// kill it
}
}
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
CP
On Tuesday 03 April 2001 22:41, you wrote:
> (1) look up system / backtick operator / ... to get the output of the
> grep call as array, one line per entry
"... output of the ps call" of course
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
CPU not found. retr
+++ php4/pear/Experimental/XML/sql2xml.php Wed Apr 4 02:15:57 2001
@@ -15,74 +15,174 @@
// | Authors: Christian Stocker <[EMAIL PROTECTED]> |
// +--+
//
-// $Id: sql2xml.php,v 1.5 2001/03/30 12
user apache.
>
> Any ideas why I can't write this file?
man fopen
Tip: look at the little "r"
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offence.
- Edsger W. D
y at
> [EMAIL PROTECTED]
>
> and we'll give you more information at that point.
Well, what about giving more information now, so that people can decide
whether they are interested? :)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The use of COBOL cripples the min
On Wednesday 04 April 2001 04:43, you wrote:
> Im trying to optimize some php/mysql code. Does anyone know a way to
> measure the amount cpu time a php script consumes?
Use "ab" (ApacheBench - comes with apache) if possible.
--
Christian Reiniger
LGDC Webmaster (http://sunsit
aracters
> and I want the characters to match the ASCII numbers
> from 40 to 176.
Why do you ask if you already have the solution?
man preg_match
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The use of COBOL cripples the mind; its teaching should, therefore,
be reg
resubmitting this every few minutes!
>
> Mike P
> [EMAIL PROTECTED]
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
as I saw on the manual output_buffering cannot be changed at runtime... so
there is NO WAY? If I want output_buffering I'll have to do it on all my pages?
and does it really cost that much in performance? is it worthed?
____
. Christian Dechery (lemming)
.
"
> case "bar3"
> foobar = "fooey3"
> case else
> foobar = "NoBar"
> End Select
>
> How do I do the equivelent in PHP?
Try reading the manual.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Error 032: Recursio
u.ativo=1 and g.ativo=1
>
> and I receive this error message:
>
> Mensagens do MySQL : You have an error in your SQL syntax near 'u,
> fgrupos g SET g.cdgrupo=1, u.celular="99823640", u.nome="Augusto X",
> u.sobren' at line 1
>
> Why? Ho
atabase1.table1A, database2.table2 B where (A.id = B.id);
should work fine
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Error 032: Recursion error - see error 032
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
at you're out of
luck. On the other hand - with PHP you can emulate all the SSI stuff
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.
- http://www.google.com/search?q=e
--
PHP General Mailing List (htt
On Thursday 05 April 2001 20:30, you wrote:
> Hi all,
>
> i'm would to know if there is a doc that give all php.ini possiblities
> with all variables that can be set or something like that
Yes. Most people call it "PHP Manual"
--
Christian Reiniger
LGDC Webmas
On Thursday 05 April 2001 20:45, you wrote:
> Hello,
>
> While connected to ftp can I send a command to the ftp?
Yes
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.
- http://www.google.com/s
set anywhere u
want...
but of course... the best way is to code right and not to mess with headers
once the output has started... but sometimes I wish I could, u know? It
would really make somethings a lot simpler...
. Christian Dechery (lemming)
. http://www.tanamesa.c
more
of output handling, and not just relying on *_error() functions...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
er to register session vars, the MUST be global"...
this should be crucial manual information, don't u think?
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsu
thing else
something
something else
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
example
doesn't do it automatically.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I saw God - and she was black.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
foo%" it just has to examine the first three chars - that's even
faster than "WHERE phone = 'foobar-something'"
and works very nicely with a perfectly normal index.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I saw God - and she was b
/sql2xml.php:1.6
php4/pear/Experimental/XML/sql2xml.php:1.7
--- php4/pear/Experimental/XML/sql2xml.php:1.6 Wed Apr 4 02:15:57 2001
+++ php4/pear/Experimental/XML/sql2xml.php Fri Apr 6 03:13:13 2001
@@ -15,19 +15,16 @@
// | Authors: Christian Stocker <[EMAIL PROTEC
On Friday 06 April 2001 16:42, you wrote:
> How do I find out if a string is contained in a string. I just need
> true/false.
strstr()?
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good
listar, ezmlm, ...)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.
- /. posting discussing the likelihood that an AC post that claimed to be
posted by John Carmack during his honeymoon (and ha
At 20:45 7/4/2001 +0200, you wrote:
>Hello... I have a problem with some special chars I created some kind of
>editor for text files but chars like " get a \ in front everytime you
>send it here is my code:
>
>
>
>
>
>
>
>
>If you just enter " and click send you see what my problem is.
On Sunday 08 April 2001 06:15, you wrote:
> Your cookie is set to expire in the year 2280. You think that's a
> little overkill?
>
>
> And it runs into the UNIX-style Y2K problem which is...um...13 years
> from now? Well anyway...
2038 with a 32bit processor
--
lly have to worry about
"something malicious".
But if you want to check, just try opening them with one of the image
extensions (gd, imagemagick, ...)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
void sleep(){for(long int sheep=0;!asleep();sheep++);}
--
PHP General
On Sunday 08 April 2001 08:50, you wrote:
> Thanks for the info. Question: Is there a simple way to encode text?
>
> J
rawurlencode()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
void sleep(){for(long int sheep=0;!asleep();sheep++);}
--
PHP General Mailing L
Is there anything wrong with www.php.net?
I can't access it for two days now...
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
her bad characters, anyone have a function?
addslashes()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.
- /. posting discussing the likelihood that an AC post that claimed to be
post
d like to
> know what is the problem
show us some code. The warning should also print the line number where
the problem occurs, What does that line do? what do you do in the 5 lines
before that?
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"World domination. Fast.&
script mentioned above. Does IIS really
suck, or is there something very wrong with my config?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
w can I access an MS SQL database from Apache???
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
At 18:40 9/4/2001 -0700, you wrote:
>On 4/9/01 6:38 PM, "Christian Dechery" <[EMAIL PROTECTED]> wrote:
>
> > At 10:23 10/4/2001 +0900, you wrote:
> >> IIS ISAPI(PHP4.0.4pl1 and PHP4.0.5RC1) does not work well for me and
> too many
> &g
g* in a form field?
"anything" = '.'
=> /^.{0,9}$/ will do the trick
strlen () will be faster though
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
A - American Association Against Acronym Abuse
--
PHP General Mailing List (http://www.php.net/)
To u
On Tuesday 10 April 2001 04:28, you wrote:
> Is there a quick way to 'empty' all the variables I have set on a page?
> I need to clear everything before re-loading the page.
If you reload the page everything is cleared anyway (aside from session
data)
--
Christian Reinige
On Monday 09 April 2001 18:35, you wrote:
> Christian
>
> Below is my script.
>
> if (!copy($file,"1.dat")) {
> echo "error"; }
> else {
> echo "successful";
> }
> ?>
>
> NOTE: where $file is pa
for tcp/ip connections
> 33 dbmsspxn.dllfor ipx/spx connections
> 34 dbmsvinn.dll
> 35 dbnmpntw.dllfor netbios connections
>
>Sorry I don't use MS SQL Server.
well... I don't have Visual Studio here... so I guess I'm stuck with
shitty-old IIS... :(
>multiple IP addressees, it's easy to co-exist with IIS.
>
>How about give it a try?
I guess I don't have multiple IP adresses on my server... can't I just
install Apache and have it listen on port 8080 instead? Will it co-exist
nicely with IIS?
On Tuesday 10 April 2001 10:58, you wrote:
> Is it possible to override the maximum script execution time as set in
> php.ini using an Apache directive like this in an .htaccess file?:
>
> php_value max_execution_time = 60
What about simply trying it? :)
--
Christian Reiniger
LG
at his provider's dialin box. (more difficult)
(3) Install a proper trojan on the user's machine
Most criminals use possibility 3 ;-)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
A - American Association Against Acronym Abuse
--
PHP General Mailing List (http://
cluded by the files it is included from.
Sounds complicated because it *is* complicated.
It's much better to let each module include_once() everything it depends
on.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"These are the people who proudly call themselves "hack
t
B (ftp access only), right?
Then you can write a script on A that, using the ftp functions built into
PHP, transfers the files to B
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"The number of Unix installations has grown to 10, with more expected."
-- The Uni
eed to use the unix timestamp function in mysql.
Using MySQL's NOW() function is a bit easier :)
> That's a bit tougher to get the hang of :)
SELECT FROM_UNIXTIME(time_field) AS foo FROM mytable;
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"The number of
le(list($key, $val) = each($HTTP_SESSION_VARS))
>
> echo "$key - $val";
> }
Exactly like that
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I saw God - and she was black.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
How do I backup a blob field in mysql? Every time I dump it (to a text file
via phpMyAdmin)... it creates insert lines but the binary data is all
screwed up and when I load it it gives me error messages...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
t still
doesn't work...
chdir($upload_tmp_path);
if(!copy($file,$newfile))
echo "Error uploading
$newfile.";
else
process_file($newfile);
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
like serialize, or any other way?
* Write it to the database (using serialize())
* Pass the record ID via URL
* Read from the DB in the receiving script
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
void sleep(){for(long int sheep=0;!asleep();sheep++);}
yes... it goes like Have you set the content type of the form to be multipart MIME ? That
>screws me every time...
>
>AndrewH
>
>- Original Message -
>From: "Christian Dechery" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, Ju
de, the program has an
extremely small footprint (only 73kb). You can get it at
http://www.callowayprints.com/phpdoc
Thanks everyone,
Christian
_
Get your FREE download of MSN Explorer at http://explorer.msn.com
On Tuesday 19 June 2001 17:42, Tim McGuire wrote:
> For debugging purposes, I want to see a list of the included files on a
> page in HTML comments.
http://php.net/get_included_files
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Very funny, Scotty! Now beam up my c
resubmit the question.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Very funny, Scotty! Now beam up my clothes...
--
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 admin
t a flamewar.
>
> dont use " then. why not use ' ?
>
> echo "
>
>"
>
> echo "
>
>"
> I like the second. it is proper html check it with w3.org.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Nev
this...
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
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]
7;t stop at the greater-than sign. It should be simple thing but
> > I'm stumped!
Greedy means: it tries to match as much as possible. In your case it
matches "" - a
string starting with "" :)
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
This is
why do $REMOTE_ADDR always returns 127.0.0.1 no matter the user's IP who is
seeing the page?
this doesn't look 'remote' to me...
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP Genera
On Wednesday 27 June 2001 06:18, Marcus James Christian wrote:
> I've built a web log but when the user enters their data and they use '
> or " (and you know they will) php always shows it from the included
> web log as
>
> \' How can I filter out these
yeah... that's a possibility...
so there's no way I can see the user'ss IP?
At 09:42 27/6/2001 +0100, Colin May wrote:
>Almost as if the request was proxied or redirected from the local machine
>(127.0.0.1 is the local loop back ip)
>
>Quoting Christian Dechery (Tue,
= @gethostbyaddr($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]);
> }
>else
>
>
> $ip = $HTTP_SERVER_VARS["REMOTE_ADDR"];
> $host = @gethostbyaddr($HTTP_SERVER_VARS["REMOTE_ADDR"]);
> }
>
>Brave Cobra
>
>- Original Message -
>From: &quo
Try using php_flag instead of php_value
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
"The number of Unix installations has grown to 10, with more expected."
-- The Unix Programmer's Manual, 2nd Edition, June 1972
--
PHP General Mailing List (http://www.php.net
maller than the code of "newbies".
Furthermore it's bad for you - you don't spend a constant amount of
effort per source line. Some parts are easy while others take much time.
And some areas of work (database setup, site structure planning etc)
produce zero lines of cod
t;entities"..
Why don't you simply use addslashes () again when you put the stuff into
the DB?
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
...to paraphrase Churchill, while representative democracy may be
terrible, it's still the best system that large corporations can
() should perform identical (compression ratio - wise) to
ob_gzhandler. So a
$PageZ = gzencode ($Page);
$PL = strlen ($Page);
$PLZ = strlen ($PageZ);
echo "Uncompressed : $PL";
echo "Compressed: $PLZ";
echo "Ratio: " . ($PLZ / $PL) . "";
should do the job at the c
xt", $parts)
right? As "/" is the pattern delimiter this of course won't work.
Solution: Escape it:
$breaks=preg_match_all("/\s+/i", "$text", $parts)
Improved Solution: Make it more flexible:
$breaks=preg_match_all("/\s+/i", "$text", $parts)
Tha
op the transmitted SessionID
stuff, he would have to use it *before* the real user clicks on another
link (because than the ID would be changed again).
Still has some holes, but should catch most attacks.
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
void sleep(){for(long i
ot;\">Office");
>
> Although I can't get this to parse!
Use the string concatenation operator '.' :
print ("Office");
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
void sleep(){for(long int sheep=0;!asleep();sheep++);}
--
PHP General
h_row($rs2);
it works fine... but I don't think it is good... whenever there is 'code'
between queries to get results I think something could be optimized.
Any ideas?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
server a constant chore.
[...]
> so
> becomes
>
> easy. the bad bit is that you've got to then go and rename each
> extension .php instead of .txt, but you are going to have this problem
No need to rename them. They're only accessed via include(), so PHP
parses them
imit is 2^31 seconds (a 32Bit signed number) on 32Bit
machines (which I assume is used here). So the Y2k equivalent for Unix
time() is around mid-2038.
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
...1000100011010101101010110100111010113...
--
PHP General Mailin
ected"
>
> Any ideas on how to do this with PHP? I'm guessing it would involve
> some kind of socket connection...
if ($Handle = fopen ("http://slashdot.org/";, "r")) {
echo "We're NOT online";
fclose ($Handle);
} else {
echo
de in between the queries...
>Try
>
>$rs1=mysql_query("select max(date) AS latest, * from tablename where
>item_id=34 and item_type_id=3");
>
>but consider that you may possibly have multiple entries for the latest
>
>date?
. [ Christian Dechery ]
At 12:07 4/7/2001 +0930, David Robley wrote:
>On Wed, 4 Jul 2001 00:00, Christian Dechery wrote:
> > well... I tought of that.
> > It doesn't work for many reasons:
> > 1 - '*' always has to be the first on the select list
> > 2 - you can't have
e, hopefully catching the problem?
http://validator.w3c.org/
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offence.
- Edsger W. Dijkstra
--
PHP General Mailing List (http://www.
On Wednesday 04 July 2001 16:58, Kurt Lieber wrote:
> That domain name doesn't appear to be valid. Perhaps you meant:
>
> http://validator.w3.org ?
Um, yes. Why can't the w3c simply have "w3c" as domain name? *sigh*
> http://validator.w3c.org/
--
C
.
> > For example = make this line show_source($file); then go to your page
> > like file.php?file=/etc/passwd and you're freaked!
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
Pretty cool, the kind of power information technology puts in our hands
these days.
onds, where are they???
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
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 ad
601 - 700 of 1377 matches
Mail list logo