Re: [PHP] VariableName

2001-05-24 Thread Plutarck
value was 0, you'd have three variables who's value was 0: $Name1 $Name2 $Name3 Variable variables are the way to go. They're so cool :) I wonder if Java has anything like that... Plutarck "Martin Thoma" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]&quo

Re: [PHP] How to manage login ???

2001-05-24 Thread Plutarck
in particular for security. The only security on _any_ connection is using encrypted transfers and not sending important data in clear-text. Plutarck ""Bass¨Ð¦õªv"" <[EMAIL PROTECTED]> wrote in message 9eilgb$mth$[EMAIL PROTECTED]">news:9eilgb$mth$[EMAIL PROTECTED

Re: [PHP] Constantly running?

2001-05-24 Thread Plutarck
eaning you can't rely on your script always running, so often it's best not to even bother. Best to just use crontab with a timed script or use a completely different solution for an 'always on' program such as one written in java. Plutarck ""Chris""

Re: [PHP] advice on 'Nusphere Mysql Package' appreciated

2001-05-24 Thread Plutarck
ence as to how it works on non-windows, but I highly reccommend it. Since I haven't 'bought' it, I can't comment on the support... Plutarck ""Johnny Smith"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I&

Re: [PHP] Calling PHP script from C/C++?

2001-05-22 Thread Plutarck
ork, but I don't know of it. Plutarck ""Chatchawan Boonraksa"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > Can PHP be used as a general scripting language other than in web? > Has anyone did this b

Re: [PHP] Tab ordereing

2001-05-22 Thread Plutarck
...and obviously I'm wrong ;) Plutarck ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9ee0bh$k0g$[EMAIL PROTECTED]">news:9ee0bh$k0g$[EMAIL PROTECTED]... > The order is the order they are written in the html code. > > I'm not aw

Re: [PHP] Tab ordereing

2001-05-22 Thread Plutarck
The order is the order they are written in the html code. I'm not aware of any way to make it otherwise... Plutarck "Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What's the syntax for

Re: [PHP] best way to flush stdout?

2001-05-22 Thread Plutarck
her words, you can't. ;) Plutarck "Phil Glatz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a page that displays a few lines, then runs a database query that > takes five or six seconds. I'd like to flush stdout and disp

Re: [PHP] What's wrong with this code?

2001-05-22 Thread Plutarck
Ahh, so you can use \\n within the regex itself...I was thinking that what was capture in the regex itself wasn't available until the "replace" part. Obviously that's not true ;) Thanks alot, everyone! One problem down, all the other one's to go :) Plutarck &qu

Re: [PHP] Send attachments with an email (Sample Code for you lot :))

2001-05-21 Thread Plutarck
*makes a note to develop a fully functional, system independent Slap class* Slap.setStrength(getMaxStrength()); Slap.setTarget(getLocation("Microsoft Outlook")); Slap.slap; *bows* Plutarck "Jason Murray" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

Re: [PHP] What's wrong with this code?

2001-05-21 Thread Plutarck
g like: onclick='somecode("thisiswhereitwouldstop")'? Should I just copy the regex to another line and replace single quotes with double quotes, thus doing two searches rather than trying to do it all at one time? Plutarck "Christian Reiniger" <[EMAIL PROTECTED]&g

Re: [PHP] Intranet links

2001-05-21 Thread Plutarck
t to give you a very good answer. Plutarck ""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > do u have any interesting links about careting an intranet? > > Thanks > _

Re: [PHP] Multiple emails

2001-05-21 Thread Plutarck
time, waiting for each one to finish before sending another, but not holding up your PHP program and logging any errors to a log file. If I knew more about how sendmail worked I'd write something like that in java :) Plutarck ""Tom Carter"" <[EMAIL PROTECTED]>

Re: [PHP] if $submit

2001-05-21 Thread Plutarck
s". If they use: error_reporting(E_ALL); ...they'll probably see a whole bunch of ugly little warnings. Useful for debugging, annoying as all heck for production code. Plutarck "Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Plutarck
ted from an outside source, be sure that it's explicitly set to something before any evaluation of that variable is done. And that's about all I can think of. Still, it's best just to leave the function on as an extra bit of security. You can never be too safe. Plutarck ""

Re: [PHP] Check multiple cookies

2001-05-21 Thread Plutarck
.com'; } elseif ($var3) { $url = 'www.example3.com'; header("Location: $url"); Obviously there are endless ways to do it, but that's the basic idea. Plutarck "Sam Gooding" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] if $submit

