Re: [PHP] Another include ?

2001-04-05 Thread Christian Reiniger
- 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 (http://www.php.net/) To unsubscribe, e-mail

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/search?q=e

Re: [PHP] File create permissions

2001-04-04 Thread Christian Reiniger
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. Dijkstra -- PHP General Mailing

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://sunsi

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

2001-04-04 Thread Christian Reiniger
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 regarded as a criminal offence. - Edsger W

Re: [PHP] Include Files

2001-04-04 Thread Christian Reiniger
ction? Thanks Stop 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: [E

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/) "Never dou

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 LGDC Webmaster (http://sunsite.dk

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

2001-04-03 Thread Christian Reiniger
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/) "Never doubt that a small group of thoug

Re: [PHP] stripping tags with regex ?

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

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

2001-04-03 Thread Christian Reiniger
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 List (http://www.php.net

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

2001-04-03 Thread Christian Reiniger
sh_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. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU n

Re: [PHP] stripping tags with regex ?

2001-04-03 Thread Christian Reiniger
gex is bad stuff, haha. $body = preg_replace ('/image[^]*.*?/image/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 unsubscribe, e-mail: [EMAIL

Re: [PHP] OT Regular Expression [grep]

2001-04-03 Thread Christian Reiniger
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/) CPU not found. retry, abort, ignore? -- PHP

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. retry, abo

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

2001-04-02 Thread Christian Reiniger
= 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 Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information

Re: [PHP] is this syntax correct?

2001-04-02 Thread Christian Reiniger
k 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 Mailing List (http://www.php.net/) To unsubsc

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 known

Re: [PHP] Pattern Replacing

2001-03-30 Thread Christian Reiniger
On Thursday 29 March 2001 22:38, you wrote: H- Thanks to those that emailed. $query = "tree, bird, nest, "; $new = substr($query,0,2); Doesn't seem to work. It returns "tr". $new = substr ($query, 0, strlen ($query) - 2); or $new = preg_replace ('/,.*?$/', '', $qu

Re: [PHP] Image Resizing in PHP

2001-03-30 Thread Christian Reiniger
five minutes to load a page with, say, only 30 tiny thumbnails... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] regex help...again

2001-03-30 Thread Christian Reiniger
('/`+/', '``', $old); quite simple, eh? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Christian Reiniger
total trust between partners which is not a very common thing) Right ? Wrong :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Christian Reiniger
. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux) -- 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 administrato

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Christian Reiniger
been contracted to design it, you get your money anyway - whether it's copied or not. So where's the problem? And: Next time specify in the contract that you own the copyright to the code :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast.&qu

Re: [PHP] Delete Problem

2001-03-30 Thread Christian Reiniger
On Friday 30 March 2001 14:14, you wrote: echo"$inlist"; $query="DELETE FROM EmailAddress WHERE Email NOT IN $inlist"; $query="DELETE FROM EmailAddress WHERE Email NOT IN ($inlist)"; -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can

Re: [PHP] php error code.

2001-03-30 Thread Christian Reiniger
t 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/lgdc/) Even idiots can handle computers, and many do. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-30 Thread Christian Reiniger
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 handle computers, and many do. -- PHP Genera

Re: [PHP] regex help...again

2001-03-30 Thread Christian Reiniger
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 unsubscribe, e-mail

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

Re: [PHP] Curious

2001-03-29 Thread Christian Reiniger
like this : echo 'a href="http://'.$url.'"'.$title.'/a'."\n"; Why don't you simply use echo "a href='http://$url'$title/a\n"; ? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our hand

Re: [PHP] Passing Special Characters in Query String

2001-03-29 Thread Christian Reiniger
the code. On Wednesday 28 March 2001 08:36, you wrote: I'm facing a problem with Special Characters ($, %, , \, /, ;, :, ", ') etc.. We are sending a varibale in a query string like this a href="add_pro_team.php3?title=? echo urlencode($title) ?" -- Chr

Re: [PHP] remote acces

2001-03-29 Thread Christian Reiniger
On Wednesday 28 March 2001 20:01, you wrote: Hi I'm triying to connect from windows to linux... do i have to manipulate grant tables on mysql... what should I do?? read the mysql documentation. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power

Re: [PHP] Best way to check if a query succeeded

2001-03-29 Thread Christian Reiniger
On Thursday 29 March 2001 13:00, you wrote: Hi, i was just wondering what you guys do to check if a wquery suceeded or not? I know about mysql_num_rows() and mysql_affected_rows(), just wondered what you guys do? Check the return code of mysql_query(). The only safe method. -- Christian

