Re: [PHP] Persistent connection many scripts ?

2001-04-17 Thread Plutarck
Ideally you could use pconnect, then save the connection ID into a session. Then just try and use the connection like that. That _should_ work. But you may just want to use pconnect and not bother with the rest...that might be just as good as what you are trying to do. -- Plutarck Should

Re: [PHP] php equivalent for `command`

2001-04-17 Thread Plutarck
The number is: " . ++$n . "br"; echo "The number is: " . ++$n . "br"; echo "The number is: " . ++$n . "br"; To do what you are wanting to do, just use the post-increment or pre-increment operators, just like in Perl. Just be aware that PHP will not do

Re: [PHP] Is this kind of code safe?

2001-04-17 Thread Plutarck
forget what it was doing, and will pick up right where it left off once you call an opening tag. But it can be pretty useful so you don't have to use here-doc printing, or escape a bunch of things inside of a string. -- Plutarck Should be working on something... ...but forgot what it was. "&

Re: [PHP] Dynamic built web pages administration

2001-04-17 Thread Plutarck
ute a file on the hard drive that shouldn't be executed, malicious ActiveX controls, java applets, etc, that you don't want users writing to the page. But for administration used by only trusted people, it's actually pretty simple to put together. For use by people who aren't trusted... -- Pluta

Re: [PHP] Returning part of a string, ereg..

2001-04-17 Thread Plutarck
Regex is incredibly hard until you learn it. Then it doesn't seem hard anymore :) -- Plutarck Should be working on something... ...but forgot what it was. ""Chad Day"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm horrible at regex's,

Re: [PHP] cgi vs. module

2001-04-17 Thread Plutarck
as CGI. I honestly thought I had PHP as a module until I re-read my phpinfo, lol. And I assumed that NuSphere would install it as a module...;) -- Plutarck Should be working on something... ...but forgot what it was. "Franklin Hays" [EMAIL PROTECTED] wrote in message [EMAIL PRO

Re: [PHP] Populating HTML List boxes From DB

2001-04-17 Thread Plutarck
I had that same problem. Use the "distinct" keyword in your SQL query. -- Plutarck Should be working on something... ...but forgot what it was. ""Peter Houchin"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... One thing

Re: [PHP] Job in Whistler, BC

2001-04-17 Thread Plutarck
ippi, so I think I'm safe ;) -- Plutarck Should be working on something... ...but forgot what it was. "Mark Maggelet" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mon, 16 Apr 2001 20:00:27 -0700, Dddogbruce \(@home.com\) ([EMAIL PROTEC

Re: [PHP] RFC: Storing User Info

2001-04-17 Thread Plutarck
pick a new one". I try to avoid emailing a user with their password with exception to when they loose it. Then again, there isn't really much of an alternative... -- Plutarck Should be working on something... ...but forgot what it was. ""Ashley M. Kirchner"" [EMAIL PROT

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Plutarck
te to be well listed in search engines. With all that taken into effect, I can see why the person you were talking to disliked dynamic sites. But if the webmaster knows the rules of the search engines, dynamic sites work just perfectly. -- Plutarck Should be working on something... ...but forgot wha

Re: [PHP] HTML and slashes.

2001-04-17 Thread Plutarck
Check magic_quotes_runtime in your ini. If it's on, turn it off. Use the htmlspecialchars() family of functions. They will "hide" HTML in that the browser will not attempt to parse. so "B" will be displayed as "B", and not make all the text turn to bold.

Re: [PHP] RE: A slightly amusing, though mostly dangerous, endless loop

2001-04-17 Thread Plutarck
is mentioned. The first time I saw it I was thinking, "Geeze, this page sure is taking a long time to load...and why are so many variables available on this site..." -- Plutarck Should be working on something... ...but forgot what it was. ""Greig, Euan"" [EMAIL PROT

Re: [PHP] Javascript mailing list

2001-04-17 Thread Plutarck
I know of only the one on marc.aimsgroup.com. They list quite a few mailing lists of all types. But I still don't know any newsgroups :( -- Plutarck Should be working on something... ...but forgot what it was. ""Boget, Chris"" [EMAIL PROTECTED] wrote in message [EMAIL PRO

Re: [PHP] OT - cyber squatting?

2001-04-17 Thread Plutarck
have made a good-faith effort to build a destinctive trademark of brand which does not impede upon a pre-existing copyright, and that the name was not registered for the sole purpose of keeping someone from rightfully registering it. Is that what you meant? -- Plutarck Should be working on

Re: [PHP] get_class()

2001-04-17 Thread Plutarck
ou'll have to be more specific. As for getting the name "thisInstance", I'm not really sure why you'd need to, so I can't think of a work-around. Since "thisInstance" is the name of the object, you need some object related function. I've never had to do it, so I have no clue how, but ma

Re: [PHP] Is there such an array like $array[][]?

2001-04-17 Thread Plutarck
loc["x"]. Just another option, but feel free to use multi-dimensional arrays. Just be aware that PHP supports only two dimensions (so $array[][][] will not work), and if you try and get fancy with sort() and count() you are going to give yourself a migraine. -- Plutarck Should be wo

Re: [PHP] Site Sessions: Online/Offline - help?

2001-04-17 Thread Plutarck
y noticable slow down you could just use a register_shutdown_function. I think that should handle your problem... -- Plutarck Should be working on something... ...but forgot what it was. ""Richard"" [EMAIL PROTECTED] wrote in message 9bfv6n$pds$[EMAIL PROTECTED]">news:9bfv6n$pds$[EMAIL PRO

Re: [PHP] Finding Duplicate Numbers?

2001-04-17 Thread Plutarck
++) { if ($amount[$i] 1) { $copys[] = $amount[$i]; } } It ain't pretty, but $copys will be an array filled with the phone numbers that were entered more than once, so you can do whatever you want with it other than that. -- Plutarck Should be working on something

Re: [PHP] Site Sessions: Online/Offline - help?

2001-04-17 Thread Plutarck
. But in reality, you don't really need to worry about getting two 32 character long IDs that are the same. Note: one way to auto-logout someone is to use something like a on_unload javascript procedure, but don't bother. Not worth the hassle and it's isn't fool-proof. -- Plutarck Should be working

Re: [PHP] Want a Good Book for Ref on PHP

2001-04-16 Thread Plutarck
a totally updated book. For instance if you started writing a book now on PHP v4.0.5, PHP would be nearing version 5 before it ever hit a bookshelf. -- Plutarck Should be working on something... ...but forgot what it was. "Manisha" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]&qu

