[PHP] Securing areas of a web site with PHP

2003-01-01 Thread Jean-Christian Imbeault
On my web site there are some areas that I want to make accessible only after a user has logged in (for example when placing an order, etc ...) I have been able to achieve this however I have the following problem: 1- user logs in 2- user goes to restricted area 3- user views pages, orders an

[PHP] Need Help.

2003-01-01 Thread thkiat
Hi, I'm a newbie for PHP. Just installed IIS PHP on my PC. A test run gave me this:- Warning: main(quote.php) [function.main]: failed to create stream: No such file or directory in C:\Documents and Settings\aaa\My Documents\My Webs\excelpoint.org\index.php on line 139 Warning: main()

[PHP] error on include_path=(''c:\php4\pear)

2003-01-01 Thread anand
hi friends i find some problem in installing this script it gives me same error in both IIS and apache server it is like below Fatal error: Failed opening required '/home/phpshop/etc/phpshop.cfg' (include_path=''c:\php4\pear) in c:\nusphere\apache\nsdocs\phpshop\bin\index.php on line 19 and in

[PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Tularis
Jean-Christian Imbeault wrote: 1- user logs in 2- user goes to restricted area 3- user views pages, orders an item, changes his account settings, etc ... 4- user logs out 5- user is sent to log out page 6- user hits back button ... And here my problems start ... even though the user has logged

[PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jean-Christian Imbeault
Tularis wrote: I adives to make sure the browser doesn't cache it *at all*. This can be done using (one, or more) of the following headers: // HTTP 1.1 compliant: header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); // HTTP 1.0

Re: [PHP] Re: loading a db table into a php array from mysql

2003-01-01 Thread David T-G
Rick, et al -- ...and then Rick Widmer said... % % At 02:57 PM 12/31/02 -0500, David T-G wrote: % ...and then Tularis said... % % % % Usually, % % using mysql to handle your tables is *way* faster than letting php % % handle it. % % Yes, do as much as you can in the database. The people who

RE: [PHP] makeing an array

2003-01-01 Thread Sean Malloy
why the $x variable aswell?! for ($i = 0; $i count($comment); $i++) { echo $comment[$i].'br /'; } or even faster: $i = count($comment); while ($i--) { echo $comment[$i].'br /'; } -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Re: [PHP] makeing an array

2003-01-01 Thread Timothy Hitchens \(HiTCHO\)
Your example of: for ($i = 0; $i count($comment); $i++) Is very bad as the count will be parsed each loop. The count as I had it gets parsed only once. Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] HiTCHO | Open Platform Web Development Consulting - Outsourcing - Training - Support -

RE: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL

2003-01-01 Thread @ Nilaab
Jason, thanks, but see if you can you read the initial question and try to answer that one for me. You are a great help with resources when I need them. Your help is always appreciated. The origial clip is as follows (concentrate on the ending question): Hello Everyone, I want to DELETE

Re: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHPand MySQL

2003-01-01 Thread Thomas Seifert
there is no need to close and open the connection for every query. just run the mysql_query again and again and again on the open connection. Still Stephen's quote is true, you can't run more than one query by one call to mysql_query. Thomas On Tue, 31 Dec 2002 16:30:38 -0600 [EMAIL PROTECTED]

[PHP] Windows XP

2003-01-01 Thread Stephen
Ok, this is very off topic but this is strange. I woke up this morning and turned on my computer like always, only today to find my normal Windows XP theme to be changed to the classic style and the normal style is gone, I can't change it back. Any ideas why and how to fix it maybe? Oh,

[PHP] call_user_method_array

2003-01-01 Thread Boget, Chris
How does this function really work? I've been beating my head against the wall for the last 8 hours trying to figure it out. This is what I'm trying and it isn't working: {this is a very simplified version} class MyClass { function myFunc( $stringVar, $arrayVar ) { echo $stringVarbr\n;

Re: [PHP] Securing areas of a web site with PHP

2003-01-01 Thread Michael J. Pawlowsky
It's not a PHP thing but a browser thing. Basically you need to expire a page as soon as the browser has loaded it. This can be done using the meta key expires. meta http-equiv=Expires content=expiration date As in META HTTP-EQUIV=Expires CONTENT=Mon, 01 Jan 1996 01:01:01 GMT If you are

Re: [PHP] Windows XP

2003-01-01 Thread Mat Harris
Stephen wrote: Ok, this is very off topic but this is strange. I woke up this morning and turned on my computer like always, only today to find my normal Windows XP theme to be changed to the classic style and the normal style is gone, I can't change it back. Any ideas why and how to fix it

[PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread michael kimsal
Jean-Christian Imbeault wrote: I'll try this out and see what I get. Though I have read that not all browsers follow cache-control directives ... Exactly - and some don't follow other HTTP header directives to the letter either. You will not be able to 'secure' this stuff 100% simply

Re: [PHP] call_user_method_array

2003-01-01 Thread Marco Tabini
Chris-- On my system, the function works as expected (at least as I understand it): myFunc receives the parameters Hello! and array(this=that), which is what you pass to it in the first place. Were you expecting it to expand $myArrayVar into individual parameters? If so, that's not how it

RE: [PHP] call_user_method_array

2003-01-01 Thread Boget, Chris
On my system, the function works as expected (at least as I understand it): myFunc receives the parameters Hello! and array(this=that), which is what you pass to it in the first place. See, that's not what I'm getting... :| Were you expecting it to expand $myArrayVar into individual

Re: [PHP] Need Help.

2003-01-01 Thread Jason Sheets
Your include path is not setup so that the web server can find the file you are trying to include, if the file is in a sub directory make sure you are properly including it include_once('include/main.php') not just include_once('main.php'). And make sure the file you are trying to include exists

[PHP] error when conecting to mysql

2003-01-01 Thread Paul Roberts
Hi my server started reporting an error when connecting to mysql Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /path/to/web//login.php on line 35 it's happened a few times now and I'm wondering if it's me or a problem on the server (shared,

Re: [PHP] error when conecting to mysql

2003-01-01 Thread Michael J. Pawlowsky
Sound like your ISP is at fault. MySql is not acceptind any more connection perhaps. Mike *** REPLY SEPARATOR *** On 01/01/2003 at 4:28 PM Paul Roberts wrote: Hi my server started reporting an error when connecting to mysql Warning: Can't connect to local MySQL server

Re: [PHP] Php 4.3.0 and Mail() function

2003-01-01 Thread Carl Bélanger
Exactly!! checking for sendmail... no I've browsed the configure's help and I can't find an option to specify the path to sendmail (which is not at a regular place as we run qmail). Is the a --with-sendmail-path option or something like that? Thanks a lot! Carl Rick Widmer wrote: At 10:11

php-general Digest 1 Jan 2003 17:26:29 -0000 Issue 1797

2003-01-01 Thread php-general-digest-help
php-general Digest 1 Jan 2003 17:26:29 - Issue 1797 Topics (messages 129824 through 129854): Re: makeing an array 129824 by: Timothy Hitchens \(HiTCHO\) 129826 by: Philip J. Newman 129827 by: Timothy Hitchens \(HiTCHO\) 129840 by: Sean Malloy 129841

Re: [PHP] Php 4.3.0 and Mail() function

2003-01-01 Thread Jason Wong
On Thursday 02 January 2003 01:26, Carl Bélanger wrote: Exactly!! checking for sendmail... no I've browsed the configure's help and I can't find an option to specify the path to sendmail (which is not at a regular place as we run qmail). Is the a --with-sendmail-path option or something

Re: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL

2003-01-01 Thread Jason Wong
On Wednesday 01 January 2003 20:14, [EMAIL PROTECTED] wrote: Jason, thanks, but see if you can you read the initial question and try to answer that one for me. You are a great help with resources when I need them. Your help is always appreciated. The origial clip is as follows (concentrate on

[PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread David Tandberg-Johansen
[CUT] I am using SESSION on al my secure projects I use a file structur as this: (loginform) - logincheck.php (if not ok-back2login | if ok (start an session)(forward to the secure pages)) When the user logs out: (securepages)-logout.php: ?PHP //go through all the session array an unregister the

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jason Wong
On Wednesday 01 January 2003 19:24, Jean-Christian Imbeault wrote: Tularis wrote: I adives to make sure the browser doesn't cache it *at all*. This can be done using (one, or more) of the following headers: // HTTP 1.1 compliant: header(Cache-Control: no-store, no-cache,

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jason Wong
On Thursday 02 January 2003 01:56, David Tandberg-Johansen wrote: [CUT] I am using SESSION on al my secure projects I use a file structur as this: (loginform) - logincheck.php (if not ok-back2login | if ok (start an session)(forward to the secure pages)) When the user logs out:

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jason Sheets
Instead of doing a foreach to unset your session variables you can use session_unset(); which will unset all your session variables for you. Additionally if you are wanting to remove a cookie from a visitor's browser you should use setcookie, not unset $_COOKIE, $_COOKIE allows you to access the

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread David Tandberg-Johansen
I have tested this with all kind of browsers on WIndows, and to make a clean cut I had to do so.. Jason Sheets [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Instead of doing a foreach to unset your session variables you can use session_unset(); which will

RE: [PHP] Shopping Cart Credit Card Verification

2003-01-01 Thread Jonathan Rosenberg \(Tabby's Place\)
The solution you choose for credit card verification depends on a number of things: - how much control you want over look feel - whether you are rolling your own shopping cart I happen to use Authorize.Net, which allows you to control the entire process maintain the look feel

[PHP] Bcc with mail....

2003-01-01 Thread Michael J. Pawlowsky
Has anyone successfully used BCC with mail... (on Linux with sendmail) If so are you using the header: Bcc: My Name [EMAIL PROTECTED]\r\n Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP PostgreSQL

2003-01-01 Thread Vincent Oostindie
Michael Sims wrote: o Changing database structure is harder. With PG, I usually found it easier to dump, edit, then reload the database to make changes I did in MySQL with ALTER TABLE. True, changing schema is a major PITA with Postgres. My only real complaint about it, in fact...

[PHP] Re: PHP 4.3.0 (Win32, zip) not bundled with PEAR?

2003-01-01 Thread nicos
Yes it's a bug and it will be fixed for 4.3.1 and probably CVS in few days. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. Tobias Schlitt [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi PHP-lovers! Happy new year! I

[PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Mel Lester Jr.
You might consider using cookies that keep track of the user's login name and a bitwise status to control AAA (Authentication, Authorization, and Access0 controls instead of using session variables. -mel On Wed, 1 Jan 2003, Jean-Christian Imbeault wrote: On my web site there are some areas

Re: [PHP] Bcc with mail....

2003-01-01 Thread Jason Wong
On Thursday 02 January 2003 03:01, Michael J. Pawlowsky wrote: Has anyone successfully used BCC with mail... (on Linux with sendmail) If so are you using the header: Bcc: My Name [EMAIL PROTECTED]\r\n For Bcc it would be pointless to include My Name as Bcc recipients are not displayed.

[PHP] hyperlink

2003-01-01 Thread Ezequiel Sapoznik
Hi! I have to say that I'm new in PHP and I'm very glad of being part of it. I apologize for the questions that I am gonna make, but anyone with patience will be appreciate. I have a DB with 4 rows, one is the indez, the second is an hyperlink to an image and the other 2 are texts. I made an

[PHP] Hyperlink in DB

2003-01-01 Thread Ezequiel Sapoznik
Hi! I have to say that I'm new in PHP and I'm very glad of being part of it. I apologize for the questions that I am gonna make, but anyone with patience will be appreciate. I have a DB with 4 rows, one is the indez, the second is an hyperlink to an image and the other 2 are texts. I made an

[PHP] accelerator and Apache 2

2003-01-01 Thread Jochen Kaechelin
Is there a free php accelerator out there which runs under Apache 2? -- Jochen Kaechelin [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: hyperlink

2003-01-01 Thread Ezequiel Sapoznik
Sorry!! This message was duplicated! Ezequiel Ezequiel Sapoznik [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! I have to say that I'm new in PHP and I'm very glad of being part of it. I apologize for the questions that I am gonna make, but anyone

Re: [PHP] hyperlink

2003-01-01 Thread Joe LoMoglio
On Wednesday, January 1, 2003, at 02:06 PM, Ezequiel Sapoznik wrote: print($row[banner_nombre] .br\n); Try this: print a href=\ . $row[banner_nombre] . \; print ($row[banner_nombre] .br\n); print /a; Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] accelerator and Apache 2

2003-01-01 Thread Timothy Hitchens \(HiTCHO\)
Acceleration in what sense .. caching or memory kept precompiled code?? Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] HiTCHO | Open Platform Web Development Consulting - Outsourcing - Training - Support - Original Message - From: Jochen Kaechelin [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] hyperlink

2003-01-01 Thread Ezequiel Sapoznik
Thanks for your help! I try, but if you check at http://www.historiadelpais.com.ar/test.php, you can see that I still have the link but what I need is that the php shows the jpg image. Thanks! Ezequiel Joe Lomoglio [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] hyperlink

2003-01-01 Thread Joe LoMoglio
Ok, now I see what you are trying to do. try this instead: print img src=\ . $row[banner_nombre] . \; You can get rid of the [ print a href=\ . $row[banner_nombre] . \; ] and the [ print /a; ] code. This will display the image. I misunderstood before and thought you wanted the link to

[PHP] How to get folders names in a dir

2003-01-01 Thread Alexander Guevara
i need to get in a select box all the dirs inside a folder.. how can i do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Justin French
A lot has been said on the issue already, so I'll attempt to keep mine brief. Cache control will help a little, but not all browsers support it. Yes, it will cause a little more traffic on your site, and yes it will help keep some people from clicking back, but it certainly won't FIX anything.

Re: [PHP] How to get folders names in a dir

2003-01-01 Thread John Nichel
http://www.php.net/manual/en/ref.dir.php http://www.php.net/manual/en/function.is-dir.php Alexander Guevara wrote: i need to get in a select box all the dirs inside a folder.. how can i do that? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List

[PHP] Using mail() for mailist list app

2003-01-01 Thread Monty
Happy New Year everyone! Is the PHP mail() command robust enough to use in a little mailing list app? The app will basically send an HTML or Text e-mail to the member database of about 6,000 people. I'm using RedHat Linux 7.2 with PHP 4.2.2, by the way. I'm concerned I'll bog down my server if I

Re: [PHP] How to get folders names in a dir

2003-01-01 Thread Justin French
on 02/01/03 9:36 AM, Alexander Guevara ([EMAIL PROTECTED]) wrote: i need to get in a select box all the dirs inside a folder.. how can i do that? Give this a whirl. Please note, this code is very much slapped together... it works, and i've tested it, but there's nearly ZERO error checking.

Re: [PHP] Bcc with mail....

2003-01-01 Thread Michael J. Pawlowsky
Well something weird is going on here. Both my dev and prod machines are PHP 4.2.2 They might have some differences since they are not distributed from the same people. One RH8 the other is a network applicace called an InstaRak. At home on RH8 everything was fine... on the appliance I needed

Re: [PHP] Using mail() for mailist list app

2003-01-01 Thread Justin French
Check the archives... mail() tends to break pretty quickly... sometimes on less than 100 personalised emails... The issue ISN'T mail() itself, but things like server timeouts, script timeouts, etc etc. The issue also isn't really HTML mail, but more the fact that each email has to be sent to the

[PHP] Session problem

2003-01-01 Thread Andrew Williams
Hi, I am new to the list so be kind. I have been messing with PHP 4 on a windows 2000 machine using apache and am having trouble getting sessions to run. Even in their basic form, everything I have read is very involved and all I am trying to do is the basics but it doesn't work. Can any

Re: [PHP] How to get folders names in a dir

2003-01-01 Thread Alexander Guevara
THX John Nichel [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://www.php.net/manual/en/ref.dir.php http://www.php.net/manual/en/function.is-dir.php Alexander Guevara wrote: i need to get in a select box all the dirs inside a folder.. how can i do

Re: [PHP] Session problem

2003-01-01 Thread Justin French
on 02/01/03 9:46 AM, Andrew Williams ([EMAIL PROTECTED]) wrote: I have been messing with PHP 4 on a windows 2000 machine using apache and am having trouble getting sessions to run. I'm going to assume PHP 4.1 I'm also going to assume you're allowing cookies on your browser???

Re: [PHP] Using mail() for mailist list app

2003-01-01 Thread Michael J. Pawlowsky
Personally I simply get the e-mail addresses spit out to me from the database and then I input them into a application made just for bulk mailingt. You can also easily write a quick perl or shell script to send it out from a file of names and this way you can nice the process so as not to bog

[PHP] NFS session file issue?

2003-01-01 Thread Matt Sturtz
Hello-- We run several web servers (PHP 4.2.2, Apache 1.3.27 on RedHat 6.2/i386) behind a load balancer... All the servers have their session.save_path set to an NFS-mounted directory. It seems that session files are removed by the GC 1 hour (session.gc_maxlifetime = 3600) after being created,

Re: [PHP] Php 4.3.0 and Mail() function

2003-01-01 Thread Rick Widmer
At 02:07 AM 1/2/03 +0800, Jason Wong wrote: On Thursday 02 January 2003 01:26, Carl Bélanger wrote: Exactly!! checking for sendmail... no I've browsed the configure's help and I can't find an option to specify the path to sendmail (which is not at a regular place as we run qmail). Is the

[PHP] Session Problem

2003-01-01 Thread Andrew Williams
Hi, Justin has made some suggestions below. But it still doesn't work, I have noticed that in the c:/temp directory session files have been created. Does anyone have any other suggestions as to why this is not working Apache is version Apache/2.0.39 (Win32) Internet explorer

[PHP] func_get_args() and call-by-reference?

2003-01-01 Thread Atahualpa Jones
Hi, I try to do a function called unicode_enc() which takes a number of parameters that differ between calls. It should encode all parameters to unicode using utf8_encode($arglist[$i]). I am using Variable-length argument lists as described in the manual and tried to call the function this

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
You don't need to accept cookies for sessions. That's the beauty of it. PHP automatically appends ?PHPSESSID=$sessid to URLs. If you do header(Location: abc) however you will need to add the seession ID to the URL. You cannot read a session var on the same page that you set it I found. To get

[PHP] Php 4.3 fails several XSLT tests

2003-01-01 Thread Alok K. Dhir
After compiling php 4.3 configured as follows: # ./configure --with-java --with-pdflib=/usr/local --with-gd --with-ttf --enable-trans-sid --with-curl --with-openssl --enable-sysvsem --enable-sysvshm --with-zlib --with-mysql=/usr/local/mysql --with-freetype-dir=/usr --with-png-dir=/usr

Re: [PHP] Session Problem

2003-01-01 Thread Justin French
on 02/01/03 11:42 AM, Michael J. Pawlowsky ([EMAIL PROTECTED]) wrote: You don't need to accept cookies for sessions. That's the beauty of it. PHP automatically appends ?PHPSESSID=$sessid to URLs. only if you compile with trans_sid (he didn't) or if you physically add the SID to each LINK

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
eeek, that's a whole lotta code for him to learn just to try and get sessions working, don't you think?? [mega snip] Justin Most it is HTML output... But If I'm not mistaken... and I might be... but wasn't this a thread that started about securing web pages? So basically I gave him my

Re: [PHP] Session problem

2003-01-01 Thread Matt Sturtz
My php.ini file session section looks like this [snip] ; The path for which the cookie is valid. session.cookie_path = c:\tmp On our system, this is /... This is not what you think it is-- this is the WEB path the cookie is valid for... That is, on our system, the browser will send the

Re: [PHP] Session Problem

2003-01-01 Thread Justin French
on 02/01/03 11:55 AM, Michael J. Pawlowsky ([EMAIL PROTECTED]) wrote: Most it is HTML output... But If I'm not mistaken... and I might be... but wasn't this a thread that started about securing web pages? So basically I gave him my solution to it. And I didn't charge the $150/hr consulting

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
OK let me give him something simpler to start with No Cookies needed.. Just to test... Make sure you have session.name set to PHPSESSID. Look at phpinfo() output to make sure. Lets have two pages Page 1 start (page1.php)

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
Just so I know who started this thread, is he even still in this thread, or is this just amongst ourselves now. :-) Hey sorry, what do you expect on the 1st of January. Cheers, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Session Problem

2003-01-01 Thread Andrew Williams
I started it and yes I am still here and listing to your comments. Thanks Justin for keeping things simple for this simpleton. Ill try your suggestion in a little while Mike, I also at work at the moment and need to slip some of this stuff in whilst I am working. I will keep you posted as to

RE: [PHP] Session Problem

2003-01-01 Thread Andrew Williams
Mike, This the result Array ( [theSess] = This is my session ) Andrew -Original Message- From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]] Sent: Thursday, 2 January 2003 12:07 To: [EMAIL PROTECTED] Subject: Re: [PHP] Session Problem OK let me give him something simpler to

RE: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
OK so sessions are working... cool... So now you need to track down a your cookie problem. Start of by setting your browser to ask you to accept all cookies. EVEN session cookies. In IE it would be Internet Options-Privacy Tab Advanced... Prompt and override defaults... The take away the

[PHP] PayFlow Pro on OS X

2003-01-01 Thread Sam
Following the instructions on www.php.net/manual/en/ref.pfpro.php: Copy the header file pfpro.h to /usr/local/include and the library file libpfpro.so to /usr/local/lib. AND These functions are only available if PHP has been compiled with the --with-pfpro[=DIR] option. So I: # ./configure

RE: [PHP] Session Problem

2003-01-01 Thread Andrew Williams
Mike, results are Array ( ) Andrew *** REPLY SEPARATOR *** OK so sessions are working... cool... So now you need to track down a your cookie problem. Start of by setting your browser to ask you to accept all cookies. EVEN session cookies. In IE it would be Internet

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jean-Christian Imbeault
Justin French wrote: I know it sounds simple, but try to analyse what other big sites are doing in this situation: That's exactly what I did, but I don't understand *how* they do it hence my question. I surfed some of the big sites and saw that they do not break when a user hits the back

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jean-Christian Imbeault
Jason Wong wrote: The cache-control directives are only supposed to be followed if the page was to be _explicitly_ reloaded or refreshed. The BACK button (as specified in the standards rfc something or another) is NOT supposed to reload or refresh a page -- it is supposed to redisplay

RE: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
OK But did your browser ask you if it was ok to set a cookie? (You did do the changes in privacy) IE or Netsape (what version)? Start with a fresh browser.. meaning close all browser windows and the start up your browser again. We need to see if the problem is setting the cookie or reading

[PHP] Files into a variable...

2003-01-01 Thread Enu
I have a function (a preg_replace) to modify a PHP or HTML page with a few things. Right now, the only way I can do this flawlessly is with a wrapper page: I have a page, called disp.php, that takes a file variable. When you type in disp.php?file=index.php, it loads the file with

RE: [PHP] Session Problem

2003-01-01 Thread Andrew Williams
It appears that it is a problem with the Browser, I did as you suggested and changed the Privacy Settings Advanced to Override Automatic Cookie Handling and selected Prompt for both First and third party cookies. Restarted the browser ie closed all browser windows and restarted IE 6 version

[PHP] multiple select problem

2003-01-01 Thread Elaine Kwek
i am now facing a problem in multiple select. This is my example code in html. select name=destList MULTIPLE size=6 option value=4123/option option value=5234/option option value=6345/option /select i select all the value and pass to php...it should be a array. but when i display the

Re: [PHP] multiple select problem

2003-01-01 Thread Jason k Larson
What about if you use this instead: select name=destList[] MULTIPLE size=6 HTH, Jason k Larson Elaine Kwek wrote: i am now facing a problem in multiple select. This is my example code in html. select name=destList MULTIPLE size=6 option value=4123/option option value=5234/option

Re: [PHP] multiple select problem

2003-01-01 Thread Tom Rogers
Hi, Thursday, January 2, 2003, 12:39:46 PM, you wrote: EK i am now facing a problem in multiple select. EK This is my example code in html. EK select name=destList MULTIPLE size=6 EK option value=4123/option EK option value=5234/option EK option value=6345/option EK /select EK i

[PHP] PHP 4.3 Apache 2

2003-01-01 Thread Scott Seidl
Does the new release of PHP 4.3 have official support with Apache 2.x or is it still considered developmental? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 4.3 Apache 2

2003-01-01 Thread Rasmus Lerdorf
It is still experimental. On Wed, 1 Jan 2003, Scott Seidl wrote: Does the new release of PHP 4.3 have official support with Apache 2.x or is it still considered developmental? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 4.3 Apache 2

2003-01-01 Thread Tyler Longren
Yup, still experimental. But from what I've experienced, they work just fine together. I run Apache 2.0.43 and PHP 4.3.0 together without any problems what so ever. When you compile php with apache 2, remember to: ./configure --with-axps2 instead of ./configure --with-apxs tyler -

[PHP] PHP Insert Data Form

2003-01-01 Thread Edson Waite
Hi All, Hope everyone had a safe and happy New Year, I am still having trouble getting an insert data form to work. Below is the code. I was also wondering if anyone could tell me the PHP Configuration settings necessary to allow a form to insert data into a MySQL database. To view this page,

Re: [PHP] PHP Insert Data Form

2003-01-01 Thread Michael J. Pawlowsky
Here's what I suggest. go to http://www.vtwebwizard.com/tutorials/mysql/ This guys has a really nice tutorial along with a nice class for MySQL that makes inserting data nice and easy. Cheers, Mike *** REPLY SEPARATOR *** On 01/01/2003 at 11:35 PM Edson Waite wrote:

[PHP] Re: Using mail() for mailist list app

2003-01-01 Thread Mike Mannakee
I've got a newsletter that's now reached 5000 and continues to grow. I use PHP's mail() function, personalized with unsubscribe info and first names and it works just fine. I just set the timeout to 5 minutes, but it's never yet even taken 1 minute to complete. Works fine. Mike Monty [EMAIL

[PHP] help with script!!

2003-01-01 Thread Karl James
HYPERLINK http://host.makethewebsecure.com/~admin12/do_adduser.phpshttp://host.m akethewebsecure.com/~admin12/do_adduser.phps can someone take a look at this and see why this wont work. karl --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Re: [PHP] help with script!!

2003-01-01 Thread Michael J. Pawlowsky
Without the error message you are making it kind of tough. What's the response that you get. Also you should use long ?php and not just ? Single quote your arrays as in $_POST['f_name'] and not $_POST[f_name] This will help if you ever move to a serve that's not so lax. *** REPLY

Re: [PHP] help with script!!

2003-01-01 Thread Justin French
on 02/01/03 7:54 AM, Karl James ([EMAIL PROTECTED]) wrote: can someone take a look at this and see why this wont work. why don't you start by telling us what's wrong, or HOW it doesn't work? Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] help with script

2003-01-01 Thread Karl James
Sorry guys!!! Well im trying to add the form to my database table. Which is this link!! HYPERLINK http://host.makethewebsecure.com/~admin12/show_adduser.htmlhttp://host .makethewebsecure.com/~admin12/show_adduser.html then when I hit add user!!! I get this error message Added to

Re: [PHP] help with script

2003-01-01 Thread Michael J. Pawlowsky
There's your answer... You do not have permission to insert into the database with that user. Contact your DBA! :-) and if that's you read the MySQL manual. Especially about the mysql.user table *** REPLY SEPARATOR *** On 01/01/2003 at 1:19 PM Karl James wrote: Access

RE: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL

2003-01-01 Thread @ Nilaab
Hey, that's right! I forgot about that. So here's what I did to fix my problem. I separated everything and called the queries separately, except this time I didn't call the mysql_close() function to close the connection after each query. Initially I had called the mysql_close() on function I made