Re: [PHP] Blah I'm Stupid

2001-03-28 Thread Christian Reiniger
On Wednesday 28 March 2001 07:17, you wrote: ok here's the script i have, and i keep getting errors ? $fp = fopen("file.txt", "w"); $fp = fputs("file.txt", "a href=\"$url\"$text/abr", "r+"); $fp = fclose("file.txt");

Re: [PHP] Curious

2001-03-28 Thread Christian Reiniger
On Wednesday 28 March 2001 08:18, you wrote: in general, I avoid using quotes where possible (such as in the following) font size=3 face=Arial (instead of font size=\"3\" face=\"Arial\") Remember that XHTML *requires* quotes around every attribute value. -- Chr

Re: [PHP] Passing Special Characters in Query String

2001-03-28 Thread Christian Reiniger
On Wednesday 28 March 2001 08:36, you wrote: I'm facing a problem with Special Characters ($, %, , \, /, ;, :, ", ') etc.. We are sending a varibale in a query string like this a href="add_pro_team.php3?title=? echo urlencode($title) ?" try rawurlencode() -- Christia

Re: [PHP] array in cookie . . .

2001-03-26 Thread Christian Reiniger
("user_reg" , $user_reg, time() + 360 * 86400); use serialize($user_reg). You can only save strings in cookies. is there a limit to how much I can save in the array ? IIRC 8192 bytes -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000

Re: [PHP] offline reader for php generated websites

2001-03-26 Thread Christian Reiniger
=3001" Um, wget? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Can You get a file unlinked after one month?

2001-03-25 Thread Christian Reiniger
On Sunday 25 March 2001 15:45, you wrote: Hi! I wonder if it is possible to delete a file using unlink and a time function. I wont the file to be automtically unlinked after a month. man cron man tmpreaper -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry

Re: [PHP] Crypt problem

2001-03-23 Thread Christian Reiniger
he problem I am having is that it is only comparing the first 8 characters of the password -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that ever has.&qu

Re: [PHP] regexp on us tele number

2001-03-23 Thread Christian Reiniger
? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that ever has." - Margaret Mead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] mail(): carriage return required??

2001-03-23 Thread Christian Reiniger
, not? Well, str_replace('\n', '\r\n', $MyText); isn't so tedious to type that you need an extra function for it I'd say... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the

Re: [PHP] writing to a file

2001-03-23 Thread Christian Reiniger
, $previous. Then concatenate the strings with the "." operator: $previous=$new . $previous and write $previous to the file. Well, he just gave you a detailed description of what to do. Everything else you need to know is in the manual. -- Christian Reiniger LGDC Webma

Re: [PHP] Check URL Mail

2001-03-23 Thread Christian Reiniger
On Friday 23 March 2001 12:25, you wrote: Hi, How can I check for existing site (e.g. http://www.somehost.com/someone) and check for existing mail (e.g. [EMAIL PROTECTED])? You posted this exact question already 3 hours ago. Why did you post it a second time? -- Christian Reiniger LGDC

Re: [PHP] Getting a header without ANY mime type

2001-03-22 Thread Christian Reiniger
with too much time on their hands that's a sure way to lose them really quickly. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...to paraphrase Churchill, while representative democracy may be terrible, it's still the best system that large corporations can buy. - David Weinberger

Re: [PHP] phpinfo() doesn't list compiled --with

2001-03-20 Thread Christian Reiniger
On Tuesday 20 March 2001 14:59, you wrote: I compiled php --with-pgsql, but phpinfo() doesn't list that.is this a problem with php.ini? Are you sure you didn't have a typo in that? Configure silently ignores unknown opitons. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc

Re: [PHP] use strict alternative

2001-03-19 Thread Christian Reiniger
On Monday 19 March 2001 12:53, you wrote: php variables are local by default. point missed :) "use strict" forces you to declare variables before you use them. AFAIK there's no such thing in PHP (unfortunately). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU

Re: [PHP] Problems with Linux PHP

2001-03-19 Thread Christian Reiniger
using and (sometimes) on what you selected during installation of the distro. Have a look at the manual page for crypt(PHP). It says something about constants being defined depending on which encryption modes are available. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU

Re: [PHP] FAQ

2001-03-16 Thread Christian Reiniger
. But if there's a FAQ the answers can be greatly simplified :) -- 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 (http://www.php.net/) To unsubscribe, e