Re: [PHP] fwrite not writing

2001-04-16 Thread Plutarck
() part, and then try executing the function. But maybe I just don't understand what you are trying to write and why. Could you be a little more specific what data is being saved in the file, and what is in the file already? -- Plutarck Should be working on something... ...but forgot what

Re: [PHP] General WebServer Question?

2001-04-16 Thread Plutarck
ret1/analog/ It has listing for popularity of particular files, directories, etc. Good stuff. Insanely fast. -- Plutarck Should be working on something... ...but forgot what it was. ""Jason Caldwell"" [EMAIL PROTECTED] wrote in message 9be700$b2d$[EMAIL PROTECTED]">

Re: [PHP] global env variables not working in php-cgi

2001-04-16 Thread Plutarck
register_globals is On. That may be your problem... If none of the variables you seek are in HTTP_SERVER_VARS, then something is wrong with the installation of PHP itself. -- Plutarck Should be working on something... ...but forgot what it was. "Franklin Hays" [EMAIL PROTECTED] wrote

Re: [PHP] Protecting JavaScripts from being Donwloaded

2001-04-16 Thread Plutarck
pplet or client-side java bean, that's a little different. But in reality you can't really stop people from downloading those to their hard-drive either. There are methods to keep people from easily decompiling them, but I'm betting you aren't talking about Java stuff anyway :) -- Plutar

Re: [PHP] global env variables not working in php-cgi

