RE: [PHP] Sessions within new windows

2003-11-05 Thread olinux
> If, as Chris wrote, this is indeed a feature/bug of > IE, then it must be > configurable somewhere, though I'm lost as to where > that might be. > > Does anyone have any ideas how this could be > controlled via IE's > settings? I've experienced a similar problem on a php based system I use. I

[PHP] Re: Php processor and return window

2003-11-05 Thread John Herren
Robb Kerr wrote: I am just learning PhP. When I was teaching myself Lingo (Macromedia Director's programming language) I found an object called the MESSAGE window quite helpful. This window allowed you to execute little snippets of code and get the results without having to execute your entire scr

RE: [PHP] High bandwidth application tips

2003-11-05 Thread olinux
[snip] > I fourth the thing about database access. As long as > you realize that > reading from disk isn't the fastest thing around > either. Make sure you > reduce the number of files to be read to as little > as possible. And output > with something like readfile() to prevent the files > being

Re: [PHP] High bandwidth application tips

2003-11-05 Thread John Herren
Jay Blanchard wrote: [snip] limit the number of times you need to hit the database. I second Chris on this. [/snip] I third that. The problem can become especially apparent in large databases containing millions of records. Other than that just code cleanly and document, document, document. Crea

Re: [PHP] Re: Input Validation of $_SESSION values

2003-11-05 Thread Chris Shiflett
--- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > Pablo Gosse wrote: > > > As to your last point, can something else change the session vars > > other than my php scripts, answers to that question are exactly what > > I'm looking for. > > Other PHP scripts on the same server (doesn't have to be s

RE: [PHP] Re: Input Validation of $_SESSION values

2003-11-05 Thread Chris Shiflett
--- Pablo Gosse <[EMAIL PROTECTED]> wrote: > In all honesty I don't know enough about how one would go about > attempting to hack the values of a session other than through hacking > into the session files, so if anyone has any input on this please pass > it along. Well, you basically hit the nail

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Chris Shiflett
--- Wouter van Vliet <[EMAIL PROTECTED]> wrote: > One time I had this script somebody else wrote. About 1000 lines, a > complete CMS in one file. It if'ed on simple $_GET vars about 10 times, > by opening a new if statement each and every time. After I changed this > to if ($_GET['p'] == 'one') { .

Re: [PHP] Input Validation of $_SESSION values

2003-11-05 Thread Chris Shiflett
--- Pablo Gosse <[EMAIL PROTECTED]> wrote: > It's obviously best practice to rigorously check and validate all input > coming via $_GET or $_POST, but what about $_SESSION values? Session data can be considered safe, but there are of course caveats. It is not possible for the user to manipulate se

[PHP] Re: Ive lost a zero somewhere

2003-11-05 Thread Dimitri Marshall
$price = 25; $f_price = sprintf("%01.2f","$price"); echo "$f_price"; This will give you 25.00 instead of 25. Maybe put your result into a variable and then convert it into the decimal number using the sprintf() function. Dimitri Marshall "Richard Cook" <[EMAIL PROTECTED]> wrote in message news:[

RE: [PHP] Tristan Pretty is out of the office.

2003-11-05 Thread Jake McHenry
Man he's outta the office a lot! Thanks, Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 05, 2003 11:00 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Tristan

[PHP] Tristan Pretty is out of the office.

2003-11-05 Thread Tristan . Pretty
I will be out of the office starting 23/10/2003 and will not return until 11/11/2003. I will respond to your message when I return. Please contact Fiona or Alan for any issues. * The information contained in this e-mail me

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Boyan Nedkov
sure, no point to discuss that issue here -- Robert Cummings wrote: On Wed, 2003-11-05 at 21:22, Andre Volmensky wrote: [snip] .. if you spend some time moving closer to the object oriented approach (php classes in this case) you may find that the development could be much more clear and easy

Re: [PHP] php|cruise - do unto others...

2003-11-05 Thread John Nichel
Robert Cummings wrote: Being a broke, out of work programmer myself, I know that EVERY LITTLE bit helps out, but what I want to know is. Who the hell donated $0.03 :> Not everyone donates in U.S. funds. Think "currency conversion" here! Cheers, Rob. If I thought that way, they'd revo

[PHP] Re: High bandwidth application tips

2003-11-05 Thread felix zaslavskiy
Take a look here: http://phplens.com/lens/php-book/optimizing-debugging-php.php I also recommend X-debug extention for profiling. On Wed, 5 Nov 2003 13:36:01 -0600 [EMAIL PROTECTED] (Luis Lebron) wrote: > I have been coding php for a few years now, but I haven't build a "high > bandwidth" appl

Re: [PHP] php|cruise - do unto others...

2003-11-05 Thread Robert Cummings
On Wed, 2003-11-05 at 22:16, John Nichel wrote: > CPT John W. Holmes wrote: > > From: "Becoming Digital" <[EMAIL PROTECTED]> > > > >>php|cruise is coming this March. > > > > > > Final word on this, I promise! :) > > > > I'll be on the cruise, so I'm looking forward to meeting anyone else that'l

Re: [PHP] php|cruise - do unto others...

2003-11-05 Thread John Nichel
CPT John W. Holmes wrote: From: "Becoming Digital" <[EMAIL PROTECTED]> php|cruise is coming this March. Final word on this, I promise! :) I'll be on the cruise, so I'm looking forward to meeting anyone else that'll be there. Contact me offline if you want. I wanted to say think you to all of th

