Re: [PHP] Am I right or wrong?

2001-09-03 Thread Dave Freeman
On 4 Sep 01, at 1:14, Seb Frost wrote: > My ISP has a limit on my site of 10,000MB of data transfer per month. > > 4 days into september and I'm already at 2,500MB. It would seem they're > including requests by their own PHP server. > > I have a folder of ~80kb images that are dynamically resi

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Dave Freeman
On 30 Aug 01, at 13:40, Mike Gifford wrote: > I'd like to find a good web calendar which will allow the general public to > enter suggested events into a web calendar. I would want these suggested > events to be moderated so that they can be verified. I've got one that I downloaded from freshme

Re: [PHP] \n

2001-08-24 Thread Dave Freeman
On 24 Aug 01, at 11:18, Jeremy Morano wrote: > echo " $team \n "; echo "$team\n"; -- 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] always last

2001-08-23 Thread Dave Freeman
On 23 Aug 01, at 11:10, Jeremy Morano wrote: > $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); > > > while ($row = mysql_fetch_array($result)) { > $uid = $row['uid'] > $team = $row['team']; if ($uid == $row['uid']) { $option_block .= "$team"; } else { >

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread Dave Freeman
On 23 Aug 01, at 14:30, John Bass wrote: > > $query = "SELECT image_link, web_url FROM testdata"; > $result = mysql_query ($query) or die ("Query Failed"); > while ($row = mysql_fetch_object ($result)) > { > printf ("%s%s %s%s\n", $row->image_link, > $row->web_url,$row->image_link, $row->web_u

RE: [PHP] hacks we should know about

2001-08-17 Thread Dave Freeman
On 17 Aug 01, at 0:08, [EMAIL PROTECTED] wrote: Not that I particularly want to turn this thread into a debate about unix security, but... > Anyone with a clue doesn't use /etc/passwd anymore *shadow password file*, > so thats kind of depreciated... While this is true a great deal of damage ca

Re: [PHP] Put value directly into form?

2001-08-13 Thread Dave Freeman
On 14 Aug 01, at 5:14, Phil Latio wrote: > How can I directly put values into a form instead having to create hidden > fields and drag the data from them? > > You can see what I mean at: > > http://www.yorkshire-search.co.uk/links/add.php3 Looks to me like they're still using the form to proce

Re: [Re: [PHP] user's ip]

2001-08-10 Thread Dave Freeman
On 7 Aug 01, at 14:02, René Moonen wrote: > The problem is that REMOTE_ADDR returns the IP address of the proxy (if > if(getenv(HTTP_X_FORWARDED_FOR)) > { > $ip=getenv(HTTP_X_FORWARDED_FOR); > } > else > { > $ip=getenv(REMOTE_ADDR); > } > $host = gethostbyaddr($ip); except, perhaps, when th

[PHP] Revision Tracking - program concept

2001-07-30 Thread Dave Freeman
G'day All I'm writing an application for an intranet environment. At the moment I'm writing a document control system. The intention is that people will be able to check in documents (generally created in MS Word from templates) and the app will upload them to the server. The process relate

Re: [PHP] HTML table problem (solvable with PHP?)

2001-07-26 Thread Dave Freeman
On 26 Jul 01, at 11:41, Seb Frost wrote: > Now my problem is this. Depending on the amount of content in the main > cell, the "fixed" size cells on the left expand. This is SO annoying! I > managed to fix it by setting the height of the bottom left hand "filler" > cell to be like 10,000 pixels

Re: [PHP] testing if var is empty

2001-07-21 Thread Dave Freeman
On 21 Jul 01, at 14:50, Saquib Farooq wrote: > > if ($var) > > { > > // $var has been set > > } else { > > // $var has not been set > > } > what if the var is set to zero i.e. false. the control will go in > the else part if it is not zero ( not false) it will go in the if control.

Re: [PHP] testing if var is empty

2001-07-21 Thread Dave Freeman
On 21 Jul 01, at 12:07, Justin French wrote: > I'm a semi-newbie, and if I want to check if a variable is set, or > contains something, i've been doing it like this: > > if($var != "") { ... } if ($var) { // $var has been set } else { // $var has not been set } will do what yo

Re: [PHP] redirect to another page in PHP???

2001-07-19 Thread Dave Freeman
On 20 Jul 01, at 0:03, Doug wrote: > Ok maybe I'm just retarded and can't find it but I'm looking for a way to > do a redirect in a php page to another page, similar to asp's > "response.redirect" function. Is there one in php??? No doubt there's plenty of options... here's what I'm using: I h

Re: [PHP] sql query successful

2001-07-18 Thread Dave Freeman
On 18 Jul 01, at 13:24, Tyler Longren wrote: From: "Tyler Longren" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Date sent: Wed, 18 Jul 2001 13:24:32 -0500 Subject:[PHP] sql query successful > if ($sql = mysql_query("

Re: [PHP] displaying icons

2001-07-17 Thread Dave Freeman
On 17 Jul 01, at 16:30, Yassel Omar Izquierdo Souchay wrote: > Put the same text inside php example > echo "" the next code and if you want it to work reliable do is this way: echo ""; and away you go... CYA, Dave ---

Re: [PHP] passing variables from forms to the same page repetatively

2001-07-17 Thread Dave Freeman
On 17 Jul 01, at 0:11, Tim Olsen wrote: > So far, I can only use variables on the next page (form) that is written > out. After that those variables have no value. Is there some way to submit Investigate using form tages - very useful for passing around additional args between pages/forms.

Re: [PHP] return

2001-07-17 Thread Dave Freeman
On 16 Jul 01, at 15:25, Tyler Longren wrote: > function expDate($date) { > $month = substr("$date", 0, 2); > $len = strlen($date); > $year = substr("$date", $len-2, $len); > return $month; > return $year; > } > expDate("11/2002"); > print "$month $year"; >

Re: [PHP] Re: Confirmation Requester

2001-07-13 Thread Dave Freeman
On 13 Jul 01, at 21:47, Inércia Sensorial wrote: > Maybe a pop-up or a CSS/javascript box with a 'true delete' link (That > would be elegant :-)). Yep, that's what I'm planning on - got any references on actually doing it? I'm still learning about this sort of stuff and it really helps to see

[PHP] Confirmation Requester

2001-07-13 Thread Dave Freeman
Hi All I'm really not sure if this is php or, perhaps, javascript. I have a php application in development. On one page I have a list of information extracted from a mysql database. I have links beside each line to edit or delete that informaiton (which calls a php function to carry out the