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 d

Re: [PHP] Need unrounded precision [RESOLVED]

2009-10-11 Thread Andre Dubuc
k reply! Andre On October 11, 2009 08:50:11 pm Eddie Drapkin wrote: > On Fri, Jan 1, 2010 at 9:20 PM, Andre Dubuc wrote: > > Hi, > > > > I need to extract the first digit after the decimal point from a number > > such as 28.56018, which should be '5'. >

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

[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] PHP Warning: session_destroy

2007-01-20 Thread Andre Dubuc
On Saturday 20 January 2007 05:33 pm, Paul Novitski wrote: > At 1/20/2007 02:14 PM, Andre Dubuc wrote: > >However, checking the live version, I get an secure-error_log entry: > > > >"PHP Warning: session_destroy() [ >href='function.session-destroy'>funct

[PHP] PHP Warning: session_destroy

2007-01-20 Thread Andre Dubuc
Hi, To stop bots from accessing secured pages, I've added the following code to a banner page that is called by every page. Furthermore, each page starts with and includes the banner page: 'top1.php' [banner page] http://localhost/logout.php";); } } ?> I'm testing on

Re: [PHP] Re: Need tool to graphically show all includes/requires

2007-01-20 Thread Andre Dubuc
On Saturday 20 January 2007 07:35 am, Colin Guthrie wrote: > Daevid Vincent wrote: > > We have a fairly complex product that is all PHP based GUI. > > > > We're in need of some kind of "graphical tool" (web, stand alone, windows, > > linux, osx whatever) that will take a directory tree, recursivel

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread Andre Dubuc
On Thursday 18 January 2007 06:26 pm, esteban wrote: > I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session > variables to validate users, each page have something like this: > > if($_SESSION["validated"]==0){ > header("Location: index.php"); > exit; > } > > This worked fi

Re: [PHP] Getting domain out of a URL {SOLVED]

2007-01-17 Thread Andre Dubuc
On Wednesday 17 January 2007 06:16 pm, Jay Blanchard wrote: > [snip] > Why not use explode with the period (.) as the delimiter? > > $url = ranchy.stuff.com and other junk"; > $boom = explode(".", $url); > print_r($boom); > > $boom is now an array containing 'ranchy', 'stuff', 'com and other junk'

Re: [PHP] Getting domain out of a URL

2007-01-17 Thread Andre Dubuc
On Wednesday 17 January 2007 03:35 pm, Jay Blanchard wrote: > [snip] > I receive posts from an open moderated forum that need to be filtered > for > urls. I've successfully managed to trap any entires that use 'http://' > 'www.' > with the standard '.com' '.org', '.net' endings. > > What I need to

[PHP] Getting domain out of a URL

2007-01-17 Thread Andre Dubuc
Hi, I receive posts from an open moderated forum that need to be filtered for urls. I've successfully managed to trap any entires that use 'http://' 'www.' with the standard '.com' '.org', '.net' endings. What I need to do is to strip the prefix part ('http:// or http://www. or 'www') and suff

Re: [PHP] 'Require' and 'Select' lists

2005-05-14 Thread Andre Dubuc
On Saturday 14 May 2005 02:14 am, you wrote: > On Fri, May 13, 2005 5:59 am, Andre Dubuc said: > > However, the behavior continues intermittently. I've duplicated it one > > time. > > If I click on the 'State' dropdown list, allow the mouse to scan through &

Re: [PHP] 'Require' and 'Select' lists

2005-05-13 Thread Andre Dubuc
> which version behavior you are targeting. > > So, is the first line of your web page something like: > "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd";> > > On May 13, 2005, at 8:59 AM, Andre Dubuc wrote: > > Thanks for the info, Richard. > &g

Re: [PHP] 'Require' and 'Select' lists

2005-05-13 Thread Andre Dubuc
On Friday 13 May 2005 02:20 am, Richard Lynch wrote: > On Thu, May 12, 2005 8:41 pm, Andre Dubuc said: > > I've had some rather odd intermittent behavior with a select list drawn > > by a > > 'require' on my production site. Sometimes, rather than displaying

[PHP] 'Require' and 'Select' lists

2005-05-12 Thread Andre Dubuc
Hi, I've had some rather odd intermittent behavior with a select list drawn by a 'require' on my production site. Sometimes, rather than displaying 'In USA/Canada' from the 'In USA/Canada' code in the required file, it will display a blank. Yet, if I try to duplicate this behavior on the devel

