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

[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

[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

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

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

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

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

[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

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

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

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

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

[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

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

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

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

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

[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

[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

Re: [PHP] include problem

2003-10-29 Thread Allex
Few days ago I asked the same question and got several excellent answers that helped me to solve the same problem - check the mailing list for 'including files from different sub directories' on 24-10-2003. Nevertheless all those suggestions helped me to solve the problem from a normal browser

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Ryan A
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) G'day Adam, David, John etc >> I have spent about an hour lookin

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Kim Kohen
G'day Adam, David, John etc >> I have spent about an hour looking at this and have found I can't echo >> anything with 16 characters or less! 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 w

Re: [PHP] Favorite Online Language Guide

2003-10-29 Thread Evan Nemerson
The php.net site is great. It has a manual in tons of languages which is very easy to get at. For instance, to look up the file function, you can just go to php.net/file. Your language should be automagically detected. The user comments fill in any blanks in the documentation. php.net/language.

Re: [PHP] Favorite Online Language Guide

2003-10-29 Thread Chris Shiflett
--- Robb Kerr <[EMAIL PROTECTED]> wrote: > What's your favorite online Php language guide? http://www.php.net/manual/ Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailin

Re: [PHP] Parsing a tab delimited log file

2003-10-29 Thread Evan Nemerson
You're using a lot of memory here... Try using fgets for each line instead of one big file(). That way, you're only working with one line at a time and can forget it when you're done. On Wednesday 29 October 2003 01:12 pm, John wrote: > (I'm reposting this as it didn't seem to take the first ti

Re: [PHP] Problems with remote include

2003-10-29 Thread Marek Kilimajer
Can you connect from your server to the other server? Pablo Zorzoli wrote: On Wed, 2003-10-29 at 17:17, Chris Shiflett wrote: That seems right, unless I'm missing something obvious. I think you already mentioned that you have configured to allow URL opens. yes that parameter is 'On' So, can y

[PHP] Favorite Online Language Guide

2003-10-29 Thread Robb Kerr
What's your favorite online Php language guide? I'm a newbie and most interested in a syntax guide. Thanx, -- Robb Kerr Digital IGUANA Helping Digital Artists Achieve their Dreams http://www.digitaliguana.com http://www.cancerreallysucks.org -- PHP General Mailing List (http://www.php.net/) To

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

[PHP] Parsing a tab delimited log file

2003-10-29 Thread John
(I'm reposting this as it didn't seem to take the first time. If it's a dupe, I apologize.) Hey all. I'm attempting to count the number of unique message IDs from a Microsoft Exchange 2000 tracking log. While the code below works, it takes forever to run. Running through a 16mb log file takes like

[PHP] Re: Web Service in PHP/XML

2003-10-29 Thread Alexandru COSTIN
Hello, everything was finished. I have done very little with CURL, I'm not sure if there are any tutorials or anything else that I could see to get some good examples of both ends of the process anyone know of any? Anyone know of a better way? I'm also looking into XML or Java on the authorizati

[PHP] Re: How to deal with XML?

2003-10-29 Thread Alexandru COSTIN
Hello Simon, I think I've missed something somewhere, but how do I use XML? Everywhere, there are big hypes about XML. I could proably google quite a bit on this, but could someone give me a hint on how to use it in, say datahandling? Or to parse a website (like the php docs). XML has its role

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Marek Kilimajer
I think the default is 6, but you will need a very long string to get any benefit from higher numbers. Gerard Samuel wrote: The docs do not state what the defaults are, and from tests, it seems the values 4 - 9 return the same output as with no value, on the string I tested with. Does anyone kn

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Evan Nemerson
On Wednesday 29 October 2003 11:29 am, Gerard Samuel wrote: > The docs do not state what the defaults are, and from tests, > it seems the values 4 - 9 return the same output as with no value, > on the string I tested with. > Does anyone know what the default compression levels are? IIRC the defaul

Re: [PHP] Problems with remote include

2003-10-29 Thread Chris Shiflett
--- Pablo Zorzoli <[EMAIL PROTECTED]> wrote: > > > include('http://www.google.com/'); > > ?> > > > > That should basically take Google's HTML and make it your own. > > The image will obviously not work, but it should otherwise look > > like Google's home page. > > yes i get Google's HTML. OK, s

RE: [PHP] PDFlib not working with explorer based on PHP created file in memory

2003-10-29 Thread Larry Brown
My apologies for waisting anyone's time. I found the posting in the archives that had the correct code to use. -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 3:39 PM To: PHP List Subject: [PHP] PDFlib not working with explorer based on PHP

[PHP] PDFlib not working with explorer based on PHP created file in memory

2003-10-29 Thread Larry Brown
If anyone can help, please... I have a page that points to a PHP page that dynamically creates a pdf file using PDFlib. The page uses a link such as site.com/page.php?variable=value. That in turn executes the script that uses the variable/value to pull info from the db and generate the page. Th

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread David T-G
Gerard, et al -- ...and then Gerard Samuel said... % % On Wednesday 29 October 2003 03:27 pm, David T-G wrote: % > % > ...and then Gerard Samuel said... % > % % > % on the string I tested with. % > % > With what sort of data are you working? How are you gzipping (PEAR % > module, class, system c

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Gerard Samuel
On Wednesday 29 October 2003 03:27 pm, David T-G wrote: > Gerard -- > > ...and then Gerard Samuel said... > % > % The docs do not state what the defaults are, and from tests, > % it seems the values 4 - 9 return the same output as with no value, > % on the string I tested with. > > With what sort o

Re: [PHP] ORDER BY RAND()....

2003-10-29 Thread Payne
Ok, this gives me an error. I guess what I was asking early is there away to print an echo without doing myrow? Why can I do echo $result without getting Resource id # My thinking is if you look at my first e-mail, my code is trying to fetch multi-rows from the database, I don't need multi row,

Re: [PHP] redirect

2003-10-29 Thread Marek Kilimajer
alain dhaene wrote: But I get the following warning: Warning: Cannot modify header information - headers already sent by (output started at /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: 1) The warning states it clearly, output started on line 1 in registratieFuncti

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread David T-G
Gerard -- ...and then Gerard Samuel said... % % The docs do not state what the defaults are, and from tests, % it seems the values 4 - 9 return the same output as with no value, % on the string I tested with. With what sort of data are you working? How are you gzipping (PEAR module, class, sy

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 17:17, Chris Shiflett wrote: > That seems right, unless I'm missing something obvious. I think you already > mentioned that you have configured to allow URL opens. yes that parameter is 'On' > So, can you tell us what something like this produces? > > include('http://www.

Re: [PHP] Problems with remote include

2003-10-29 Thread Chris Shiflett
--- Pablo Zorzoli <[EMAIL PROTECTED]> wrote: > i see one line containing the expected html code.The scrip is a > counter that outputs the img tags to fecth the images: > > > > that's all i get, and all i would like to get with the remote > include. That seems right, unless I'm missing something

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 16:36, Chris Shiflett wrote: > The results you expect might not be right. This doesn't help me help you. > > Is it valid PHP? Can you show us *exactly* what you see when you view source in > your browser? i see one line containing the expected html code.The scrip is a counte

RE: [PHP] ORDER BY RAND()....

2003-10-29 Thread Chris W. Parker
Payne on Wednesday, October 29, 2003 11:54 AM said: >> Try -> >> SELECT url FROM sponsors ORDER BY RAND() LIMIT 1; >> >> >> > I did that same thing. SELECT url FROM sponsors ORDER BY column RAND() LIMIT 1; How about that one? Chris. -- Don't like reformatting

Re: [PHP] ORDER BY RAND()....

2003-10-29 Thread Payne
Gerard Samuel wrote: On Wednesday 29 October 2003 02:24 pm, Payne wrote: Hi, I have been working on a simple PHP script that called to a mysql database, where I do the following SELECT url FROM sponsors ORDER BY RAND(); Try -> SELECT url FROM sponsors ORDER BY RAND() LIMIT 1; I di

RE: [PHP] redirect

2003-10-29 Thread Chris W. Parker
alain dhaene on Wednesday, October 29, 2003 11:29 AM said: > I have check my code. > I haven't use a echo in my code. > It's very strange. I will search more on the manule. PHP has so far been very good to me with reporting this error. I would trust the error messag

Re: [PHP] redirect

2003-10-29 Thread Chris Shiflett
--- alain dhaene <[EMAIL PROTECTED]> wrote: > I have check my code. > I haven't use a echo in my code. > It's very strange. I will search more on the manule. I don't think the manual will help you here. You *do* have output in your script prior to the call to header(). Trust me. :-) One way to fi

Re: [PHP] redirect

2003-10-29 Thread Chris Shiflett
--- alain dhaene <[EMAIL PROTECTED]> wrote: > Is there in php something as a redirect to another page like in asp? Yes, and as with ASP, there are several methods. Make an example script that has only this: http://www.google.com/'); ?> As for your error about headers already being sent, this is

Re: [PHP] ORDER BY RAND()....

2003-10-29 Thread Gerard Samuel
On Wednesday 29 October 2003 02:24 pm, Payne wrote: > Hi, > > I have been working on a simple PHP script that called to a mysql > database, where I do the following > > SELECT url FROM sponsors ORDER BY RAND(); Try -> SELECT url FROM sponsors ORDER BY RAND() LIMIT 1; -- PHP General Mailing

[PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Gerard Samuel
The docs do not state what the defaults are, and from tests, it seems the values 4 - 9 return the same output as with no value, on the string I tested with. Does anyone know what the default compression levels are? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] redirect

2003-10-29 Thread alain dhaene
I have check my code. I haven't use a echo in my code. It's very strange. I will search more on the manule. thx "Pablo Zorzoli" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On Wed, 2003-10-29 at 16:17, alain dhaene wrote: > > But I get the following warning: > > > > Warning: Ca

[PHP] ORDER BY RAND()....

2003-10-29 Thread Payne
Hi, I have been working on a simple PHP script that called to a mysql database, where I do the following SELECT url FROM sponsors ORDER BY RAND(); When I do a refresh I keep getting the same url, I have test this sql statement in mysql and it works great. I think my problem is this... He

RE: [PHP] redirect

2003-10-29 Thread Chris W. Parker
Pablo Zorzoli on Wednesday, October 29, 2003 11:20 AM said: > You cannot do any echo ""; before header("location:.."); maybe that's > the problem. The solution would be to turn on output buffering. http://www.fullurl.com/notjust/a/page.html";); exit; ?> hth, C

Re: [PHP] redirect

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 16:17, alain dhaene wrote: > But I get the following warning: > > Warning: Cannot modify header information - headers already sent by (output > started at > /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: > 1) in > /home/schoolre/public_html/Hitek

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 16:18, CPT John W. Holmes wrote: > > You know you're going to get the OUTPUT of script.php, right? You'll get the > same exact result as if you typed the address into your browser. > > Is that what you're trying to do? yes John, tht's exactly what i want to get. pablo --

Re: [PHP] redirect

2003-10-29 Thread alain dhaene
But I get the following warning: Warning: Cannot modify header information - headers already sent by (output started at /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: 1) in /home/schoolre/public_html/Hitek/Online/Registratie/registratieData.php on line 30 In registra

Re: [PHP] Problems with remote include

2003-10-29 Thread CPT John W. Holmes
From: "Pablo Zorzoli" <[EMAIL PROTECTED]> > include ('http://blabla.com/script.php?var1=a'); > ?> [snip] > script.php should echo some text, but i don't get any output. You know you're going to get the OUTPUT of script.php, right? You'll get the same exact result as if you typed the address into

RE: [PHP] redirect

2003-10-29 Thread Gregory Kornblum
>header("Location: registratie.html"); That is exactly how you do the PHP version of a response.redirect(). Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] String Array Creation and assigment

2003-10-29 Thread Dan
please help with the following: I tried this first : $b[] = 'Book Worzel, Richard (1989). From Employee to Entrepreneur: how to turn your experience into a fortune. Toronto: Key Porter books.'; $b[] = 'Book Ries, Al and Jack Trout (1994). The 22 Immutable Laws of Marketing. New York: Harper B

[PHP] redirect

2003-10-29 Thread alain dhaene
Hi, Is there in php something as a redirect to another page like in asp? e.g if(choice==1) response.redirect("page.php"); response.redirect("page2.php"); I have search in the manuel, but the only thing I find is something like header("Location: registratie.html"); But I guess it's w

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 16:00, Chris Shiflett wrote: > When you visit http://blabla.com/script.php?var1=a and view source, what do you > see? Is it valid PHP? yap, exactly. if i paste th elink i my browser i see the results expected.. pablo -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Problems with remote include

2003-10-29 Thread Chris Shiflett
--- Pablo Zorzoli <[EMAIL PROTECTED]> wrote: > I'm having trouble while i try to include a php file. [snip] > include ('http://blabla.com/script.php?var1=a'); [snip] > script.php should echo some text, but i don't get any output. When you visit http://blabla.com/script.php?var1=a and view source,

[PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
Hi all, I'm having trouble while i try to include a php file. the testing code is something loke the sort. test: http://blabla.com/script.php?var1=a'); ?> script.php should echo some text, but i don't get any output. In my php.ini I have allow_url_fopen = On, is there any other thing

Re: [PHP] Performance of dynamically generated select boxes

2003-10-29 Thread Chris Shiflett
--- Luis Lebron <[EMAIL PROTECTED]> wrote: > I am rebuilding a php application to handle a higher load. The > previous programmer had created a series of dynamically generated > select boxes using a mysql table. Would it be faster or less > resource intensive to create a series of arrays to generat

Re: [PHP] session_regenerate_id()

2003-10-29 Thread CPT John W. Holmes
From: "Alexander Mueller" <[EMAIL PROTECTED]> > "Cpt John W. Holmes" wrote: > > > > PHP 4.3.2 created a new session ID, but it didn't resend the cookie. So the > > next request would include the old session ID again from the cookie. > > I wonder what it is then good for. Changing the id internally

Re: [PHP] Performance of dynamically generated select boxes

2003-10-29 Thread CPT John W. Holmes
From: "Luis Lebron" <[EMAIL PROTECTED]> > I am rebuilding a php application to handle a higher load. The previous > programmer had created a series of dynamically generated select boxes using > a mysql table. Would it be faster or less resource intensive to create a > series of arrays to generate

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

2003-10-29 Thread John Nichel
René Fournier wrote: I'm trying to get a little upload script working... But I can't seem to copy the tmp file to my local web directory (btw, do I really need to specify the path, or can I just use a filename, and the file will be written to the same directory as the PHP script??). Anyway, her

[PHP] Re: strange issue

2003-10-29 Thread jacob bolton
Just for future users with this same problem, here's what I had to do to fix it. The version of Apache and PHP I was using was both the original RPM that came with RH9. I had to shut both of them down, and then reinstall Apache and PHP from source with the latest versions. After I did that, ever

[PHP] Copying an uploaded file...

2003-10-29 Thread René Fournier
I'm trying to get a little upload script working... But I can't seem to copy the tmp file to my local web directory (btw, do I really need to specify the path, or can I just use a filename, and the file will be written to the same directory as the PHP script??). Anyway, here is the code: $rea

[PHP] Performance of dynamically generated select boxes

2003-10-29 Thread Luis Lebron
I am rebuilding a php application to handle a higher load. The previous programmer had created a series of dynamically generated select boxes using a mysql table. Would it be faster or less resource intensive to create a series of arrays to generate the select boxes and avoid the database queries.

[PHP] Beginner looking for survey script

2003-10-29 Thread josh hough
I'm looking for a simple bit of code to interrupt all visitors to a site so they can submit a brief survey and then automatically continue to their desired destination. The server is Apache 2.0 on Solaris. I have already set a global header to redirect all visitors to the survey page if they d

Re: [PHP] session_regenerate_id()

2003-10-29 Thread Alexander Mueller
Curt Zirzow wrote: > > how is it not comatible with Opera? With 4.3.3 it works for IE and Mozilla, however Opera still has some problems with recognising the new id under certain circumstances. Alexander -- PINO - The free Chatsystem! Available at http://www.pino.org -- PHP General Mailing Li

Re: [PHP] session_regenerate_id()

2003-10-29 Thread Alexander Mueller
"Cpt John W. Holmes" wrote: > > PHP 4.3.2 created a new session ID, but it didn't resend the cookie. So the > next request would include the old session ID again from the cookie. I wonder what it is then good for. Changing the id internally without notifying the client does not make much sense IM

Re: [PHP] session_regenerate_id()

2003-10-29 Thread Curt Zirzow
* Thus wrote Alexander Mueller ([EMAIL PROTECTED]): > > I am not entirely sure what the following paragraph at > http://at2.php.net/manual/en/function.session-regenerate-id.php shall > mean > > > As of PHP 4.3.3, if session cookies are enabled, use of > > session_regenerate_id() will also submit

Re: [PHP] session_regenerate_id()

2003-10-29 Thread CPT John W. Holmes
From: "Alexander Mueller" <[EMAIL PROTECTED]> > I am not entirely sure what the following paragraph at > http://at2.php.net/manual/en/function.session-regenerate-id.php shall > mean > > > As of PHP 4.3.3, if session cookies are enabled, use of > > session_regenerate_id() will also submit a new ses

Re: [PHP] data from database

2003-10-29 Thread alain dhaene
it works, thanks, Alain "John Nichel" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > alain dhaene wrote: > > Hi, > > > > I will write a function that returns the result of a recordset. > > I tried this: > > > > Function getPersonen() > > { > >openDB(); //function th

[PHP] Re: Query explanation

2003-10-29 Thread Robb Kerr
On Wed, 29 Oct 2003 17:31:26 +0100, Alexander Mueller wrote: > > Exactly. "a" and "s" are referring to the two tables and are assigned in > the FROM clause. You could write the query also without the > abbreviations. > > SELECT state.ID, state.Name, areacode.Code FROM areacode, state > WHERE are

[PHP] Re: Posting variable in url

2003-10-29 Thread Alexander Mueller
Frank Tudor wrote: > > I have a redirect that if conditions are right it will pass the > user to a new page via $_POST. > > I am posting variables in the url and on this next page more > form stuff awaits the user. > > If a user submits incorrect stuff in the form is posts to > itself. The url

RE: [PHP] Query explanation

2003-10-29 Thread Pablo Gosse
On Wednesday, October 29, 2003 8:20 AM Robb Kerr wrote: > I am attempting to hack a tutorial from the Zend site. I have found the > tutorial/project to be excellent, but I don't completely understand what's > being done in the following Query statement. > > //query database, assemble data for sel

  1   2   >