Re: [PHP] php error code.

2001-03-30 Thread Christian Reiniger
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: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-30 Thread Christian Reiniger
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

Re: [PHP] regex help...again

2001-03-30 Thread Christian Reiniger
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

[PHP] MS SQL error handling...

2001-03-30 Thread Christian Dechery
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

Re: [PHP] version????

2001-03-30 Thread Christian Reiniger
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/)

[PHP-CVS] cvs: php4 /pear/Experimental/XML fo2pdf.php

2001-03-31 Thread Christian Stocker
/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

Re: [PHP] MS SQL error handling...

2001-03-31 Thread Christian Dechery
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

[PHP] problem loading extension

2001-03-31 Thread Christian Dechery
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

Re: [PHP] problem loading extension

2001-03-31 Thread Christian Dechery
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

[PHP] fetching MS SQL errors...

2001-03-31 Thread Christian Dechery
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

[PHP] registering an array into a session (?)

2001-03-31 Thread Christian Dechery
$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... ___

Re: [PHP] Max file size of 2 bytes exceeded

2001-04-02 Thread Christian Reiniger
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

Re: [PHP] is this syntax correct?

2001-04-02 Thread Christian Reiniger
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

Re: [PHP] is this syntax correct?

2001-04-02 Thread Christian Reiniger
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

[PHP] problems with session_register()...

2001-04-02 Thread Christian Dechery
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

[PHP] using system() on NT/2K

2001-04-02 Thread Christian Dechery
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 ____ .

Re: [PHP] Can php read and than print file like it is

2001-04-03 Thread Christian Reiniger
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/

Re: [PHP] nl2br

2001-04-03 Thread Christian Reiniger
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

Re: [PHP] redirecting without headers or meta tags or javascript

2001-04-03 Thread Christian Reiniger
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/)

Re: [PHP] redirecting without headers or meta tags or javascript

2001-04-03 Thread Christian Reiniger
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

Re: [PHP] stripping tags with regex ?

2001-04-03 Thread Christian Reiniger
; 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]

Re: [PHP] Automatic Output Buffering Compression level with ob_gzhandler

2001-04-03 Thread Christian Reiniger
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

Re: [PHP] Can I use a function within an ereg_replace?

2001-04-03 Thread Christian Reiniger
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. --

Re: [PHP] stripping tags with regex ?

2001-04-03 Thread Christian Reiniger
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

Re: [PHP] OT Regular Expression [grep]

2001-04-03 Thread Christian Reiniger
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

Re: [PHP] OT Regular Expression [grep]

2001-04-03 Thread Christian Reiniger
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

[PHP-CVS] cvs: php4 /pear/Experimental/XML sql2xml.php

2001-04-04 Thread Christian Stocker
+++ 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

Re: [PHP] File create permissions

2001-04-04 Thread Christian Reiniger
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

Re: [PHP] Seeking PHP case studies

2001-04-04 Thread Christian Reiniger
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

Re: [PHP] measuring cpu time

2001-04-04 Thread Christian Reiniger
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

Re: [PHP] regexp question - extracting wanted ascii characters only?

2001-04-04 Thread Christian Reiniger
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

Re: [PHP] Include Files

2001-04-04 Thread Christian Reiniger
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

[PHP] output buffering

2001-04-04 Thread Christian Dechery
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) .

Re: [PHP] Select case equivelent

2001-04-05 Thread Christian Reiniger
" > 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

Re: [PHP] mysql and php

2001-04-05 Thread Christian Reiniger
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

Re: [PHP] Left Join Across Two Databases

2001-04-05 Thread Christian Reiniger
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

Re: [PHP] Another include ?

2001-04-05 Thread Christian Reiniger
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

Re: [PHP] about php.ini

2001-04-05 Thread Christian Reiniger
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

Re: [PHP] How can I send command to ftp?

2001-04-05 Thread Christian Reiniger
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

Re: [PHP] output buffering

2001-04-05 Thread Christian Dechery
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

[PHP] ob_*() functions in Win9x

2001-04-05 Thread Christian Dechery
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

[PHP] probs with session_register() solved...

2001-04-05 Thread Christian Dechery
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

[PHP] doubt in ob_*() functions

2001-04-05 Thread Christian Dechery
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

Re: [PHP] fopen wierdness

2001-04-06 Thread Christian Reiniger
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

Re: [PHP] better functionality in query ?

2001-04-06 Thread Christian Reiniger
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

[PHP-CVS] cvs: php4 /pear/Experimental/XML sql2xml.php

2001-04-06 Thread Christian Stocker
/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

Re: [PHP] String in a string

2001-04-07 Thread Christian Reiniger
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

Re: [PHP] mail() limit?

2001-04-07 Thread Christian Reiniger
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

Re: [PHP] Char Problem

2001-04-07 Thread Christian Dechery
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.

Re: [PHP] Cookie Expire Problem