Re: [PHP] Newbie Help

2005-05-01 Thread Andre Dubuc
On Sunday 01 May 2005 10:39 pm, Thomas Bonham wrote: > Hello All, > > First of I'm new to this a hop I'm doing this right. > > If some one can help me with my web site page. I'm trying to make it > call a page and I get a error line 42. Error: > http://bonhamlinux.org/idex.php?page=links/index.php

Re: [PHP] Re: Templating engines

2005-04-28 Thread Andre Dubuc
On Thursday 28 April 2005 03:21 pm, Ryan A wrote: > On 4/28/2005 8:18:28 PM, Andre Dubuc ([EMAIL PROTECTED]) wrote: > > On Thursday 28 April 2005 02:05 pm, John Nichel wrote: > > > Jason Barnett wrote: > > > > > > > > > > > > > Humor is o

Re: [PHP] Re: Templating engines

2005-04-28 Thread Andre Dubuc
On Thursday 28 April 2005 02:05 pm, John Nichel wrote: > Jason Barnett wrote: > > > > Humor is on my "TODO" list. > > Making a TODO list is on my TODO list. > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > [EMAIL PROTECTED] Just out of curiosity, are there any templating engines

Re: [PHP] Access Denied-phpMyAdmin

2005-04-16 Thread Andre Dubuc
On Saturday 16 April 2005 07:18 am, Mark Sargent wrote: > Marek Kilimajer wrote: > > Mark Sargent wrote: > >> Hi All, > >> > >> I can access the database from the terminal on Fedora 3, > >> > >> [EMAIL PROTECTED] bin]# ./mysql -h localhost -u root -p > >> Enter password: > >> Welcome to the MySQL m

Re: [PHP] plug-in forum

2005-04-05 Thread Andre Dubuc
On Tuesday 05 April 2005 07:16 pm, Chris W. Parker wrote: > Andre Dubuc <mailto:[EMAIL PROTECTED]> > > on Tuesday, April 05, 2005 4:04 PM said: > > Might want to look at: > > > > http://fudforum.org > > > > hth, > > Andre > >

Re: [PHP] plug-in forum

2005-04-05 Thread Andre Dubuc
On Tuesday 05 April 2005 06:50 pm, Chris W. Parker wrote: > Ryan A > > on Tuesday, April 05, 2005 3:07 PM said: > > a client wants me to add a forum to his existing site...which is not a > > problem, the problem is he wants it to work off his existing site > > > > eg:

Re: [PHP] Simple CMS program

2005-03-30 Thread Andre Dubuc
On Wednesday 30 March 2005 08:19 pm, Josip Dzolonga wrote: > Todd Cary wrote: > > When I went to a site that lists and compares CMS programs, I was > > overwhelmed by at least 100 listings. Again, I would like to rely on > > personal experience. What I am seeking is a CMS that will provide > > us

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Andre Dubuc
On Monday 14 March 2005 06:22 pm, Chris W. Parker wrote: > Chris W. Parker <> > > on Monday, March 14, 2005 3:15 PM said: > >> Line 82 is: > >> print ' >> $row["profileID"] . ']' . "' value='true'/>\n"; > > > > Very likely the problem is not on line 82, but rather before it. Line > > 82 is just

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] 'Insulate' db connection

2005-03-06 Thread Andre Dubuc
On Sunday 06 March 2005 11:47 am, Mattias Thorslund wrote: > Since you can use fopen, I don't think open_basedir is the problem. > Read about open_basedir here: http://us3.php.net/features.safe-mode > > Maybe the path that you use in the include is wrong? > > /Mattias >

[PHP] 'Insulate' db connection

2005-03-06 Thread Andre Dubuc
Hi, I am trying to 'insulate' my database connection from prying eyes by moving the db connection code to a directory above docroot and then calling it by an include. However, my IP has an open_basedir restriction in effect that defeats what I'm trying to do. Perhaps I'm unclear what what the

Re: [PHP] function to resize images

2005-02-28 Thread Andre Dubuc
On Monday 28 February 2005 10:34 am, Bosky, Dave wrote: > Does anyone have a nice function that will resize an uploaded image to > specific width/height dimensions? > > I wanted to find something that would work for only GIF and JPG image > types. I've converted my shopping cart > > application fro