[PHP] RE: Array --> If

2003-11-05 Thread Jason Williard
Thanks! That did the trick. Jason Williard -Original Message- From: Greg Beaver [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 6:55 PM To: Jason Williard Cc: [EMAIL PROTECTED] Subject: Re: Array --> If Hi Jason, perhaps: Regards, Greg -- phpDocumentor http://www.phpdo

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread John Nichel
John W. Holmes wrote: John Nichel wrote: Hey, I beat John Holmes You mean you're bigger than 14 inc... err, nevermind, you're talking about something else... Yeah, rightIf that were the case, my wife wouldn't laugh at me. Did I say that out loud?? -- By-Tor.com It's all about the

Re: [PHP] Ive lost a zero somewhere

2003-11-05 Thread Richard Cook
Christ that was quick! Cheers - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Richard Cook'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, November 06, 2003 3:04 AM Subject: RE: [PHP] Ive lost a zero somewhere > number_format or (s)printf > > -Origin

RE: [PHP] Ive lost a zero somewhere

2003-11-05 Thread Martin Towell
number_format or (s)printf -Original Message- From: Richard Cook [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 November 2003 2:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Ive lost a zero somewhere I have a problem with the following when i multiply for example 25 . 50 * 3 i get 76 . 5 how

[PHP] Ive lost a zero somewhere

2003-11-05 Thread Richard Cook
I have a problem with the following when i multiply for example 25 . 50 * 3 i get 76 . 5 how would i get PHP to recognise the last 0 ie make it 76 . 50 Any ideas? Regards R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] anyway to return more than one value?

2003-11-05 Thread Robert Cummings
On Wed, 2003-11-05 at 21:22, Andre Volmensky wrote: > [snip] > > .. if you spend some time moving closer to the object oriented approach > (php classes in this case) you may find that the development could be > much more clear and easy ... and then will never come back to > the functional/procedu

[PHP] Re: Array --> If

2003-11-05 Thread Greg Beaver
Hi Jason, perhaps: $cases = array(5, 15, 30, 60, 90, 120); if (in_array($count, $cases)) { include 'page.php'; } ?> Regards, Greg -- phpDocumentor http://www.phpdoc.org Jason Williard wrote: I am building a script that I would like to have do a specific task based on whether specific c

[PHP] Array --> If

2003-11-05 Thread Jason Williard
I am building a script that I would like to have do a specific task based on whether specific counts have been reached. Basically, the script checks for connectivity in a specific port. If the connectivity fails, it increases the count by 1. It does this every minute. I would like the script to

[PHP] Re: FTP_DELETE HELP!

2003-11-05 Thread Dimitri Marshall
Problem solved... Thanks everyone! Dimitri Marshall "Dimitri Marshall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Just wondering what to put for the "resource ftp_stream" in the following: > > ftp_delete ( resource ftp_stream, string path) > > I don't use ftp_connect to a

Re: [PHP] FTP_DELETE!

2003-11-05 Thread John W. Holmes
Dimitri Marshall wrote: Don't know what that is because I don't connect to FTP. The files upload fine, but I just want to know how to delete them. Is the result of ftp_connect() the $host in mysql_connect? If you're talking about deleting files on the same filesystem as your PHP scripts, then use

Re: [PHP] Re: Input Validation of $_SESSION values

2003-11-05 Thread John W. Holmes
Pablo Gosse wrote: As to your last point, can something else change the session vars other than my php scripts, answers to that question are exactly what I'm looking for. Other PHP scripts on the same server (doesn't have to be same domain) and most anything that can access the filesystem could m