2001-04-16 Thread Plutarck
RVER_VARS] = Array ( [PHP_SELF] =|Plutarck |Should be working on something... /test.php ) [GLOBALS] = Array ( [PHP_SELF] = /test.php [HTTP_GET_VARS] = Array ( ) [HTTP_COOKIE_VARS] = Array ( ) [HTTP_SERVER_VARS] = Array (|...but forgot what it was. | [PHP_SELF] = /test.php ) [GLOBALS] =

Re: [PHP] Want a Good Book for Ref on PHP

2001-04-16 Thread Plutarck
to be a complete wizard (which basically means the book is a 400 page reference manual). It's hard to find a book on computers that is for an advanced-but-not-perfect user. *orders* I'll give me review to the list once I get it :) -- Plutarck Should be working on something... ...but forgot what

Re: [PHP] global env variables not working in php-cgi

2001-04-16 Thread Plutarck
The GLOBALS array contains an a array called GLOBALS, which contains GLOBALS, endlessly. It will never ever end ;) It's fixed in 4.0.2. That was a typo. What I mean to say is that it's fixed in 4.0._4_, not _2_. -- Plutarck Should be working on something... ...but forgot what

Re: [PHP] is it safe to stripslashes() on all form variables?

2001-04-16 Thread Plutarck
As long as you don't need to ever store a forward slash :) Beyond that, nope. stripslash() away. -- Plutarck Should be working on something... ...but forgot what it was. ""Noah Spitzer-Williams"" [EMAIL PROTECTED] wrote in message 9bf7ec$m1m$[EMAIL PROTECTED]&quo

Re: [PHP] var question

2001-04-16 Thread Plutarck
Add an "=" on the end of your url. Viola. -- Plutarck Should be working on something... ...but forgot what it was. ""Jeroen Geusebroek"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Guys, I have a question about th

Re: [PHP] How do i include ASP script into PHP...??!

2001-04-16 Thread Plutarck
Doesn't work. ASP scripts require an ASP interpreter. If you stick it in a PHP file, PHP will try to interpret the ASP code. PHP can't do that. -- Plutarck Should be working on something... ...but forgot what it was. ""Joe Truong"" [EMAIL PROTECTED] wrote in messa

Re: [PHP] var question

2001-04-16 Thread Plutarck
Note: Yes, I meant string instrument. Any references to YoYo Ma will be dealt with swiftly and severly. -- Plutarck Should be working on something... ...but forgot what it was. ""Plutarck"" [EMAIL PROTECTED] wrote in message 9bfp5e$169$[EMAIL PROTECTED]">news

