Re: [PHP] Sessions?

2001-04-13 Thread Plutarck
future 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

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

2001-04-13 Thread Plutarck
(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:012701c0c4a2$cbc7f840$LocalHost@D

Re: [PHP] PHP & MySQL Search Results

2001-04-14 Thread Plutarck
most 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 ha

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

2001-04-14 Thread Plutarck
...so be wary of that, and ensure you don't try and print out the variables available in GLOBALS in older versions of PHP. It was fixed with the anti-recursion feature, which automatically breaks endless loops. -- Plutarck Should be working on something... ...but forgot what it was.

Re: [PHP] CLASSES AND OBJECTS..

2001-04-14 Thread Plutarck
I think 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$[

Re: [PHP] sorting multi-dimensional arrays

2001-04-14 Thread Plutarck
ny two-dimensional 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]...

Re: [PHP] Sessions?

2001-04-14 Thread Plutarck
them. That's when 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 t

Re: [PHP] counter reseting help!

2001-04-14 Thread Plutarck
ours, just 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 smal

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]... >

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 someth

[PHP] PHP without a webserver

2001-04-14 Thread Plutarck
will 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.

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]... &

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

2001-04-14 Thread Plutarck
onn); $QueryString="select id, name 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$[EM

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
y 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]... >

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

2001-04-14 Thread Plutarck
ty, and I won't need to spend an extra minute learning a bleeding-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.

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
d extensible scripting engine 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 P

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

2001-04-14 Thread Plutarck
a can, use a can opener. So please 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:

Re: [PHP] next release?

2001-04-14 Thread Plutarck
features 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 P

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"

Re: [PHP] converting DATETIME to a readable date.

2001-04-15 Thread Plutarck
The I "now" get a date from MySQL (hehe) is to use UNIX_TIMESTAMP then feed it over to date. That way if I want to change the way the date is displayed, I don't have to touch my query syntax. And I personally find it easier to use PHP's date() function rather than MySQL

Re: [PHP] Mailbox and PHP

2001-04-15 Thread Plutarck
Check out PHPost: http://webgadgets.com/ It doesn't use IMAP, so you can probably learn quite a bit how POP3 mail can be handled. One of these days I'm going to actually figure it out myself... -- Plutarck Should be working on something... ...but forgot what it was. "&qu

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. ""Scott

Re: [PHP] fwrite not writing

2001-04-15 Thread Plutarck
What is this: !filesize($filepath) Add this above your if loop: $filesize = filesize($filepath); echo $filesize; That might be causing your loop not to execute...if not, I'm not sure what's wrong. -- Plutarck Should be working on something... ...but forgot what it was. "C

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

2001-04-15 Thread Plutarck
get 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 PR

Re: [PHP] fwrite not writing

2001-04-16 Thread Plutarck
ry removing the !filesize() 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 somethin

Re: [PHP] General WebServer Question?

2001-04-16 Thread Plutarck
uk/~sret1/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
d see what 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 PROTE

Re: [PHP] Protecting JavaScripts from being Donwloaded

2001-04-16 Thread Plutarck
JavaApplet 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

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

2001-04-16 Thread Plutarck
then something is [PHP_SELF] => /test.php > [HTTP_GET_VARS] => Array ( ) [HTTP_COOKIE_VARS] => Array ( ) > [HTTP_SERVER_VARS] => Array ( [PHP_SELF] => /test.php ) [GLOBALS]|wrong > with the installation of PHP itself. | | => Array ( [PHP_SELF] => > /test.ph

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

2001-04-16 Thread Plutarck
ou 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

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 fo

Re: [PHP] Variables not getting passed when I post info

2001-04-16 Thread Plutarck
ou are having a different problem entirely. -- Plutarck Should be working on something... ...but forgot what it was. "Brandon Orther" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I made a GD script that made an im

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 PRO

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

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]>

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]"&g

Re: [PHP] baffled :<:

2001-04-17 Thread Plutarck
In the loop, try using print_r($myarray) in the loop to see if the data is in there at all. Other than that, switch the while loop to: while ($myrow = mysql_fetch_assoc($result)) { That should fix it... -- Plutarck Should be working on something... ...but forgot what it was. "&

Re: [PHP] Reauthenticate

2001-04-17 Thread Plutarck
27;t be able to see the page, as long as you check for their cookie on that page anyway. So it's not fool proof (nothing is), but use header to send the Pragma: No-cache setting. Note: You can't _force_ the browser not to cache the page. You can only _request_ that it not be cached. -- P

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 be

Re: [PHP] php equivalent for `command`

2001-04-17 Thread Plutarck
uot; . ++$n . ""; echo "The number is: " . ++$n . ""; echo "The number is: " . ++$n . ""; 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 any mathem

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

2001-04-17 Thread Plutarck
it doesn't 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 wh

Re: [PHP] Dynamic built web pages administration

2001-04-17 Thread Plutarck
execute 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

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

2001-04-17 Thread Plutarck
mma. 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

Re: [PHP] cgi vs. module

2001-04-17 Thread Plutarck
m with PHP 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 me

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]..

