Re: [PHP] Constantly running?

2001-05-24 Thread Plutarck
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 [EMAIL PROTECTED] wrote in message 009e01c0e2cf$1bf62e00

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

2001-05-24 Thread Plutarck
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]... Hi I have a question . At some website which have webmail serivce , they won't

Re: [PHP] VariableName

2001-05-24 Thread Plutarck
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]">news:[EMAIL PROTECTED]... Hello ! I want to make a

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 Christian Reiniger [EMAIL PROTECTED

Re: [PHP] best way to flush stdout?

2001-05-22 Thread Plutarck
. ;) 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 display the first text while the query is run

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 defining the tab order on a input box?

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 aware of any way to make it otherwise... Plutarck Tarrant C

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

2001-05-22 Thread Plutarck
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 before? I would like to embedded some kind of scripting in app

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

2001-05-21 Thread Plutarck
. 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, May 21, 2001 at 01:55:10PM +1000, Greg Wright wrote: [ . . . ] IIRC Rasmus

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

2001-05-21 Thread Plutarck
know why something isn't working, it's probably your fault. (words to live by :) Plutarck Steven Haryanto [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... yes, i have discovered recently that php is not as fast as it is hyped to be. don't get me wrong. php

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: ?php define(CON1, Hi there!); echo CON1; print_r($GLOBALS); ? ...the constant exists, but is not present in $GLOBALS. Weird...anyone know why this happens? (I'm using 4.0.5) Plutarck Alex Black

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Plutarck
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 quotes, how should they appear in my script? Eg: ---

[PHP] What's wrong with this code?

2001-05-21 Thread Plutarck
they be 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

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Plutarck
. 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 [EMAIL PROTECTED] wrote in message 9eb0sl$vvr$[EMAIL PROTECTED]">news:9eb0sl$vvr$[EMAIL P

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

2001-05-21 Thread Plutarck
it misses the first use of SCRIPT that I posted above, but it catches the second one! And I don't know why! ;( Plutarck Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... But I use PCRE functions, so I don't want to use ereg in one place

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 Tarrant

Re: [PHP] Check multiple cookies

2001-05-21 Thread Plutarck
= '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 PROTECTED]... Is it possible to check multiple cookie values and then redirect to

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Plutarck
on as an extra bit of security. You can never be too safe. Plutarck Boget, Chris [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Anyway, it's not a big thing if you're _really_ stringent about how you check every single variable which is used in a databa

Re: [PHP] if $submit

2001-05-21 Thread Plutarck
: 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:[EMAIL PROTECTED]... Whenever I use the ? if

Re: [PHP] Multiple emails

2001-05-21 Thread Plutarck
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] wrote in message 000f01c0e120$0616e260$0a00a8c0@bjorn">news:000f

Re: [PHP] Intranet links

2001-05-21 Thread Plutarck
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 _ Get Your Private, Free E-mail

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

2001-05-21 Thread Plutarck
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] wrote in message 01052120275102.00644@chrisbig">news:01052120275102.00644@chrisbig... On Monday 21 May 2001 16:23, Plutar

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]">news:[EMAIL PROTECTED]...

[PHP] How to test content encoding?

2001-05-20 Thread Plutarck
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] Mailserver?!

2001-05-19 Thread Plutarck
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 PROTECTED]">news:9e6gud$eie$[EMAIL PROTECTED]... Hi!

[PHP] An excellant example of what PHP can do

2001-05-19 Thread Plutarck
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, Plutarck -- PHP

[PHP] Accessing data from a localhost proxy

2001-05-19 Thread Plutarck
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]

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 [EMAIL PROTECTED] wrote

Re: [PHP] STRINGS

2001-05-17 Thread Plutarck
not, but it's all I can see at the moment. Plutarck Manuel Román [EMAIL PROTECTED] 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.

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 Costelloe [EMAIL

Re: [PHP] function login

2001-05-17 Thread Plutarck
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]">news:9e0bfs$fld$[EMAIL PROTECTED]... I am creating a functio

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

2001-05-17 Thread Plutarck
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 PROTECTED]">news:9e0bga$g7t$[EMAIL PROTECTED]... When

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]">news:[EMAIL PROTECTED]... hi

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

2001-04-24 Thread Plutarck
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] wrote in message 9c3fi6$edm$[EMAIL PROTECTED]">new

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Plutarck
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 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL P

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]">news:008701c0cd05$a0e274a0$[EMAIL P

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

2001-04-24 Thread Plutarck
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 is: verify, verify, verify. -- Plutarck Should

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 PROTECTED] wrote in message [EMAIL

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! I'm writing a g

Re: [PHP] Encryption (Browser Side)

2001-04-23 Thread Plutarck
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 [EMAIL PROTECTED] wrote in message 9c1rja$5kp$[EMAIL

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

2001-04-23 Thread Plutarck
, but in practice PHP handles unquoted strings with echo just fine. Could be a bug, but I doubt it. Furthermore, the above loop is always true, even if MY_TYPE has not been set to a value. Now that should be (and probably is) a bug. But what do I know :) -- Plutarck Should be working on something

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

2001-04-23 Thread Plutarck
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]">news:[EMAIL PROTECTED]... Hello, I recently took an

Re: [PHP] Icq Message

2001-04-23 Thread Plutarck
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: Anyone have a clue as how to send an icq

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 working

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