2001-04-08 Thread Christian Reiniger
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 --

Re: [PHP] image validation

2001-04-08 Thread Christian Reiniger
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

Re: [PHP] submitting to a remote form

2001-04-08 Thread Christian Reiniger
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

[PHP] anything wrong with php.net?

2001-04-08 Thread Christian Dechery
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

Re: [PHP] apostrophe checks

2001-04-09 Thread Christian Reiniger
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

Re: [PHP] Upload file from my local C:

2001-04-09 Thread Christian Reiniger
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.&

[PHP] huge PHP file, hardcore processing

2001-04-09 Thread Christian Dechery
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

Re: [PHP] huge PHP file, hardcore processing

2001-04-09 Thread Christian Dechery
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:

Re: [PHP] huge PHP file, hardcore processing

2001-04-09 Thread Christian Dechery
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

Re: [PHP] Controlling just size with regular expressions

2001-04-10 Thread Christian Reiniger
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

Re: [PHP] Empting all variables

2001-04-10 Thread Christian Reiniger
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

Re: [PHP] Upload file from my local C:

2001-04-10 Thread Christian Reiniger
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

Re: [PHP] huge PHP file, hardcore processing

2001-04-10 Thread Christian Dechery
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... :(

Re: [PHP] huge PHP file, hardcore processing

2001-04-10 Thread Christian Dechery
>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?

Re: [PHP] php.ini

2001-04-11 Thread Christian Reiniger
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

Re: [PHP] online detection

2001-04-11 Thread Christian Reiniger
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://

Re: [PHP] Can't redeclare already declared function

2001-04-12 Thread Christian Reiniger
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

Re: [PHP] no reponse -- Need FTP help

2001-04-13 Thread Christian Reiniger
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

Re: [PHP] Easy News Script

2001-04-13 Thread Christian Reiniger
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

Re: [PHP] getting all variables from session into array

2001-04-13 Thread Christian Reiniger
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

[PHP] a little ot, mysql binary fields

2001-05-24 Thread Christian Dechery
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

[PHP] upload on Win9x

2001-06-19 Thread Christian Dechery
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

Re: [PHP] Passing Array through URL

2001-06-19 Thread Christian Reiniger
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++);}

Re: [PHP] upload on Win9x

2001-06-19 Thread Christian Dechery
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

[PHP] PHPDOC 2.3.5 released

2001-06-20 Thread Christian Calloway
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

Re: [PHP] list of included file names

2001-06-20 Thread Christian Reiniger
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

Re: [PHP] List of included file names.

2001-06-20 Thread Christian Reiniger
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

Re: [PHP] General Coding Question

2001-06-21 Thread Christian Reiniger
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

[PHP] file uploads in Win9x, anyone? please?

2001-06-22 Thread Christian Dechery
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]

Re: [PHP] Help with simple regular expression

2001-06-25 Thread Christian Reiniger
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

[PHP] $REMOTE_ADDR error

2001-06-27 Thread Christian Dechery
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

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Christian Reiniger
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

Re: [PHP] $REMOTE_ADDR error

2001-06-28 Thread Christian Dechery
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,

Re: [PHP] $REMOTE_ADDR error

2001-06-28 Thread Christian Dechery
= @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

Re: [PHP] setting output_buffering for certain hosts or directories

2001-06-28 Thread Christian Reiniger
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

Re: [PHP] Pricing Advice Needed

2001-06-29 Thread Christian Reiniger
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

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-29 Thread Christian Reiniger
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

Re: [PHP] how to determine size of gz-handler output

2001-07-01 Thread Christian Reiniger
() 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

Re: [PHP] new break tags

2001-07-01 Thread Christian Reiniger
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

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-07-01 Thread Christian Reiniger
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

Re: [PHP] Printing a string issue

2001-07-01 Thread Christian Reiniger
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

[PHP] help in getting results from mysql

2001-07-02 Thread Christian Dechery
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

Re: [PHP] shtml includes

2001-07-03 Thread Christian Reiniger
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

Re: [PHP] setcookie problem

2001-07-03 Thread Christian Reiniger
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

Re: [PHP] Using PHP to test if server is online

2001-07-03 Thread Christian Reiniger
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

Re: [PHP] help in getting results from mysql

2001-07-03 Thread Christian Dechery
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 ]

Re: [PHP] help in getting results from mysql

2001-07-03 Thread 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

Re: [PHP] Troubleshooting syntax ?

2001-07-04 Thread Christian Reiniger
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.

Re: [PHP] Troubleshooting syntax ?

2001-07-04 Thread Christian Reiniger
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

Re: [PHP] Security of PHP code

2001-07-04 Thread Christian Reiniger
. > > 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.

[PHP] mssql returnin type date all wrong

2001-07-04 Thread Christian Dechery
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

<    2   3   4   5   6   7   8   9   10   11   >