RE: [PHP] anyway to return more than one value?

2003-11-05 Thread Andre Volmensky
[snip] .. if you spend some time moving closer to the object oriented approach (php classes in this case) you may find that the development could be much more clear and easy ... and then will never come back to the functional/procedural way of programming [/snip] I have been interested in learn

[PHP] FTP_DELETE HELP!

2003-11-05 Thread Dimitri Marshall
Hi, Just wondering what to put for the "resource ftp_stream" in the following: ftp_delete ( resource ftp_stream, string path) I don't use ftp_connect to allow users to upload files, so I don't know what the result of ftp_connect is. Is the result of ftp_connect() the $host in mysql_connect? Than

RE: [PHP] Re: Input Validation of $_SESSION values

2003-11-05 Thread Pablo Gosse
On Wednesday, November 05, 2003 5:43 PM, Lang wrote: /*---*/ 1. Have register_globals set to off in your php.ini and 2. Check the values before you put them in the session. You should be ok. ie. if you just go $_SESSION['g_id'] = $_GET['g_id'] on one page, then you stil

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Mike Migurski
>Whow, is that way of a loop really faster? I mean .. It looks as if the >accept same thing happens > - $upperlimit is set > - $i counter is set > - for every loop $i is set one higher > - Also for every loop the expression ($i<$upperlimit) is evaluated. Not sure, but I jus

Re: [PHP] the function of the "@" symbol?

2003-11-05 Thread John W. Holmes
Wouter van Vliet wrote: What would it suppress, the "notice: undefined variable $first on line 44" notification? Exactly. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing Lis

[PHP] Re: Input Validation of $_SESSION values

2003-11-05 Thread Lang Sharpe
As long as you... 1. Have register_globals set to off in your php.ini and 2. Check the values before you put them in the session. You should be ok. ie. if you just go $_SESSION['g_id'] = $_GET['g_id'] on one page, then you still have the same security risks as using just $_GET. If you are slight

Re: [PHP] FTP_DELETE!

2003-11-05 Thread Dimitri Marshall
Don't know what that is because I don't connect to FTP. The files upload fine, but I just want to know how to delete them. Is the result of ftp_connect() the $host in mysql_connect? Dimitri Marshall "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dimitri Marshall wr

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Wouter van Vliet
Whow, is that way of a loop really faster? I mean .. It looks as if the accept same thing happens - $upperlimit is set - $i counter is set - for every loop $i is set one higher - Also for every loop the expression ($i<$upperlimit) is evaluated. Any idea on why it's

Re: [PHP] FTP_DELETE!

