RE: [PHP] Sessions and headers

2003-06-05 Thread Ed Gorski
Try including "session_cache_limiter('public');" before your session_start(); call at the top of the page. ed -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:40 AM To: Ed Gorski; 'CPT John W. Holmes'; &

RE: [PHP] Sessions and headers

2003-06-05 Thread Ed Gorski
Are you downloading these files over HTTPS://? Ed -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:24 AM To: CPT John W. Holmes; PHP General Subject: Re: [PHP] Sessions and headers > What errors, exactly? Can you show some examples? The

RE: [PHP] Sessions and headers

2003-06-05 Thread Ed Gorski
Well you are partly right Chris. But the client automatically sends the cookie with the HTTP request. IE your request for a cookie doesn't send a separate request header to the client. You might want to check to see if you are accidentally outputting something else after you call session_start()

RE: [PHP] Registered sessions.

2003-06-04 Thread Ed Gorski
You need to append the session name and id to the header location everytime you redirect that way. So your header redirect should read: header('Location: researchpapers2.php?'.session_name().'='.session_id()); When you have normal links to other pages you don't have to do this but on header redi

RE: [PHP] problems?

2003-06-04 Thread Ed Gorski
Couple of clarifications Dale: Is this an internal intranet server? Can it be? Do you have admin rights to the server? What's OS and Server are you running? ~Ed -Original Message- From: Dale [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:21 PM To: [EMAIL PROTECTED] Subject: [

RE: [PHP] php session not persisting

2003-06-03 Thread Ed Gorski
Do you have cookies enabled on your browser? If not then you will need to make sure that you compile or change your php.ini to reflect that (ie with trans-sid). ed -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 3:42 AM To: [EMAIL PROTECTED] Su

[PHP] Checking Client's Cipher Strength with IIS

2003-05-29 Thread Ed Gorski
Hello, I have a question who's answer has been bugging me for a while. What I need to do is write a script that detects if a browser is using 128-bit encryption when connecting to our website. While this is easy for most (I have the script working for them), a real problem for me has come up wi

Re: [PHP] Posting to a form - When user hits BACK button all the data is gone

2002-05-30 Thread Ed Gorski
The posted data on which page? The one submitted to? ed At 02:43 PM 5/30/2002 -0400, Phil Schwarzmann wrote: >When a user is posting data to a form and hits SUBMIT the user is taken >to another page. But when the user hits the BACK button on his browser, >all the posted data is gone. > >How ca

Re: [PHP] Hi all & Help :D

2002-05-30 Thread Ed Gorski
hehI laugh but it's not past the realm of what people do... JH>For all we know, the problem is because you actually wrote the program in Pascal, but thought it was PHP because you renamed your computer to PHP and you are trying to load the code up in MS Word on Windows 3.11. ed At 02:47 P

Re: [PHP] I want a script to run after a page already loads.

2002-05-30 Thread Ed Gorski
well what does the script do? Is it integral to the page? ed At 02:42 PM 5/30/2002 -0400, Phil Schwarzmann wrote: >I have a script that takes a VERY long time to run. So the page just >kinda hangs for a minute if not longer before the script is complete. > >I want a page to fully load, then I

RE: [PHP] fdup & Pipes?

2002-05-30 Thread Ed Gorski
Yeah that's like me going to the bigwigs and asking if we can dump the windows servers.I At 11:00 AM 5/30/2002 -0400, Leotta, Natalie (NCI/IMS) wrote: >Like we have much of a choice - I'm sure my bosses would love it if I went >to them and asked for a "real" email client. > >-Original Me

Re: [PHP] RE:[PHP] Help with mail

2002-05-30 Thread Ed Gorski
You know why he barks? Tell me! At 08:06 PM 5/30/2002 -0700, r wrote: >What is this? magicians day? >I have a dog, can you tell me why he barks sometimes? > >Show us some code dude, or is it "code red" classified? >There could be a dozen possible reasons but if you show the code you stand a >

Re: [PHP] arrays and same index

