RE: [PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-30 Thread Daevid Vincent
ailto:[EMAIL PROTECTED] > Sent: Sunday, October 29, 2006 9:25 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] How do I get ini_set('output_handler', '') > to work?! > > On Fri, October 27, 2006 3:46 pm, Daevid Vincent w

Re: [PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-29 Thread Richard Lynch
On Fri, October 27, 2006 3:46 pm, Daevid Vincent wrote: > What am I doing wrong... > > In my php.ini I have this for my web pages (and I want it): > > output_handler = ob_gzhandler > > But this causes my command line script to not show output until the > very > end. > > I thought I could disable

[PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-27 Thread Daevid Vincent
What am I doing wrong... In my php.ini I have this for my web pages (and I want it): output_handler = ob_gzhandler But this causes my command line script to not show output until the very end. I thought I could disable it at the top of a script, but it's not working!?! #!/usr/bin/php -q [

[PHP] How do i extract a function call with arguments from a source file?

2006-10-18 Thread Mathijs van Veluw
Hello there, Is there a way to extract a function call with its arguments? Like i have something like this: =CODE== =CODE== Now i want to extract the ClassName::FunctionName() part, inculding its arguments. The first two argument

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme
On 02 Oct 2006, at 17:13 , tedd wrote: At 4:59 PM -0600 10/2/06, Google Kreme wrote: On 02 Oct 2006, at 14:56 , Richard Lynch wrote: $mail_body .= "" . stripslashes($mail_text) . ""; Can we also comment on the horror that is the tag? I saw that as well, and had a similar response -- but I'

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread tedd
At 4:59 PM -0600 10/2/06, Google Kreme wrote: On 02 Oct 2006, at 14:56 , Richard Lynch wrote: $mail_body .= "" . stripslashes($mail_text) . ""; Can we also comment on the horror that is the tag? I thought I was gonna puke... No? OK, moving along, nothing to see. I saw that as well, and h

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme
On 02 Oct 2006, at 14:56 , Richard Lynch wrote: $mail_body .= "" . stripslashes($mail_text) . ""; Can we also comment on the horror that is the tag? I thought I was gonna puke... No? OK, moving along, nothing to see. -- The Piper's calling you to join him -- PHP General Mailing List (http

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 8:09 am, Ross wrote: $mail_body .= "" . stripslashes($mail_text) . ""; HOWEVER: The fact that you are calling "stripslashes" at all tells me that either: You've screwed up with Magic Quotes being on and calling addslashes (or mysql_[real_]escape_string) so you've essen

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Brad Bonkoski
Ross wrote: $mail_body .= "sans-serif\"> stripslashes($mail_text) "; this just returns {stripslashes(it\'s a testss} $mail_body .=" ".stripslashes($mail_text)." "; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do i check if a variable is a reference or a copy?

2006-09-28 Thread Mathijs
Martin Alterisio wrote: 2006/9/28, Mathijs <[EMAIL PROTECTED]>: Hello there, Is there a way to check if a variable is passed by reference or if it is just a copy. With something like is_copy or is_reference? Thx in advance. Is this part of the "I don't know if two vars reference the same o

Re: [PHP] How do i check if a variable is a reference or a copy?

2006-09-28 Thread Martin Alterisio
2006/9/28, Mathijs <[EMAIL PROTECTED]>: Hello there, Is there a way to check if a variable is passed by reference or if it is just a copy. With something like is_copy or is_reference? Thx in advance. Is this part of the "I don't know if two vars reference the same object in PHP4" dilemma?

Re: [PHP] How do i check if a variable is a reference or a copy?

2006-09-28 Thread Richard Lynch
On Thu, September 28, 2006 5:03 am, Mathijs wrote: > Is there a way to check if a variable is passed by reference or if it > is > just a copy. With something like is_copy or is_reference? If your code doesn't already "know" which it is, you've screwed up somewhere. -- Like Music? http://l-i-e.co

Re: [PHP] How do i check if a variable is a reference or a copy?

2006-09-28 Thread Dave Goodchild
Why do you want to do that? To check whether a variable is passed by reference or value look at the function prototype. If you clarify the reasons why you want to do that it would help. -- http://www.web-buddha.co.uk http://www.projectkarma.co.uk

[PHP] How do i check if a variable is a reference or a copy?

2006-09-28 Thread Mathijs
Hello there, Is there a way to check if a variable is passed by reference or if it is just a copy. With something like is_copy or is_reference? Thx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I call an class?

2006-09-08 Thread Satyam
r you only in Spanish, my Portuguese being too primitive. Satyam - Original Message - From: "Sr. Paulo Ricardo" <[EMAIL PROTECTED]> To: Sent: Friday, September 08, 2006 3:14 PM Subject: [PHP] How do I call an class? Good morning. How do I call an class? It'

Re: [PHP] How do I call an class?

2006-09-08 Thread Rafael Mora
Hi! I think u are confused, the variable name doesnt have anything to do with the Class name... So you can have something like this: $myvar = new shuttle(); $jjj = new ISS(); u just need to be sure that u are using the exact name of the class, it doesnt matter the variable name, hope u get c

[PHP] How do I call an class?

2006-09-08 Thread Sr. Paulo Ricardo
Good morning. How do I call an class? It’s correct? $Class = new Class(); or $class = new Class(); Att, 'É um orgulho ter você como nosso cliente' Paulo Ricardo Programador (Desenvolvedor) ArgoHost.net Hospedagem Web com Facilidad

RE: [PHP] How do I prevent a session from rebuilding itself?

2006-07-13 Thread Richard Lynch
On Wed, July 12, 2006 6:20 pm, Daevid Vincent wrote: >> Sequence of events: >> script starts >> you rm -rf /tmp/sess_* >> script writes out data >> script ends >> >> Exactly WHAT do you think "should" happen in this case?... > > I expect this to work like it USED TO WORK! Bug or not. > > I expect:

Re: [PHP] How do I prevent a session from rebuilding itself?

2006-07-13 Thread tedd
At 11:58 AM +0100 7/13/06, Andrew Brampton wrote: >If anyone reads DailyWTF, then you might remember this post: >http://thedailywtf.com/forums/thread/78892.aspx >Explaining the dangers of "rm -rf /tmp" > >I'm sure you won't fall victim to this, but it is a fun read :) > >Andrew Fun read. But the t

Re: [PHP] How do I prevent a session from rebuilding itself?

2006-07-13 Thread Andrew Brampton
incent" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 11, 2006 10:27 PM Subject: [PHP] How do I prevent a session from rebuilding itself? I would expect that if I 'rm -rf /tmp/sess_*' that the user would get prompted to re-login (since the flag is not set). -- PHP General Mai

RE: [PHP] How do I prevent a session from rebuilding itself?

2006-07-13 Thread Ford, Mike
On 13 July 2006 00:20, Daevid Vincent wrote: > > Sequence of events: > > script starts > > you rm -rf /tmp/sess_* > > script writes out data > > script ends > > > > Exactly WHAT do you think "should" happen in this case?... > > I expect this to work like it USED TO WORK! Bug or not. > > I expec

RE: [PHP] How do I prevent a session from rebuilding itself?

2006-07-12 Thread Daevid Vincent
> Sequence of events: > script starts > you rm -rf /tmp/sess_* > script writes out data > script ends > > Exactly WHAT do you think "should" happen in this case?... I expect this to work like it USED TO WORK! Bug or not. I expect: Script starts Calls session_start(1234) No existing sess_1234 fil

Re: [PHP] How do I prevent a session from rebuilding itself?

2006-07-12 Thread Richard Lynch
On Tue, July 11, 2006 4:27 pm, Daevid Vincent wrote: > I've noticed a 'feature' that seems to be causing me some pain. > > When a user logs in, we store various pieces of info and their user > class in > a $_SESSION variables. > > This includes a flag saying that they've ben authenticated. > > I wo

RE: [PHP] How do I prevent a session from rebuilding itself?

2006-07-12 Thread Daevid Vincent
> > I would expect that if I 'rm -rf /tmp/sess_*' that the user > would get > > prompted to re-login (since the flag is not set). > > Does it say someplace in the manual that you should be able > to do that? > Or is this a case of what you expect is not what the rest of the world > expects? Th

Re: [PHP] How do I prevent a session from rebuilding itself?

2006-07-11 Thread Robert Cummings
On Tue, 2006-07-11 at 17:27, Daevid Vincent wrote: > I've noticed a 'feature' that seems to be causing me some pain. > > When a user logs in, we store various pieces of info and their user class in > a $_SESSION variables. > > This includes a flag saying that they've ben authenticated. > > I wou

[PHP] How do I prevent a session from rebuilding itself?

2006-07-11 Thread Daevid Vincent
I've noticed a 'feature' that seems to be causing me some pain. When a user logs in, we store various pieces of info and their user class in a $_SESSION variables. This includes a flag saying that they've ben authenticated. I would expect that if I 'rm -rf /tmp/sess_*' that the user would get pr

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-07 Thread Niels
Hi, On Tuesday 06 June 2006 21:05, Jochem Maas wrote: [snip] > I might be late to the party but have you thought of trying the YAHOO UI > lib (treeview widget) it even allows you to dynamically load subbranches > as they are expanded (AJAX lovelyness): > > http://developer.yahoo.com/yui/treeview

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-06 Thread Jochem Maas
Niels wrote: > Hi, > > > I have a set of nodes. Each node has a parent and so the set can be thought > of as a tree. I want to show that tree somehow on a webpage, served by PHP. > I cannot use Dot/Graphwiz for various reasons. What I'm looking for is an > output of DIVs or tablecells, showing th

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread tedd
At 8:59 PM +0200 6/4/06, Niels wrote: >On Sunday 04 June 2006 20:39, tedd wrote: > >> At 8:00 PM +0200 6/4/06, Niels wrote: >>> >>> Using a combination of css and php will do what you want, I'm sure of it. >>>I want world peace... >> >> Well, if we were all programming php, we wouldn't ha

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Niels
On Sunday 04 June 2006 20:39, tedd wrote: > At 8:00 PM +0200 6/4/06, Niels wrote: >> >> >>> Using a combination of css and php will do what you want, I'm sure of >>> it. >>I want world peace... > > Well, if we were all programming php, we wouldn't have any war, but we > wouldn't have any peace e

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread tedd
At 8:00 PM +0200 6/4/06, Niels wrote: > > >> Using a combination of css and php will do what you want, I'm sure of it. >I want world peace... Well, if we were all programming php, we wouldn't have any war, but we wouldn't have any peace either. :-) tedd --

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Niels
On Sunday 04 June 2006 19:49, tedd wrote: > At 7:26 PM +0200 6/4/06, Niels wrote: >>If I were to make a "real" tree, I wouldn't use a table. It's too >>difficult to manage IMO. I'd probably look for a generic graph algorithm >>somewhere, and try some dhtml voodoo with flying DIVs. >> >> >>Thanks a

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread tedd
At 7:26 PM +0200 6/4/06, Niels wrote: >If I were to make a "real" tree, I wouldn't use a table. It's too difficult >to manage IMO. I'd probably look for a generic graph algorithm somewhere, >and try some dhtml voodoo with flying DIVs. > > >Thanks again, >Niels Niels: The below link may not at fir

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Niels
Hi, On Sunday 04 June 2006 19:08, tedd wrote: > At 3:38 PM +0200 6/4/06, Niels wrote: >>On Sunday 04 June 2006 15:30, tedd wrote: >> >>[snip] >> >>> You can dynamically generate a table and place text (and/or color) the >>> cells that are nodes -- that would be my approach. You would need to >>>

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Niels
Hi, On Sunday 04 June 2006 19:02, Martin Alterisio wrote: [snip] > Sorry, I can't show you the code. Anyway you don't seem to need it. One > recommendation, don't rely on global vars, look at this: Quite right, I'd have gotten around to fixing that later. Thank you for your answer, I appreciate

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread tedd
At 3:38 PM +0200 6/4/06, Niels wrote: >On Sunday 04 June 2006 15:30, tedd wrote: > >[snip] > >> You can dynamically generate a table and place text (and/or color) the >> cells that are nodes -- that would be my approach. You would need to know >> the width and depth of the tree and then just fill i

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Martin Alterisio
2006/6/4, Niels <[EMAIL PROTECTED]>: Hi! On Sunday 04 June 2006 18:13, Martin Alterisio wrote: [snip] > I had a similar problem that, although it was with a binary tree, it can > be used with your tree. PHP doesn't like too much the use of recursion, > but this time recursion is the way to go

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Niels
Hi! On Sunday 04 June 2006 18:13, Martin Alterisio wrote: [snip] > I had a similar problem that, although it was with a binary tree, it can > be used with your tree. PHP doesn't like too much the use of recursion, > but this time recursion is the way to go (if you want to keep the code > maintain

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Niels
On Sunday 04 June 2006 18:37, Mike Bellerby wrote: > You could do it by dynamically generating an image. > > Mike [snip] Yes. But how? I've settled for a simpler solution -- see my answer to Martin Alterisio. Thanks, Niels -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Mike Bellerby
You could do it by dynamically generating an image. Mike Niels wrote: On Sunday 04 June 2006 15:30, tedd wrote: [snip] You can dynamically generate a table and place text (and/or color) the cells that are nodes -- that would be my approach. You would need to know the width and depth of

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Martin Alterisio
2006/6/4, Niels <[EMAIL PROTECTED]>: Hi, I have a set of nodes. Each node has a parent and so the set can be thought of as a tree. I want to show that tree somehow on a webpage, served by PHP. I cannot use Dot/Graphwiz for various reasons. What I'm looking for is an output of DIVs or tablecell

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Niels
On Sunday 04 June 2006 15:30, tedd wrote: [snip] > You can dynamically generate a table and place text (and/or color) the > cells that are nodes -- that would be my approach. You would need to know > the width and depth of the tree and then just fill in the cells that are > nodes. > > hth's > >

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread tedd
At 3:03 PM +0200 6/4/06, Niels wrote: >On Sunday 04 June 2006 14:58, tedd wrote: > >> At 2:07 PM +0200 6/4/06, Niels wrote: >>>Hi, >>> >>> >>>I have a set of nodes. Each node has a parent and so the set can be >>>thought of as a tree. I want to show that tree somehow on a webpage, >>>served by PHP.

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Niels
On Sunday 04 June 2006 14:58, tedd wrote: > At 2:07 PM +0200 6/4/06, Niels wrote: >>Hi, >> >> >>I have a set of nodes. Each node has a parent and so the set can be >>thought of as a tree. I want to show that tree somehow on a webpage, >>served by PHP. I cannot use Dot/Graphwiz for various reasons.

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread tedd
At 2:07 PM +0200 6/4/06, Niels wrote: >Hi, > > >I have a set of nodes. Each node has a parent and so the set can be thought >of as a tree. I want to show that tree somehow on a webpage, served by PHP. >I cannot use Dot/Graphwiz for various reasons. What I'm looking for is an >output of DIVs or tabl

[PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Niels
Hi, I have a set of nodes. Each node has a parent and so the set can be thought of as a tree. I want to show that tree somehow on a webpage, served by PHP. I cannot use Dot/Graphwiz for various reasons. What I'm looking for is an output of DIVs or tablecells, showing the nodes and their connectio

[PHP] how do i select this list

2006-03-15 Thread Mark
The query below gives me a list of usernames with the highest point score at the top. There is also a secondary points list which i need to use to rank players if there POINTS are the same. ie: username points margin paul2624 mark 23

Re: [PHP] How do I ...

2006-03-02 Thread John Nichel
Anthony Rodriguez wrote: Hi! How do I un-subscribe to this list? Look at the bottom of *every* email from this list. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] How do I ...

2006-03-02 Thread Austin Denyer
Anthony Rodriguez wrote: > Hi! > > How do I un-subscribe to this list? There are three ways to do this. 1. Read the footer of every e-mail on this list - it contains the instructions. 2. Read the headers of every e-mail on this list - they contain the instructions. 3. Send $100,000 in low-deno

Re: [PHP] How do I ...

2006-03-02 Thread Stut
Anthony Rodriguez wrote: Hi! How do I un-subscribe to this list? Thank you! Anthony (Tony) Rodriguez ([EMAIL PROTECTED]) You open your eyes and look at the footer. Now go out and play with the other kids. vv vv vv vv vv vv vv vv vv vv vv vv vv -- PHP General Mailing List (http://www.ph

[PHP] How do I ...

2006-03-02 Thread Anthony Rodriguez
Hi! How do I un-subscribe to this list? Thank you! Anthony (Tony) Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do I ...

2006-03-02 Thread Anthony Rodriguez
Hi! How do I un-subscribe to this list? Thank you! Anthony (Tony) Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do I read Exif data without a file?

2006-02-25 Thread Niels
Hi, I have some images in a database -- I mean, the actual data. There are no files. I want to read Exif data for these images, but the read_exif_data() function wants a file. I suppose I could write the images to temp files, but that's a bit wasteful. And where would I write them? Is there a fol

Re: [PHP] How do I output error messages

2006-02-21 Thread Paul Goepfert
$submit is soppose to be set when the user submits the web form for validation. I am not sure but is there soppose to be a $submit = statement? Paul On 2/21/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > if (isset($submit)) > { > //vaildation code > } > else > { > //webpage > } > [/s

Re: [PHP] How do I output error messages

2006-02-21 Thread Richard Lynch
On Tue, February 21, 2006 12:52 pm, Paul Goepfert wrote: $messages = array(); > if (isset($submit)) > { > //vaildation code Each invalid input adds another element to $messages array. //E.G.: if (!isset($_REQUEST['name'])) $messages[] = "Name is a required field."; > } > else > { if

RE: [PHP] How do I output error messages

2006-02-21 Thread Jeremy Schreckhise
2006 12:53 PM To: php-general@lists.php.net Subject: [PHP] How do I output error messages Hi all, I have a web page that I am doing valildation on. I have figured out how to at least get the page to load the page content. What I can't seem to figure out is how to output the error message

RE: [PHP] How do I output error messages

2006-02-21 Thread Jay Blanchard
[snip] if (isset($submit)) { //vaildation code } else { //webpage } [/snip] What is $submit? Is it set ever? The problem probably lies in the fact that $submit, whatever it is, never gets set. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do I output error messages

2006-02-21 Thread Paul Goepfert
Hi all, I have a web page that I am doing valildation on. I have figured out how to at least get the page to load the page content. What I can't seem to figure out is how to output the error messages to the screen. The validation is being performed on the same page as the form that is being val

[PHP] How do i display a neat table of returned mysql data?

2005-11-29 Thread Dave Carrera
Hi List, I have some mysql table data that i would like to display back to the web user in a neat and tidy way using php. Data: col1 col2 col3 test 1.99 F test 1.99 F test 1.99 F test 0.99 F test 1.99 F bang 2.99 F bang 3.99 F bang 4.49 F bang 2.99 F bang 2.99

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-10 Thread Richard Lynch
On Sat, October 8, 2005 1:58 am, Ragnar wrote: > What I gather from Richards answer earlier that the difference between > $_POST, $_GET or $_COOKIE, $_SESSION is almost irrelevant, I might > as well store the detail in a session to be able to use them on page > 3 it seems. On a DEDICATED server, $

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-10 Thread Mark Rees
> basically what I am working on is integrating a step inbetween the checkout > and the payment gateway processing. > > The cardholder information is checked for enrolment in the first step, if > the cardholder is enrolled he will need to authenticate himself by password > (this is where the 2nd pa

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-08 Thread Ragnar
Hi Mark, basically what I am working on is integrating a step inbetween the checkout and the payment gateway processing. The cardholder information is checked for enrolment in the first step, if the cardholder is enrolled he will need to authenticate himself by password (this is where the 2nd pa

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-07 Thread Ragnar
: "Richard Lynch" <[EMAIL PROTECTED]> > An: "Ragnar" <[EMAIL PROTECTED]> > Kopie: php-general@lists.php.net > Betreff: Re: [PHP] How do I POST data with headers & make the browser > follow? > Datum: Fri, 7 Oct 2005 15:56:09 -0500 (CDT) > &

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-07 Thread Richard Lynch
On Thu, October 6, 2005 4:52 am, Ragnar wrote: Everything you are trying to do with the cURL, multiple pages, and whatnot scares the bejesus out of me... Especially that you seem to be passing people's credit card numbers around in this manner. [shudder] > I did see that there is a FOLLOWLOCATION

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-07 Thread Mark Rees
> The information that comes in from the first page is a creditcard form > with the standard values (CCnumber, Expiry Date, Cardholder name etc). > > On page 2 an XMLrequest is done with a verification gateway (in this case to > check for enrolment in 3D-Secure), the result for that I get back on t

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-06 Thread Ragnar
che Nachricht --- > Von: Brent Baisley <[EMAIL PROTECTED]> > An: Ragnar <[EMAIL PROTECTED]> > Kopie: php-general@lists.php.net > Betreff: Re: [PHP] How do I POST data with headers & make the browser > follow? > Datum: Thu, 6 Oct 2005 08:57:02 -0400 > > If the

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-06 Thread Mark Rees
> > 1. Take POST data from a form (no problem) > 2. Do whatever i need to on the target page (no problem) > 3. Pass some other data on to a 3rd page as a POST >request. > 4. Get the browser to follow to said 3rd page. > > > All this is happening via SSL. What the other people said about HTTP.

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-06 Thread Brent Baisley
If the information is sensitive, why are you trying to fake a POST submission? A POST can be received from anywhere. SSL is just encrypting it, not verifying the client is the same. I would use session variables to store information you need to access from page to page. That way you can ver

[PHP] How do I POST data with headers & make the browser follow?

2005-10-06 Thread Ragnar
Hi guys/girls, I have to apologize if this issue has been discussed in detail before but I couldn't find anything obvious so far. What I need/want to do is to : 1. Take POST data from a form (no problem) 2. Do whatever i need to on the target page (no problem) 3. Pass some other data on to a 3r

Re: [PHP] How do I create an Outlook calendar entry?

2005-06-25 Thread Jasper Bryant-Greene
Daevid Vincent wrote: > There are some pretty crazy "Thread-Index:" and "UID:" things in there. > Do I have to generate them somehow? No. They are email headers relating to the tracking of replies and the internal tracking of emails on the mail server. It should be safe to leave them out, in fa

Re: [PHP] How do I create an Outlook calendar entry?

2005-06-25 Thread Burhan Khalid
Daevid Vincent wrote: You are on to something. Maybe I did get an email with a confirmation. I could swear it was via their website though... There are some pretty crazy "Thread-Index:" and "UID:" things in there. Do I have to generate them somehow? Anyways, for those interested, this is w

RE: [PHP] How do I create an Outlook calendar entry?

2005-06-24 Thread Daevid Vincent
X-MICROSOFT-CDO-IMPORTANCE:1 CLASS:PUBLIC BEGIN:VALARM TRIGGER:-PT60M ACTION:DISPLAY DESCRIPTION:Reminder END:VALARM END:VEVENT END:VCALENDAR > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Friday, June 24, 2005 1:07 PM > To: php-ge

Re: [PHP] How do I create an Outlook calendar entry?

2005-06-24 Thread tg-php
Actually most/all outlook items should be able to be created with straight text. Try creating a calendar entry and sending it to a normal POP3 email account then looking at it in a non-Outlook email client (view full source/headers/etc). You can try just dragging a calendar item to your deskto

[PHP] How do I create an Outlook calendar entry?

2005-06-24 Thread Daevid Vincent
I was on Avis' car rental site the other day and booked a reservation, then they had a button that automatically added an entry into MS Outlook for the details, dates, times, etc. it was very nice! Anyone have some code or pear class or anything that does this? I am guessing I have to use COM, bu

Re: [PHP] How do I link to the root directory of the server?

2005-05-05 Thread Richard Lynch
You could just use relative links, or use a full path link, without the http://www.mydomain.com part. Or, you could change application.php to use data from $_SERVER to figure out what URL you should be using. and pick through that data. Somewhere in there you will find what you need to set up

[PHP] How do I link to the root directory of the server?

2005-05-05 Thread Shaun
Hi, I have a file called application.php and in this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG->wwwroot = http://www.mydomain.com; $CFG->dirroot = "/usr/home/myaccount/public_html"; $CFG->admindir = "$CFG->wwwroot/admin"; $CFG->claim

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] How do I get the first element's key of an array of objects?

2005-04-08 Thread Mattias Thorslund
Chris W. Parker wrote: Read www.php.net/array_keys and you shall have your answer. From the php docs: $array = array(0 => 100, "color" => "red"); print_r(array_keys($array)); ?> Will output. Array ( [0] => 0 [1] => color ) Duh! Yes, I replied a little too fast on that one. /Mattias -

RE: [PHP] How do I get the first element's key of an array of objects?

2005-04-08 Thread Chris W. Parker
Mattias Thorslund on Thursday, April 07, 2005 5:20 PM said: >> > >>$keys = array_keys($object_array); >> >>$first_key = $keys[0]; > > I wonder if that will work, when the first element has the key 3... ? > > This might work better: > > $keys = array_keys

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] How do I get the first element's key of an array of objects?

2005-04-07 Thread Mattias Thorslund
Chris W. Parker wrote: While looking through the array functions I saw www.php.net/array_keys and thought of: $keys = array_keys($object_array); $first_key = $keys[0]; ?> I wonder if that will work, when the first element has the key 3... ? This might work better: $keys = array_keys($obj

RE: [PHP] How do I get the first element's key of an array of objects?

2005-04-07 Thread Chris W. Parker
Daevid Vincent on Thursday, April 07, 2005 1:13 PM said: > I have an array of objects in PHP5. Each element's key is the > database row ID. > > I don't see a graceful way of finding the first element's key ID. [snip/] > My hack is to do this: > > foreach($foo

Re: [PHP] How do I get the first element's key of an array of objects?

2005-04-07 Thread Chris Boget
>> I don't see a graceful way of finding the first element's key ID. >> Array >> ( >> [3] => fooObject Object >> ( >> [id:protected] => 3 >> [model:protected] => ABC >> [read:protected] => public >> [write:protected] => private >>

Re: [PHP] How do I get the first element's key of an array of objects?

2005-04-07 Thread John Nichel
Daevid Vincent wrote: I have an array of objects in PHP5. Each element's key is the database row ID. I don't see a graceful way of finding the first element's key ID. So I have this... Array ( [3] => fooObject Object ( [id:protected] => 3 [model:protected] => ABC

RE: [PHP] How do I get the first element's key of an array of objects?

2005-04-07 Thread Jared Williams
> There has to be a better way. Something more elegant? key() http://php.net/key Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do I get the first element's key of an array of objects?

2005-04-07 Thread Daevid Vincent
I have an array of objects in PHP5. Each element's key is the database row ID. I don't see a graceful way of finding the first element's key ID. So I have this... Array ( [3] => fooObject Object ( [id:protected] => 3 [model:protected] => ABC [read:

Re: [PHP] How do I add PHP code into a DB field

2005-02-17 Thread Bret Hughes
On Fri, 2005-02-18 at 00:45, Tim Burgan wrote: > Hello, > > > On my page, all my content is updated via a textarea online. > > If I include PHP code embeded with my HTML in the textarea, the database > converts it to plain text, instead of code that can be used. It doesn't > convert < to < tho

[PHP] How do I add PHP code into a DB field

2005-02-17 Thread Tim Burgan
Hello, On my page, all my content is updated via a textarea online. If I include PHP code embeded with my HTML in the textarea, the database converts it to plain text, instead of code that can be used. It doesn't convert < to < though, it's still in the database as <, just when it's read out aga

Re: [PHP] How do I collect the keywords a user entered when searching for my site

2005-02-09 Thread Tim Burgan
Hello, My original post: "I want to write some code that will retrieve the keywords entered in a search engine that were used to find my site." I found this article [1] was a solution that I successfully implemented. [1] Tim

Re: [PHP] How do I collect the keywords a user entered when searching for my site

2005-02-07 Thread Andre Dubuc
On Monday 07 February 2005 10:02 pm, Tim Burgan wrote: > Hello, > > > How do I collect the keywords a user entered when searching for my site? > > I want to write some code that will retrieve the keywords entered in a > search engine that were used to find my site. > > Is it possible to also detect

[PHP] How do I collect the keywords a user entered when searching for my site

2005-02-07 Thread Tim Burgan
Hello, How do I collect the keywords a user entered when searching for my site? I want to write some code that will retrieve the keywords entered in a search engine that were used to find my site. Is it possible to also detect what my site's search engine ranking was for the entered keywords als

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Richard Lynch
Marek Kilimajer wrote: > Richard Lynch wrote: >> I'll give you a simple case. >> >> I have a GTK PHP MP3 ID3 editor application I'm working on. >> >> When one opens a file in a directory, I provide next/prev buttons to >> quickly page to the next/prev file in the directory. >> >> Getting the next/p

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Robert Cummings
On Mon, 2005-01-10 at 12:44, Richard Lynch wrote: > Robert Cummings wrote: > > On Mon, 2005-01-10 at 11:28, Richard Lynch wrote: > >> Thomas Goyne wrote: > >> > On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz <[EMAIL PROTECTED]> > >> wrote: > >> > > >> >> that's not a SPECIFIC place in the array,

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Marek Kilimajer
Richard Lynch wrote: I'll give you a simple case. I have a GTK PHP MP3 ID3 editor application I'm working on. When one opens a file in a directory, I provide next/prev buttons to quickly page to the next/prev file in the directory. Getting the next/prev to work is simple enough, but... I've got the

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Richard Lynch
Robert Cummings wrote: > On Mon, 2005-01-10 at 11:28, Richard Lynch wrote: >> Thomas Goyne wrote: >> > On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz <[EMAIL PROTECTED]> >> wrote: >> > >> >> that's not a SPECIFIC place in the array, that's just current, next >> and >> >> previous. AFAIK there is

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Robert Cummings
On Mon, 2005-01-10 at 11:28, Richard Lynch wrote: > Thomas Goyne wrote: > > On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > > > >> that's not a SPECIFIC place in the array, that's just current, next and > >> previous. AFAIK there is no way to explicitly set the intern

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-10 Thread Richard Lynch
Thomas Goyne wrote: > On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > >> that's not a SPECIFIC place in the array, that's just current, next and >> previous. AFAIK there is no way to explicitly set the internal pointer >> of the array to a spcified place. I used a fun

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-09 Thread Thomas Goyne
On Sun, 09 Jan 2005 23:58:18 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote: can't recall what it was exactly, but I believe it was a case where I didn't know the key of the array, nor the value, but knew the "place" in the array. Can't exactly remember what it was... I am now thinking that wha

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-09 Thread M. Sokolewicz
Thomas Goyne wrote: On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote: that's not a SPECIFIC place in the array, that's just current, next and previous. AFAIK there is no way to explicitly set the internal pointer of the array to a spcified place. I used a function whi

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-09 Thread Thomas Goyne
On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote: that's not a SPECIFIC place in the array, that's just current, next and previous. AFAIK there is no way to explicitly set the internal pointer of the array to a spcified place. I used a function which basically loope

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-09 Thread M. Sokolewicz
Tr wrote: Brent Clements wrote / napísal (a): I know this is a simple question because I could easily write a loop to move to the specific position in the array, but I want to know is there a function to move the array pointer position to a specific position in the array? Thanks, Brent next($ar

Re: [PHP] How do I start at a specific position in an array? Is there a function?

2005-01-09 Thread tr
Brent Clements wrote / napísal (a): I know this is a simple question because I could easily write a loop to move to the specific position in the array, but I want to know is there a function to move the array pointer position to a specific position in the array? Thanks, Brent next($array) prev(

<    1   2   3   4   5   6   7   8   9   >