2003-11-05 Thread John W. Holmes
Dimitri Marshall wrote: Just wondering what to put for the "resource ftp_stream" in the following: ftp_delete ( resource ftp_stream, string path) the result of ftp_connect(). -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Profe

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Boyan Nedkov
[snip] > ... Someone also suggested I use > a new class. Sounds like a good idea, but might be overkill > for what I'm doing. [/snip] .. if you spend some time moving closer to the object oriented approach (php classes in this case) you may find that the development could be much more clear and e

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Chris W. Parker
Wouter van Vliet on Wednesday, November 05, 2003 5:06 PM said: > * Unset when not used anymore I don't do this enough. One thing you can do to make loops faster is the following: (yes I've posted this in the past!!) Unoptimized: $upperlimit = 100; for($i = 0;$i

RE: [PHP] the function of the "@" symbol?

2003-11-05 Thread Wouter van Vliet
To me .. This looks more like a line of perl code. I am familiar with the @ sign to kindly ask a function not to give any errors to a function. But can it really be used like this on vars? What would it suppress, the "notice: undefined variable $first on line 44" notification? Funny.. -Origi

[PHP] FTP_DELETE!

2003-11-05 Thread Dimitri Marshall
Hi, Just wondering what to put for the "resource ftp_stream" in the following: ftp_delete ( resource ftp_stream, string path) Thanks in advance, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Wouter van Vliet
That depends on the moment this emailing is sent, and how. If you do it at night, when there's less visitors (assuming you run a site mostly meant for ppl in 'your own country'), there's no real need to get a second server to to this. I fourth the thing about database access. As long as you reali

RE: [PHP] anyway to return more than one value?

2003-11-05 Thread Chris W. Parker
John W. Holmes on Wednesday, November 05, 2003 4:28 PM said: > Are you talking about something like this: > > $retval['result'] = get_results($result); > $retval['rows'] = mysql_num_rows($result); > $retval['fields'] = mysql_num_fields($result); > > return $retval;

Re: [PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Dimitri Marshall
Wicked... Works, thanks. Dimitri Marshall "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Web server need permission to write to > /home/unit-dir/public_html/members/memberpix/ directory. Change the > directory permissions to 777. > > Dimitri Marshall wrote: > > >

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread John W. Holmes
Chris W. Parker wrote: Ok I know it's not possible to "return" more than one value. But I'm going to explain what I'd like to do so maybe there's an easy way to do it. I've got some functions that query a database and turn the result into an array and return that array. What I'd like to do is not o

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Boyan Nedkov
One possible solution could be to write a simple class that will hold all data you need at one single place: class MyData { var $_resultArray; var $_rows; var $_fields; function MyData($resultArray, $rows, $fields) { $this->data = $data; $this->rowcounr = $rowcount; $this->fil

[PHP] PHP objects problem

2003-11-05 Thread Michal O¹kera
Hi, I've discovered strange behavior of PHP. The following script has no sense and value, it is simplified due to clearness. The output of the script should be (in my opinion): class A2 class A1 But it isn't (using PHP 4.3.4). The problem arise, when the Callback function of a1 object calls GetOt

RE: [PHP] fwrite, fopen, or fread limit?

2003-11-05 Thread Wouter van Vliet
I highly doubt that was all. Now uploads bigger than 7megs are allowed, you should also make sure your script is able to deal with it files LARGER than that. Hmm, maybe this didn't seem to make much sense. What I'm talking about is this: memory_limit = 8M ; Maximum amount of memory

RE: [PHP] anyway to return more than one value?

2003-11-05 Thread Chris W. Parker
Robert Cummings on Wednesday, November 05, 2003 4:07 PM said: > You can do the following: > > function get_results( &$rows, &$fields ) Works great! Thanks. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/o

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Robert Cummings
On Wed, 2003-11-05 at 19:02, Chris W. Parker wrote: > Hi list. > > Ok I know it's not possible to "return" more than one value. But I'm > going to explain what I'd like to do so maybe there's an easy way to do > it. > > I've got some functions that query a database and turn the result into > an a

[PHP] anyway to return more than one value?

2003-11-05 Thread Chris W. Parker
Hi list. Ok I know it's not possible to "return" more than one value. But I'm going to explain what I'd like to do so maybe there's an easy way to do it. I've got some functions that query a database and turn the result into an array and return that array. What I'd like to do is not only return t

Re: [PHP] Apache1.3.28 vs PHP4.3.3

2003-11-05 Thread Boyan Nedkov
For getting up and running php on WinXX box you need only: LoadModule php4_module D:/PHP4.3.3/sapi/php4apache.dll AddType application/x-httpd-php .php To avoid the problem with removing 'mod_php4.c' try to find 'ClearModuleList' directive in httpd.conf and comment it, then restart the server onc

[PHP] REPOST TO FIX MANGLED QUERY - Input validation of $_SESSION values

2003-11-05 Thread Pablo Gosse
Hi all. Sorry for the repost but the query got seriously mangled in the previous post. A quick question as an extension to the threads about input validation over the past weeks. It's obviously best practice to rigorously check and validate all input coming via $_GET or $_POST, but what about $_

[PHP] Input Validation of $_SESSION values

2003-11-05 Thread Pablo Gosse
Hi all. A quick question as an extension to the threads about input validation over the past weeks. It's obviously best practice to rigorously check and validate all input coming via $_GET or $_POST, but what about $_SESSION values? Without proper checking of $_GET and $_POST, it is very easy fo

RE: [PHP] Sessions within new windows

2003-11-05 Thread Chris W. Parker
Pablo Gosse on Wednesday, November 05, 2003 3:08 PM said: > From my experience over the past few years, here's how IE works with > sessions and new windows. [snip Pablo's experience] Your description is the way I understand it. Chris. -- Don't like reformatting

RE: [PHP] Sessions within new windows

2003-11-05 Thread Pablo Gosse
On Wednesday, November 05, 2003 12:38 PM, Chris wrote: > I would also be interested in this, as well as some sort of confirmation > of this behavior. It could be that the person who described this behavior > was wrong. :-) I think Chris is correct in thinking that the person who started the previ

Re: [PHP] simple?

2003-11-05 Thread Marek Kilimajer
return (ereg_replace('/+', '/', $tmp_file ==$filename)); Jason wrote: Hello all, I have written a script for the purpose of uploading an image and block of text for a site. Real simple stuff but I can't get the form to write? code looks like this... I have some error checking above this but the

Re: [PHP] getting array slice of function output

2003-11-05 Thread Mike Migurski
>I have a line which strips the suffix (gif, GIF, TIFF, jpg, JPEG, etcetc >or I would just use basename() :-) from a string but it seems needlessly >drawn out: > > $file = preg_split('/\./',$dirfiles[0]) ; $file = $file[0] ; > >I would like to just assign the 0th element of the preg_split() output

[PHP] getting array slice of function output

2003-11-05 Thread David T-G
Hi, all -- I have a line which strips the suffix (gif, GIF, TIFF, jpg, JPEG, etcetc or I would just use basename() :-) from a string but it seems needlessly drawn out: $file = preg_split('/\./',$dirfiles[0]) ; $file = $file[0] ; I would like to just assign the 0th element of the preg_split() o

RE: [PHP] Sessions within new windows

2003-11-05 Thread Chris Shiflett
--- Pablo Gosse <[EMAIL PROTECTED]> wrote: > If, as Chris wrote, this is indeed a feature/bug of IE, then it must be > configurable somewhere, though I'm lost as to where that might be. I have no first-hand experience with this, since I don't use Windows (and I use Safari when I use Macs). But, th

FW: [PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
-Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:11 PM To: Donald Tyler Subject: RE: [PHP] Sessions within new windows Hmm, that's strange. I use Javascript functions to control the few pop-up windows in the CMS, but I just went in

RE: [PHP] Sessions within new windows

2003-11-05 Thread Pablo Gosse
Hmm, that's strange. I use Javascript functions to control the few pop-up windows in the CMS, but I just went in and changed some to standard href tags with the _blank for the target attribute, as you have, and it still works with no problem. If, as Chris wrote, this is indeed a feature/bug o

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Luis Lebron
One of the things I have suggested to the customer is offloading some of the work to a different server. For example, he wants to email a weekly message to all the users with information on records that match their search criteria. I suggested setting up a second server that handles this and other

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Jay Blanchard
[snip] > limit the number of times you need to hit the database. > I second Chris on this. [/snip] I third that. The problem can become especially apparent in large databases containing millions of records. Other than that just code cleanly and document, document, document. -- PHP General Mailin

[PHP] Photos from PHP Conference 2003 fall

2003-11-05 Thread Björn Schotte
Hi, Conference is over, core devs should be in their planes now and here are already some photos: http://www.phpconference.de/2003/photos_en.php Don't miss the party girl on the front page on http://www.phpconference.de/2003/index_en.php :-) Thanks to everybody (especially the speakers) for com

Re: [PHP] High bandwidth application tips

2003-11-05 Thread Marco Tabini
Chris Shiflett wrote: I currently design, develop, and maintain a suite of Web applications and utilities that receive ten million hits a day, and my experience has shown that the number one thing you can do to make the biggest difference is to limit the number of times you need to hit the database

Re: [PHP] High bandwidth application tips

2003-11-05 Thread Chris Shiflett
--- Luis Lebron <[EMAIL PROTECTED]> wrote: > I am currently working on an application for a customer that may have > a very large amount of users (10,000 or more according to the customer). I currently design, develop, and maintain a suite of Web applications and utilities that receive ten million

RE: [PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
I am using a normal link. Here is the exact html code: -Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:17 AM To: [EMAIL PROTECTED]; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows That's strange, as I'v

[PHP] High bandwidth application tips

2003-11-05 Thread Luis Lebron
I have been coding php for a few years now, but I haven't build a "high bandwidth" application. I am currently working on an application for a customer that may have a very large amount of users (10,000 or more according to the customer). Are there any good reference books, articles and general in

Re: [PHP] simple?

2003-11-05 Thread Burhan Khalid
Jason wrote: [ snip ] Parse error: parse error in /var/www/html/site/directory/subdirectory/upload.php on line 68 in the upload.php file there are only 64 or so lines of code. HELP! Check for missing ; Check for proper nesting of } Check for proper nesting of ) Cut and paste your code in a php-a

Re: [PHP] simple?

2003-11-05 Thread Rolf Brusletto
Jason wrote: Hello all, I have written a script for the purpose of uploading an image and block of text for a site. Real simple stuff but I can't get the form to write? code looks like this... I have some error checking above this but the meat of it still doesn't work. I get: Parse error: parse

[PHP] simple?

2003-11-05 Thread Jason
Hello all, I have written a script for the purpose of uploading an image and block of text for a site. Real simple stuff but I can't get the form to write? code looks like this... I have some error checking above this but the meat of it still doesn't work. I get: Parse error: parse error in /

Re: [PHP] Site Security

2003-11-05 Thread Chris Shiflett
--- Shaun <[EMAIL PROTECTED]> wrote: > However, due to the nature of the site I need to make sure it is 110% > secure against hacks etc. Now I know this isn't actually possible That's a very good thing to realize. Security is a measurement, sort of like temperature, so saying something is 100% sec

RE: [PHP] Site Security

2003-11-05 Thread Dan Joseph
Hi, > I have created a site that allows users to schedule staff, make > appointments > etc. Users must log in to use the site and the users data is held in the > Users table of the MySQL database. However, due to the nature of > the site I > need to make sure it is 110% secure against hacks etc.

[PHP] Site Security

2003-11-05 Thread Shaun
Hi, I have created a site that allows users to schedule staff, make appointments etc. Users must log in to use the site and the users data is held in the Users table of the MySQL database. However, due to the nature of the site I need to make sure it is 110% secure against hacks etc. Now I know th

Re: [PHP] Apache1.3.28 vs PHP4.3.3

2003-11-05 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Apache 1.3.28 / PHP 4.3.3 hello, I tried to configure php as module SAPI of the apache web server, I put this line: LoadModule php4_module D:/PHP4.3.3/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php When I tested the configuration, I got thi

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread Ahbaid Gaffoor
Thank you! Just what I needed. Ahbaid Boyan Nedkov wrote: http://phpdocu.sourceforge.net/ http://www.callowayprints.com/phpdoc/ http://sourceforge.net/projects/phpdocu/ http://www.stack.nl/~dimitri/doxygen/ Ahbaid Gaffoor wrote: Is there any utility that can be run against a php script to

[PHP] Apache1.3.28 vs PHP4.3.3

2003-11-05 Thread orlandopozo
Apache 1.3.28 / PHP 4.3.3 hello, I tried to configure php as module SAPI of the apache web server, I put this line: LoadModule php4_module D:/PHP4.3.3/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php When I tested the configuration, I got this error: Cannot remove

RE: [PHP] Load Stress tool

2003-11-05 Thread Luis Lebron
Thanks for the information. I also found the MS Web Application Stress Tool which may work http://www.microsoft.com/technet/treeview/default.asp?url=/technet/itsolutio ns/intranet/downloads/webstres.asp -Original Message- From: Mike Migurski [mailto:[EMAIL PROTECTED] Sent: Wednesday, Nove

Re: [PHP] php|cruise - do unto others...

2003-11-05 Thread CPT John W. Holmes
From: "Becoming Digital" <[EMAIL PROTECTED]> > php|cruise is coming this March. Final word on this, I promise! :) I'll be on the cruise, so I'm looking forward to meeting anyone else that'll be there. Contact me offline if you want. I wanted to say think you to all of those that contributed to

RE: [PHP] Shared SessionIDs?

2003-11-05 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > But seriously, why is it such a bad idea? I'd like to finally figure > this out so I don't keep coming up with them (not that I've ever used > any). ;) I have a free chapter that explains cookies at the protocol level here: http://shiflett.org/bo

Re: [PHP] Shared SessionIDs?

2003-11-05 Thread CPT John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> > But seriously, why is it such a bad idea? I'd like to finally figure > this out so I don't keep coming up with them (not that I've ever used > any). ;) I've got to remember back to what the original thread was about... :) The suggestion, iirc, was to

RE: [PHP] Sessions within new windows

2003-11-05 Thread Pablo Gosse
That's strange, as I've been writing a CMS over the past year which requires the user to have IE 5.5 or newer, and I have no problems with pop-ups accessing session values under IE 6.0. Perhaps it's an issue of how you're invoking the new windows? Are you using a normal link with target="_blank"

RE: [PHP] Changing the php.ini file

2003-11-05 Thread Jay Blanchard
[snip] Bingo. I didn't even notice that the phpinfo was saying the ini file was in a different directory than the one I was looking at. So much for 'whereis' - again. :\ [/snip] >From the command line Mike try 'locate php.ini' (drop the quotes). You'll be surprised at what you might see. -- PHP

RE: [PHP] Changing the php.ini file

2003-11-05 Thread Mike At Spy
Bingo. I didn't even notice that the phpinfo was saying the ini file was in a different directory than the one I was looking at. So much for 'whereis' - again. :\ :) Thanks! -Mike > -Original Message- > From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 05,

RE: [PHP] Shared SessionIDs?

2003-11-05 Thread Chris W. Parker
John W. Holmes on Tuesday, November 04, 2003 6:07 PM said: > I think you missed the part where he said "while keeping secure"... :) > > Storing something like this in a cookie is in no way secure. Hey man! That's why I put the disclaimer... >> Here's an idea (whet

[PHP] Re: [PHP-DB] Unsuscribe

2003-11-05 Thread Boyan Nedkov
try to do this here: http://www.php.net/mailing-lists.php [EMAIL PROTECTED] wrote: Unsubscribe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread Boyan Nedkov
http://phpdocu.sourceforge.net/ http://www.callowayprints.com/phpdoc/ http://sourceforge.net/projects/phpdocu/ http://www.stack.nl/~dimitri/doxygen/ Ahbaid Gaffoor wrote: Is there any utility that can be run against a php script to generate documentation of the functions in that script? Sort

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread Burhan Khalid
Ahbaid Gaffoor wrote: Is there any utility that can be run against a php script to generate documentation of the functions in that script? Sort of like javadoc is for java code Why do you mean phpdocumentor? http://pear.php.net/package/PhpDocumentor "The phpDocumentor tool is a standalone a

Re: [PHP] dictionary

2003-11-05 Thread Cesar Cordovez
To the original poster: The data you posted is not text. Or it has been encrypted. I don't think that the idea of the dictionary will work. Keep us posted with your findings! I'll love to see the conclusion. Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: [PHP-DB] RE: [PHP] Re: Adding a log file

2003-11-05 Thread jeffrey_n_Dyke
if you want actual errors that PHP generates and not logic based errors, then writing your own error handling function and calling it with set_error_handler() at the top of your scripts may work for you. in your function you'd just need to use $errorstr, $errorfile and $errline and log it using

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread zhuravlev alexander
On Wed, Nov 05, 2003 at 10:42:02AM -0600, Ahbaid Gaffoor wrote: > Is there any utility that can be run against a php script to generate > documentation of the functions in that script? > > Sort of like javadoc is for java code http://www.phpdoc.de/ http://phpdocu.sourceforge.

Re: [PHP] Sessions within new windows

2003-11-05 Thread Chris Shiflett
--- Donald Tyler <[EMAIL PROTECTED]> wrote: > I have a site that has a members section. In the news area, when a user > clicks the link for an article, it pops open a new window a requests the > article via a PHP script. > > What's happening is that when the new window pops up, the script isn't >

[PHP] PHP Documentation procedure

2003-11-05 Thread Ahbaid Gaffoor
Is there any utility that can be run against a php script to generate documentation of the functions in that script? Sort of like javadoc is for java code thanks Ahbaid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Return mysql_fetch_array($result) from a function

2003-11-05 Thread Chris Shiflett
--- Terence <[EMAIL PROTECTED]> wrote: > I am trying to get the results of a function, which queries MySQL, back > into an array for me to order. I only want to print out certain fields > (I call the same query, but use different fields in different places). > > This works is I print out the field

Re: [PHP] dictionary

2003-11-05 Thread Lowell Allen
> Got a bit of a peculiar problem. > > I'm recovering a hard disk which has got corrupted (work for a data > recovery business). > > I've got a whole stack of text files which I need to clean up to try and > get back some of the text information > here's an example snippet > [snip] > > What I w

Re: [PHP] url_encode question

2003-11-05 Thread Marek Kilimajer
You want to use urlencode, but you are using url_encode, which must be user defined function. Urlencode output would be: http%3A%2F%2F192.168.10.5%2Frecords%2FSalle_16B%2F2003-05-06%2FSalle_16B_2003-05-06.010 urlencode is supposed to be used for encoding values and not the whole url. Styve Cout

[PHP] Re: Java JSP and PHP script relation..??

2003-11-05 Thread Bogdan Stancescu
PHP is interpreted at runtime, I don't think it stores any such pre-parsed files, even for caching, anywhere else but in the memory. I might be wrong, but I've got a pretty strong gut feeling that's the way it goes. Bogdan Ryan A wrote: Hi, Coming from a java JSP background I have a small que

Re: [PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Marek Kilimajer
Web server need permission to write to /home/unit-dir/public_html/members/memberpix/ directory. Change the directory permissions to 777. Dimitri Marshall wrote: Hi, I'm trying to allow users to upload files to my server. I have the appropriate code (I think) but I'm getting this error message.

RE: [PHP] Re: Adding a log file

2003-11-05 Thread Robert Sossomon
Like I said, syntactically bogus, I was trying to write it out fast while I was away from the actual scripts... Like I said, for the MOST part the pieces are working, however on some items it is acting correctly yet the items are not showing up in the shopping cart or in the database anywhere. He

RE: [PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Pablo Gosse
On Wednesday, November 05, 2003 8:03 AM, Dimitri wrote: > I'm trying to allow users to upload files to my server. I have the > appropriate code (I think) but I'm getting this error message. Can someone > tell me why, and how to fix this? > > Warning: > move_uploaded_file(/home/unit- > dir/public_h

  1   2   >