Re: [PHP] Cannot send session cookie

2004-07-12 Thread Andre Dubuc
Hi Michael, session_start(); must be the very first line of code on the page, with no whitespaces trailing, else you'll get the 'header already sent' message: ?php session_start(); ? Hth, Andre On Monday 12 July 2004 10:40 am, Michael Purdy wrote: Folks I am a new to php. I am currently

[PHP] Variables not passed to next page

2004-07-31 Thread Andre Dubuc
Hi, I have attempted to post variables from a simple page: edit-news.php to edit-news-x.php, then load them into a session for re-use -- I use output buffering. They do not pass. The code: [edit-news] ?php session_start(); ob_start(); ? $news = A few paragraphs; print input type='text'

Re: [PHP] Variables not passed to next page

2004-07-31 Thread Andre Dubuc
On Saturday 31 July 2004 02:12 pm, Jason Wong wrote: On Sunday 01 August 2004 01:40, Andre Dubuc wrote: I have attempted to post variables from a simple page: edit-news.php to edit-news-x.php, then load them into a session for re-use -- I use output buffering. They do not pass. The code

Re: [PHP] script error

2004-08-02 Thread Andre Dubuc
Maybe unquote 'posts' -- I would write: $query = INSERT INTO posts ( `post_id` , `post_title` , `post_date` , .. On Monday 02 August 2004 06:49 am, me2resh wrote: thanks for your help i did that and here is the error message returned You have an error in your SQL syntax. Check the

[PHP] Local version works - production breaks

2004-08-07 Thread Andre Dubuc
Hi, I have re-written a very basic website to use sessions (switching to https) for login to special areas of a site. After testing the site thoroughly locally, I uploaded the whole shebang to a unix server that runs Apache 1.3.x + PHP 4.3.4 + mysql. Almost all code broke - sessions would

Re: [PHP] Re: Local version works - production breaks

2004-08-07 Thread Andre Dubuc
as local? Andre Dubuc [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have re-written a very basic website to use sessions (switching to https) for login to special areas of a site. After testing the site thoroughly locally, I uploaded the whole shebang to a unix server

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Andre Dubuc
On Saturday 07 August 2004 09:10 pm, you wrote: On Sat, 2004-08-07 at 17:55, Andre Dubuc wrote: Hi, I have re-written a very basic website to use sessions (switching to https) for login to special areas of a site. After testing the site thoroughly locally, I uploaded the whole shebang

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Andre Dubuc
On Saturday 07 August 2004 10:11 pm, Robby Russell wrote: On Sat, 2004-08-07 at 19:00, Ed Lazor wrote: It could be that you have local error reporting set to none. It could also be that you're using full paths when referencing files which then breaks when moving files to a new server.

Re: [PHP] Local version works - production breaks

2004-08-08 Thread Andre Dubuc
.. Andre Dubuc [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 07 August 2004 10:11 pm, Robby Russell wrote: On Sat, 2004-08-07 at 19:00, Ed Lazor wrote: It could be that you have local error reporting set to none. It could also be that you're using full paths when

Re: [PHP] Local version works - production breaks [SOLVED]

2004-08-08 Thread Andre Dubuc
On Sunday 08 August 2004 01:51 am, Jason Wong wrote: On Sunday 08 August 2004 09:38, Andre Dubuc wrote: That's what I thought. But the differences are glaring. Seems like none of the code wants to work. Navigation is a nightmare: header(location:...); usually brings an error message

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
Hi James, Well for what it's worth: Your code in Test1 sets the paraemters - if(!$_SESSION['start_time']){ echo(\n Session ResetBR); $_SESSION['start_time'] = time(); yet when Test2 loads, you haven't called $_SESSION[''start_time'} nor, for that matter, have you 'saved' it

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
On Friday 13 August 2004 11:19 am, you wrote: On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: Hi James, [snip] .for thatt matter, have you 'saved' it using session_write_close(); From the Manual: Session data is usually stored after your script terminated without the need to call

Re: [PHP] After upgrading PHP, Session Values not stored properly

2004-08-23 Thread Andre Dubuc
On your new setup, is register_globals=on by any chance? I ran into the same problem -- once set to off, everything started working properly. Just a thought, Hth Andre On Monday 23 August 2004 02:45 am, Sheni R. Meledath wrote: Hi Gerard, Many thanks. We are using cookies to store the

Re: [PHP] Destroying a Session

2004-08-25 Thread Andre Dubuc
On Wednesday 25 August 2004 12:27 pm, Shaun wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] function clear_orderinfo() { global $_SESSION; unset($_SESSION[orderinfo]); } However this function doesnt seem to work and the session remains active, is

Re: [PHP] Problem with sessions

2004-08-27 Thread Andre Dubuc
Hi, Looking at your code, I noticed that either you're missing the closing double quote to close off the Location expression, or you're ending it early with a double quote at http://;. Shouldn't it read: header(Location: http://' . $_SERVER['HTTP_HOST'] ^

Re: [PHP] PHP Version for API 20001222

2004-08-27 Thread Andre Dubuc
PHP 4.0.6-6.2mdk On Friday 27 August 2004 02:45 pm, Cole S. Ashcraft wrote: What PHP version had the API number 20001222 ? Thanks Cole -- This message has been scanned for viruses and dangerous content by MailScanner on mail.ashcraftfamily.net, and is believed to be clean. Please

Re: [PHP] Why won't my echo won't work? [newbie question]

2004-08-29 Thread Andre Dubuc
Try using braces around $_POST or any superglobal you use: print_r($_POST); print brbr{$_SERVER['REQUEST_METHOD']}; print brbr{$_POST['username']}; Works for me. Hth, Andre On Sunday 29 August 2004 01:13 pm, John Nichel wrote: FrzzMan wrote: John Nichel wrote: [EMAIL PROTECTED] wrote:

Re: [PHP] Re: uppercase sentences

2004-09-03 Thread Andre Dubuc
On Friday 03 September 2004 11:16 pm, Chris Martin wrote: Justin French wrote: Hi all, I'm working with a bunch of users who hardly ever use correct punctuation in their submitted content. I realise there's very little I can do, but I'm trying to do *something* to make things a little

Re: [PHP] Re: function problem

2004-09-04 Thread Andre Dubuc
On Saturday 04 September 2004 03:42 pm, Torsten Roehr wrote: Matthias Bauw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having a problem with a php application; I have two files: one is ccadduser wich adds users to a controlcenter that I am currently designing for a

Re: [PHP] Session again !!!

2004-09-05 Thread Andre Dubuc
Hi, In your code: if($_SESSION['uname'] = = ) ^ Get rid of that extra space bewteen the == Hth, Andre On Sunday 05 September 2004 11:23 am, Dre wrote: I really did and it behaves the same I tried isset() also but there is no good it still does not

Re: [PHP] problem with Header(Location: home.php);

2004-09-09 Thread Andre Dubuc
On Thursday 12 August 2004 07:48 pm, CBharadwaj wrote: Hello, In conection.php I have written. SESSION_ START(); ^ Get rid of extra space and it should work Hth, Andre on successful login I am registering a session variable. SESSION_REGISTER(userId); on

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Andre Dubuc
Amazing how long that thread is -- must be a record. Seems to be classic case of 'ignore-the-obvious' or 'my-mind-is-made-up. Don't-confuse-me-with-facts'. Perhaps I should start a new thread: [PHP} Can't get NULL to output anything! hehe Andre On Friday 17 September 2004 03:11 pm, Jason

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Andre Dubuc
?php function logic($logic, find_some) { if($TopPosting === evil)($email['JayBlanchard'] == TopPosted) { switch ($logic) : case None : print You've just TopPosted;

[PHP] List Etiquette

2004-09-18 Thread Andre Dubuc
Hi, After googling 'Web Etiquette, Top Posting', I still am puzzled why some people on this list insist that top posting is bad form, rather than personal preference. The arguments seem to be balanced on either side. Checking the list's archives, I noticed that those who object to top posting

Re: [PHP] List Etiquette

2004-09-18 Thread Andre Dubuc
OK, Jason. I'm throughly confused. You say: Top posting means one cannot reply point by point like I'm doing here. then you state: Wouldn't you agree that it's easier to read something point by point whereby you can easily see the context, instead of reading a sentence at the top of the post

Re: [PHP] List Etiquette

2004-09-21 Thread Andre Dubuc
On Tuesday 21 September 2004 03:02 pm, John Nichel wrote: While the thread still lives, let me add a pet peeve of mine. People who reply to all. Just reply to the list...if you have to click reply to all to get the list address in there, fine, but take a few seconds to remove all other

[PHP] Rogue 'if - elseif' code

2009-05-22 Thread Andre Dubuc
Hi, I'm having problems with a chunk of 'rogue' code that does not perform as expected (it does not pass the expected date, but an empty value). Most of the time, it works - so I'm wondering whether it might be a browser issue. (The latest failure occurred with Firfeox 3.0 browser on an NT 5.1

Re: [PHP] Fatal error on functions valid for PHP 4, 5

2009-10-09 Thread Andre Dubuc
Hi Jonathon, I'm using Mandriva 2008.0 x86_64 version (which probably didn't have that enabled).. Thanks -- will check. Be fun trying to enable it though, given Mandriva's propensity to stick stuff in weird places. Sigh . . . Andre On October 9, 2009 09:20:29 am Jonathan Tapicer wrote:

[PHP] Need unrounded precision

2009-10-11 Thread Andre Dubuc
Hi, I need to extract the first digit after the decimal point from a number such as 28.56018, which should be '5'. I've tried a few methods to accomplish this. If I use 'ini_set' I would need to know the number of digits before the decimal (which, unfortunately, I would not have access to).

Re: [PHP] Need unrounded precision [RESOLVED]

2009-10-11 Thread Andre Dubuc
On October 11, 2009 08:50:11 pm Eddie Drapkin wrote: On Fri, Jan 1, 2010 at 9:20 PM, Andre Dubuc aajdu...@webhart.net wrote: Hi, I need to extract the first digit after the decimal point from a number such as 28.56018, which should be '5'. I've tried a few methods to accomplish this. If I

Re: [PHP] Need unrounded precision

2009-10-11 Thread Andre Dubuc
Yup! I had noticed that I had forgot to reset to today's date after working on the code, just after I sent the messages. Thanks. Andre On October 11, 2009 09:14:56 pm Jim Lucas wrote: Andre Dubuc wrote: Hi, I need to extract the first digit after the decimal point from a number

<    1   2   3