Re: [PHP] Job in Whistler, BC

2001-04-17 Thread Plutarck
rgia, Alabama, or Mississippi, 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, Dddo

Re: [PHP] RFC: Storing User Info

2001-04-17 Thread Plutarck
d you just have to 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. Ki

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

2001-04-17 Thread Plutarck
ur site 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 fo

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 "" will be displayed as "", 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
ere $GLOBALS 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""

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

Re: [PHP] OT - cyber squatting?

2001-04-17 Thread Plutarck
ave 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
l 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

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 wor

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

2001-04-17 Thread Plutarck
avoid any 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:9

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 som

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

2001-04-17 Thread Plutarck
;s insanely huge. 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 f

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

2001-04-17 Thread Plutarck
ess I should of actually _tried_ it and not have just taken their word for it. -- Plutarck Should be working on something... ...but forgot what it was. "CC Zona" <[EMAIL PROTECTED]> wrote in message 9bi3ac$9n9$[EMAIL PROTECTED]">news:9bi3ac$9n9$[EMAIL PROTECTED]... &g

Re: [PHP] Variable variable

2001-04-18 Thread Plutarck
cho 'The checkbox with the name "id" has the value "on"'; } else { echo "The checkbox with the name "id" was not selected"; } But if register globals was on, all you have to use is: if ($id == "on") { echo 'The checkbox with

Re: [PHP] What is cookies

2001-04-18 Thread Plutarck
RTFM (ReadTheFineManual ;) http://us.php.net/manual/en/function.setcookie.php As listed in the manual for an explanation on cookies: http://www.netscape.com/newsref/std/cookie_spec.html -- Plutarck Should be working on something... ...but forgot what it was. "Bertrand TACHAGO&quo

Re: [PHP] sessions

2001-04-18 Thread Plutarck
ction. It's also the best way to do it, as it may take extra typing when declaring your function, but it makes it alot more readable and bug-free. -- Plutarck Should be working on something... ...but forgot what it was. ""Ben"" <[EMAIL PROTECTED]> wrote in messag

Re: [PHP] Importing Data from Text File

2001-04-18 Thread Plutarck
tab, it works. Tell me if this works for you. If it doesn't I can rethink it :) -- Plutarck Should be working on something... ...but forgot what it was. "Chris Aitken" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Everyone

Re: [PHP] mysql error code - how to debug

2001-04-18 Thread Plutarck
r the user does not have access to that database. -- Plutarck Should be working on something... ...but forgot what it was. <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Greetings, > > This is a mysql question, (but I'm using php

Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Plutarck
Quick answer: HTTP_POST_VARS is an associative array. The "name" of the submitted variables are the keys, and the value of the element is the value that was submitted. -- Plutarck Should be working on something... ...but forgot what it was. ""Mat Marlow"" <[E

Re: [PHP] global sessions

2001-04-18 Thread Plutarck
OBALS, but they should not be relied on. If nothing else, not using global in a function that requires a variable that is declared outside of that function is bad practice. Note: Try using get_defined_variables() inside of a function and see what it returns. -- Plutarck Should be working on some

Re: [PHP] Connection with a Palm

2001-04-18 Thread Plutarck
"exporting data to a palm" is far too vague. PHP can produce data in a format suitable for saving on a Palm, or you can have it interpret data from a Palm. To physically save data from a webpage to a palm requires client-side scripting. -- Plutarck Should be working on something

Re: [PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Plutarck
every time the script is run. However, you must still make a call to pg_pconnect before you attempt to query your database. Anyway, using include while not open a new connection for each query. But it will open a new connection for each time the page is visited. -- Plutarck Should be working on some

Re: [PHP] Persistent connection & many scripts ?

2001-04-18 Thread Plutarck
Nope, you don't need to save the ID. PHP/database does the work of remembering what the ID of your persistant connection is. -- Plutarck Should be working on something... ...but forgot what it was. ""Picard, Cyril"" <[EMAIL PROTECTED]> wrote in message [EMAIL PR

Re: [PHP] php equivalent for `command`

2001-04-18 Thread Plutarck
uot;; To get that to work like you want it to, you need only do: echo 'Value of test: ' . $test++ . ' '; It's functionally the same, no brackets needed. If you want it to be evaluated BEFORE it's echoed, you need to use: echo 'Value of test: ' . ++$test

Re: [PHP] Persistent connection & many scripts ?

2001-04-18 Thread Plutarck
ct and one pconnect won't do exactly what you might think it would. -- Plutarck Should be working on something... ...but forgot what it was. ""Picard, Cyril"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... So : Is it what y

Re: [PHP] Connection with a Palm

2001-04-18 Thread Plutarck
Hm...can't say I've seen many subjects about this, but you might want to look around for information on WAP/WML. Maybe someone else would know more though, because I have no experiance with non-PC browsers. -- Plutarck Should be working on something... ...but forgot what it was.

Re: [PHP] Variable variable

2001-04-18 Thread Plutarck
> The braces aren't required in this case. Yup, your right. I stand corrected. I had forgotten that multiple $s are fine, and that I simply don't use them because I have trouble reading them. The joys of learning ;\ -- Plutarck Should be working on something... ...but forgo

Re: [PHP] Password Generator?

2001-04-18 Thread Plutarck
rks for NNTP and ftp downloads...my HTTP has broken for the moment, and I have no idea why ;( -- Plutarck Should be working on something... ...but forgot what it was. ""Ashley M. Kirchner"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] regex and mysql - looking for opinions.

2001-04-18 Thread Plutarck
uite useful for killing useless input without returning errors, so the username (for instance) "B{o}b" it made into "Bob". That way it's more or less forgiving of morons and malicious users alike :) -- Plutarck Should be working on something... ...but forgot what it was. "La

Re: [PHP] where to get info on developing web e-mail

2001-04-18 Thread Plutarck
Check out PHPost at webgadgets.com for some non-IMAP email tips. -- Plutarck Should be working on something... ...but forgot what it was. "Henrik Hansen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Szeto" &l

Re: [PHP] SESSIONS, a weird, funny yet strange error happens to wrong people...

2001-04-19 Thread Plutarck
s a new sessid with the same number would be created right then. -- Plutarck Should be working on something... ...but forgot what it was. "Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message DC017B079D81D411998C009027B7112A015ED114@EXC-TYO-01">news:DC017B079D81D411998C0

Re: [PHP] Cookies

2001-04-19 Thread Plutarck
rather than using time(), try using one of the GMT time functions. Check under date/time in the manual, which is the same section that time is under. -- Plutarck Should be working on something... ...but forgot what it was. ""Chi Wa Au"" <[EMAIL PROTECTED]> wrote i

Re: [PHP] best way to include html?

2001-04-19 Thread Plutarck
bal file that all my scripts use to keep things simple. I haven't used a tag other than , , and in weeks. -- Plutarck Should be working on something... ...but forgot what it was. ""Duke"" <[EMAIL PROTECTED]> wrote in message 002301c0c87d$9f1e3c80$[EMAIL PROTECTED]&quo

Re: [PHP] array_count_values

2001-04-19 Thread Plutarck
> echo $stuff[nuts]; It should work, but it's becomg a depreciated practice and may break in future versions. Always quote a non-numeric array key. Beyond that, use print_r($array) and see if there is a "nuts" key in there at all. -- Plutarck Should be working on somethin

Re: [PHP] How many color can html recongize in Word.

2001-04-19 Thread Plutarck
to hex values unless you absolutely _have_ to use the names. If you have problems with hex, use this: http://www.visibone.com/ Great collection of tools to fine the exact color you want. -- Plutarck Should be working on something... ...but forgot what it was. "Pavel Jartsev" <[EM

Re: [PHP] php equivalent for `command`

2001-04-19 Thread Plutarck
ather than just stuff them all inside a double quoted string. Not that it would really effect you much unless you had a hugely long script though. -- Plutarck Should be working on something... ...but forgot what it was. ""Greig, Euan"" <[EMAIL PROTECTED]> wrote in

Re: [PHP] Newbie Technical Question

2001-04-19 Thread Plutarck
unless you are under an utterly immense server-strain. -- Plutarck Should be working on something... ...but forgot what it was. "Nashirak Bosk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a php file with a lot of user defi

Re: [PHP] Which is better coding style...

2001-04-19 Thread Plutarck
style. I just think it's easier to follow and clearer, but I understand why some people don't like them. I use to hate them...until I started using them :} -- Plutarck Should be working on something... ...but forgot what it was. ""..s.c.o.t.t.. [gts]"" <[EMAIL PR

Re: [PHP] PHP and Ranges

2001-04-19 Thread Plutarck
s within any of the specified ranges. But I don't know of it's specific existance. -- Plutarck Should be working on something... ...but forgot what it was. ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9bnos3$flm$[EMAIL PROTECTED]">news:9bnos3

Re: [PHP] Headers sent by - need to clear screen - help me

2001-04-20 Thread Plutarck
Short answer: no. If you can't just put your error information before you write information to the screen you will need to use the ob_* family of functions. Clean the information you've printed so far, then just print out the error information to the screen. -- Plutarck Should be

Re: [PHP] PERL vs. PHP

2001-04-20 Thread Plutarck
obably a Java programmer ;) Just remember: Square Peg, Square Hole. -- Plutarck Should be working on something... ...but forgot what it was. ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9bq8h0$n78$[EMAIL PROTECTED]">news:9bq8h0$n78$[EMAIL PROTECTED].

Re: [PHP] Sessions and header-redirect

2001-04-20 Thread Plutarck
n. To see if they've attempted to login (even if you do that anyway, it's a good idea not to bother with something like if (!$PHPSESSID)). -- Plutarck Should be working on something... ...but forgot what it was. "Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL P

Re: [PHP] This should be simple...

2001-04-20 Thread Plutarck
RTFM ...there, feel better now? *always happy to help* :) -- Plutarck Should be working on something... ...but forgot what it was. "Joseph Koenig" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Right on. That did it.

Re: [PHP] RE: Site Sesions: Online/off...

2001-04-20 Thread Plutarck
rself. If you're a masochist I suppose you could play around with mktime() :) -- Plutarck Should be working on something... ...but forgot what it was. ""Richard"" <[EMAIL PROTECTED]> wrote in message 9bpbf3$fc$[EMAIL PROTECTED]">news:9bpbf3$fc$[EMAIL PROT

Re: [PHP] PHPSESSID in session

2001-04-20 Thread Plutarck
nt. It's just really ugly that way. -- Plutarck Should be working on something... ...but forgot what it was. ""nicuc.ac.jp"" <[EMAIL PROTECTED]> wrote in message 9bp4n3$7uk$[EMAIL PROTECTED]">news:9bp4n3$7uk$[EMAIL PROTECTED]... > I use session in my Shopp

Re: [PHP] I don't get it ... suddenly my script doesn't work ...

2001-04-21 Thread Plutarck
to normal. -- Plutarck Should be working on something... ...but forgot what it was. "Tim Thorburn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have a PHP script that I wrote several months ago which allows

Re: [PHP] I'm a moron. So?

2001-04-21 Thread Plutarck
Personally I like to use mt_rand() rather than rand() as it's billed to be faster and more random than plain old rand(). Kind of makes me wonder why they haven't just replaced rand() with mt_rand()... "seed" requires srand() for rand() and mt_srand() for mt_rand(). -

Re: [PHP] connection problème!

2001-04-21 Thread Plutarck
Not enough "}". Change it to: -- Plutarck Should be working on something... ...but forgot what it was. ""Francois Boucher"" <[EMAIL PROTECTED]> wrote in message 9bsk0h$r2e$[EMAIL PROTECTED]">news:9bsk0h$r2e$[EMAIL PROTECTED]... > I wrote this

Re: [PHP] Output graphic or other download file to client's browser

2001-04-21 Thread Plutarck
small applet to pieces in no time. In other words, it's next to impossible to keep someone from downloading one of your pictures. The only way to restrict it is to just use the images on pages that only authorized users can see. -- Plutarck Should be working on something... ...but forgot w

[PHP] Buggy Java GUI? (just a tad OT)

2001-04-21 Thread Plutarck
or Limewire and other 100% java apps I've tried. I was just wondering if it's just my machine, or because I use the windows98 VM, or if everyone experiences the same thing. I'm guessing the horrendous starting load time is native to java, but at least it runs ok once you get the thing

Re: [PHP] Buttons and such...

2001-04-22 Thread Plutarck
nd they'll make some graphics for you. Also check out a program called IconToy, which rips out graphics from windows programs. -- Plutarck Should be working on something... ...but forgot what it was. "Geir Eivind Mork" <[EMAIL PROTECTED]> wrote in message 01042216125503.05

Re: [PHP] writing to file on server

2001-04-22 Thread Plutarck
When you are using that on your site, what basically happens is that you are trying to open an FTP session with yourself. Not too efficient. So just kill off the url and use the path to your file. -- Plutarck Should be working on something... ...but forgot what it was. ""Joer

Re: [PHP] Buggy Java GUI? (just a tad OT)

2001-04-22 Thread Plutarck
rogrammer explicitly says what to load and what to unload. Ah well, I suppose that's the price of simplicity. Thanks for your answer. I feel better about Java now...but now I have issues about the size of my RAM. ;) -- Plutarck Should be working on something... ...but forgot what it

Re: [PHP] help!! newbie

2001-04-22 Thread Plutarck
The offset is refering to an array, so offset 0 is actually the first link. -- Plutarck Should be working on something... ...but forgot what it was. ""McShen"" <[EMAIL PROTECTED]> wrote in message 9btbqt$t79$[EMAIL PROTECTED]">news:9btbqt$t79$[EMAIL PROTECTED]..

  1   2   3   >