Re: [PHP] close tcp-IP connection before php-skript finishes

2001-04-06 Thread Plutarck
Genius! Thank thank thankyou! If I wasn't well rested I'd kiss you. Or more appropriately, I'd kiss the person that programmed that function in the first place...*rubs hands* Oh the fun I'm going to have figuring a way to actually use this for anything other than mail()... -- Plutarck Should

Re: [PHP] Problem with newline and email

2001-04-06 Thread Plutarck
Doesn't either just "\r" or just "\n" work? Then again I've never tried using them, but I can't imagine that newline and carriage return doesn't force a new line. You could always send an HTML mail and use br instead? -- Plutarck Should be working on something..

[PHP] Update: 1767 functions!

2001-04-06 Thread Plutarck
functions up to 4.0.4pl1, and supports the vast majority of functions in 4.0.5, even though it isn't even out yet! Haha! And when I finally figure out how to install a new version of PHP, I might just update it too if I missed anything ;) -- Plutarck Should be working on something... ...but forgot

Re: [PHP] function return

2001-04-06 Thread Plutarck
I usually declare $db as global in the function, so I can just execute the function and continue with my querys. -- Plutarck Should be working on something... ...but forgot what it was. "Kurth Bemis" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTE

Re: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Plutarck
The ones that started talking to me half-way through. I'd like to give a shout out to 346, 789, and 1747, and blue function#9. *twitch* -- Plutarck Should be working on something... ...but forgot what it was. ""Johnson, Kirk"" [EMAIL PROTECTED] wrote in message [EM

Re: [PHP] Update: 1767 functions!

2001-04-06 Thread Plutarck
Unfortunately I can't find an option to make them all display on one page, or an option to make them easy to cut and paste so I can run them past my PHP script. So I'd have to manually compare the two lists...lmao -- Plutarck Should be working on something... ...but forgot what

[PHP] AUTO_INCREMENT with MySQL phpmyadmin

2001-04-06 Thread Plutarck
other than the two I currently have. So I'm totally confused, and out of the whole mysql manual I just don't know what's wrong. So the question: What kind of selections do I need to make to create an AUTO_INCREMENT column? -- Plutarck Should be working on something... ...but f

Re: [PHP] XML

2001-04-05 Thread Plutarck
d the only time you can know it is bad is when someone complains about it. -- Plutarck Should be working on something... ...but forgot what it was. ""Josh McDonald"" [EMAIL PROTECTED] wrote in message 002601c0be26$e0b559f0$f897093d@gfunkxshb7wjkd">news:002601c

Re: [PHP] session question

2001-04-05 Thread Plutarck
First use session_register(). Then give the variable a value. So just rearrange your code, like this: ?php session_start(); $SID = date("Y F j H:i:s"); session_register("SID"."fillista"); $fillista = "fillista.xml"; print "SID=".$SID; ?

Re: [PHP] is this syntax correct?

2001-04-05 Thread Plutarck
lobal is used inside of functions and classes, not in an "non-nested" piece of code. -- Plutarck Should be working on something... ...but forgot what it was. ""Jacky"" [EMAIL PROTECTED] wrote in message 004001c0bbb3$bada9080$[EMAIL PROTECTED]">news:004001

Re: [PHP] Apache latest + PHP latest + GD latest + Freetype latest + Jpeg latest