2002-05-30 Thread Ed Gorski
Well what exactly are you trying to do? You can't name an index of an array the same thing and expect different values ed At 03:36 PM 5/30/2002 +0200, Victor SpÄng Arthursson wrote: >Hi! > >I want to create an array that looks like follows: > >$array["untitled_1.jpg"][] = 0 >$array["untitl

Re: [PHP] your philosophy on php-design

2002-05-30 Thread Ed Gorski
well just have the "add to basket" link on index.php call add_to_basket.php which doesn't print out anything and redirect back to index.php?type=itemAdded when finished. On index.php you can check for $_GET['type'] and generate the appropriate table. ed At 09:50 AM 5/30/2002 +0200, Wilbert E

Re: [PHP] Variable Variables

2002-05-30 Thread Ed Gorski
use isset($$key); ed At 09:29 AM 5/30/2002 +1000, David Freeman wrote: >Hi All, > >I've been trying to figure this out based on stuff on php.net but can't >seem to get a result I need. > >I have an array: > >$formarray = array ("form1" => "var1", "form2" => "var2"); > >And now I'm using that arr

Re: [PHP] Global variables

2002-05-30 Thread Ed Gorski
use a database ed At 04:35 PM 5/29/2002 +0300, serge gedeon wrote: >Dear sir, > >I would like to know if I could create using PHP, global variables that I >could use in diferrent files. I don't want to use http_get_vars or post or >cookies is there an other way? > >Thank you. >Serge GEDEON

RE: [PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread Ed Gorski
You need to put line 6 ahead of all the HTML, ie make it line 0. ed At 04:10 AM 5/30/2002 -0700, Anton Heryato wrote: >this script below is delete.inc >and the lagi.php is .. >1::PHp >2: >3:hahahahha >4:5:require 'delete.inc'; >6:deleteCookies(); >7:printf("can do it`"); >8: >9:?> >10: >11: > >s

Re: [PHP] ******************* Secure product download *******************

2002-05-29 Thread Ed Gorski
ugh a software pay site written in php.it makes me feel dirty... At 04:56 PM 5/29/2002 -0400, 1LT John W. Holmes wrote: >session_start(); >if(!isset($_SESSION["did_pay"])) >{ header("Location: http://www.example.com/pay_first.php";); } >//show download code > >Obviously you set $_SESSION[

Re: [PHP] Why is there no OPTION EXPLICIT equivalent?

2002-05-29 Thread Ed Gorski
Go to your php.ini and turn on full error reporting.you'll get warning message if you do not initialize varsas of php4.2.1 ed At 08:11 PM 5/29/2002 +0100, Andy Arbon wrote: >Hello, > >In general I find PHP great to work with, but the number one thing that >causes bugs for me is the fac

Re: [PHP] determining where the computer is that posts to a db

2002-05-29 Thread Ed Gorski
Getting the mac address of a machine would be a BIG security holeso I really doubt there is. ed At 10:58 AM 5/29/2002 -0700, Tom Beidler wrote: >I have a time billing application and I need to determine where people are >logging in from to make sure they are signing in at work and not at ho

RE: [PHP] mail() function

2002-05-29 Thread Ed Gorski
you mean return str_replace('ignorance','knowledge'); At 04:34 PM 5/29/2002 +0100, James Holden wrote: >knowledge > >-Original Message- >From: Ed Gorski [mailto:[EMAIL PROTECTED]] >Sent: 29 May 2002 16:26 >To: r; [EMAIL PROTECTED] >Subject: Re

Re: [PHP] mail() function

2002-05-29 Thread Ed Gorski
lol.what does that return? At 09:08 PM 5/29/2002 -0700, r wrote: >That may and may not work, I would suggest you add the RTFM() function, then >it WILL work. >Cheers, >-Ryan >- Original Message - >From: "Phil Schwarzmann" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday,

RE: [PHP] Advantages of php

2002-05-29 Thread Ed Gorski
Maybe he's still mulling over the "Hello World" solution 3. htmlspecialchars() is a very nice function as welland you can't beat the regular expression functions for validating data ed At 08:41 AM 5/29/2002 -0500, Jay Blanchard wrote: >[snip] >Hmm...point number 1 would be time managem

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Ed Gorski
automatically gets generated as "PHPSESSIONID=dsfgsdgsdfgsgsdfg" if the browser does not accept cookies and is empty otherwise. I bet they are a bunch of asp developers ;-) ed At 03:39 PM 5/29/2002 +0200, Nick Wilson wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 >

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Ed Gorski
1. This is done for users that don't use cookies. Believe it or not but there are people out there that are afraid of cookies and automatically turn them off. Without appending the sessionid to the end of the URL, sessions won't work for these people. Now how does your host append to the e