Re: [PHP] Finding the depth

2001-03-16 Thread Christian Reiniger
', $return); } Won't work for the (perfectly valid) URL http://somewhere.de/lvl1lvl2//lvl3/foo.bar it's quite unlikely though that someone enters such a thing -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 second

Re: [PHP] Finding the depth

2001-03-16 Thread Christian Reiniger
h absolute paths. -- 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 (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: [PHP] FAQ - Newbie perspective

2001-03-16 Thread Christian Reiniger
MO to actually spend these 10-15 minutes and then post your code and ask the list how this could be done better. -- 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

Re: [PHP] Executing a string with both html and php inside it..

2001-03-15 Thread Christian Reiniger
in order to execute the next string: $str = "html\n" $str .= "blabla\n"; $str .= " ?php echo \"hello!\"; ?\n"; $str .= "blabla\n"; $str .= "/html\n"; When I tried using 'echo' with the string, but the php code di

Re: [PHP] How upload files to protected directories?

2001-03-15 Thread Christian Reiniger
or anything else other than 'open and read' this file. Whenever I try exec copy commands I receive Well, you want to store them in the database anyway, so "open and read" is sufficient. And for retrieving them you don't need GD. So you should have no problems. -- Christian Reiniger LGDC

Re: [PHP] normal for Apache to hang?

2001-03-15 Thread Christian Reiniger
subprocesses at hand in case some new request comes in. If apache would spawn a new subprocess on each request it would be painfully slow. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our hands these days

Re: [PHP] Statistics function

2001-03-15 Thread Christian Reiniger
nchmarking app that comes with apache)? -- 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 Mailing List (http://w

Re: [PHP] Creating Files Windows vs Unix

2001-03-15 Thread Christian Reiniger
de that first test if my file exist and then if it doesn't I will have to create it using the touch command?? Any other ideas? If I'm right this won't work as well. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technolog

Re: [PHP] Executing a string with both html and php inside it..

2001-03-15 Thread Christian Reiniger
e ?/p /td /tr tr valign="top" ?php if ($Usermode == 'maint') { ? tda href='/maintain.php?what=newsamp;id=?= $ID ?amp;action=edit' class='inbody'Bearbeiten/a/td ?php } else { ? tdnbsp;/td ?php } ? td?= $Body ?/td /tr S

Re: [PHP] List of Directories with in a Directory

2001-03-15 Thread Christian Reiniger
the manual -- 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 Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Getting name of the main file from external included script..

2001-03-14 Thread Christian Reiniger
On Tuesday 13 March 2001 00:14, you wrote: I already asked this once before, but nobody seems to answer. That's why I'm re-writing my question. Well, you waited about two hours. That's not much, even for a mailinglist like php-general. -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Christian Reiniger
On Wednesday 14 March 2001 09:33, you wrote: I set "register_globals = Off" for many reasons. Session may not work with "register_globals = On"?? Works fine here (php 4.0.4 / Linux / Apache) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never

Re: [PHP] Escape slashes?

2001-03-13 Thread Christian Reiniger
. You escape spaces - but what about filenames containing tabs, newlines etc? copy () takes care of that automatically. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though th

Re: [PHP] Get next record

2001-03-13 Thread Christian Reiniger
(First.id = $TheRecordYouWant) AND (First.DateField = Second.DateField) ? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though the heavens opened and God handed down a client-side OS so

Re: [PHP] Problems with string replacement

2001-03-12 Thread Christian Reiniger
te marks invalid. See the problem? ;) No ;) Perhaps if you could provide some example code... -- 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 a

Re: [PHP] header

2001-03-12 Thread Christian Reiniger
On Monday 12 March 2001 08:33, you wrote: Hello! Why header under Windows do not work? Because you have some problem. That's all that can be said without telepathic skills. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP

Re: FW: [PHP] Classes and Kernel CPU Load?

2001-03-12 Thread Christian Reiniger
On Monday 12 March 2001 18:28, you wrote: I don't know much about OS design, but I may want to check out how long the context switches are taking. That could be an issue? Definitely not under Solaris :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run

Re: [PHP] Linux / PHP and passwords -( md5 function)

2001-03-12 Thread Christian Reiniger
all start with $1 which i believe is standard for MD5 passwords of 32 length The "$1$" is the start of a 12-char salt (as described in the manual entry for crypt ()). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run forever. Linux. -- PHP General Ma

Re: [PHP] Have you ever seen this?