2001-05-21 Thread Plutarck
error_reporting (E_ALL ^ E_NOTICE); http://www.php.net/manual/en/function.error-reporting.php I personally change my php.ini setting to: error_reporting = E_ALL & ~E_NOTICE Then at the top of my scripts which I want to debug I add the line: error_reporting(E_ALL); Plutarck &quo

Re: [PHP] What's wrong with this code?

2001-05-21 Thread Plutarck
to why, but here's what's really making me sick. By running it on http://www.theregister.co.uk which is where I got the code I'm trying to strip down, this is what I do in my code: http://www.theregister.co.uk'; $fp = fopen($target, "r"); $

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Plutarck
config you don't control, then knock yourself out. But it's a good idea to pretend that the default settings of PHP can't be changed, since most people have those settings and you don't want your code to be "system dependent" :) Plutarck ""Mark Rogers&q

[PHP] What's wrong with this code?

2001-05-21 Thread Plutarck
escaped? But escaping them doesn't seem to work either... So, what's wrong with the second piece of code that isn't wrong in the first? Thanks in advance. Plutarck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Plutarck
urn it off I believe it's the magic_quotes_gpc option. Plutarck ""Mark Rogers"" <[EMAIL PROTECTED]> wrote in message 9eavif$dks$[EMAIL PROTECTED]">news:9eavif$dks$[EMAIL PROTECTED]... > If I submit a string to a script via GET which contains q

Re: [PHP] get all defined constants?

2001-05-21 Thread Plutarck
Hmm...SID is a constant, and when it's set it is present in $GLOBALS. But when I run this: ...the constant exists, but is not present in $GLOBALS. Weird...anyone know why this happens? (I'm using 4.0.5) Plutarck "Alex Black" <[EMAIL PROTECTED]> wrote in messa

Re: [PHP] ok, are servlets/jsp faster than php4?

2001-05-21 Thread Plutarck
ge than PHP. But IMHO, none are both faster and easier. Otherwise I wouldn't be using PHP ;) "If you don't know why something isn't working, it's probably your fault." (words to live by :) Plutarck "Steven Haryanto" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-21 Thread Plutarck
ort. None of them do it on there own. There are no real dictators who control the flow of PHP's future, which is how open-source is suppose to be. Plutarck "Frank Joerdens" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Mon, Ma

[PHP] How to test content encoding?

2001-05-20 Thread Plutarck
y know if the browser is getting gzip content? Plutarck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Lookin For Programmer

2001-05-19 Thread Plutarck
I reccommend looking around sourceforge.net for current PHP BB projects, and if you find something like you want you can join that project, or you can just create your own project and thus allow people to join in the creation, should they so choose. Plutarck "nicholas" <[EM

[PHP] Accessing data from a localhost proxy

2001-05-19 Thread Plutarck
ey both get the same data? Thanks in advance of my other thank yous, Plutarck -- 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]

[PHP] An excellant example of what PHP can do

2001-05-19 Thread Plutarck
t for people at work/in foreign countrys): https://www.safeweb.com/ Their triangleboy application of course doesn't use PHP as their server has to spoof packets, but their online site uses it. And they're pretty huge, showing that PHP really can handle high-load websites. Enjoy, Plut

Re: [PHP] Mailserver?!