Re: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Ed Gorski
Bah quit complaining, you should be using /* comments */ anyway. ed At 09:16 PM 5/29/2002 +0800, Jason Wong wrote: >On Wednesday 29 May 2002 21:10, Brinkman, Theodore wrote: > > It really should ignore anything in any sort of comment. The whole point > > of a comment is that it provides the

Re: [PHP] Avoid escaping

2002-05-29 Thread Ed Gorski
Inside php.ini there is a setting to turn "Magic Quotes" on or off.turn them off and you won't have this problem. If you don't have access to the php.ini file or your administrator will not turn them off use echo stripslashes($test); ed At 11:36 AM 5/29/2002 +0200, Jose Jeria wrote: >i h

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, sorry... )

2002-05-29 Thread Ed Gorski
Are you sure the permissions on the directory are set up correctly? The user that the db is run as (usually nobody in apache/linux) needs read and write privileges on that directory ed At 04:30 AM 5/29/2002 -0400, [EMAIL PROTECTED] wrote: >I really hope someone can help me here!! LOL!! > >I'm

Re: [PHP] PHP doubt

2002-05-29 Thread Ed Gorski
You really need to put in more of the code as it ACTUALLY appears... ed At 05:39 PM 5/29/2002 -0700, r wrote: >Hey guys, > >I have written a program and being a newbie I dont know if this is good or >will give me problems in the future, so will appreciate it if you could just >have a look at the

RE: [PHP] DNS-less Connections With PHP?

2002-05-29 Thread Ed Gorski
Yes you really need to indicate what version of php you are using, what server you are using and what db you are using if you ever need to ask for help. Go to www.php.net and read up on: SQL SERVER mssql_connect() MYSQL mysql_connect() MOST obdc_connect() ORACLE ora_plogon() ed At 06:45 A

RE: [PHP] PHP new super globals or something else??

2002-05-29 Thread Ed Gorski
Well you should be using $_GET, $_POST and $_SESSION and turn register-globlals off as of PHP 4.2.1.I think you need to keep track-vars on for these arrays to be initialized. ed At 10:48 AM 5/29/2002 +1000, Martin Towell wrote: >code snippets would be good, if possible > >-Original

Re: [PHP] .php extension

2002-05-29 Thread Ed Gorski
Yeah one of the simple tricks to mask that you use php is to make the extention that the PHP Parser looks for (ie name it page.foo) or whatever and have: AddType application/x-httpd-php .foo At 07:27 PM 5/28/2002 -0500, Miguel Cruz wrote: >On Tue, 28 May 2002, Luis Miguel N. Tavora wrote: > >

Re: [PHP] Thread safe

2002-05-29 Thread Ed Gorski
Yeah but if you get a higher load of users that can get REALLY uglyif it is strictly an update (editing of an already existing element) then locking that record should be fine but if it's an insert or delete you shouldn't lock the table. ed At 07:15 PM 5/28/2002 -0500, Miguel Cruz wrote:

RE: [PHP] Intermediate "Searching..." screen.

2002-05-29 Thread Ed Gorski
Well if you just wanted to do a simple redirect like the one you describe just use meta tags in the If you use the method that Scott details (I would try to avoid that one though), create an HTML "Searching..." page with this meta tag. In the "searchPage.php" file have a redirect to anothe