Re: [PHP] Sorry :(

2001-04-15 Thread Plutarck
Remember: There are no stupid questions. Only stupid people. ...*couldn't resist* ;) -- Plutarck Should be working on something... ...but forgot what it was. ""Chris Anderson"" [EMAIL PROTECTED] wrote in message 002b01c0c528$7ea85a60$0d1012d1@null">news:002b01c

Re: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Plutarck
In the future, to make things easier on yourself, when you get a query syntax error add an "echo $sql;" line right before your query. Almost every time I have a query problem, that solves it. -- Plutarck Should be working on something... ...but forgot what it was. ""Scot

Re: [PHP] Sessions?

2001-04-14 Thread Plutarck
e you just check to see if a session variable is set, and if it is you replace the global variable value with the session variable value. -- Plutarck Should be working on something... ...but forgot what it was. ""Ashley M. Kirchner"" [EMAIL PROTECTED] wrote in message [EMAIL PRO

Re: [PHP] Reading a file and changing a href tag values

2001-04-14 Thread Plutarck
to learn regular expressions (which you should do anyway). Otherwise it will seem impossible. -- Plutarck Should be working on something... ...but forgot what it was. ""Brett"" [EMAIL PROTECTED] wrote in message 012701c0c4a2$cbc7f840$LocalHost@Default">news:012701c0c4a

Re: [PHP] PHP MySQL Search Results

2001-04-14 Thread Plutarck
people do "pages". -- Plutarck Should be working on something... ...but forgot what it was. ""Jason Caldwell"" [EMAIL PROTECTED] wrote in message 9b8rgd$oot$[EMAIL PROTECTED]">news:9b8rgd$oot$[EMAIL PROTECTED]... Does anyone know (or have) of a good examp

Re: [PHP] CLASSES AND OBJECTS..

2001-04-14 Thread Plutarck
it will need to be retooled. Sounds like a nice thing to shoot for for PHP5, perhaps? -- Plutarck Should be working on something... ...but forgot what it was. ""alberto"" [EMAIL PROTECTED] wrote in message 9b9eu7$s6n$[EMAIL PROTECTED]">news:9b9eu7$s6n$[EMAIL PROTECTED]...

Re: [PHP] sorting multi-dimensional arrays

2001-04-14 Thread Plutarck
array. It won't effect the first dimension however, so if you want to sort that you will need to do it first. -- Plutarck Should be working on something... ...but forgot what it was. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a question about

Re: [PHP] Sessions?

2001-04-14 Thread Plutarck
PHP appends the "PHPSESSID=[long string of characters]" to all of your links. So the short answer to your question is "Yes, it's the best way to handle it". But it must be noted that when someone submits a variable through the URL it will _not_ change the value of any session variab

Re: [PHP] counter reseting help!

2001-04-14 Thread Plutarck
do your counter as normal. -- Plutarck Should be working on something... ...but forgot what it was. ""McShen"" [EMAIL PROTECTED] wrote in message 9b9mg0$26o$[EMAIL PROTECTED]">news:9b9mg0$26o$[EMAIL PROTECTED]... hi I am writing a small counter for my site. Bu

Re: [PHP] Explain recordset

2001-04-14 Thread Plutarck
ql_fetch_row($result)); That will store all the results into $array...hopefully. -- Plutarck Should be working on something... ...but forgot what it was. "Mike P" [EMAIL PROTECTED] wrote in message 9b9lvb$u57$[EMAIL PROTECTED]">news:9b9lvb$u57$[EMAIL PROTECTED]... I'm t

Re: [PHP] help on something simple?

2001-04-14 Thread Plutarck
mysql_num_rows($result); When you use a SELECT query the function "mysql_affected_rows" is not valid. When using an UPDATE, INSERT, or DELETE query, "mysql_num_rows" is invalid. That may be your problem, because the code you paste in seems not to have anything wrong with it.

Re: [PHP] Selected Radio Buttons

2001-04-14 Thread Plutarck
I'm not sure I understand. In the first loop you are seing if $article_active equals y. And no where in the code do you set $article_active to anything else. Why would you think $article_active would be anything but "y" or "n"? -- Plutarck Should be working on something..

[PHP] PHP without a webserver

2001-04-14 Thread Plutarck
be helpful, but is there anything a little more "pointed" than that? I'd love to see PHP grow an arm of offline scripting. It would just be _perfect_ for compiling high-level developer-friendly scripts into a format usable for 3D real-time environment manipulation, for instance. -- Plutarck Should be

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
Ah, even better. However, how would the script be passed to PHP? As a command line argument? -- Plutarck Should be working on something... ...but forgot what it was. "Jeroen Wesbeek" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... well

Re: [PHP] Supplied argument is not a valid MS SQL-Link resource

2001-04-14 Thread Plutarck
from my_table"; $Test=mssql_query($QueryString, $Conn); That should work just fine. -- Plutarck Should be working on something... ...but forgot what it was. ""davek"" [EMAIL PROTECTED] wrote in message 9ba2po$jnb$[EMAIL PROTECTED]">news:9ba2po$jnb$[EMAI

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
with the form a little, then send the form to PHP. Is that possible using the CGI executible? -- Plutarck Should be working on something... ...but forgot what it was. "Brian Clark" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Plutarck, @ 2:11:

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Plutarck
eding-edge technology. Life's too short to spend it learning how to live it. Translation: Better to program than to learn yet _another_ language. -- Plutarck Should be working on something... ...but forgot what it was. ""Chris Anderson"" [EMAIL PROTECTED] wrote in

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
ine in PHP? Anyway, that's my idea. I'd just be happy to outsource some of my C++ work to PHP. If I use MFC, goodbye platform independence. If I don't use it, it's a huge pain in the butt to do heavy string manipulation. So I figure, why not just have PHP do it, since I already know the language?

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Plutarck
put the VCR back under the TV. -- Plutarck Should be working on something... ...but forgot what it was. "Michael Kimsal" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Plutarck wrote: I use to be really enthusiastically pro-XML just as I was

Re: [PHP] next release?

2001-04-14 Thread Plutarck
to be in 4.0.6. Then again, there are probably people who claim their features will be in PHP5 ;) -- Plutarck Should be working on something... ...but forgot what it was. "Michael Kimsal" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm

Re: [PHP] Do any of you provide hosting?

2001-04-13 Thread Plutarck
The space they provide is just monstrous...but I don't know about subdomains. I couldn't find a mention on subdomains :( They provide 50 ftp accounts and 10 telnet on the smallest ecommerce plan...bah, but zero mentions of subdomains. You could always ask :) -- Plutarck Should be working on

Re: [PHP] Updating a value in a session

2001-04-12 Thread Plutarck
the variable $value which was submitted in the form. The way to get around this is to rename your form to "form_value". Then right after you register value in your session, insert this: $value = $form_value; It should work without error. -- Plutarck Should be working on something... ...

Re: [PHP] $8 PHP hosting from Jeffrey Greer

2001-04-12 Thread Plutarck
Anyone wonder if he was kidding? The part about adding mod_ssl to apache just reaks of concept comedy to me. Then again, I see a joke in every phrase... -- Plutarck Should be working on something... ...but forgot what it was. ""Greig, Euan"" [EMAIL PROTECTED] wro

Re: [PHP] search highlighting

2001-04-12 Thread Plutarck
You'll probably want to use preg_replace. For instance: $string = "/(PHP)/i"; $target = "Please highlight PhP for me."; echo $target, 'br'; $target = preg_replace($string, "b\\1/b", $target); echo $target, 'br'; \\1 is whatever was found in the first parenth

Re: [PHP] Editors ... calling them, or PHP-based one?

2001-04-12 Thread Plutarck
is different from txt (but I'd love to know!), but I can see it being very possible if you pick only a few standard file formats, and use the file upload features. It's actually a very good idea. I'm surprised no one has done it...which should probably worry you ;) -- Plutarck Should be working

Re: [PHP] www.php.net - gateway timeout?

2001-04-12 Thread Plutarck
/4.0.5-dev. The site loads fine now, but last time I did it it was all being rejected on that hop. The server was refusing packets. Maybe they are having problems with their server lately? It's been really sporatic, so I switched my links to use us.php.net...annoying ;( -- Plutarck Should be working

Re: [PHP] www.php.net - gateway timeout?

2001-04-12 Thread Plutarck
was what was wrong? ;) -- Plutarck Should be working on something... ...but forgot what it was. ""maatt"" [EMAIL PROTECTED] wrote in message 9b4cbu$hdt$[EMAIL PROTECTED]">news:9b4cbu$hdt$[EMAIL PROTECTED]... 208.247.106.187, running Apache/1.3.12 (Unix) DAV/0.9.18-

Re: [PHP] sending mail.. PLEASE HELP!

2001-04-12 Thread Plutarck
You need to alter your php.ini file in the mail section to point the proper path to sendmail, and you need some form of sendmail there for PHP to point to in the first place! So there's no just calling mail() without setting stuff up. -- Plutarck Should be working on something... ...but forgot

Re: [PHP] Editors ... calling them, or PHP-based one?

2001-04-12 Thread Plutarck
on that website, which is: http://www.wotsit.org/ *dances* For the RTF: http://www.wotsit.org/search.asp?page=3s=text Oooo I'm soo happy...toys toys toys! So many wonderful bits and bytes to play with now... -- Plutarck Should be working on something... ...but forgot what it was. "Dezider

Re: [PHP] Editors ... calling them, or PHP-based one? (doh!)

2001-04-12 Thread Plutarck
Well after looking at the file I just downloaded...the specification of RTF is 164 pages long. Good lord...*chokes an all the information* Ever considered just forcing the people to learn HTML instead? *smile* -- Plutarck Should be working on something... ...but forgot what

Re: [PHP] HTTP_POST_VARS

2001-04-12 Thread Plutarck
why it wouldn't. -- Plutarck Should be working on something... ...but forgot what it was. ""Mat Marlow"" [EMAIL PROTECTED] wrote in message 9b4f3s$3uo$[EMAIL PROTECTED]">news:9b4f3s$3uo$[EMAIL PROTECTED]... Hi all, I'm having trouble retrieving data from $HT

Re: [PHP] Newsgroups like this one?

2001-04-12 Thread Plutarck
newsgroups ;) -- Plutarck Should be working on something... ...but forgot what it was. ""Alvin Tan"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... yes you're right - i seem to have misread plutarck's mail. apologies ;) @lvin