2001-04-23 Thread Plutarck
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 forgot what it was. Greig, Euan [EMAIL PROTECTED] wrote in message [EMAIL

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

2001-04-23 Thread Plutarck
-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 was. -- PHP General Mailing List (http://www.php.net

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

2001-04-23 Thread Plutarck
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$cp$[EMAIL PROTECTED]... I've been using a function to output HTML to the user's

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

2001-04-23 Thread Plutarck
'); 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 PROTECTED]... So is there ANY way to get

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]... Please can someone tell me there i

Re: [PHP] newbie question: duplicate emails

2001-04-23 Thread Plutarck
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 sound approach. However I've checked it again, and again, an

Re: [PHP]PHP script and new window.

2001-04-23 Thread Plutarck
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. Angerer, Chad [EMAIL PROTECTED] wrote in message

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* -- Plutarck Should

Re: [PHP] Using input type = 'button rather than input type = 'submit'

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:[EMAIL PROTECTED]... Hi I think

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

2001-04-23 Thread Plutarck
/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 function. Example ? @function(Test); ? -

Re: [PHP] ereg_replace: Help!

2001-04-23 Thread Plutarck
This works: $str = 'IMG ALT=Tools BORDER=0 HEIGHT=55 SRC=images/headers/tools.gif WIDTH=455'; echo eregi_replace(IMG.+SRC=\images/headers.*, Replaced, $str); -- Plutarck Should be working on something... ...but forgot what it was. Erica Douglass [EMAIL PROTECTED] wrote in message [EMAIL

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$[EMAIL PROTECTED]... Hi! I have users

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 Should be working on something

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... -- Plutarck Should be working

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 [EMAIL PROTECTED] wrote in message

Re: [PHP] newbie migration issues

2001-04-23 Thread Plutarck
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 what it was. S.J

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 what

Re: [PHP] Buttons and such...

2001-04-22 Thread Plutarck
ey'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.05150@maria">new

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] I don't get it ... suddenly my script doesn't work ...

2001-04-21 Thread Plutarck
. -- 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 a user to enter information int

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(). -- Pluta

Re: [PHP] connection problème!

2001-04-21 Thread Plutarck
Not enough "}". Change it to: ?php echo "starting..."; if ( mysql_connect("localhost","php","php") ) { echo "ok"; } else { echo "error!"; } ? -- Plutarck Should be working on

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

2001-04-21 Thread Plutarck
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 what

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

2001-04-21 Thread Plutarck
r 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 to start. -- Pluta

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 working

Re: [PHP] PERL vs. PHP

2001-04-20 Thread Plutarck
rogrammer ;) 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]... If I know PHP will I *

Re: [PHP] Sessions and header-redirect

2001-04-20 Thread Plutarck
tempted 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 PROTECTED]">news:[EMAIL PROTECTED]... Doe

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. I probably should

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

2001-04-20 Thread Plutarck
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 PROTECTED]... Greetings. (

Re: [PHP] PHPSESSID in session

2001-04-20 Thread Plutarck
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 Shopping cart program. start with

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

2001-04-19 Thread Plutarck
, as 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:DC017B079D81D411998C009027B7112A0

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 in mess

Re: [PHP] best way to include html?

2001-04-19 Thread Plutarck
scripts use to keep things simple. I haven't used a tag other than p, /p, and br in weeks. -- Plutarck Should be working on something... ...but forgot what it was. ""Duke"" [EMAIL PROTECTED] wrote in message 002301c0c87d$9f1e3c80$[EMAIL PROTECTED]">news:002301c0c8

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

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" [EMAIL

Re: [PHP] php equivalent for `command`

2001-04-19 Thread Plutarck
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 message [EMAIL PRO

Re: [PHP] Newbie Technical Question

2001-04-19 Thread Plutarck
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 defined funtions and

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

2001-04-19 Thread Plutarck
that 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 PROTECTED] wro

Re: [PHP] PHP and Ranges

2001-04-19 Thread Plutarck
ied 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$flm$[EMAIL PROTECTED]... is there a wa

Re: [PHP] Variable variable

2001-04-18 Thread Plutarck
; 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 the name "id" has the value "on"'; }

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&qu

Re: [PHP] sessions

2001-04-18 Thread Plutarck
. 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 message 9bjn4n$41c$[EM

Re: [PHP] Importing Data from Text File

2001-04-18 Thread Plutarck
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, Ive been asked to do a task h

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"" [EMA

Re: [PHP] global sessions

2001-04-18 Thread Plutarck
s $GLOBALS, 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

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

2001-04-18 Thread Plutarck
time the page is visited. -- Plutarck Should be working on something... ...but forgot what it was. ""Picard, Cyril"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... include will help me to organize my scripts, but it will effectively e

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 PROTECTED]&qu

Re: [PHP] php equivalent for `command`

2001-04-18 Thread Plutarck
;; To get that to work like you want it to, you need only do: echo 'Value of test: ' . $test++ . ' BR'; 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 . ' BR'; -- Plutarck Should be working on

Re: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Plutarck
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 : ?php $conn = pg_pConnect("d

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 forgot what

Re: [PHP] Password Generator?

2001-04-18 Thread Plutarck
TP 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 PROTECTED]... Is

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

2001-04-18 Thread Plutarck
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. "Larry Hotchkiss" [EMAIL PROTECTED] wrote in m

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" [EMAIL PROTECTED]

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
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. -- Plutarck Should be working

  1   2   3   >