RE: [PHP] comment followed by ?> fails to parse

2002-05-28 Thread Ed Gorski
gt;for us ;) > >Kirk > > > -Original Message- > > From: Ed Gorski [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, May 28, 2002 3:04 PM > > To: Kevin Stone; [EMAIL PROTECTED] > > Subject: Re: [PHP] comment followed by ?> fails to parse > > > >

Re: [PHP] comment followed by ?> fails to parse

2002-05-28 Thread Ed Gorski
EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, May 28, 2002 2:55 PM >Subject: RE: [PHP] comment followed by ?> fails to parse > > > > Which begs the question, why does PHP see a '?>' in a '//' comment line, >but > > no

Re: [PHP] comment followed by ?> fails to parse

2002-05-28 Thread Ed Gorski
you a >parse error. > >/**/ > >echo "hello"; >?> > > >- Original Message - >From: "Ed Gorski" <[EMAIL PROTECTED]> >To: "Kevin Stone" <[EMAIL PROTECTED]>; "Jonathan Rosenberg" ><[EMAIL PROTECTED]>; "

Re: [PHP] comment followed by ?> fails to parse

2002-05-28 Thread Ed Gorski
No, if you use /* ? */ as a comment the parser will skip right over it.if you want to use sample code in your script just use: /* */ that'll work fine ed At 02:48 PM 5/28/2002 -0600, Kevin Stone wrote: >I've run into this before as well. Pain in the ass when you want to put >example cod

RE: [PHP] comment followed by ?> fails to parse

2002-05-28 Thread Ed Gorski
No the parser sees the ?> after a // because it needs to see when to quit out (unlike traditional, compiled languages) but it won't have this same effect in a string literal. ed At 04:40 PM 5/28/2002 -0400, Leotta, Natalie (NCI/IMS) wrote: >But why wouldn't the parser skip right over a //

RE: [PHP] Efficient PHP

2002-05-28 Thread Ed Gorski
, 28 May 2002, SP wrote: > > Here's an article you might want to read > > http://phplens.com/lens/php-book/optimizing-debugging-php.php > > > > > > -Original Message- > > From: Ed Gorski [mailto:[EMAIL PROTECTED]] > > Sent: May 28, 2

RE: [PHP] Efficient PHP

2002-05-28 Thread Ed Gorski
o that you can avoid.. ed At 12:32 PM 5/28/2002 -0400, Scott Hurring wrote: > > -Original Message- > > From: Ed Gorski [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, May 28, 2002 9:46 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Efficient PHP > > &g

Re: [PHP] Previous Discussions

2002-05-28 Thread Ed Gorski
You want to try to stay away from storing anything so large in a DB like a file or an image (if the option exists). I am not aware of the previous discussion but if you send me a few details maybe I can offer an opinion.. ed At 07:54 AM 5/28/2002 -0600, Dan Vande More wrote: >Is anyone aware

RE: [PHP] Efficient PHP

2002-05-28 Thread Ed Gorski
ave been addressed already... > >Richy >== >Richard Black >Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com >Tel: 0141 435 3504 >Email: [EMAIL PROTECTED] > >-Original Message- >From: Ed Gorski [mailto:[EMAIL PROTECTED]] >Sent: 28 May 2002 14:46 &g

[PHP] Efficient PHP

2002-05-28 Thread Ed Gorski
Anyone know any good links on papers/articles/reports on creating efficient PHP scripts (ie functions to stay away from, good practices, etc). As a C programmer, I am a nut on efficiency and speed and I have been trying to read up on efficient PHP coding practices (besides obvious general codi

Re: [PHP] How can I remove the last character from a one line file?

2002-05-28 Thread Ed Gorski
Try: $string="Jacko"; $string=substr($string,0,(strlen($string)-1)); echo $string; ed At 09:35 AM 5/28/2002 -0400, [EMAIL PROTECTED] wrote: >Hi all, > > How can I remove the last character from a one line file? > i.e. I need to change Jacko to Jack > > >I would really appreciate