Re: [PHP] Easy News Script

2001-04-12 Thread Plutarck
t the hang of :) -- Plutarck Should be working on something... ...but forgot what it was. ""Zeus"" [EMAIL PROTECTED] wrote in message 004e01c0c3b0$5dc7a7c0$1cd218d2@zeus">news:004e01c0c3b0$5dc7a7c0$1cd218d2@zeus... True but hehe I can't seem to do it witht he datetime thing.

Re: [PHP] Newbie MySQL Table Work

2001-04-12 Thread Plutarck
Use the mysql_query as mentioned. You need the CREATE TABLE syntax. For all your basic SQL syntax ponderings, I found a great site: http://sqlcourse.com Helped me out tremendously. For the create table: http://sqlcourse.com/create.html -- Plutarck Should be working on something

Re: [PHP] Problem?

2001-04-12 Thread Plutarck
includes. Makes it more readable and faster too, if you aren't going to spit out the whole thing at once. -- Plutarck Should be working on something... ...but forgot what it was. "Wee Chua" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

Re: [PHP] What variable are being sent to my script?

2001-04-12 Thread Plutarck
Even better, there is a whole PHP function just for that. I use the following code in scripts where I need to debug the available variables and their values: // Print all available variables. $arr = get_defined_vars(); print_r($arr); I love print_r ;) -- Plutarck Should be working