2001-03-12 Thread Christian Reiniger
that or have any idea on how it works. I can give you the URL: http://www.arabia.com Well, I guess they should invest some more work in it :) screen output [an error occurred while processing this directive] /screen output -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] Variable dynamique

2001-03-11 Thread Christian Reiniger
On Sunday 11 March 2001 16:58, you wrote: I receive 2 variables, $var and $num I need to make a variable out of these two like this $var2 where $num = 2 or $var3 where $num = 3 How can I do that ? http://php.net/manual/en/language.variables.variable.php -- Christian Reiniger LGDC

Re: [PHP] Problems with string replacement

2001-03-11 Thread Christian Reiniger
striptags(); but that would strip anything within double quotes too. So I've gotten around it by huh? strip_tags works fine for me. echo strip_tags ('Hello a href="http://foo/"bar/a "world"bremthere/em', 'a br'); creates 'Hello a href="http://foo/"bar/a "world&qu

Re: [PHP] MySQL problem - stumped

2001-03-10 Thread Christian Reiniger
*.***/db.php on line 147 Line 147, is the last line in the above snippet. I cleared out the path name for security, no offense intended :) This one? $rows = mysql_affected_rows($result); Try $rows = mysql_affected_rows($link); -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc

Re: [PHP] last inserted record

2001-03-08 Thread Christian Reiniger
at will be painfully slow. -- 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 li

Re: [PHP] Regex Masters: Please inspect this regex- Pulling urls out of page

2001-03-08 Thread Christian Reiniger
$FTPURL = 'ftp:\/\/' . $Host . $FTPPath; -- 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 PROTECTE

Re: [PHP] last inserted record

2001-03-08 Thread Christian Reiniger
y works (1) with autoincrement keys and (2) for the last insert you did using the same mysql connection, i.e. if you do an insert in foo.php, mysql_insert_id () won't show anything in bar.php -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Very funny, Scotty! Now beam up my clothes.

Re: [PHP] Sessions Kill all

2001-03-08 Thread Christian Reiniger
On Thursday 08 March 2001 03:45, you wrote: Is there a way as a server admin to kill all sessions to a site. I need a way to logout all members to a site. Well, usually you'd keep the session data in a database, so you can just empty the sessioninfo table. -- Christian Reiniger LGDC

Re: [PHP] need help w/ Split()

2001-03-08 Thread Christian Reiniger
reg_split("/([\,\;]\s*)|(\s+)/", $input_list); i.e. "either (',' or ';' eventually followed by spaces) or (at least one space)" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] weeks

2001-03-08 Thread Christian Reiniger
all of week X even if you're on 23:55 on the last day of that week WHERE ((yourtimefield = NOW()) AND (yourtimefield = DATE_ADD(NOW(), INTERVAL 1 WEEK)) might be better -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP

Re: [PHP] Sessions Kill all

2001-03-08 Thread Christian Reiniger
On Thursday 08 March 2001 07:17, you wrote: Does anybody know where I could get more info on storing session data in a database rather than the default way? Hmm, perhaps phpbuilder.com has an article on it. Alternatively I could send you some of my code -- Christian Reiniger LGDC Webmaster

Re: [PHP] exec timing out, want to leave process running in bg

2001-03-07 Thread Christian Reiniger
this: exec("mp3123 -y -Z --all 1/dev/null/ 21 "); better add "nohup" to that: exec("nohup mp3123 -y -Z --all 1/dev/null/ 21 "); well that simply puts the stdout and stderr in the same file /dev/null, and puts it into the background. -- Christian Reiniger LGDC Webmaster (

Re: [PHP] Get text between a href= /a

2001-03-06 Thread Christian Reiniger
? Hmm, try preg_match_all ('/a\s+href[^]+([^]+)\/a/', $Subject, $Matches); $Matches [0] [1], $Matches [1] [1], $Matches [2] [1] etc will contain the text afterwards. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our

Re: [PHP] speeding a site with lots of includes

2001-03-06 Thread Christian Reiniger
drastically cut down on code size (a cleanup I did recently roughly halved code size) while improving clarity and maintainability -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our hands these days. - Securityfocus

Re: [PHP] Sites Using PHP - For a presentation

2001-03-06 Thread Christian Reiniger
/index.html might also provide some info, and with http://uptime.netcraft.com/up/graph you can look at some popular sites yourself -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our hands these days. - Securityfocus

Re: [PHP] NETSCAPE screws up query string : more problems!

2001-03-05 Thread Christian Reiniger
WORKED!!! It displayed the right value in the next PHP page. Unfortunately there's another problem. it only DISPLAYED the right value...but when it adds the value in the database...it adds with the plus + sign. i.e., it adds : Project+One instead of Project One. try rawurlencode instead of urlencod

Re: [PHP] input textfield value cat!

2001-03-05 Thread Christian Reiniger
quotes around the value. input type="text" name="MyTextInput" value="MyValue" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...to paraphrase Churchill, while representative democracy may be terrible, it's still the best system that large corpora

Re: [PHP] passing variable via url

2001-03-05 Thread Christian Reiniger
PHP4 onto a Windows2000 server, I'm trying the same thing here, a simple test, and echo $foo; gives me nothing however including a PHPINFO() on the page displays this: HTTP_GET_VARS["foo"] bar I'm I missing something here ? Check whether register_globals is set to "on

Re: [PHP] Content-Type: image/gif and send the image in hex

2001-03-04 Thread Christian Reiniger
t doesn't work: foreach ($img as $val) { echo pack ('c', $val); } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP] PHP web based mailing list administrator

2001-03-04 Thread Christian Reiniger
in with some open source mailing list software)? Ideally, something like egroups (now groups.yahoo.com). I just want to be able to easily administrate (or have other people administrate) mailing lists. I have access to my own server (linux, php4, ...) thanks! -- Christian Reiniger LGDC