2001-05-19 Thread Plutarck
abase, PHP probably isn't the way to go. A Java Servlet would probably be a more appropriate application for that. But I don't think that's what you're wanting to do. Plutarck ""FredrikAT"" <[EMAIL PROTECTED]> wrote in message 9e6gud$eie$[EMAIL PROT

Re: [PHP] Script timeout with set_time_limit(0);

2001-05-17 Thread Plutarck
longer) so that probably isn't your problem. Try the function that gets how long your timeout is set to (can't recall the name atm) before and after you set it and see what it says. Plutarck ""JFL"" <[EMAIL PROTECTED]> wrote in message 9e0bga$g7t$[EMAIL PROTEC

Re: [PHP] function login

2001-05-17 Thread Plutarck
n you are using two variables, $pass and $username which are not declared as global in your function. Add this line at the top of your function: global $pass, $username; See if that fixes it. Plutarck ""Greg K"" <[EMAIL PROTECTED]> wrote in message 9e0bfs$fld$[EMAIL PROTECTED

Re: [PHP] If (!$submit)

2001-05-17 Thread Plutarck
The reason you're getting the undefined variable warning level is because your error reporting level which is set in php.ini or explicitly in your code is set to spit out warning, so you'll want to change that before doing anything other than just testing. Plutarck "Tarrant Cos

Re: [PHP] STRINGS

2001-05-17 Thread Plutarck
Take out that first bit with the wrote in message 9e06qr$pmq$[EMAIL PROTECTED]">news:9e06qr$pmq$[EMAIL PROTECTED]... > Hi, > > How I can save the below string??? > > I try concatenate, but when I try with echo or print not display > nothing. > > > Best Regards > > > > -- > PHP General Mai

Re: [PHP] Newline in a guestbook

2001-04-24 Thread Plutarck
You can also use the strlen() function. -- Plutarck Should be working on something... ...but forgot what it was. "Jimmy Bäckström" <[EMAIL PROTECTED]> wrote in message 000a01c0cd06$351f1060$[EMAIL PROTECTED]">news:000a01c0cd06$351f1060$[EMAIL PROTECTED]... Hey guys!

Re: [PHP] checking url

2001-04-24 Thread Plutarck
How do you mean, "check"? Do you want to use a regular expression to see if it's a valid URL, or do you want to open a connection to it and see if the site actually exists? -- Plutarck Should be working on something... ...but forgot what it was. "Dmitry" <[EMAIL

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Plutarck
tell them that they can't activate their account without a valid email, that doesn't stop them from giving a clearly invalid email address. Go figure. The answer comes down to "don't even bother to be clever". It will just slowly drive you insane. So the moral of the story i

Re: [PHP] Very important.

2001-04-24 Thread Plutarck
/dispVirus.asp?virus_k=98881&; Gotta hate when that happens. - end old message - -- Plutarck Should be working on something... ...but forgot what it was. ""Padraic Tynan"" <[EMAIL PROTECTED]> wrote in message 008701c0cd05$a0e274a0$[EMAIL PROTECTED]"

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Plutarck
it's not a purely PP language. The world if formed from the void, like utensils from a block of wood. The Master knows the utensils, yet keeps to the block: thus he can use all things. -- Plutarck Should be working on something... ...but forgot what it was. ""SED"&quo

Re: [PHP] what is better? mysql_connect() or mysql_pconnect()?

2001-04-24 Thread Plutarck
ea. In other words persistant connections are not so wonderful that everyone should use them in every instance. You'll have to judge on a case by case basis. -- Plutarck Should be working on something... ...but forgot what it was. ""elias"" <[EMAIL PROTECTED]>

Re: [PHP] delete browser-cache

2001-04-24 Thread Plutarck
Can't. PHP can't make the browser do much of anything. To clear the cache the user will have to do it themselves. -- Plutarck Should be working on something... ...but forgot what it was. "mohammed oda" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] PHP and useradd

2001-04-23 Thread Plutarck
One way is to use a cron job to handle the account adding from a text file, which PHP will write the data into. Since the cron job will use only the account name and password the user submitted it's much less of a security risk. -- Plutarck Should be working on something... ...but forgot

Re: [PHP] newbie migration issues

2001-04-23 Thread Plutarck
re just blasted impossible. Preserving complete compatibility would be little more than a big speed-bump in the road of progress, so to speak :) Then again, it's easy for me to not complain because I started learning on PHP4, hehe. -- Plutarck Should be working on something... ...but forgot

Re: [PHP] Printing

2001-04-23 Thread Plutarck
Any data can be sent to the viewer's browser using print or echo in PHP. >From then on you'll need javascript to do any conditional displaying once it hits the user's browser. -- Plutarck Should be working on something... ...but forgot what it was. "Dmitry"

Re: [PHP] preg_replace on array with "E (PCRE_DOLLAR_ENDONLY)" modifier

2001-04-23 Thread Plutarck
Try switing the modifier to "e". "E" is not a supported modifier according to the manual. Only the following are supported: i m s x e A D S U X If you are trying to match a $ in your code, just use a backspace to escape it. But I don't think that was your problem..

Re: [PHP] web page grab

2001-04-23 Thread Plutarck
The eregi_replace syntax would be: $string = eregi_replace(".*Wish(.+)numbers", "\\1", $page); It should be noted that I prefer preg_replace, but that's neither here nor there. That _should_ work. It looks fine to me, but test it out to make sure. -- Plutarck Shoul

Re: [PHP] logging in (online?!)

2001-04-23 Thread Plutarck
> Write to MySQL (last logged in) ? Best, fastest, least error causing way. Yes. -- Plutarck Should be working on something... ...but forgot what it was. ""FredrikAT"" <[EMAIL PROTECTED]> wrote in message 9c19n1$li2$[EMAIL PROTECTED]">news:9c19n1$li2$

Re: [PHP] ereg_replace: Help!

2001-04-23 Thread Plutarck
This works: $str = ''; echo eregi_replace("", "Replaced", $str); -- Plutarck Should be working on something... ...but forgot what it was. "Erica Douglass" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

Re: [PHP] How to turn off warnings ???

