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
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'
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
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
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
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
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
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.
..
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
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
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
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
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
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
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']
^
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
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:
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
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
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
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
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
?php
function logic($logic, find_some) {
if($TopPosting === evil)($email['JayBlanchard'] == TopPosted) {
switch ($logic) :
case None :
print You've just TopPosted;
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
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
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
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
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:
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).
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
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
201 - 231 of 231 matches
Mail list logo