2001-04-05 Thread Plutarck
e you find the answer. You might want to try compiling it with either an older version of GD, or of PHP, just so you can drill down which part of the setup is giving you the errors. -- Plutarck Should be working on something... ...but forgot what it was. ""Alex Bloor"" [EMA

Re: [PHP] Reg exps.

2001-04-05 Thread Plutarck
regex in some instances. It still looks like pure garbled insanity, but it's a useful skill :) -- Plutarck Should be working on something... ...but forgot what it was. ""elias"" [EMAIL PROTECTED] wrote in message 9ah709$17p$[EMAIL PROTECTED]">news:9ah709$17p$[EMAIL

Re: [PHP] huidziekte

2001-04-05 Thread Plutarck
... -- Plutarck Should be working on something... ...but forgot what it was. ""Knut H. Hassel Nielsen"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 5 Apr 2001, Plutarck wrote: I was wondering what the hell language that was...still t

Re: [PHP] is this syntax correct?

2001-04-05 Thread Plutarck
session_unregister must take the name of the variable to kill. So: session_unregister("test"); does the job. -- Plutarck Should be working on something... ...but forgot what it was. ""Jacky@lilst"" [EMAIL PROTECTED] wrote in message 008701c0be0f$21dd1de0$[EMAIL

Re: [PHP] ZEND Encoder

2001-04-05 Thread Plutarck
be capable of doing all this much more efficiently than someone who's playing around with it. But how many people make a hobby of that? ...better to keep that rhetorical. -- Plutarck Should be working on something... ...but forgot what it was. ""James Moore"" [EMAIL PROTECT

Re: [PHP] Direct output to printer

2001-04-05 Thread Plutarck
ams around, and you can certainly figure out a way to make PHP work with those, but that's about all you can do. -- Plutarck Should be working on something... ...but forgot what it was. ""Tim Legg-Bagg"" [EMAIL PROTECTED] wrote in message 001001c0bdc7$e63a5ce0$f062893e@tim"&

Re: [PHP] cookie working only 90% array missing one var and sql query burns [YIKES!]

2001-04-05 Thread Plutarck
Correct line: setcookie ("user_reg[1]" , "$pass_w", $lifetime, "/", ".mydotcom.com"); Now look at this line: setcookie ("user_reg[2]" , "$full_name", $lifetime, ".mydotcom.com"); Don't you just hate it

Re: [PHP] BUG - Someone else please verify B4 I file

2001-04-05 Thread Plutarck
with other applications, without loosing any real functionality. So it's annoying at times, but with just a switch-aroo of the functions you are using, you can do the same stuff. -- Plutarck Should be working on something... ...but forgot what it was. "Krznaric Michael" [EMAIL PROTECTED] wro

Re: [PHP] scramble the code

2001-04-05 Thread Plutarck
there is a programmer with the will and the way to completely f^#@ it up. ;) -- Plutarck Should be working on something... ...but forgot what it was. ""Joe Sheble (Wizaerd)"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This isn't qu

Re: [PHP] Mail() Speed?

2001-04-05 Thread Plutarck
to use either one. -- Plutarck Should be working on something... ...but forgot what it was. ""PHP User"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Would opening a direct connection to sendmail be a bad thing to do in terms of s

Re: [PHP] How can I make this smaller + something neet with global

2001-04-05 Thread Plutarck
as before the function adjusted it (when global is inside the function, that is). But if you first declare it global THEN change the value, it works as above. Kinda neet, I thought. -- Plutarck Should be working on something... ...but forgot what it was. "Lindsay Adams" [EMAIL PROTECTED] wrote i

Re: [PHP] fopen wierdness

2001-04-05 Thread Plutarck
r own http session, and you may be able to use the CURL functions. But I really haven't a clue how, as I haven't yet had the time to play with them much. Maybe if it works, that's an easy way to do it... -- Plutarck Should be working on something... ...but forgot what it was. "Jerry" [EM

Re: [PHP] Read one word in file

2001-04-05 Thread Plutarck
Once you get the first line into an array, you can just use explode on \n, or use a regex that searches for any group of characters that is not a whitespace character, then stops searching once it's found it. As Chris said, there are many many ways of doing it. -- Plutarck Should be working

Re: [PHP] YourName.BEST321.com FREE§K¶O°ì¦W !!!!!

2001-04-05 Thread Plutarck
The spammers that use a foreign language are kind of fun though. Let's us use our imagination as to what they are saying. And we have fun trying to find an online translator that can make sense of it. Or not. -- Plutarck Should be working on something... ...but forgot what it was. "

Re: [PHP] Directory(parent) Structure

2001-04-05 Thread Plutarck
. Or maybe I just like abusing nested technology. Go figure. Useful note: . = current directory. Alright, that wasn't that useful. -- Plutarck Should be working on something... ...but forgot what it was. ""Chris Anderson"" [EMAIL PROTECTED] wrote in message 004001c0bbc8$cf44

[PHP] I'm equally curious

2001-04-05 Thread Plutarck
un playing around with the possibilities, no matter how intensive it'd have to be. Does any other language have something exactly like this? Like Perl/C CGI, ASP, or JSP? Or is this purely a question of web-server support? -- Plutarck Should be working on something... ...but forgot what it was.

Re: [PHP] output buffering

2001-04-05 Thread Plutarck
or use a redirect. Which is why I killed all my echo/print calls in favor of a single function which I include at the bottom of my script ;) -- Plutarck Should be working on something... ...but forgot what it was. "Christian Dechery" [EMAIL PROTECTED] wrote in message [EMAIL PROTEC

Re: [PHP] ob_*() functions in Win9x

2001-04-05 Thread Plutarck
_start("alter_buffer"); echo "hi! "; echo "ho! "; echo "he! "; ob_end_flush(); ? Should output: hi! ho! MWUAHAHA! So as far as I know, at very least version 4.0.4pl1 supports Windows. Haven't tried anything with the gzhandler yet, but I'm told it works fine as

[PHP] Addendum

2001-04-05 Thread Plutarck
the gzencode() function. So if you are using an older version of PHP, you need to kill all the flashy parts of my example (har har) and just use a pure ob_start() and ob_end_flush calls. -- Plutarck Should be working on something... ...but forgot what it was. ""Plutarck"" [EM

Re: [PHP] Array of words in textfile?

2001-04-05 Thread Plutarck
functions. -- Plutarck Should be working on something... ...but forgot what it was. "Jan Grafström" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! I want to read a textfile (cat, dog, rat,) and get it like this: $namesArray = array("cat

Re: [PHP] read headers.

2001-04-04 Thread Plutarck
://www.zdnet.com/downloads/stories/info/0,,000YBS,.html I use it all the time when debugging an app that makes use of headers. -- Plutarck Should be working on something... ...but forgot what it was. "Geir Eivind Mork" [EMAIL PROTECTED] wrote in message 986371002.10286.3.camel@m

Re: [PHP] Reading from a webpage

2001-04-04 Thread Plutarck
You get the source code itself. Also if the webpage in question examines the browser of the requestor your webserver may get different code than you would if you pulled it up in your browser yourself. -- Plutarck Should be working on something... ...but forgot what it was. "James Kne

Re: [PHP] Reading from a webpage

2001-04-04 Thread Plutarck
When I said source code, btw, I meant the "html source code", not the programming source code, lol. Unless you can access the page through FTP, that is. In which case it wouldn't be gained through apache, so it wouldn't be parsed. -- Plutarck Should be working on something... ...

Re: [PHP] help - parsing text file

2001-04-04 Thread Plutarck
If it's always in that format you could do an explode on "\n", then run the regex on only the elements of the array you need to rip something from. So you can build a much simpler and smaller regex to do your work. -- Plutarck Should be working on something... ...but f

Re: [PHP] PHP with Win2k or Linux

2001-04-04 Thread Plutarck
(or at least some people say that...I haven't really noticed), going out of your way to develop under Linux rather than Win32 isn't all that justifiable. I develop on Windows 98 and deploy under Linux, and I've never seen a problem. The joys of platform independent programming languages ;) -- Plutarck

Re: [PHP] output buffering

2001-04-04 Thread Plutarck
to be able to set it only in the places you want it run rather than making all output use it. -- Plutarck Should be working on something... ...but forgot what it was. "Christian Dechery" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... as I

Re: [PHP] PHPSESSID sticks to every link after upgrate of Apache/PHP

2001-04-04 Thread Plutarck
. Try having someone else test your site using a different browser. Try IE 5, 5.5, and the new version of Netscape. All with cookies enabled. If your site still is appending to the url, then something else is wrong. -- Plutarck Should be working on something... ...but forgot what it was. "

Re: [PHP] headers passthru()

2001-04-04 Thread Plutarck
If your program does not explicitly set the content type header, then I believe it is Apache which will send it automatically. So that may be part of your problem. -- Plutarck Should be working on something... ...but forgot what it was. "Nikolai Vladychevski" [EMAIL PROTECTED] wrote

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Plutarck
ntent"] == "spam") { ob_start(); echo $content; ob_end_clean(); } ? ;-) -- Plutarck Should be working on something... ...but forgot what it was. ""Knut H. Hassel Nielsen"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTE

Re: [PHP] Left Join Across Two Databases

2001-04-04 Thread Plutarck
but it can be done...now don't you feel better? ;) -- Plutarck Should be working on something... ...but forgot what it was. "Jonathan Chum" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have one table on one database and another table on another

Re: [PHP] XML

2001-04-04 Thread Plutarck
ell Formed or not. -- Plutarck Should be working on something... ...but forgot what it was. ""Andreas Sisask"" [EMAIL PROTECTED] wrote in message 9afcdk$jug$[EMAIL PROTECTED]">news:9afcdk$jug$[EMAIL PROTECTED]... I have a docdef.dtd file which defines a document. Now, if I

Re: [PHP] Check whether I have php installed as cgi or api???

2001-04-04 Thread Plutarck
ires an opening "tag" and a closing "tag". If it wasn't embedded, that would probably mean it had to be compiled in some way. -- Plutarck Should be working on something... ...but forgot what it was. "Brandon Orther" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED

Re: [PHP] measuring cpu time

2001-04-03 Thread Plutarck
The closest I know of is using microtime at the start and end of a piece of code to see how long it took. You'll want to run the script through a loop, usually around 10 times at least if it's not a big script, and then average together 10 tests. -- Plutarck Should be working on something

[PHP] Sneaky solution

2001-04-03 Thread Plutarck
thwarts 99% of casual tinkerers, and an equal amount of script kiddies, and it allows you to be really creative in your data validation, plus you can screw with people's heads...which of course is the most important function ;) -- Plutarck Should be working on something... ...but forgot what it was.

Re: [PHP] query 2 databases from one script

2001-04-03 Thread Plutarck
You might want to use the following function: http://www.zend.com/manual/function.mysql-db-query.php -- Plutarck Should be working on something... ...but forgot what it was. "Michael Roark" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] array in Session-Vars?

2001-04-03 Thread Plutarck
Do the same thing your doing, but insert the following after where it should be set to see if it was: print_r($HTTP_SESSION_VARS); If it worked, you'll see it. If not, you'll see it. Then you can progress from there. -- Plutarck Should be working on something... ...but forgot what

Re: [PHP] sql looping problem??

2001-04-03 Thread Plutarck
It's probably not the cause of your problem (I know little to nothing about Interbase), but why the if... loop in your code? Your if: if ($val $NumCases) does the same thing as your for: for ($val = 0; $val $NumCases; ++$val) Unless of course you wanted it that way... -- Plutarck

Re: [PHP] newbie@session - please help!

2001-04-03 Thread Plutarck
a variable called $name which equals "Bob", then the following will end up weird: $name1 = $name; session_start(); $name2 = $name; session_start declares all session variables as global, and it over-writes any pre-existing variables of the same name. -- Plutarck Should be working on someth

Re: [PHP] session_unregister and session_destroy

2001-04-03 Thread Plutarck
on_destroy to ensure all the variables go either bye bye or become false. -- Plutarck Should be working on something... ...but forgot what it was. ""Jacky"" [EMAIL PROTECTED] wrote in message 019101c0bd20$afc1f120$[EMAIL PROTECTED]">news:019101c0bd20$afc1f1

Re: [PHP] pass variable to PHP

2001-04-03 Thread Plutarck
Try using a print_r($HTTP_GET_VARS) and see what comes up. It could be that PHP has been set not to turn GET/POST variables into seperate values. If so you'll need to use: echo $HTTP_GET_VARS[testing]; -- Plutarck Should be working on something... ...but forgot what it was. "&q

Re: [PHP] Sneaky solution

2001-04-03 Thread Plutarck
malicious. Just because your paranoid doesn't mean they aren't out to get you... -- Plutarck Should be working on something... ...but forgot what it was. "Les Neste" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Correct me if I'm wrong, but

Re: [PHP] pass variable to PHP

2001-04-03 Thread Plutarck
be all set. If it's an older version of PHP you also need track_vars enabled, but in 4.0.3 and up it's automatically enabled. -- Plutarck Should be working on something... ...but forgot what it was. ""HK Woo"" [EMAIL PROTECTED] wrote in message 9aeb6e$ecn$[EMAIL PROTECT

Re: [PHP] mysql

2001-04-03 Thread Plutarck
very large tables. -- Plutarck Should be working on something... ...but forgot what it was. ""Glenda Robalino"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I have created my database in mysql in linux, but i nedd my aplication,

<    1   2   3