2001-04-23 Thread Plutarck
ww.php.net/manual/en/features.error-handling.php -- Plutarck Should be working on something... ...but forgot what it was. "Brandon Orther" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You can put a @ in front of you fu

Re: [PHP] Using

2001-04-23 Thread Plutarck
if for no other reason than it's confusing. It got a weird look from me...not that that makes it very unusual... -- Plutarck Should be working on something... ...but forgot what it was. "Rene Maldonado" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EM

Re: [PHP] PHP 4.0.5

2001-04-23 Thread Plutarck
Or it could be RC8 that will be the last one :) Then again, that's why it's called an RC (Release Candidate...or something similar). Nice to know that when you get a new version it's been hammered to death to squish all the latent bugs. Unlike some people...*cough* -- Plu

Re: [PHP]PHP script and new window.

2001-04-23 Thread Plutarck
astly, view source on your HTML page and ensure all the fields are getting filled out like you expect them to. It happens all the time that by using View Source I find what my problem was. -- Plutarck Should be working on something... ...but forgot what it was. ""An

Re: [PHP] newbie question: duplicate emails

2001-04-23 Thread Plutarck
er later, and it's a weensy bit easier to debug. -- Plutarck Should be working on something... ...but forgot what it was. ""Nikhil Goyal"" <[EMAIL PROTECTED]> wrote in message 9c27h6$ift$[EMAIL PROTECTED]">news:9c27h6$ift$[EMAIL PROTECTED]... > Yes, that is a

Re: [PHP] Calculating the difference between two dates

2001-04-23 Thread Plutarck
Try mkdate. You'll have to make sure it's in a format it knows, but it works. -- Plutarck Should be working on something... ...but forgot what it was. ""Stuart Rees"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] How to find the object name in a class?

2001-04-23 Thread Plutarck
objectname'); Then in your code you just use ${$pge}-> to refer to it. Sucks, doesn't it? -- Plutarck Should be working on something... ...but forgot what it was. ""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] How to find the object...(clarification)

2001-04-23 Thread Plutarck
h an odd class function, of which I know of know other such existing function in any language? :( -- Plutarck Should be working on something... ...but forgot what it was. ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9c21ks$cp$[EMAIL PROTECTED]">news:9c21ks

[PHP] How to find the object name in a class?

2001-04-23 Thread Plutarck
$pge}->front_page I told you it was a hack-around, and it isn't a good one. So is there ANY way to get the name of the object in PHP code without knowing the name of the object ahead of time? I'm really stumped! -- Plutarck Should be working on something... ...but forgot what it wa

Re: [PHP] Why is it dangerous to have register_globals on?

2001-04-23 Thread Plutarck
AYS ALWAYS _ALWAYS_ set a default for every variable you refer to in your script at some point before doing anything with it. So if you use $sql be 100% sure that it has been set $sql explicitly in your code before doing anything with it. -- Plutarck Should be working on something... ...but fo

Re: [PHP] PHP Error

2001-04-23 Thread Plutarck
Goody, a virus. LOL Note: According to the Virus scanner used on php.net (or on the mailing list. whichever) Emanuel.exe is a virus. Here is the URL for information on it: http://vil.mcafee.com/dispVirus.asp?virus_k=98881&; Gotta hate when that happens. -- Plutarck Should be workin

Re: [PHP] Icq Message

2001-04-23 Thread Plutarck
sure about them. -- Plutarck Should be working on something... ...but forgot what it was. ""Christopher Allen"" <[EMAIL PROTECTED]> wrote in message 00c001c0cc24$e90ff540$[EMAIL PROTECTED]">news:00c001c0cc24$e90ff540$[EMAIL PROTECTED]... > Greetings: > >

Re: [PHP] Query Analyzer For MySQL with PHP?

2001-04-23 Thread Plutarck
you get the idea. phpMyAdmin has a more fully featured type deal though, and the above works only for SELECT statements in MySQL. -- Plutarck Should be working on something... ...but forgot what it was. "Brandon Orther" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]&

Re: [PHP] Newbie Question (and an odd bug)

2001-04-23 Thread Plutarck
that's really weird about PHP. Try commenting out the line with define() on it. Isn't that weird? To my knowledge, a string that appears after echo must be quoted, but in practice PHP handles unquoted strings with echo just fine. Could be a bug, but I doubt it. Furthermore, the above loo

Re: [PHP] Encryption (Browser Side)

2001-04-23 Thread Plutarck
27;t ever send their password through the url of a non-SSL page for security, but you shouldn't do that anyway. That's the only "browser side" encryption that all browsers support. -- Plutarck Should be working on something... ...but forgot what it was. ""Jason Mowat

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

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

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

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

  1   2   3   >