Re: [PHP] is_null

2001-04-12 Thread Plutarck
r instance, if you need to see if someone submitted something to the $username variable, use: if ($username) { // stuff } -- Plutarck Should be working on something... ...but forgot what it was. "Jennifer" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PR

Re: [PHP] removing slashes from template file

2001-04-12 Thread Plutarck
http://us.php.net/manual/en/function.set-magic-quotes-runtime.php Someone should make the manual search a little better...it couldn't find a search for "magic" ;( -- Plutarck Should be working on something... ...but forgot what it was. "Franklin Hays" [EMAIL PROTECT

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

2001-04-12 Thread Plutarck
the user with success. Otherwise you probably want to have it send the error to yourself, or email the user that the file didn't work. Only do this all once you are reasonably certain that there are no bugs in the code. Otherwise if there is an error, you'll never know it! -- Plutarck Should

[PHP] Getting one of each result from MySQL

2001-04-12 Thread Plutarck
n alphabetical order. My current idea is to read all the results into an array with a while loop, then use array_unique on it, then run sort on that. Is this really the best way to do it, or am I missing a simpler solution? -- Plutarck Should be working on something... ...but forgot what it was

Re: [PHP] crap! look at the mess that i made!

2001-04-12 Thread Plutarck
lmao No problem. And my problem is solved :) Thanks to you and John Keith for your quick help. Greatly reduces the amount of work I need to do in multiple instances! -- Plutarck Should be working on something... ...but forgot what it was. ""Jason N. Perkins"" [EM

[PHP] Problem solved, thanks!

2001-04-12 Thread Plutarck
"distinct" and "order by" are all I need. Thanks to John Keith and John Perkins for their quick answers! -- Plutarck Should be working on something... ...but forgot what it was. ""Plutarck"" [EMAIL PROTECTED] wrote in message 9b6229$48j$[EMAIL PROT

Re: [PHP] foreach vs. while(list() = each())

2001-04-11 Thread Plutarck
nk it basically just comes down to user preference. -- Plutarck Should be working on something... ...but forgot what it was. "Joe Stump" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What are the differences in these? I know with while() you

Re: [PHP] timer in PHP

2001-04-11 Thread Plutarck
ou're only making it hard on yourself and it's more or less impossible to do (without killing yourself in resources, anyway). Doing it with a database, once you get it working in the first place, may even be considered trivial. You may be pleasantly surprised...unless you can't use a database :) -

Re: [PHP] No new topic using reply please.

2001-04-11 Thread Plutarck
Better than the people who make a new thred by hitting Forward ;) -- Plutarck Should be working on something... ...but forgot what it was. ""Chris Lee"" [EMAIL PROTECTED] wrote in message 9b1rbb$mr3$[EMAIL PROTECTED]">news:9b1rbb$mr3$[EMAIL PROTECTED]... Accu

Re: [PHP] popup window

2001-04-11 Thread Plutarck
javascript just to login, even though nothing in the site even uses javascript! I really do hate that. -- Plutarck Should be working on something... ...but forgot what it was. ""Dan Harrington"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

[PHP] TIP: Making ALL your scripts work with register.globals turned off

2001-04-11 Thread Plutarck
ight...I have no idea when he figured it out). So I hope it helps some of you out. Enjoy! -- Plutarck Should be working on something... ...but forgot what it was. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: [PHP] Case-Sensitivity with PHP and MySQL