Re: SV: [PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread Andre Dubuc
On Friday 25 February 2005 04:28 pm, Wiberg wrote: > Hi there! > > A little off-topic but what the heck (it's a more MySQL - related question) > > Is 197* a numbertype field? > Try maybe $query= "SELECT * FROM my_table WHERE Year LIKE '197*'"; > > /G > @varupiraten.se > > -Ursprungligt meddelan

Re: [PHP] Word file to PDF

2005-02-25 Thread Andre Dubuc
On Friday 25 February 2005 03:08 pm, Rory Browne wrote: > > Run PHP on a windows platform that has MSWord and the PDF printing > > libraries installed. Use PHP's COM support to load an MSWord object and > > see if you can get it to load the word document and print it out as a PDF > > file. Once it

Re: [PHP] Cookies

2005-02-24 Thread Andre Dubuc
On Thursday 24 February 2005 06:34 am, Burhan Khalid wrote: > William Stokes wrote: > > Hello, > > > > If I send a session cookie to browser where it is stored in WinXP? Or is > > it stored as a separate file at all. I know that the script sends the > > cookie but I can't find it in the client comp

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread Andre Dubuc
On Sunday 20 February 2005 05:07 pm, b1nary Developement Team wrote: > Well this form *is* sending the data because there are no errors in your > code... Their has to be some minor little mistake somewhere that we > can't see in the code you gave us... look for typos, make sure the php > code *is*

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread Andre Dubuc
On Sunday 20 February 2005 12:15 pm, Dave wrote: > PHP General, > > The Situation: > I would like to be able to specify locations of scripts and files > relative to the "root" directory from which my web site is served. I > thought this was what $_SERVER['DOCUMENT_ROOT'] was for. > > Th

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

Re: [PHP] Remote Procedure Call Failed

2005-02-07 Thread Andre Dubuc
On Monday 07 February 2005 12:06 pm, Alex Gemmell wrote: > On Sun, 6 Feb 2005 19:36:23 -0500, Andre Dubuc <[EMAIL PROTECTED]> wrote: > > On Sunday 06 February 2005 07:18 pm, Alex Gemmell wrote: > > > Hello, > > > > > > I am building a login system

[PHP] Attempting to use 'passthru' or 'exec' function

2005-01-23 Thread Andre Dubuc
Hi, I'm trying to output a text file from a pdf file using an external function, pdftotext, using either PHP's 'passthru' or 'exec' functions. The following code sort of works (at least I see localhost busy doing something for about three seconds, but the expected output of 'content.txt' is

Re: [PHP] Shifting banner on re-display [SOLVED]

2004-12-24 Thread Andre Dubuc
h has a horizontal rule (a png) above it set at 100%, that the HR caused some problems. Perhaps I should toy more with the combo. Thanks for the suggestion. Regards, Andre On Saturday 13 November 2004 07:42 pm, Marek Kilimajer wrote: > What if you try: > > > > > Andre Dubuc

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Andre Dubuc
Dear Michael, I spent the better part of today trying to get a file upload script to work too. Same sort of problem: local linux works ok, but web - nope. Looking at your error message, it might be the renaming of the temp file that is barfing. if (($_FILES["pix"]["size"] > 0)&&($_FILES["pix"]

Re: [PHP] Weird sessions problem

2004-11-28 Thread Andre Dubuc
On Sunday 28 November 2004 05:46 pm, steve wrote: > Jason Wong wrote: > > On Sunday 28 November 2004 22:46, steve wrote: > >> I tried printing out the values before and after each of those lines. > >> After line 53, $ref_page is an array containing precisely the values I > >> expect, so the functio

[PHP] Odd Behaviour: DIE function

2004-11-25 Thread Andre Dubuc
I've noticed some strange behaviour with respect to validation of user input. Normally, using Linux, the die function in user input validation works as expected. However, the same code in IE, the DIE function does not work as expected. I've noticed that fields, that should die and barf an error

Re: [PHP] Shifting banner on re-display

2004-11-13 Thread Andre Dubuc
combo. Thanks for the suggestion. Regards, Andre On Saturday 13 November 2004 07:42 pm, Marek Kilimajer wrote: > What if you try: > > > > > Andre Dubuc wrote: > > Hi, > > > > I have a very annoying problem with pages that re-display using the > action

Re: [PHP] Shifting banner on re-display

2004-11-13 Thread Andre Dubuc
On Saturday 13 November 2004 05:02 pm, you wrote: > Hi, > > Sunday, November 14, 2004, 2:00:08 AM, you wrote: > AD> Hi, > > AD> I have a very annoying problem with pages that re-display using the > >. On re-display the banner, which is set absolute > position at 0px, AD> shifts down by about an inc

[PHP] Shifting banner on re-display

2004-11-13 Thread Andre Dubuc
Hi, I have a very annoying problem with pages that re-display using the . On re-display the banner, which is set absolute position at 0px, shifts down by about an inch. I've isolated the cause to the . Simplified code for bad.php page: /* html head style body tags */ Is there a workarou

Re: [PHP] Register Globals

2004-10-25 Thread Andre Dubuc
On Monday 25 October 2004 02:50 pm, Matthew Sims wrote: [snip] > > I see that register_globals is turned on. Now I always use the $_GET and > $_POST vars but will this still affect me? > [snip] Matthew, Although it shouldn't affect you, I had a terrible time trying to get anything to pass via se

Re: [PHP] Form madness maybe OT

2004-10-23 Thread Andre Dubuc
On Saturday 23 October 2004 07:11 am, you wrote: > --- Andre Dubuc <[EMAIL PROTECTED]> wrote: > > Stuart, > > > > I'm no expert, but did you flush your browser? > > > > Hth, > > Andre > > Andre, thank you for the response. I'm not sure

Re: [PHP] Form madness maybe OT

2004-10-23 Thread Andre Dubuc
Stuart, I'm no expert, but did you flush your browser? Hth, Andre On Saturday 23 October 2004 06:46 am, Stuart Felenstein wrote: > I've tried about everything and have analyzed every > bit of code but I can't seem to resolve this issue. It > might be off topic since I can't say for sure if this

Re: [PHP] Validation problem with array.

2004-10-21 Thread Andre Dubuc
Hi Stuart, I haven't followed your thread too closely, but I did see something that might be the cause of your problems: [snip] > Let me show you how I set it all up. Remember it's a > multi page form: > So the form elements are: skills[], skys[], slus[] > Then on the next page I have to still

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 ad

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

[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] mysql_connect does not connect

2004-09-17 Thread Andre Dubuc
) Andre On Friday 17 September 2004 05:08 pm, you wrote: > Did you just top post? Top posting === evil; > > -Original Message- > From: Jason Davidson [mailto:[EMAIL PROTECTED] > Sent: Friday, September 17, 2004 3:14 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] mysql_

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, Jaso

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");

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

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 desig

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

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 "{$_SERVER['REQUEST_METHOD']}"; print "{$_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] 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. >

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

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 se

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 term

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 Reset"); $_SESSION['start_time'] = time(); yet when Test2 loads, you haven't called $_SESSION[''start_time'} nor, for that matter, have you 'saved' it usin

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

Re: [PHP] Local version works - production breaks

2004-08-08 Thread Andre Dubuc
roblem which happens if you call your > cards.php file in more than 1 file.. > > "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

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

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

2004-08-07 Thread Andre Dubuc
are same 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

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

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

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.

[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] $news = "A few paragraphs"; print ""; print ""; ?> [edit-news-x] ... $_SESSION

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: Hth, Andre On Monday 12 July 2004 10:40 am, Michael Purdy wrote: > Folks > > I am a new to php. I am currently learning about session

Re: [PHP] user tracking

2004-07-06 Thread Andre Dubuc
Hi Chrsitian, If you're looking fro a web or static stats package, IMHO none better than: http://awstats.sourceforge.net/ (I've used other packages, but this is the most flexible.) Hth, Andre On Tuesday 06 July 2004 07:15 am, Christian Calloway wrote: > Hey everybody, > > I am looking for some

Re: [PHP] Header or includes for one-level up access? [SOLVED]

2004-07-02 Thread Andre Dubuc
On Friday 02 July 2004 09:16 am, Jordi Canals wrote: > Andre Dubuc wrote: > > I thought a simple re-direct page might do > > the trick. > > > > I've tried three methods: > > > > the header approach > > header("location: ../conn-up.php"

[PHP] Header or includes for one-level up access?

2004-07-02 Thread Andre Dubuc
Orginally when I designed my site, I put the db access file, conn.php, in the webarea - where all files reside. After reading a recent thread, I realize that this may not be too secure. Therefore, I would like to shove conn.php one level above the webarea. However, I don't feel like re-writng 30

Re: [PHP] Re: Sort a text string by last word before separator

2004-06-24 Thread Andre Dubuc
rted array, but couldn't manage to merge the first names. I'll try this code -- hope it works, and get back to you! Thanks again! Andre On Thursday 24 June 2004 11:21 pm, Lars Torben Wilson wrote: > Andre Dubuc wrote: > > Given a text string: > > > > $OK = "

[PHP] Sorting a large text string alphabetically

2004-06-21 Thread Andre Dubuc
I'm trying to sort alphabetically a large text string filled with first and last names separated by ", " That would seem to be a simple task, but sort($txt) does not seem to work even when $txt is an array. The code : $names){ sort($names); //line 235 reset(

Re: [PHP] http to https

2004-06-17 Thread Andre Dubuc
quot; and "https" and didn't find anything though > > > -Original Message- > From: Andre Dubuc [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 17, 2004 8:26 PM > To: Ryan Schefke > Subject: Re: [PHP] http to https > > Just a thought - is https

Re: [PHP] http to https

2004-06-17 Thread Andre Dubuc
Hi Ryan, I encountered all sorts of problems attempting to do the same (especially with AOL, Yahoo, etc click-throughs). I finally resolved the problem by calling https on the page itself (which is listed then as http) like so at the top (after my session_start(); of course: https://www.your_s

[PHP] Eliminating all lowercase words

2004-06-14 Thread Andre Dubuc
Hi folks! I need a function that will examine input for lowercase words. In the processing of that input, I would like to eliminate them (so as to keep all uppercase words). I prototyped a reasonable function using the 'Find: using regex feature' in KWrite, so it works there. $search "(([^\b

Re: [PHP] Limiting repetitive file access

2003-11-16 Thread Andre Dubuc
On Sunday 16 November 2003 10:45 pm, David Otton wrote: > On Sat, 15 Nov 2003 23:52:31 -0500, you wrote: > >Recently, a 'user' attempted to access a restricted area of my site > >repetitively (spanning five hours) entering the same url repetitively > >[probably by script]. A massive log file was ge

Re: [PHP] Sessions and AOL?

2003-11-16 Thread Andre Dubuc
On Sunday 16 November 2003 01:54 pm, R. Van Tassel wrote: > Hi everyone. I have a problem with a website that I don't understand. It > seems that people using AOL can't see certain sections of this website. > > It is a directory section where a drop-down menu exists, you select the > section you wa

Re: [PHP] Re: Limiting repetitive file access

2003-11-16 Thread Andre Dubuc
On Sunday 16 November 2003 06:40 am, Manuel Lemos wrote: > Hello, > > On 11/16/2003 02:52 AM, Andre Dubuc wrote: > > Recently, a 'user' attempted to access a restricted area of my site > > repetitively (spanning five hours) entering the same url repetitively >

[PHP] Limiting repetitive file access

2003-11-15 Thread Andre Dubuc
Hi, Recently, a 'user' attempted to access a restricted area of my site repetitively (spanning five hours) entering the same url repetitively [probably by script]. A massive log file was generated. I would like to ban such behavior by limiting the number of successive 'get's a user can do (say

Re: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread Andre Dubuc
Hi, I made a little function that will allow allow "alphabetical character with apostrophe then more alphabetical characters then hyphen then more alphabetical characters (D'Agostino-Wong)". The downside is that it will automatically cap "von Hollander-Smith" function ucase_words($txt){

Re: [PHP] Re: Eliminating space between HR and Image

2003-03-19 Thread Andre Dubuc
;!-- > ### hr { > ### position: absolute; > ### top: 0px; > ### } > ### img { > ### position: absolute; > ### top: 8px; > ### } > ### --> > ### > ### > ### grace > ### michiel > ### > ### > ### "Andre Dubuc" <[EMAIL PROTECTED]&

Re: [PHP] Re: Eliminating space between HR and Image

2003-03-19 Thread Andre Dubuc
; should solve the problem > > like: > > <!-- > hr { > position: absolute; > top: 0px; > } > img { > position: absolute; > top: 8px; > } > --> > > > grace > michiel > > > "Andre Dubuc" <[EMAIL PROTECTED]> wrot

[PHP] Eliminating space between HR and Image

2003-03-19 Thread Andre Dubuc
Hi, I've added an animated gif in the banner area of my site, and just above it, a horizontal rule to give added emphasis. The problem is, no matter what I do, I cannot get rid of an extra space that appears between the two. Is this a natural function? Is there some way of eliminating the space

Re: [PHP] strange behaviour with login page

2003-03-09 Thread Andre Dubuc
Hi Steve, Just out of curiosity, when you mention "implement a user authentication process where users can click on an external link to my site" are you using the https protocol? I had similar bizarre behavior with IE using a "Confirmation Required' script. Worked great at home (localhost), wi

Re: [PHP] Tryng To Prevent Caching on IE 5-6.0

2003-03-08 Thread Andre Dubuc
Hi Kurst, I don't know whether what I'm about to pass on will be of any help, or close to solving your problem, but perhaps the idea might lead you somewhere. I was faced with a problem: As my index page loaded, I had to test to see whether 'cookies' were enabled, without resorting to javascrip

[PHP] Printing an image - insights needed!

2003-02-10 Thread Andre Dubuc
Hi, I have a very annoying little problem that someone might have an insight as to its cause. The opening page on my site has two small jpeg pixs (3.9KB) that display properly for any user. I have another page, with exactly the same code, and same jpeg pixs that displays properly as well. ";

Re: [PHP] IE 'Back' Button problem + SELECT dropdowns

2003-01-27 Thread Andre Dubuc
Thanks John, I sort of thought that it should work. Will do as you suggest. Regards, Andre On Monday 27 January 2003 12:28 pm, John W. Holmes wrote: > > I tried to pick up the values from $_POST (as above). In Linux, it > > works: > > (i.e. I can pick them up, display them, and manipulate them

Re: [PHP] IE 'Back' Button problem + SELECT dropdowns

2003-01-27 Thread Andre Dubuc
On Monday 27 January 2003 11:46 am, 1LT John W. Holmes wrote: > > I've managed to get Windows IE to pick up on most of my $_SESSION > > variables > > > once a user clicks the 'Back' button using the following code in the base > > form: > > > > 'value= > ?>' > > > > However, when I try this approach

[PHP] IE 'Back' Button problem + SELECT dropdowns

2003-01-27 Thread Andre Dubuc
Hi, I've managed to get Windows IE to pick up on most of my $_SESSION variables once a user clicks the 'Back' button using the following code in the base form: 'value=' However, when I try this approach for a muliple SELECT dropdown box that is loaded by a 'require' statement, it doesn't pass

Re: [PHP] SELECT with WHILE NOT

2003-01-25 Thread Andre Dubuc
or NOT IN ('{$_SESSION['sid']}') ORDER by > rsname,rfname,rcountry,rcity DESC LIMIT 20 > > -Original Message- > From: Andre Dubuc [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 26 January 2003 11:28 AM > To: [EMAIL PROTECTED] > Subject: [PHP] SELECT with W

[PHP] SELECT with WHILE NOT

2003-01-25 Thread Andre Dubuc
Hi, Using PostgreSql 7.2 + PHP I am trying to do a SELECT that will choose all records except ones that have a certain id number. I can't seem to get the syntax to work. Here's the code: "SELECT * FROM rap WHERE NOT rsponsor = '{$_SESSION['sid']}' ORDER by rsname,rfname,rcountry,rcity DESC

Re: [PHP] Updating int4 field with multiple values

2002-12-06 Thread Andre Dubuc
de-ja vu (P) Pronunciation Key (du hhh) n . Foreign 1. Something unpleasantly familiar 2. 'Been-there-done-that' Don't you love it when you've set a field to a certain type, only to find out much later, after much coding, it's wrong? Thanks for the reminder. Guess it's back to

Re: [PHP] Updating int4 field with multiple values

2002-12-06 Thread Andre Dubuc
h glitches. An On Friday 06 December 2002 01:39 pm, you wrote: > On Saturday 07 December 2002 00:56, Andre Dubuc wrote: > > I would like to update an int4 column with new values appended to the end > > (preferably with a delimiter such as @ or a comma). > > > > With Po

[PHP] Updating int4 field with multiple values

2002-12-06 Thread Andre Dubuc
I would like to update an int4 column with new values appended to the end (preferably with a delimiter such as @ or a comma). With PostgreSQl 7.2, I can't seem to add the number with a delimiter (it gives me a parser error at the delimiter). For example, If I update the field 'radd' that alrea

Re: [PHP] Problem uploading files other than text/plain ones

2002-12-02 Thread Andre Dubuc
Hi Wilmar, Check whether you have something similar: You'll definetly need that for antything other than text/plain ones.. Here's a some code that works for me (uploading jpgs): if ($_FILES["pix"]["size"] > 0){ if ($_FILES["pix"]["type"] == "image/jpeg"){ $pix_file = $

  1   2   3   >