Re: [PHP] Extending classes multiple times

2001-12-06 Thread Harshdeep S Jawanda
S Jawanda [[EMAIL PROTECTED]] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Problems producing an image

2001-12-06 Thread Harshdeep S Jawanda
an image, the first two characters in the file should be the php start tag. = Please send all emails to my automatically redirecting address: [EMAIL PROTECTED] Regards, Harshdeep S Jawanda [[EMAIL PROTECTED]] __ Do You Yahoo!? Send your FREE

[PHP] Problems producing an image

2001-12-05 Thread Harshdeep S Jawanda
? = Please send all emails to my automatically redirecting address: [EMAIL PROTECTED] Regards, Harshdeep S Jawanda [[EMAIL PROTECTED]] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- PHP General Mailing List (http

Re: [PHP] assignment operator works for comparison??

2001-04-11 Thread Harshdeep S Jawanda
Hi, Dan wrote: if($shiny = 0){ This does not compare anyting, it assigns 0 to $shiny yes i know, but shouldnt this operation return true? No, it doesn't return true. The "=" operator returns the value of the expression on its right hand side. Therefore, the statement given above is

Re: [PHP] Row colors

2001-04-08 Thread Harshdeep S Jawanda
Hi, Just make the modification listed below: while ($row = mysql_fetch_row($result)) { $cell_color = ++$i % 2 ? "#C0C0C0" : "#CC"; echo "TR bgcolor=\"$cell_color\"\n"; for ($i =1;$imysql_num_fields($result);$i++) { echo "td$row[$i]/td"; } } Mike P wrote: I can change the

Re: [PHP] TheCasino.com: You have been removed!

2001-04-05 Thread Harshdeep S Jawanda
_If_ only subscribers are allowed to post to this list (which it should be) and _if_ [EMAIL PROTECTED] is a subscriber and _if_ this address is setup to re-send this email to any address that replies things might be getting a little circular! Sweet dreams! Can't somebody unsubscribe [EMAIL

Re: [PHP] help with parse

2001-04-04 Thread Harshdeep S Jawanda
Hi, Renze Munnik wrote: Have you ever checked the $HTTP_USER_AGENT value from IE? IE says: "Mozilla/4.0 (compatible; MSIE 5.01; Windows 95)" (for example) So, you shouldn't be checking for Mozilla. IE says that to. You should first check for the existence of "IE" in $HTTP_USER_AGENT.

[PHP] A ToDo/ task list

2001-03-27 Thread Harshdeep S Jawanda
Hi ppl, I have been thinking of using PHP to make a ToDo/task list type of application. I am looking for something different from the usual Personal Information Managers (PIMs) - they are oriented more towards appointments than tasks. Does anybody know of any ongoing (preferably open source)

Re: [PHP] files with html extension

2001-03-22 Thread Harshdeep S Jawanda
Jeff Armstrong wrote: This is exactly why http://www.w3.org recommend that you DONT SPECIFY A FILE TYPE TYPE in your HREFs. But doth that actually work - how many web servers are able to handle this type of link correctly? Ummm... and what happens (or is supposed to happen) to resolve

Re: [PHP] Seek for the Web Site Info.

2001-03-22 Thread Harshdeep S Jawanda
Go to http://uptime.netcraft.com/ . That should give you part of the information you want. Ian wrote: Does anybody know that any web site allow me to enter web address example, www.yahoo.com, and enter go. The result will shown me that yahoo server, 1. Operating System? 2. Programming?

Re: [PHP] Automatic documentation: call for help with C++

2001-03-19 Thread Harshdeep S Jawanda
Hi, To quickly get to the gist of it... Geoff Caplan wrote: Any takers? I am definitely interested. The problem is: I am unlikely to be able to find sufficient time. Therefore, (unfortunately,) I can only be counted upon as a second or third rung helper, if at all :-(. I'll try and have a

Re: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Harshdeep S Jawanda
Hi, Matt Williams wrote: you could make your links absolute ie.. /cat.html Properly speaking, even this link is relative :-) (it is relative to the document root of the web server). I like to call such links "impure relative" links :-). I call links of the type "../cat.html" "pure

Re: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Harshdeep S Jawanda
Hi, [EMAIL PROTECTED] wrote: What seems crazy to me is that you cant just set a varable (i.e. siteroot) in common.inc and refer to URLs at $siteroot."/page.html". Are you sure that $siteroot = "$HTTP_HOST:$SERVER_PORT" doesn't work for you (as an absolute link seems ok to you)? Have a

Re: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Harshdeep S Jawanda
Errata... Harshdeep S Jawanda wrote: $siteroot = "$HTTP_HOST:$SERVER_PORT" Sorry, this should be $siteroot = "http://$HTTP_HOST:$SERVER_PORT" -- Regards, Harshdeep Singh Jawanda. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] unable to fine /htdocs on my linux machine :(

2001-03-18 Thread Harshdeep S Jawanda
Hi, Nilesh Parmar wrote: i am unable to locate the directory /htdocs in my machine The default location for the htdocs directory is: apache-install-directory/htdocs. -- Regards, Harshdeep Singh Jawanda. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Website, Design, hosting and maintenance for only $999.00 per year

2001-03-16 Thread Harshdeep S Jawanda
Hey! What the hell is happening? That's my company's domain name!! Please don't anybody bother to reply to this posting by "Netmark.Desing" - its an obvious fake. A visit to www.pspl.co.in will prove to you that we're not into anything even remotely connected with this posting. [EMAIL

[PHP] Finding the depth

2001-03-15 Thread Harshdeep S Jawanda
Hi all, To explain my problem, I'll have to draw a directory structure (please bear with me :-): web-server-document-root | +--dir:common-pics | +--dir:sub-dir1 || |+--dir:sub-sub-dir1 | +--dir:sub-dir2 | +--dir:sub-sub-dir2

Re: [PHP] Finding the depth

2001-03-15 Thread Harshdeep S Jawanda
Hi, Chris Lee wrote: ok, this is what you asked for snip/ Thanks! I haven't tried it, but I am sure it will work. but why cant you just do this. echo " img src='/image/back.gif' "; I don't want to do that because that sort of link will work only when this page is served up

Re: [PHP] Mailing List

2001-03-12 Thread Harshdeep S Jawanda
On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote: On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote: Ok, I've tried time and time again to unsubscribe from php.net's mailing list unisubscribe instructions but it doesn't work. So how do I get off the list? I suppose you

Re: [PHP] Mailing List

2001-03-12 Thread Harshdeep S Jawanda
Hi, Harshdeep S Jawanda wrote: I suppose you must already have tried sending mail to [EMAIL PROTECTED] by now. I tried this address and it worked for me. -- Regards, Harshdeep Singh Jawanda. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] IE 5.5,authentication,PHP sessions: IE never stops running?

2001-03-04 Thread Harshdeep S Jawanda
Hi, Ken wrote: I'm experiencing strange behavior with my user authentication scheme in my PHP app, with users using IE 5.5 (PC and Mac). I am using browser authentication (WWW-Authenticate and 401 headers), "no cache" headers, and PHP 4 sessions. I am finding that even when the user

Re: [PHP] Munging hidden/form variables

2001-03-02 Thread Harshdeep S Jawanda
Hi, How about the following: 1. Assign a session id to the form every time you generate it. 2. Maintain that session id on the server side in a sort of cache for a specific amount of time (say, T) only. Time-out and delete session id entries that haven't been used within time

Re: [PHP] including html

2001-03-01 Thread Harshdeep S Jawanda
Marcos wrote: index.php include ('info.html) I think readfile($inputFileName); would be a better option. -- Regards, Harshdeep Singh Jawanda. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Bitwise solution?

2001-03-01 Thread Harshdeep S Jawanda
Hi, "Boget, Chris" wrote: I have 2 values. The first is a constant while the second is not. Is the first value a numerical value (real/integer?) or a string value? If it is numerical, then one of the things you could do for using a numerical value of (say) less than 100 could be: $finalVar

[PHP] A small Q

2001-02-28 Thread Harshdeep S Jawanda
Hi, Does the extension of files that are require()-d or include()-d in PHP have to be ".inc"? Can it be ".php"? All examples seem to show this extension as ".inc". Could there be any problems if the extension is kept ".php"? -- Regards, Harshdeep Singh Jawanda. -- PHP General Mailing List

[PHP] Newbie: why do I get this error?

2001-02-26 Thread Harshdeep S Jawanda
Hello everybody, I am a newbie, so please help me out with my rather basic question. Please take a look at the following code snippet: class HTMLTable extends HTMLElement { var $attributes; function HTMLTable() { $attributes[] = array("border", "0"); $attributes[] =

Re: [PHP] Newbie: why do I get this error?

2001-02-26 Thread Harshdeep S Jawanda
Hi all, I changed function HTMLTable() { $attributes[] = array("border", "0"); $attributes[] = array("cellpadding", "0"); // and some other things } to $attributes = array(array("border", "0"), array("cellpadding", "0")); but am