2001-04-11 Thread Plutarck
s are case-insensitive by default. To make them case-sensitive however, is a royal pain in the arse. -- Plutarck Should be working on something... ...but forgot what it was. "midget2000x" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am writin

Re: [PHP] Supplied argument is not a valid MySQL result resource

2001-04-10 Thread Plutarck
That means that your mysql_query probably returned an error. It should do that only when you screw up your syntax. echo/print out the syntax used in your query, and post it here. That is probably the problem you are having. -- Plutarck Should be working on something... ...but forgot what

Re: [PHP] huge PHP file, hardcore processing

2001-04-10 Thread Plutarck
ur problem. As for accessing any database on any system configuration, yes PHP can do it. You can have a DB running on a Super Nintendo accessed by PHP on a FreeBSD box, and it should work fine. ;) In other words it doesn't matter what platform it's running on...in a perfect world. -- Plutarck Should

Re: [PHP] Back Button Dilemma's

2001-04-10 Thread Plutarck
ing in one php page. When someone submits their info, save it and give them the next form. (the best way to do it) Or you could just use the good ole fashion flash applet, which breaks most people's back buttons :) (that can be gotten around, of course, and only happens on some peoples systems) -

Re: [PHP] I am SO confused (help with references!) (could be a bug?)

2001-04-10 Thread Plutarck
going on some day, lol. -- Plutarck Should be working on something... ...but forgot what it was. ""[Intent A/S] Tais M. Hansen"" [EMAIL PROTECTED] wrote in message 9auc2k$e5c$[EMAIL PROTECTED]">news:9auc2k$e5c$[EMAIL PROTECTED]... Hi, Well... I don't know if this is

[PHP] I am SO confused (help with references!) (could be a bug?)

2001-04-09 Thread Plutarck
n't have a clue what is going on...I'll post again with some more insanely unbelievable confusing code results if need be. -- Plutarck Should be working on something... ...but forgot what it was. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP] Finer points of debugging: vardump vs. print_r

2001-04-09 Thread Plutarck
I use print_r on arrays, and var_dump on everything else. print_r will not tell you if a variable is NULL, but var_dump will. So I usually use both. -- Plutarck Should be working on something... ...but forgot what it was. ""John Lim"" [EMAIL PROTECTED] wrote in messa

[PHP] Ahhh...I see

2001-04-07 Thread Plutarck
Thanks for the site...it answered my question, actually. I was not aware that an auto_increment must be not null. And am I correct that when it says it must be a "key", it means that it must be either Primary or Unique? That I did not know. Anyway, it's working now :) -- Pluta

Re: [PHP] here doc performance

