[PHP] RE: is there way to pass an array( or variables) to another page without sessions or cookies?

2005-07-05 Thread Ross
Can you give me a quick emaple of how this would work, with an array. I have an array of errors ($errors[]) for a form, when the errors are trigger, I am trying to send them to a window which tells them what the errrors are. I don't really want to get into sessions or cookies. R. - Original

RE: [PHP] RE: is there way to pass an array( or variables) to another page without sessions or cookies?

2005-07-05 Thread Jay Blanchard
[snip] Can you give me a quick emaple of how this would work, with an array. I have an array of errors ($errors[]) for a form, when the errors are trigger, I am trying to send them to a window which tells them what the errrors are. I don't really want to get into sessions or cookies. [/snip] The

[PHP] Re: is there way to pass an array( or variables) to another page without sessions or cookies?

2005-07-05 Thread H P
Try sending them via POST Ross [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Can you give me a quick emaple of how this would work, with an array. I have an array of errors ($errors[]) for a form, when the errors are trigger, I am trying to send them to a window which tells them

Re: [PHP] RE: is there way to pass an array( or variables) to another page without sessions or cookies?

2005-07-05 Thread Richard Lynch
On Tue, July 5, 2005 5:20 am, Ross said: Can you give me a quick emaple of how this would work, with an array. I have an array of errors ($errors[]) for a form, when the errors are trigger, I am trying to send them to a window which tells them what the errrors are. I don't really want to get

Re: [PHP] RE: is there way to pass an array( or variables) to another page without sessions or cookies?

2005-07-05 Thread sylikc
Ross, On 7/5/05, Ross [EMAIL PROTECTED] wrote: Can you give me a quick emaple of how this would work, with an array. I have an array of errors ($errors[]) for a form, when the errors are trigger, I am trying to send them to a window which tells them what the errrors are. I don't really want

[PHP] Is there any way to show the error file without showing the dir information?

2005-04-29 Thread cchereTieShou
In many case, if there is an error happen in a php script, it may return an error message something like Parse error: parse error, unexpected T_FUNCTION in /home/content/usr/html/test.php on line 6 Is there any way to not show the dir information, but only as test.php on line 6 instead? -- PHP

Re: [PHP] Document root, preferred way to find it???

2005-03-08 Thread Jochem Maas
Leif Gregory wrote: Hello Marek, Sunday, March 6, 2005, 7:08:24 PM, you wrote: I don't see where that tells me where the include folder would be. MK If you know how the files are layed out in your application, you do. No... You missed the point of this whole thread which was explained in point 1

Re: [PHP] Document root, preferred way to find it???

2005-03-08 Thread Leif Gregory
Hello Jochem, Tuesday, March 8, 2005, 3:30:19 AM, you wrote: J link rel=stylesheet type=text/css title=Site CSS href=includes/site.css / J I'm pretty sure the url is ./includes/site.css i.e. the include J subdir of the dir in which the html file that includes the link tag J is in. if you move

RE: [PHP] Document root, preferred way to find it???

2005-03-08 Thread Chris W. Parker
Leif Gregory mailto:[EMAIL PROTECTED] on Tuesday, March 08, 2005 6:55 AM said: link rel=stylesheet type=text/css title=Site CSS href=/includes/site.css / and I've never placed a period at the beginning. But you raise an interesting point. Is the server telling the browser where the

[PHP] A more ecconomical way with control statements??

2005-03-07 Thread Ross Hulford
if (empty($samosa)){ // do nothing } else { setcookie(cookie[samosa], $samosa); } if (empty($pakora)){ // do nothing } else { setcookie(cookie[pakora], $pakora); } It goes on like this for the whole menu I am looking for a more effiecient way to do this. The inputs are text boxes

RE: [PHP] A more ecconomical way with control statements??

2005-03-07 Thread Stanislav Kuhn
Hulford [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 12:59 To: php-general@lists.php.net Subject: [PHP] A more ecconomical way with control statements?? if (empty($samosa)){ // do nothing } else { setcookie(cookie[samosa], $samosa); } if (empty($pakora)){ // do nothing } else { setcookie

Re: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-07 Thread Leif Gregory
Hello Tom, Sunday, March 6, 2005, 11:20:04 PM, you wrote: T I do this for security as I have things in include that I don't T want to be avaiable directly to the browser Also you don't need a T path for include files you can just do: Don't necessarily disagree with you there other than if you

Re[2]: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-07 Thread Tom Rogers
Hi, Tuesday, March 8, 2005, 12:03:54 AM, you wrote: LG Hello Tom, LG Sunday, March 6, 2005, 11:20:04 PM, you wrote: T I do this for security as I have things in include that I don't T want to be avaiable directly to the browser Also you don't need a T path for include files you can just do: LG

Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Marek Kilimajer
dirname(__FILE__) and then get rid of the subpath where the check is made ('/include' for example) Leif Gregory wrote: Hello Richard, Friday, March 4, 2005, 11:41:29 AM, you wrote: R http://php.net/set_include_path Ok... Maybe I should put all this together in one e-mail so that all the issues

Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Leif Gregory
Hello Tom, Friday, March 4, 2005, 9:13:41 PM, you wrote: TR This will set the include path just before the document root: H. Not quite what I'm looking for. I set up some test folders and files on a development machine to play with your script. Here's how it was laid out: The document root

Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Leif Gregory
Hello Marek, Sunday, March 6, 2005, 4:23:51 PM, you wrote: MK dirname(__FILE__) MK and then get rid of the subpath where the check is made MK ('/include' for example) I'm not sure I'm completely following you. Let's say I had the following: Site root c:\apache\htdocs\test A subfolder of site

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi Leif, Monday, March 7, 2005, 10:03:48 AM, you wrote: LG Hello Tom, LG Friday, March 4, 2005, 9:13:41 PM, you wrote: TR This will set the include path just before the document root: LG H. Not quite what I'm looking for. I set up some test folders and LG files on a development machine to

Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Marek Kilimajer
Leif Gregory wrote: I'm not sure I'm completely following you. Let's say I had the following: Site root c:\apache\htdocs\test A subfolder of site root folder1 A subfolder of the above folder1 folder2 If I call dirname(__FILE__) from a page in each folder I'll get the following respectively:

Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Leif Gregory
Hello Marek, Sunday, March 6, 2005, 7:08:24 PM, you wrote: I don't see where that tells me where the include folder would be. MK If you know how the files are layed out in your application, you do. No... You missed the point of this whole thread which was explained in point 1 and point 2 of the

Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Leif Gregory
Hello Tom, Sunday, March 6, 2005, 6:18:54 PM, you wrote: TR and let me see what it prints Still not quite there. Site root ** File name: C:\Sambar\docs\test\test.php Script: /test.php Document root: C:\Sambar\docs\test\test.php Base: test.php Include: C:\Sambar\docs\test\include OS:

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 1:08:27 PM, you wrote: LG Hello Tom, LG Sunday, March 6, 2005, 6:18:54 PM, you wrote: TR and let me see what it prints LG Still not quite there. LG Site root LG ** LG File name: C:\Sambar\docs\test\test.php LG Script: /test.php LG Document root:

[PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Leif Gregory
Hello Tom, Sunday, March 6, 2005, 10:00:17 PM, you wrote: TR Ok I see where is is going wrong, try this: Oh, very close. Although you have it at $document_root and all that needs to be added is '/include' like below: $include = $document_root . '/include'; Otherwise it's one directory too

Re: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 3:57:50 PM, you wrote: LG Hello Tom, LG Sunday, March 6, 2005, 10:00:17 PM, you wrote: TR Ok I see where is is going wrong, try this: LG Oh, very close. Although you have it at $document_root and all LG that needs to be added is '/include' like below: LG $include

RE: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Chris W. Parker
Leif Gregory mailto:[EMAIL PROTECTED] on Thursday, March 03, 2005 5:31 PM said: Hello Richard, Thursday, March 3, 2005, 1:15:38 PM, you wrote: include_path In the php.ini? But wouldn't that affect every virtual host on the server? Meaning I'd have to put all the includes for every

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Leif Gregory
, is that there should be a simple way in PHP to reliably pull the DOC_ROOT for a virtual host that doesn't require fixing x number of pages if you move the site to another server or to another folder. PHP is great in terms of portability, but this seems to be a major sticking point in making it less portable

RE: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Richard Lynch
Chris W. Parker wrote: Leif Gregory mailto:[EMAIL PROTECTED] on Thursday, March 03, 2005 5:31 PM said: Hello Richard, Thursday, March 3, 2005, 1:15:38 PM, you wrote: include_path In the php.ini? But wouldn't that affect every virtual host on the server? Meaning I'd have to put

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Leif Gregory
Hello Richard, Friday, March 4, 2005, 11:41:29 AM, you wrote: R http://php.net/set_include_path Ok... Maybe I should put all this together in one e-mail so that all the issues can be looked at... The problem: Finding a reliable method to include files, keeping in mind the following: 1. The

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Richard Lynch
6. The method (and this is the important one IMHO) would not require editing x number of pages in a site to change some static path that was set on each page. I believe you could get x to be 1, if you do this: 1. Set up a config_include_path.inc file in your DocumentRoot (possibly

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Leif Gregory
Hello Richard, Friday, March 4, 2005, 1:25:35 PM, you wrote: R If *those* are broken, you might as well just not use that host. R :-^ Your solution seems to be pretty bulletproof. I definitely appreciate it. Just wondering though for posterity sake, have you or anyone ever run into a host that

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Richard Lynch
Leif Gregory wrote: Friday, March 4, 2005, 1:25:35 PM, you wrote: R If *those* are broken, you might as well just not use that host. R :-^ Your solution seems to be pretty bulletproof. I definitely appreciate it. Just wondering though for posterity sake, have you or anyone ever run into a

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Tom Rogers
Hi, Saturday, March 5, 2005, 5:47:07 AM, you wrote: LG Hello Richard, LG Friday, March 4, 2005, 11:41:29 AM, you wrote: R http://php.net/set_include_path LG Ok... Maybe I should put all this together in one e-mail so that all LG the issues can be looked at... LG The problem: LG Finding a

Re[3]: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Tom Rogers
Hi, TR This will set the include path just before the document root: TR if(isset($_SERVER[SCRIPT_FILENAME])){ TR $root = $_SERVER['SCRIPT_FILENAME']; TR //echo Root: $rootbr; TR $script = $_SERVER['SCRIPT_NAME']; TR $document_root =

Re: [PHP] Document root, preferred way to find it???

2005-03-03 Thread Richard Lynch
Leif Gregory wrote: http://www.devtek.org/tutorials/dynamic_document_root.php I'm still looking for a better way, cause this is kludgy. include_path -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-03 Thread Tom Rogers
Hi, Thursday, March 3, 2005, 11:54:48 AM, you wrote: A If I'm reading you correctly, then a truly transportable include might look like A this: A $doc_root= (isset($_SERVER['path_translated'])? A $_SERVER['path_translated'] : A $_SERVER['document_root']; Exactly -- regards,

Re: [PHP] Document root, preferred way to find it???

2005-03-03 Thread Leif Gregory
Hello Richard, Thursday, March 3, 2005, 1:15:38 PM, you wrote: RL include_path In the php.ini? But wouldn't that affect every virtual host on the server? Meaning I'd have to put all the includes for every virtual host in the same place? Cheers, Leif Gregory -- TB Lists Moderator (and fellow

[PHP] Document root, preferred way to find it???

2005-03-02 Thread Al
I've been using in my scripts $_SERVER['DOCUMENT_ROOT'] to find the base path for includes, etc. We just moved the site to a new virtual host and it doesn't work. print_r() gives me: $_SERVER['document_root']= /usr/local/apache/htdocs $_SERVER['path_translated']= /home/user/public_html/ What

RE: [PHP] Document root, preferred way to find it???

2005-03-02 Thread Chris W. Parker
Al mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 11:22 AM said: I've been using in my scripts $_SERVER['DOCUMENT_ROOT'] to find the base path for includes, etc. We just moved the site to a new virtual host and it doesn't work. print_r() gives me: $_SERVER['document_root']=

Re: [PHP] Document root, preferred way to find it???

2005-03-02 Thread Leif Gregory
Hello Al, Wednesday, March 2, 2005, 12:21:58 PM, you wrote: A What do you guys use for you docroot? I ran into the same problem and also asked here for any ideas. I finally ended up writing my own function to do it. You can find the tutorial here:

Re: [PHP] Document root, preferred way to find it???

2005-03-02 Thread Tom Rogers
Hi, Thursday, March 3, 2005, 5:21:58 AM, you wrote: A I've been using in my scripts $_SERVER['DOCUMENT_ROOT'] to find the base path A for includes, etc. A We just moved the site to a new virtual host and it doesn't work. print_r() A gives me: $_SERVER['document_root']=

Re: [PHP] Document root, preferred way to find it???

2005-03-02 Thread Al
Tom Rogers wrote: Hi, Thursday, March 3, 2005, 5:21:58 AM, you wrote: A I've been using in my scripts $_SERVER['DOCUMENT_ROOT'] to find the base path A for includes, etc. A We just moved the site to a new virtual host and it doesn't work. print_r() A gives me: $_SERVER['document_root']=

Re: [PHP] Is there a way I can read full path names of files on the server and enter it into the database ?

2005-02-21 Thread Richard Lynch
Vaibhav Sibal wrote: I wanted to ask whether there is a way whereby a script can read filenames from a particular directory on the server and enter those filenames with the complete path into the MySQL database? I am trying to do this, because I am developing an application where a supervisor

[PHP] Is there a way I can read full path names of files on the server and enter it into the database ?

2005-02-20 Thread Vaibhav Sibal
Hello, I wanted to ask whether there is a way whereby a script can read filenames from a particular directory on the server and enter those filenames with the complete path into the MySQL database? I am trying to do this, because I am developing an application where a supervisor will be

Re: [PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-03 Thread Greg Donald
On Sun, 2 Jan 2005 16:23:34 -0800, Dan Eloff [EMAIL PROTECTED] wrote: My single biggest beef with PHP is the fact that it silently fails when I use a variable that has never been declared. Like if($sumbit) will always be false because the variable was really named $submit. My only clue that

[PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-02 Thread Dan Eloff
My single biggest beef with PHP is the fact that it silently fails when I use a variable that has never been declared. Like if($sumbit) will always be false because the variable was really named $submit. My only clue that this is happening is whe the program fails to work as intended and I waste

Re: [PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-02 Thread Comex
Is there any way at all to control this? I went into my PHP.ini file, but my errors are set to E_ALL E_STRICT which seems to be the highest level I can set. That error generates an E_NOTICE. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-02 Thread Rory Browne
Unless I'm mistaken, which is quite possible considering that its been years since I set my error_level, to anything other than E_ALL, but I think you need to 'bitwise or' the error_levels instead of 'bitwise and' them. The default setting IIRC is E_ALL ~E_NOTICE, which means all errors except

Re: [PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-02 Thread Dan Eloff
I knew I missed something when I configured php 5 on my pc. I forgot to set the errors to be printed instead of logged. And you're right, I should have used bitwise or to combine the flags. Thanks, you guys saved me a lot of aggravation. -Dan -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: An easier way? $_POST[] = $_SESSION[]

2004-11-01 Thread Greg Beaver
Erich Kolb wrote: Is there an easier way to assign all post data from a form to session data? Eg., $_SESSION['first_name'] = $_POST['first_name']; $_SESSION['last_name'] = $_POST['last_name']; $_SESSION['email'] = $_POST['email']; Never pass in data from any external source without explicitly

Re: [PHP] Re: An easier way? $_POST[] = $_SESSION[]

2004-11-01 Thread Chris Shiflett
--- Greg Beaver [EMAIL PROTECTED] wrote: Erich Kolb wrote: Is there an easier way to assign all post data from a form to session data? Eg., $_SESSION['first_name'] = $_POST['first_name']; $_SESSION['last_name'] = $_POST['last_name']; $_SESSION['email'] = $_POST['email'];

Re: [PHP] Is there a way to...

2004-10-17 Thread raditha dissanayake
GH wrote: Is there a way to make sure that a page is only loaded via a require or include statement? or other type of SSI? I would like to make sure that a 'parent document' (namely admin_template.php) only calls the php file? Thanks leave if outside htdocs -- Raditha Dissanayake.

Re: [PHP] Is there a way to...

2004-10-17 Thread M Saleh EG
secure it with apache .ht* files for directory and file settings or the main config file. On Sun, 17 Oct 2004 15:35:58 +0600, raditha dissanayake [EMAIL PROTECTED] wrote: GH wrote: Is there a way to make sure that a page is only loaded via a require or include statement? or other type of

Re: [PHP] Is there a way to...

2004-10-17 Thread S. Daurer
are authenticating the file. If you are going to try this method, mix it up, use a rather unique variable name and or use a value that is hard to guess. -Minuk - Original Message - From: GH [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Saturday, October 16, 2004 9:15 PM Subject: [PHP

[PHP] Is there a way to...

2004-10-16 Thread GH
Is there a way to make sure that a page is only loaded via a require or include statement? or other type of SSI? I would like to make sure that a 'parent document' (namely admin_template.php) only calls the php file? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Is there a way to...

2004-10-16 Thread GH
this method, mix it up, use a rather unique variable name and or use a value that is hard to guess. -Minuk - Original Message - From: GH [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Saturday, October 16, 2004 9:15 PM Subject: [PHP] Is there a way

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-12 Thread Warren Vail
9:54 PM To: Vail, Warren; Mulley, Nikhil; [EMAIL PROTECTED] Subject: RE: [PHP] Is there any way of knowing User Currently Logged On? Hi Vail, My Worry is that If a remote OS is not Windows, then this would throw out garbage, Where as this Perl Script would work well at a Windows Side ,Bcoz I am

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-12 Thread Gryffyn, Trevor
probably still access the LOGON_USER variable. -TG -Original Message- From: Mulley, Nikhil [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 1:02 AM To: Gryffyn, Trevor; [EMAIL PROTECTED] Cc: John Holmes; Mulley, Nikhil Subject: RE: [PHP] Is there any way of knowing User

[PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Mulley, Nikhil
Hi Guys, Is there any way of finding the current user logged on the remote system I have a perl script which gets the user name who is currently logged on a remote Windows Machine #LoggedOnUsers(server, userRef).pl use Win32::NetAdmin; use strict; use vars qw($server @users_list);

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Vail, Warren
this helps, Warren Vail -Original Message- From: Mulley, Nikhil [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Is there any way of knowing User Currently Logged On? Hi Guys, Is there any way of finding the current user logged

Re: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread John Holmes
Mulley, Nikhil wrote: Is there any way of finding the current user logged on the remote system You can try $_SERVER['LOGON_USER'], but I think the remote computer has to be in the same domain as the server... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Gryffyn, Trevor
] Sent: Monday, October 11, 2004 2:49 PM To: Mulley, Nikhil Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Is there any way of knowing User Currently Logged On? Mulley, Nikhil wrote: Is there any way of finding the current user logged on the remote system You can try $_SERVER['LOGON_USER

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Mulley, Nikhil
Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Is there any way of knowing User Currently Logged On? Mulley, Nikhil wrote: Is there any way of finding the current user logged on the remote system You can try $_SERVER['LOGON_USER'], but I think the remote computer has to be in the same domain

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Mulley, Nikhil
) what the remote OS could be :( Nikhil. -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 11:33 PM To: 'Mulley, Nikhil'; [EMAIL PROTECTED] Subject: RE: [PHP] Is there any way of knowing User Currently Logged On? If you code in php something

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Mulley, Nikhil
, 2004 1:07 AM To: [EMAIL PROTECTED] Cc: John Holmes; Mulley, Nikhil Subject: RE: [PHP] Is there any way of knowing User Currently Logged On? It does and Windows Integrated Authentication has to be turned on (and Anonymous access turned off). I just got my company to configure that so my PHP

[PHP] Control structure - easier way than repeating conditions in IF?

2004-04-30 Thread BOOT
Hello! Can anyone tell me if there is an easier/shorthand for: if (($x == $a) || ($x == $b) || ($x == $c) || ($x == $d) ... ) {;} I understand the logic of why the following does not work: if ($x == ($a || $b || $c || $d)) {;} Thanks! -- PHP General Mailing List

RE: [PHP] Control structure - easier way than repeating conditions in IF?

2004-04-30 Thread Gryffyn, Trevor
easier to read I guess. -TG -Original Message- From: BOOT [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 11:49 AM To: [EMAIL PROTECTED] Subject: [PHP] Control structure - easier way than repeating conditions in IF? Hello! Can anyone tell me if there is an easier

Re: [PHP] Control structure - easier way than repeating conditions in IF?

2004-04-30 Thread Neil Freeman
Why not just use a switch?... switch ($x) { case $a: case $b: case $c: case $d: //do whatever you need break; default: //catch any other values here break; } Neil BOOT wrote:

[PHP] Re: Need a way to automate user logout

2004-02-05 Thread Ben Ramsey
Write the script in perl and chmod it to 755. Then use cron to schedule it. Here's a tutorial to show you how: http://www.unixgeeks.org/security/newbie/unix/cron-1.html Christian Calloway wrote: Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I

[PHP] Re: Need a way to automate user logout

2004-02-05 Thread Christian Calloway
awesome, thanks for the quick replies guys Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I would automatically log out (destroy user sessions and make note of it in the

Re: [PHP] Re: Need a way to automate user logout

2004-02-05 Thread Robby Russell
Ben Ramsey typed this on 02/05/2004 01:55 PM: Write the script in perl and chmod it to 755. Then use cron to schedule it. Here's a tutorial to show you how: http://www.unixgeeks.org/security/newbie/unix/cron-1.html Why not do this in PHP cmdline instead? This is a PHP list right? :-p --

[PHP] looking for a way to manually free memory in the middle of a script

2004-02-02 Thread kumar mcmillan
Hi. I'm running PHP 4.3.4 with bundled GD 2.0.1.5 Here is the problem: I'm running a PHP shell script to fix about a thousand image files that were uploaded to a server without much error checking. I'm skipping all the obvious problems like wrong file types and insanely large jpeg files but

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-08 Thread Christophe Chisogne
Chris Hayes wrote: It takes a lot more of users to tamper with POST data than with GET Not a lot more. Simply save the slightly modified form on a webserver you have access to (hidden field) -- or better create php code that generate the form OK, aunt Annie cant do that, but she wouldnt ever

[PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Scott Fletcher
Hi! I wanted to know is is there a way to configure PHP to make it not be affected when the web user tamper with the values in the post string after a webpage is submitted or something. (Further explanation below) I noticed when I use the hidden html input tag with hidden data

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox

2004-01-07 Thread Matt Matijevich
[snip] I noticed when I use the hidden html input tag with hidden data in it then when I click the submit button to submit the webpage, the hidden data then show up in the URL address. [/snip] I think if you just change the request method to post, the data will not show up in the url. -- PHP

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Richard Davey
Hello Scott, Wednesday, January 7, 2004, 5:43:31 PM, you wrote: SFI noticed when I use the hidden html input tag with hidden data in it SF then when I click the submit button to submit the webpage, the hidden data SF then show up in the URL address. Fine, no problem. But I noticed one

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Chris Hayes
At 18:43 7-1-04, you wrote: Hi! I wanted to know is is there a way to configure PHP to make it not be affected when the web user tamper with the values in the post string after a webpage is submitted or something. (Further explanation below) I noticed when I use the hidden html input tag

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Chris Shiflett
--- Scott Fletcher [EMAIL PROTECTED] wrote: I wanted to know is is there a way to configure PHP to make it not be affected when the web user tamper with the values in the post string after a webpage is submitted or something. If by after a page is submitted you mean after a page is requested

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-21 Thread Ford, Mike [LSS]
On 20 November 2003 20:39, Scott Fletcher wrote: Yea, the manual is clear but honestly, don't know what the offset really meant since there is no definition or explaination of how the offset work. Well, I really don't know how much clearer the sentence that says The optional offset parameter

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-21 Thread Scott Fletcher
Yea, plan to file a bug to include an example. As soon as the strpos() script work then I'll go ahead. Right now, mine doesn't work correctly with the 3rd and 4th line of code, so I'm trying to figure out why. :-) Scott Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On

[PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
Hi Everyone! Is there a way to get the strpos() to find the next needle in the haystack instead of just the 1st one only? (Where the 1st needle is the same string as the next needle)... Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 14:53, Scott Fletcher wrote: Hi Everyone! Is there a way to get the strpos() to find the next needle in the haystack instead of just the 1st one only? (Where the 1st needle is the same string as the next needle)... Look at the optional 3rd parameter to strpos().

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
How exactly does the 3rd parameter option work. I tried this but it doesn't work, so I don't know how exactly does it work... There isn't detail information on the php.net website... --snip-- $XML_Start = (strpos($res_str,![CDATA[,1)+9); $HTML_Start = (strpos($res_str,![CDATA[,2)+9);

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Kelly Hallman
On Thu, 20 Nov 2003, Scott Fletcher wrote: How exactly does the 3rd parameter option work. I tried this but it doesn't work, so I don't know how exactly does it work... There isn't detail information on the php.net website... The optional offset parameter allows you to specify which

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 17:39, Scott Fletcher wrote: How exactly does the 3rd parameter option work. I tried this but it doesn't work, so I don't know how exactly does it work... There isn't detail information on the php.net website... --snip-- $XML_Start =

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
Yea, the manual is clear but honestly, don't know what the offset really meant since there is no definition or explaination of how the offset work. All I know the definition of the offset is 'To balance each other out'. Like a weighting scale where one weight is more than other and I would need to

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
I'll try. I haven't got the PHP XML Parser to work, I think it is because the XML stuffs I receive is not a true XML, some of them don't have a closing tag either because one tag have actual data as an attribute inside one tag. It is kind of frustrating to on not knowing what XML Parser will

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Kelly Hallman
On Thu, 20 Nov 2003, Scott Fletcher wrote: Anyway, don't do that, use an existing XML parser.. I'll try. I haven't got the PHP XML Parser to work, I think it is because the XML stuffs I receive is not a true XML, some of them don't have a closing tag either because one tag have actual data

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
); Victor spång arthursson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 2003-11-17 kl. 17.06 skrev Chris Hayes: Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple… Arent there an easy way in PHP to accomplish this? have you

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
spång arthursson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 2003-11-17 kl. 17.06 skrev Chris Hayes: Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple… Arent there an easy way in PHP to accomplish this? have you been at http

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
around I havent found a way that's easy and simple. Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? Well, I've, and I also have to say that the XML-support in PHP lacks any usability. 2 pages code later I still cannot get it to work, and the manual

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Raditha Dissanayake
Well, I've, and I also have to say that the XML-support in PHP lacks any usability I am sorry to say this but the above comments indicates a lack of understanding about xml, xml parsing and PHP. The php xml parser is based on expat. expat was written by james clark a person who worked on some

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
So what do I need hearing it for ? I just answered the guy (what he needed was help, not punches slaps from wiseguys). Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, I've, and I also have to say that the XML-support in PHP lacks any usability… I am

Re: [PHP] easy and simple way to read xml into array

2003-11-18 Thread Victor Spång Arthursson
2003-11-17 kl. 17.06 skrev Chris Hayes: Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? Well, I've, and I also have to say that the XML-support

Re: [PHP] easy and simple way to read xml into array

2003-11-18 Thread Burhan Khalid
Victor Spng Arthursson wrote: 2003-11-17 kl. 17.06 skrev Chris Hayes: Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? Well, I've, and I also

[PHP] easy and simple way to read xml into array

2003-11-17 Thread Victor Spång Arthursson
Hi! Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple Arent there an easy way in PHP to accomplish this? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] easy and simple way to read xml into array

2003-11-17 Thread Chris Hayes
At 15:47 17-11-03, you wrote: Hi! Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple… Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? -- PHP General Mailing List (http://www.php.net

Re: [PHP] Need a nicer way to escape single/double quotes....

2003-11-13 Thread olinux
--- Scott Fletcher [EMAIL PROTECTED] wrote: Hi Fellas! I haven't found a more efficient way to better escape the quote characters for the javascript right from PHP because I only get The kid in the javascript alert message, so I'm wondering if anyone of you know of something better

[PHP] Need a nicer way to escape single/double quotes....

2003-11-12 Thread Scott Fletcher
Hi Fellas! I haven't found a more efficient way to better escape the quote characters for the javascript right from PHP because I only get The kid in the javascript alert message, so I'm wondering if anyone of you know of something better than that... --snip-- form name=Test_Form

[PHP] Anyone know a way of converting a timestamp value into something readable?

2003-10-14 Thread richard cook
Thank you R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyone know a way of converting a timestamp value into something readable?

2003-10-14 Thread Robert Cummings
See the documentation on the date() function. Cheers, Rob. On Tue, 2003-10-14 at 23:29, richard cook wrote: Thank you R -- .. | InterJinn Application Framework - http://www.interjinn.com |

[PHP] is there a way?

2003-07-31 Thread karl james
Hello guys, This may be off subject but not sure! Is there a way to have your html table represent one color, Cause when I click the link it turnes purple, and I want it to stay 336699 no matter what state. I tried to use css, but it does the whole page. And I want the 336699 to be in this

<    1   2   3   4   5   >