Re: [PHP] last inserted record

2001-03-03 Thread Christian Reiniger
key. now. Accesses without that will be painfully slow. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "These are the people who proudly call themselves "hackers" -- not as the term is now abused by journalists to mean a computer criminal, but in its true and

Re: [PHP] Javascript and Php

2001-03-02 Thread Christian Reiniger
On Thursday 01 March 2001 13:19, you wrote: I'd like to include an inc file once a button id cliked! You can only request a new page. Period. PHP runs on the server, button clicks are evaluated on the client (browser). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use

Re: [PHP] Bitwise solution?

2001-03-02 Thread Christian Reiniger
On Thursday 01 March 2001 20:58, you wrote: But that would give me a value of a variable variable. And I need a numerical value so $var1 ="joe"; $var2 = date( "U" ); echo "$var1$var2"; won't do me any good. Ahhh. You want to use the mcrypt functions or s

Re: [PHP] Munging hidden/form variables

2001-03-02 Thread Christian Reiniger
then don't process the form. Of course this can be faked quite easily if this person knows what (s)he doing. And it would prevent people who don't sent Referrer headers from using the form -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use of COBOL cripples the mind; its

Re: [PHP] php and javascript

2001-03-02 Thread Christian Reiniger
On Friday 02 March 2001 06:21, you wrote: Hello, Are there any good examples of producing embedded javascript code in a php file? ?php somecode ? script language='javascript' sglfjh s /script ?php more code ? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use

Re: [PHP] Help - I can't create jpegs with GD

2001-03-02 Thread Christian Reiniger
Cookbook. What do I need to tell them to correct the problem? Depends on what errors you get. "I can't create or manipulate jpegs" isn't particularly helpful... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use of COBOL cripples the mind; its teaching should,

Re: [PHP] whats the message count ?

2001-03-02 Thread Christian Reiniger
e we right now?) Look at the headers of one of the messages. They contain a line of the form X-From_: [EMAIL PROTECTED] The 42156 in there is the message number -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use of COBOL cripples the mind; its teaching should, therefore, b

Re: [PHP] require on compressed files

2001-03-01 Thread Christian Reiniger
ry overhead. If it's some file you don't know the contents of, don't include it (that would mean executing arbitrary code on your server) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler -- PHP General Mailing List

Re: [PHP] about include

2001-03-01 Thread Christian Reiniger
d/mydomain/common.php Writing include ('phorum/common.php') will work in your setup -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

Re: [PHP] Another question about using shmop!

2001-02-28 Thread Christian Reiniger
, but that's mostly because I consider shared memory "too tricky for me" and have never played with it... -- 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

Re: [PHP] File downloading?

2001-02-28 Thread Christian Reiniger
favourite) readfile() are the functions of choice -- 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

Re: [PHP] Move a file from dir to another or delete file..?

2001-02-28 Thread Christian Reiniger
: rename () (or safer: copy()+unlink()) unlink() -- 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

Re: [PHP] what is wrong with this sniplet?

2001-02-28 Thread Christian Reiniger
"Content-Type: text/html" to $mailHeaders ( add a http:// to the link) -- 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]

<    1   2   3   4   5   >