2001-04-07 Thread Plutarck
imagine it would be just a bad implementation which will be fixed soon. But I strongly doubt a bad implementation of here doc printing was made. -- Plutarck Should be working on something... ...but forgot what it was. ""Jack Dempsey"" [EMAIL PROTECTED] wrote in message [EMAIL PRO

Re: [PHP] here doc performance

2001-04-07 Thread Plutarck
efore it started" bug prevents me from it :) -- Plutarck Should be working on something... ...but forgot what it was. ""Jack Dempsey"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for your thoughts. I don't believe it can be as

Re: [PHP] Checking the REFERER

2001-04-07 Thread Plutarck
ually or dynamically. If you get creative you can stop them from doing that, but... If you really have to be _that_ sure that a user is physically using your form, then your application is probably too unsecure, and it's design needs to be altered. -- Plutarck Should be working on something..

Re: [PHP] PEAR Standards (was Re: equivalent of asp's %= strTest %)

2001-04-07 Thread Plutarck
ogramming in any way, then they've become "code police", and we sure as heck don't need that. Remember, PHP is a "loosely typed" language. That's why I like it. However I often treat it as strictly typed to ensure I don't create any errors, but I like having that choice to just b

Re: [PHP] PHP asp

2001-04-07 Thread Plutarck
* -- Plutarck Should be working on something... ...but forgot what it was. ""Kittiwat Manosuthi"" [EMAIL PROTECTED] wrote in message 008f01c0bfd5$9b78d320$3d88aacb@notebook">news:008f01c0bfd5$9b78d320$3d88aacb@notebook... I guess this one is quite interesting... ht

Re: [PHP] Cookie Expire Problem

2001-04-07 Thread Plutarck
that still works after 270 years ;P -- Plutarck Should be working on something... ...but forgot what it was. ""Jeff Oien"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This code won't set a cookie. I took the time part from

Re: [PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Plutarck
be. While there are work-arounds, if you didn't use short-tags you wouldn't ever have a problem with any standard unless ?php becomes part of their markup, lol. And if it does, they will have to be "dealt with" :) -- Plutarck Should be working on something... ...but forgot what it was

[PHP] configure not doing anything and file not found

2001-04-07 Thread Plutarck
ere are no .cpp files in the source code from php.net, I imagine it would be hard to find that file ;) I'm using this article for instruction: http://www.mm4.de/php4win/article.php3?id=2language=en -- Plutarck Should be working on something... ...but forgot what it was. -- PHP General Mailing L

Re: [PHP] submitting to a remote form

2001-04-07 Thread Plutarck
nted to do? -- Plutarck Should be working on something... ...but forgot what it was. ""Joseph Bannon"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a remote php script on a remote server that I need to submit informatio

Re: [PHP] function and global problems

2001-04-06 Thread Plutarck
Look at the line directly above where you're parse error is. It semi-lacks part of the lower intentestional tract. That will seem funny to you tommarrow. -- Plutarck Should be working on something... ...but forgot what it was. PS: No it won't. ""Richard Kurth"" [EM

Re: [PHP] PHP and geocities

2001-04-06 Thread Plutarck
, fputs, and probably a few RFCs. Check zend for the output buffering article to get some information also. The rest is up to you to hack out. -- Plutarck Should be working on something... ...but forgot what it was. ""Joseph Bannon"" [EMAIL PROTECTED] wrote in message [EM

Re: [PHP] Building an array from a URL

2001-04-06 Thread Plutarck
You'll probably want to play with the following function: http://www.php.net/manual/en/function.parse-url.php -- Plutarck Should be working on something... ...but forgot what it was. "Mike Gifford" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

Re: [PHP] Nested for() loops?

2001-04-06 Thread Plutarck
(" result = $res br"); } } ? It makes it easier to see where the loops begin and where they end, and it stops most types of errors from appearing. -- Plutarck Should be working on something... ...but forgot what it was. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]&qu

Re: [PHP] Again about PHP + IRC

2001-04-06 Thread Plutarck
Check out phpwizard.net http://phpwizard.net/projects/phpIRC/ By reading through their code you can probably learn alot of what you want to know. -- Plutarck Should be working on something... ...but forgot what it was. "Marius Petravièius" [EMAIL PROTECTED] wrote in message [EMAIL

<    1   2   3   >