[PHP] function question

2003-10-29 Thread Brian V Bonini
function splitPageResults($query, $max_rows, $count_key = '*', $page_holder = 'page') { Am I wrong in assuming that $count_key is being explicitly set to '*' in this instance? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Tristan Pretty is out of the office.

2003-10-29 Thread Tristan . Pretty
I will be out of the office starting 23/10/2003 and will not return until 11/11/2003. I will respond to your message when I return. Please contact Fiona or Alan for any issues. * The information contained in this e-mail me

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Chris Shiflett
--- Kim Kohen <[EMAIL PROTECTED]> wrote: > I'm glad to report this is not a PHP issue. It turns out to be a > Safari problem with Mac OSX (Safari was updated with OSX 10.3). > > All my PHP stuff is working correctly in IE so it looks like > development will proceed there until Apple gets a fix. I

Re: [PHP] function question

2003-10-29 Thread CPT John W. Holmes
From: "Brian V Bonini" <[EMAIL PROTECTED]> > function splitPageResults($query, $max_rows, $count_key = '*', > $page_holder = 'page') { > > Am I wrong in assuming that $count_key is being explicitly set to '*' in > this instance? Only if no value is passed when the function is called. splitPage

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread René Fournier
Thanks John. I've simplified and improved the quote per your suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the code: // MOVE FILE if (move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][ 'name'])) { echo "Success!"; } else {

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread David T-G
Rene -- ...and then René Fournier said... % % Thanks John. I've simplified and improved the quote per your % suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the % code: % % // MOVE FILE % if % (move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][ %

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Kim Kohen
G'day Chris > I would be very interested in learning more about this issue. Would you happen > to be able to provide an example HTTP transaction that Safari mishandles? If you use a 'proper' html file it works OK. If you simply create a text file (with .html extension) with less than 16 char

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Jason Wong
On Thursday 30 October 2003 06:03, Ryan A wrote: > If I have said it once I have said it a thousand times..MAC's are evil. > Step away from it and leave the darkness behind.come towards the light > and thePC > > :-D > > Cheers, > -Ryan > (P.S in case you hav'nt guesseda PC user) De

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread René Fournier
Thanks John. I've simplified and improved the quote per your suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the code: // MOVE FILE if (move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][ 'name'])) { echo "Success!"; } else {

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Luis Zorzoli
El mi? 29-10-2003 a las 16:49, Evan Nemerson escribió: > Don't be insulted he asked. You'd be amazed at the level of idiocy around > here, and you're not known on the list... He meant no disrespect. > > NOOO..i'm sorry if MY answer seemed ugly..i'm impressed by the amount of help i received. By n

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread John Nichel
René Fournier wrote: Thanks John. I've simplified and improved the quote per your suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the code: // MOVE FILE if (move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][ 'name'])) { echo "Success!";

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Luis Zorzoli
El mi? 29-10-2003 a las 17:38, Marek Kilimajer escribió: > Can you connect from your server to the other server? > yes Marek, both files are under the same domain(and server) now. I'm using the remote inclusion, because when it works they'll be on separate domains. Pablo -- PHP General Maili

[PHP] Undefined Index - is this how you "declare" get & post?

2003-10-29 Thread Terence
Hi List, Since I started using error_reporting(E_ALL), I havent found (in my opinion) a good way to declare GET and POST variables when getting them from a form or querystring. I have searched google and the docs for several hours now without much luck. Is there a better way? I have tried var $

[PHP] Re: Undefined Index - is this how you "declare" get & post?

2003-10-29 Thread Jon Kriek
settype(), isset(), and empty() checks will all bypass this, but there is no need to have error reporting set that high ... error_reporting(2047); -- Jon Kriek http://phpfreaks.com "Terence" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi List, > > Since I started using error_r

RE: [PHP] Undefined Index - is this how you "declare" get & post?

2003-10-29 Thread Chris W. Parker
Terence on Wednesday, October 29, 2003 4:40 PM said: > Since I started using error_reporting(E_ALL), I havent found (in my > opinion) a good way to declare GET and POST variables when getting > them from a form or querystring. I have searched google and the docs > fo

[PHP] conditional within SELECT

2003-10-29 Thread Robb Kerr
Here's another newbie question. The SELECT statement below gets its values from the URL of the page. When something is entered for "vKeywords" the SELECT works fine and returns the correct records. However, if nothing is entered for "vKeywords" (which should return all records matching the other cr

RE: [PHP] conditional within SELECT

2003-10-29 Thread Martin Towell
Try something like this: $sql = "SELECT robeson_inv.manufacturer, robeson_inv.model,"; $sql .= " robeson_inv.specs, robeson_inv.qty, robeson_inv.ID"; $sql .= " FROM robeson_inv"; $sql .= " WHERE robeson_inv.manufacturer = 'vManufacturer'"; if ($vKeywords) $sql .= " AND MATCH (robeson_inv.specs)

[PHP] PHP Script Output as HTML Mail

2003-10-29 Thread eBestel
I want to send HTML output from a php script as HTML E-Mail "ONLINE" Like Send this page by email feature. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and java

2003-10-29 Thread David Miller
I have written PHP code to upload and download files to my server through my browser. On the local side I have generated a java applet to do a few things that I just can't do with a browser. There are some things that I need the java on the local machine to have access to on the server. I st

Re: [PHP] PHP Script Output as HTML Mail

2003-10-29 Thread Justin French
On Thursday, October 30, 2003, at 12:05 PM, eBestel wrote: I want to send HTML output from a php script as HTML E-Mail "ONLINE" Like Send this page by email feature. Typically this feature just sends a link in an email, but if you think it's a good idea to send the whole page as HTML, then here

[PHP] multiple entries for a variable passed with GET

2003-10-29 Thread Robb Kerr
I've got a form with a text entry list allowing the visitor to select more than one entry. The multiple entries are passed in the URL properly (see below) but the QUERY is only using the last one listed. What's up? URL being passed... http://www.cancerreallysucks.org/RobesonWeb/robeson1searchB.php

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
On Wed, 29 Oct 2003 03:29:13 -0500 Leif K-Brooks <[EMAIL PROTECTED]> wrote: > - Edwin - wrote: > > >Interesting. Where? > > > > > www.w3.org ? Sorry, *won't* find it there... In fact, a quick Google search gives you this: http://www.w3.org/TR/REC-html32 [quote] Attribute values can be quo

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
On Tue, 28 Oct 2003 22:28:12 -0800 Evan Nemerson <[EMAIL PROTECTED]> wrote: > On Wednesday 29 October 2003 12:30 am, - Edwin - wrote: > > On Tue, 28 Oct 2003 22:05:56 -0800 > > > > Evan Nemerson <[EMAIL PROTECTED]> wrote: > > > On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: > > > > Hi, > >

Re: [PHP] multiple entries for a variable passed with GET

2003-10-29 Thread Larry E . Ullman
I've got a form with a text entry list allowing the visitor to select more than one entry. The multiple entries are passed in the URL properly (see below) but the QUERY is only using the last one listed. What's up? URL being passed... http://www.cancerreallysucks.org/RobesonWeb/robeson1searchB

Re: [PHP] Undefined Index - is this how you "declare" get & post?

2003-10-29 Thread Terence
- Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> > Terence > on Wednesday, October 29, 2003 4:40 PM said: > > > Since I started using error_reporting(E_ALL), I havent found (in my > > opinion) a good way to declare GET and POST variables wh

[PHP] Re: PHP Script Output as HTML Mail

2003-10-29 Thread Manuel Lemos
Hello, On 10/29/2003 11:05 PM, Ebestel wrote: I want to send HTML output from a php script as HTML E-Mail "ONLINE" Like Send this page by email feature. You may just capture the HTML of the pages, maybe with ob_start() and ob_getcontents() functions and then send the HTML in an e-mail messages.

[PHP] php: file upload program limitation..

2003-10-29 Thread Louie Miranda
Hello, Im made a file upload program. I limit my php.ini to accept only 5mb but i told on my website that it is 2mb only. Now here's my problem. I only upload a 1.5mb and a 1.7mb file when ever i submit it the browser displays "the page cannot be displayed" but when ever i upload a file lower th

[PHP] Object Undefinded index

2003-10-29 Thread Steve Turner
I am just learning to use objects. I am messing around with a shopping cart object, but am having confusing problems. I am getting an undefined index error when trying to assign a key value pair to an array variable within an object. I am confused becuase I believe this is how you assign array vari

Re: [PHP] SESSIONMANAGEMENT -- gute php mailing list / gute leute

2003-10-29 Thread Jonathan Villa
Wenn Sie nicht Plätzchen benutzen möchten, können Sie es in die Frage Zeichenkette mit einschließen... Das PHP Handbuch gibt Beispiele von diesem... zum Beispiel, PHPSESSID/SID etwas wie das. Ideal was Sie tun möchten, soll diese alle möglichen Formdaten oder -verbindungen in Ihrer Anwendung vorans

Re: [PHP] php: file upload program limitation..

2003-10-29 Thread Justin French
On Thursday, October 30, 2003, at 01:40 PM, Louie Miranda wrote: Im made a file upload program. I limit my php.ini to accept only 5mb but i told on my website that it is 2mb only. Now here's my problem. I only upload a 1.5mb and a 1.7mb file when ever i submit it the browser displays "the pag

[PHP] Trying to craft a regexp

2003-10-29 Thread Manuel Vázquez Acosta
Hi all: I'm trying to find every simple mail address in an HTML that is not inside an A tag. I have tried this regexp: (?) But its not working as I expect cause the only address in my tested HTML is: mailto:[EMAIL PROTECTED] class="link-home">My address Any tips? Manu. -- PHP General Maili

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread David Otton
On Thu, 30 Oct 2003 10:00:51 +1100, you wrote: >> I would be very interested in learning more about this issue. Would you happen >> to be able to provide an example HTTP transaction that Safari mishandles? > >If you use a 'proper' html file it works OK. If you simply create a text >file (with

[PHP] Tristan Pretty is out of the office.

2003-10-29 Thread Tristan . Pretty
I will be out of the office starting 23/10/2003 and will not return until 11/11/2003. I will respond to your message when I return. Please contact Fiona or Alan for any issues. * The information contained in this e-mail me

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread René Fournier
I've added a path, but still no success On Wednesday, October 29, 2003, at 05:11 PM, John Nichel wrote: René Fournier wrote: Thanks John. I've simplified and improved the quote per your suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the code: // MOVE FILE if (m

Re: [PHP] Undefined Index - is this how you "declare" get & post?

2003-10-29 Thread John W. Holmes
Terence wrote: Since I started using error_reporting(E_ALL), I havent found (in my opinion) a good way to declare GET and POST variables when getting them from a form or querystring. I have searched google and the docs for several hours now without much luck. if ($HTTP_GET_VARS["i"] == "") { inc

[PHP] Re: Object Undefinded index

2003-10-29 Thread Al
> foreach ($cart as $product_id => $quantity) > { > echo $product_id . "" . $quantity; > } The way you are accessing the array is incorrect. The $items array is a property of the Cart object. Since the Cart object may have many different array properties, the foreach statement above has to be

[PHP] Re: Object Undefinded index

2003-10-29 Thread Al
> I am just learning to use objects. I am messing around with a shopping cart > object, but am having confusing problems. I am getting an undefined index > error when trying to assign a key value pair to an array variable within an > object. I am confused becuase I believe this is how you assign ar

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread John Nichel
René Fournier wrote: I've added a path, but still no success Does your webserver (Apache?) have write permission to the directory you're trying to move the file too? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Email Body

2003-10-29 Thread micro brew
Marek, Thanks for the tip. str_pad() worked like a charm. I've never had a text email look so nice. Thanks again. :) Mike --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > I use str_pad() for this, it can handle strings that > vary in length much > better then tabs: > > tab way: > echo "lon

RE: [PHP] $HTTP_SERVER_VARS["HTTP_PC_REMOTE_ADDR"] returns no value

2003-10-29 Thread Wouter van Vliet
$_SERVER['REMOTE_ADDR'] $HTTP_SERVER_VARS['REMOTE_ADDR'] = what you want :P -Original Message- From: Randall Perry [mailto:[EMAIL PROTECTED] Sent: Wednesday 29 October 2003 15:54 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] $HTTP_SERVER_VARS["HTTP_PC_REMOTE_ADDR"] returns no

<    1   2