[PHP] Re: Smarty and PEAR DB

2005-04-11 Thread Lester Caine
Matthew Weier O'Phinney wrote: As you can see I need the COUNT value but I not know how get it from = query using PEAR. Some body can help me? You'll need to do two different queries, one that counts the number of total results for the criteria, and one that pulls the set with a LIMIT statement. Of

Re: [PHP] Bulletproof POST remove

2005-04-11 Thread Joe Wollard
Andy, I've done this in the past when setting a cookie for a user-defined theme and also for a message board which used the post method. In my case I put all of the logic into a separate page altogether. So you'd have your form on page A, logic in page B and a landing page which can be the same

[PHP] Re: alternative to mysql_real_escape_string()

2005-04-11 Thread Raj Shekhar
[EMAIL PROTECTED] writes: > Hello, I have a quick question: To use a custom solution for > inhibiting sql injection attacks and not a database specific > solution like mysql_real_escape_string() > > http://php.net/manual/en/function.mysql-real-escape-string.php > > ... that will run on any data

Re: [PHP] Is there any other place to start php module?

2005-04-11 Thread Prathaban Mookiah
Might be under /modules.d/ Prathap -- Original Message --- From: Teng Wang <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Mon, 11 Apr 2005 20:57:58 -0400 Subject: [PHP] Is there any other place to start php module? > I can't find any line in httpd.conf to load libphp4.s

Re: [PHP] Split command problem

2005-04-11 Thread Prathaban Mookiah
I guess you are trying to create an array by the name 'name' and assign two elements to it by calling name($fname, $lname). Am I correct? I think it does not work that way. Try list($fname, $lname) = .. Then the variable $fname and $lname will contain the first and last names. list($fname, $

Re: [PHP] Storing password in cookie

2005-04-11 Thread Chris Shiflett
Richard Lynch wrote: On a shared server, every other PHP scripter can read your session data, if they work at it a little bit. You should mention that this is assuming a default configuration. There are ways to avoid this. For truly sensitive stuff like a CC#, do *NOT* put that in session data. W

[PHP] Re: Limiting Cpu usage

2005-04-11 Thread zini10
in a brief rethinking, that is excatly what i need to do - change the php itself... now, i found the execute function but can someone please explain how can i put a usleep or sleep or somethink which doesnt take up cpu cycles (like the sleep command in linux?) thanks/ -- PHP General Mailing L

[PHP] Is there any other place to start php module?

2005-04-11 Thread Teng Wang
I can't find any line in httpd.conf to load libphp4.so, so I added such a line to load it. But systems says [warn] module php4_module is already loaded, skipping So I guess there is some other place to start php4 already. Where can I find it? Thanks! eruisi

Re: [PHP] dynamic image will not print properly

2005-04-11 Thread DuSTiN KRySaK
Replying below. On 11-Apr-05, at 5:05 PM, Richard Lynch wrote: On Mon, April 11, 2005 3:04 pm, DuSTiN KRySaK said: I moved the script over to another host to test, and it worked fine there. So to me that says it should be something to do with the host... now is there anything in the php.ini that c

[PHP] Re: Limiting Cpu usage

2005-04-11 Thread zini10
Yeah . i thought about removing those entire functions by "DISABLE_FUNCTIONS" directive , it not that common either. is there a way to enforce declare(ticks=); automatically? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Limiting Cpu usage

2005-04-11 Thread Jared Williams
> but i must give them php support or else they coulnot do > anything on the server... > im limiting them by functions , safe mode and more.. I've known atleast one hosting operation that compile their own custom PHP, to limit the impact of problematic code. The only thing I can remember that

[PHP] Re: Limiting Cpu usage

2005-04-11 Thread zini10
but i must give them php support or else they coulnot do anything on the server... im limiting them by functions , safe mode and more.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installation problem of PhP5.0.4 on Fedora 2

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 3:41 pm, Teng Wang said: > Hi,Richard Lynch£º > > Thanks for your reply. But I can't find any line for PHP4. > > How to load both 4 and 5? If you want to use both PHP 4 and 5, see the thread "php 4 & php 5" from March 1st through March 5th. Pay particular attention to Rasmu

Re: [PHP] dynamic image will not print properly

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 3:04 pm, DuSTiN KRySaK said: > I moved the script over to another host to test, and it worked fine > there. So to me that says it should be something to do with the host... > now is there anything in the php.ini that could inflict this kind of > behavior? "anything" covers a

Re: [PHP] php and javascript

2005-04-11 Thread Marek Kilimajer
Richard Lynch wrote: On Mon, April 11, 2005 4:23 pm, Jared Williams said: Hmm, document.forms['Selection'].elements['distID[]'][0].value is perfectly valid, and should work in any decent browser. There is also document.getElementsByName() Didja try it? Cuz every time *I* ever tried it (back in Bro

Re: [PHP] Limiting Cpu usage

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 3:25 pm, Greg Donald said: > On Apr 11, 2005 5:06 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: >> I quit my last job in part because my "dev" server was a "live" box. >> Sheesh! > > I have so been there before. Sucks. > > Vmware, user-mode-linux, and Freebsd jails someti

RE: [PHP] php and javascript

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 4:23 pm, Jared Williams said: > Hmm, document.forms['Selection'].elements['distID[]'][0].value is > perfectly valid, and should work in any decent browser. > > There is also document.getElementsByName() Didja try it? Cuz every time *I* ever tried it (back in Browser Wars 3.

Re: [PHP] sessions not being stored : DAY 2

2005-04-11 Thread Richard Lynch
On Sat, April 9, 2005 8:25 am, Yuri Huitrón Alvarado said: > but then what could be causing that the sessions are not being stored in > /tmp/sess ? It's POSSIBLE, but very unlikely, that 'whoami' is getting fooled into printing 'root' and you're not really 'root' I think I once saw phpinfo() prin

Re: [PHP] Storing password in cookie

2005-04-11 Thread Richard Lynch
On Sat, April 9, 2005 8:39 am, Ryan A said: > This certainly has turned out to be an interesting discussion.I > usually > send the info via sessions...how bad is that? On a shared server, every other PHP scripter can read your session data, if they work at it a little bit. How bad is that? O

Re: [PHP] Storing password in cookie

2005-04-11 Thread Richard Lynch
On Sat, April 9, 2005 11:51 am, [EMAIL PROTECTED] said: > Well, just because I'm not sure it is worth the effort. What is the > point of storing a hash code as a proxy (in the colloquial sense of the > word) for an encrypted password if knowing the hash code gets you the > same access as knowing t

RE: [PHP] php and javascript

2005-04-11 Thread Jared Williams
> On Sun, April 10, 2005 4:32 pm, Marek Kilimajer said: > > Assuming your form is named "Selection", you will have a javascript > > array document.forms['Selection'].elements['distID[]'] > available. You > > can try: > > > > alert(document.forms['Selection'].elements['distID[]'][0].value); > >

Re: [PHP] Storing password in cookie

2005-04-11 Thread Richard Lynch
On Sat, April 9, 2005 1:37 pm, Skippy said: > On Sat, 09 Apr 2005 14:51:49 -0400 [EMAIL PROTECTED] wrote: >> A digression to a related issue (where I did take the conservative >> approach): A system I'm working on now was originally set up with >> password hashes in the database -- the PW itself w

Re: [PHP] Simple Licensing System

2005-04-11 Thread Richard Lynch
On Sat, April 9, 2005 6:29 pm, Bruno B B Magalhães said: > And how do I generate this, and how would I check it?!?! ssh-key-gen (ssh-keygen ?) would generate your key-pair. Then there is some kind of ssh-sign function that signs a given document, but I forget its name, as I've never used it, just

Re: [PHP] Question about fsockopen

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 1:00 am, [EMAIL PROTECTED] said: > I have several IP in one interface (eth0) in my server and I want make > connection to another server (check email, etc) using different ip for > every mail server. I was read the document, and there is no way how to > make this happen. Any

Re: [PHP] Re: Limiting Cpu usage

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 10:55 am, zini10 said: > Thought about that, but its a free host that will host many many users.ill > prefer them to have low cpu usage limit also if the system is free of > tasks > as that will never happen. > any user can come, prepare a script which will do a infinite loop

Re: [PHP] php and javascript

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 4:32 pm, Marek Kilimajer said: > Assuming your form is named "Selection", you will have a javascript > array document.forms['Selection'].elements['distID[]'] available. You > can try: > > alert(document.forms['Selection'].elements['distID[]'][0].value); I can GUARANTEE this

Re: [PHP] Redirection after login with security

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 7:48 pm, Adam Hubscher said: > In an attempt to provide the best way to limit the # of accounts per > person, I assumed that this could be accomplished by placing a dummy > value only used by the site itself that is the username/encoded password > for them on the community, a

Re: [PHP] Installation problem of PhP5.0.4 on Fedora 2

2005-04-11 Thread Teng Wang
Hi,Richard Lynch: Thanks for your reply. But I can't find any line for PHP4. How to load both 4 and 5? Thanks again! Teng Wang 2005/04/11 18:36:36 >At Mon, 11 Apr 2005 15:28:38 -0700

Re: [PHP] Creating INSERT INTO statement from dbf file

2005-04-11 Thread Tom Rogers
Hi, Tuesday, April 5, 2005, 6:33:31 AM, you wrote: RSJ> Ave, RSJ> I¹ve written a code that is able to extract the Column names and Records RSJ> from a simple dbf (foxpro) file and create an INSERT INTO sql statement RSJ> which can be used to insert all those records with their corresponding fie

Re: [PHP] shared library in php

2005-04-11 Thread Ângelo A . Camargo
There might even be a docmented API listing all functions and their arguments. Use that too. There is. You *PROBABLY* have some kind of exsiting interface to this .so file in the first place, or it wouldn't be useful. If you have the .h file, use that. If you have some kind of Perl or C interfa

Re: [PHP] Limiting Cpu usage

2005-04-11 Thread Greg Donald
On Apr 11, 2005 5:06 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > I quit my last job in part because my "dev" server was a "live" box. Sheesh! I have so been there before. Sucks. Vmware, user-mode-linux, and Freebsd jails sometimes help in these situations. -- Greg Donald Zend Certified

Re: [PHP] multiple databases with one connection

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 9:55 pm, Yulius Tjahjadi said: > Is there a way to change the database after a pg_connect > happens? I think in mysql, you can do mysql_select_db('newdb'), > but there isn't really an equivalent function. > > In psql, I can use \connect "newdb", but I think that disconnect >

Re: [PHP] alternative to mysql_real_escape_string()

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 12:16 am, [EMAIL PROTECTED] said: > I have a quick question: To use a custom solution for inhibiting sql > injection attacks and not a database specific solution like > mysql_real_escape_string() > > http://php.net/manual/en/function.mysql-real-escape-string.php > > ... that

Re: [PHP] Limiting Cpu usage

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 3:05 am, zini10 said: > ok, that will do some of the trick , but still , a user can just write a > script which: > > for($i=0;$i<;$i++) > { > $x=$x+1; > } > > or something and refresh it the whole time and really slow down everybody > else Yes. Allowing untrus

Re: [PHP] dynamic image will not print properly

2005-04-11 Thread DuSTiN KRySaK
I just wanted to add something to this I moved the script over to another host to test, and it worked fine there. So to me that says it should be something to do with the host... now is there anything in the php.ini that could inflict this kind of behavior? d On 5-Apr-05, at 5:57 PM, Richar

Re: [PHP] Storing password in cookie

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 9:13 am, Chris Boget said: >> Please refrain from such speculation, because it does nothing to improve >> the state of security within our community. This idea of storing >> passwords in cookies is absurd. > > Is the above sentiment true even if you store the password as some

Re: [PHP] Visual PHP Editor?

2005-04-11 Thread Greg Donald
On Apr 11, 2005 1:53 PM, M Saleh EG <[EMAIL PROTECTED]> wrote: > We are yet blessed with existense of Zend IDE with the new features such as > SQL views. > But, is there a tool such as VS.Net ? in the means of > visualness of the editing stage too? http://www.jcxsoftware.com/vs.php

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Marek Kilimajer
Jochem Maas wrote: Marek Kilimajer wrote: Jochem Maas wrote: John Nichel wrote: Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/thin

Re: [PHP] shared library in php

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 9:21 am, Angelo Ayres Camargo said: > I have a shared library and i would like very much to use it in php. Do i > have to do anything or i can just dl it and use? I'm pretty sure you need the wrapper functions. If you didn't then all the other libraries wouldn't have them.

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Jochem Maas
Marek Kilimajer wrote: Jochem Maas wrote: John Nichel wrote: Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_

Re: [PHP] Re: Smarty and PEAR DB

2005-04-11 Thread Matthew Weier O'Phinney
* D. Wokan <[EMAIL PROTECTED]>: > Matthew Weier O'Phinney wrote: > > * Reynier Perez Mira <[EMAIL PROTECTED]>: > > > > > I'm using PEAR DB and Smarty. The case is that I have to pass a value = > > > from a query result to a Smarty var. I try to paginate results. See the = > > > code below: > > >

Re: [PHP] Dump client, nice concept...but how to do it via php?

2005-04-11 Thread Marek Kilimajer
Ryan A wrote: Hey, Thanks for replying. some other way of uploading a pic from the users mobile to the profile... email, but be aware of the security. Users should input some token in the subject. How with email? other than sending email using mail() i have never worked with any email functions

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Marek Kilimajer
Jochem Maas wrote: John Nichel wrote: Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null;

Re: [PHP] Dump client, nice concept...but how to do it via php?

2005-04-11 Thread Ryan A
Hey, Thanks for replying. > > some other way of uploading a pic from the users mobile to the profile... > > email, but be aware of the security. Users should input some token in > the subject. How with email? other than sending email using mail() i have never worked with any email functions in p

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Jochem Maas
John Nichel wrote: Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null; ...which has the sam

Re: [PHP] Re: Smarty and PEAR DB

2005-04-11 Thread D. Wokan
Matthew Weier O'Phinney wrote: * Reynier Perez Mira <[EMAIL PROTECTED]>: I'm using PEAR DB and Smarty. The case is that I have to pass a value = from a query result to a Smarty var. I try to paginate results. See the = code below:

Re: [PHP] Re: shared library in php

2005-04-11 Thread Angelo Ayres Camargo
Without knowing what the shared library is that you're trying to use, there's not much I can say. It may be that PECL already has the extension you're looking for. If it's a library you created and you want to use it as a PHP extension, take a look at the PHP manual, particularly the section on

[PHP] call_user_func_array and mysqli_stmt_bind_result

2005-04-11 Thread Patrick
Hi, This is working (as a packet of crackers): ... mysqli_stmt_bind_result ($stmt, $arr[1], $arr[2]); ... This I cannot get to work: ... $arr[0]=$stmt; $arr[1]=''; $arr[2]=''; call_user_func_array ('mysqli_stmt_bind_result',$arr); ... I'm not sure if what I try to do is possible in any wa

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread John Nichel
Ben Ramsey wrote: John Nichel wrote: b) Paths in the MS world are with the backslash (\) and not the forward slash (/) Windows NT onward (XP, 2003, etc.) should understand both the forward slash and the backslash in a file path. Like I said, it's been a loong time ;) -- John C. Nichel

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Maerlyn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Nichel wrote: > Ahmed Abdel-Aliem wrote: > >> $dest = $dest_dir . '/' .$this->File['name']; $r = >> move_uploaded_file($this->File['tmp_name'], $dest); >> $this->File_Name = $this->File['name']; >> chmod("files/".$this->File_Name, 777); > > > I

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
John Nichel wrote: b) Paths in the MS world are with the backslash (\) and not the forward slash (/) Windows NT onward (XP, 2003, etc.) should understand both the forward slash and the backslash in a file path. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Dump client, nice concept...but how to do it via php?

2005-04-11 Thread Marek Kilimajer
Ryan A wrote: Hey, A client asked me if I could do this, i told him i'll check around...so naturally I am asking you guys :-D He has an account with a sms gateway and has a website with come crappy profiles of his users. He wants the functionality that any of his users can send him an MMS message c

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread John Nichel
Ahmed Abdel-Aliem wrote: $dest = $dest_dir . '/' .$this->File['name']; $r = move_uploaded_file($this->File['tmp_name'], $dest); $this->File_Name = $this->File['name']; chmod("files/".$this->File_Name, 777); I haven't messed with

[PHP] Visual PHP Editor?

2005-04-11 Thread M Saleh EG
We are yet blessed with existense of Zend IDE with the new features such as SQL views. But, is there a tool such as VS.Net ? in the means of visualness of the editing stage too? Of corse we do have the PEAR repositories and the other libraries that make our life much easier. True

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: chmod("files/".$this->File_Name, 777); I'm not really sure how chmod() works on Windows. Someone else here may be able to answer that. However, I do know that chmod() expects an octal as the second argument, so you must prefix that 777 with a 0. It should be: chmod("f

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Josip Dzolonga
On ÐÐÐ, 2005-04-11 at 14:28 -0400, Ben Ramsey wrote: > The webserver needs to have permission to modify the file that you are > trying to delete. Check the file and directory permissions by > right-clicking the directory and going to properties. You will probably > need to give the user that con

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ahmed Abdel-Aliem
On Apr 11, 2005 8:39 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote: > Ahmed Abdel-Aliem wrote: > > On Apr 11, 2005 8:28 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote: > > > >>Ahmed Abdel-Aliem wrote: > >> > >>>i have a problem with deleting files, i use windows XP and installed > >>>on it apache server & PHP

Re: [PHP] deleting $_SESSION

2005-04-11 Thread John Nichel
Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null; ...which has the same effect as using:

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: On Apr 11, 2005 8:28 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote: Ahmed Abdel-Aliem wrote: i have a problem with deleting files, i use windows XP and installed on it apache server & PHP 5.1 i use unlink($file) to delete files but it doesn't work while it works fine on my webho

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Jason Wong
On Tuesday 12 April 2005 02:28, Ben Ramsey wrote: > In general, permission settings under Windows suck. Hmm I thought that the ACLs on NTFS were about the only thing that is good about Windows. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators *

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ahmed Abdel-Aliem
On Apr 11, 2005 8:28 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote: > Ahmed Abdel-Aliem wrote: > > i have a problem with deleting files, i use windows XP and installed > > on it apache server & PHP 5.1 > > i use unlink($file) to delete files but it doesn't work while it works > > fine on my webhosting w

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Marek Kilimajer
Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null; ...which has the same effect as using:

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: i have a problem with deleting files, i use windows XP and installed on it apache server & PHP 5.1 i use unlink($file) to delete files but it doesn't work while it works fine on my webhosting which is on linux machine is there another function to use to delete files under w

[PHP] Dump client, nice concept...but how to do it via php?

2005-04-11 Thread Ryan A
Hey, A client asked me if I could do this, i told him i'll check around...so naturally I am asking you guys :-D He has an account with a sms gateway and has a website with come crappy profiles of his users. He wants the functionality that any of his users can send him an MMS message containing a

[PHP] Can't Delete File Using Unlink

2005-04-11 Thread Ahmed Abdel-Aliem
Hi i have a problem with deleting files, i use windows XP and installed on it apache server & PHP 5.1 i use unlink($file) to delete files but it doesn't work while it works fine on my webhosting which is on linux machine is there another function to use to delete files under windows instead of link

[PHP] Re: shared library in php

2005-04-11 Thread Ben Ramsey
Angelo Ayres Camargo wrote: Hello, I have a shared library and i would like very much to use it in php. Do i have to do anything or i can just dl it and use? Angelo Without knowing what the shared library is that you're trying to use, there's not much I can say. It may be that PECL already has t

[PHP] Re: Smarty and PEAR DB

2005-04-11 Thread Matthew Weier O'Phinney
* Reynier Perez Mira <[EMAIL PROTECTED]>: > I'm using PEAR DB and Smarty. The case is that I have to pass a value = > from a query result to a Smarty var. I try to paginate results. See the = > code below: > > /= > > SmartyPagi

RE: [PHP] deleting $_SESSION

2005-04-11 Thread Chris W. Parker
Jochem Maas on Monday, April 11, 2005 10:45 AM said: > this oneliner might give you a little insight: > $x=1;$y=2;unset($x);$y=null;var_dump($x,isset($x),empty($x),$y,isset($y) ,empty($y)); > ?> If that's a oneliner I'd hate to see a twoliner! :P Chris. -- PH

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Jochem Maas
AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null; ...which has the same effect as using: unset($_SESSION['tot

[PHP] upgrading to php 4.3.11 gets me "No input file specified"

2005-04-11 Thread Ray
upgrading from 4.3.10 -> 4.3.11 test script: OS: Win2000 Server: Website 3.5 Server API: isapi php folder C:\php path includes c:\php PHPRC = c:\php C:\WINNT doesn't have any files with php in their name. installed 4.3.11 by renamed c:\php to php-4.3.10 unzipped the 4.3.11 file renamed the 4.3.1

[PHP] Bulletproof POST remove

2005-04-11 Thread Andy Pieters
Hi all I noticed some sites are able to remove POST data 100% of the time. Even if the user presses the back button there is no more POST data pressent. I would like to achieve the same thing and currently I use a location header to transfer the user to the same page. Like check post do act

[PHP] Smarty and PEAR DB

2005-04-11 Thread Reynier Perez Mira
Hello List: I'm using PEAR DB and Smarty. The case is that I have to pass a value from a query result to a Smarty var. I try to paginate results. See the code below: //

Re: [PHP] Storing password in cookie

2005-04-11 Thread Chris Shiflett
Chris Boget wrote: > This idea of storing passwords in cookies is absurd. Is the above sentiment true even if you store the password as some sort of hash (md5 or otherwise)? Yes, because passwords offer long-term access. If you accept a hash of the password for access, then that hash becomes as se

[PHP] shared library in php

2005-04-11 Thread Angelo Ayres Camargo
Hello, I have a shared library and i would like very much to use it in php. Do i have to do anything or i can just dl it and use? Angelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing password in cookie

2005-04-11 Thread John Nichel
Chris Boget wrote: Please refrain from such speculation, because it does nothing to improve the state of security within our community. This idea of storing passwords in cookies is absurd. Is the above sentiment true even if you store the password as some sort of hash (md5 or otherwise)? It's to

Re: [PHP] Storing password in cookie

2005-04-11 Thread Chris Boget
> Please refrain from such speculation, because it does nothing to improve > the state of security within our community. This idea of storing > passwords in cookies is absurd. Is the above sentiment true even if you store the password as some sort of hash (md5 or otherwise)? thnx, Chris -- PH

Re: [PHP] Storing password in cookie

2005-04-11 Thread Chris Shiflett
[EMAIL PROTECTED] wrote: > DO NOT STORE PASSWORDS ON USERS COMPUTER > > I hope that's clear enough. A couple of people have stated this but I think it is incorrect. Please refrain from such speculation, because it does nothing to improve the state of security within our community. This idea of sto

Re: [PHP] Storing password in cookie

2005-04-11 Thread Chris Shiflett
Computer Programmer wrote: What is a better way to store password in a cookie? This is one of the worst ideas people have, and if I'm guessing the reasoning behind your question correctly, this will help: http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice Keep in mind t

Re: [PHP] Creating INSERT INTO statement from dbf file - SOLVED!

2005-04-11 Thread Rahul S. Johari
Ave, I¹m sure there would be better ways of doing this, and mine may not be the most decent, but I did manage to solve this. Here¹s how I did it: - Create An Array - Run the loop for all the records in the table - Fill the array with the Field Names - Display the Fields names with the ³Comma² bei

Re: [PHP] Almost OT - urlencode and IE

2005-04-11 Thread Chris Shiflett
Chris wrote: I'm writing a web app that passes values in the URL separated by a / . I'm passing these values by supplying links to them. The writing and reading of these values is fine, I'm just stuck at the differing ways IE handles urlencoding the data.. IE will not work unless I double urlencode

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Ryan A
use unset() -Ryan On 4/11/2005 4:43:06 PM, AndreaD ([EMAIL PROTECTED]) wrote: > I have a session variable called > > > > $_SESSION['total'] the problem is I > can't delete/reset it. I have tried > > $_SESSION['total']= 0; > > $_SESSION['total']= ""; > > > and the thing remains. Is there a

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Josip Dzolonga
On ÐÐÐ, 2005-04-11 at 15:43 +0100, AndreaD wrote: > I have a session variable called > > $_SESSION['total'] the problem is I can't delete/reset it. I have tried > > $_SESSION['total']= 0; > > $_SESSION['total']= ""; www.php.net/unset , unset($_SESSION['total']); Josip Dzolonga, http://josip.do

Re: [PHP] deleting $_SESSION

2005-04-11 Thread -k.
--- AndreaD <[EMAIL PROTECTED]> wrote: > I have a session variable called > > $_SESSION['total'] the problem is I can't > delete/reset it. I have tried Try unset. unset($_SESSION['total']); http://us4.php.net/manual/en/function.unset.php -k. _

[PHP] deleting $_SESSION

2005-04-11 Thread AndreaD
I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; and the thing remains. Is there a special way to delete them?? AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Redirection after login with security

2005-04-11 Thread Raj Shekhar
Adam Hubscher <[EMAIL PROTECTED]> writes: > Problem: I would like to possibly utilize a login system (created on > the remote server), that would then check their username and password > against the CMS database located there, then redirect with that > information (encrypted of course), to the lo

Re: [PHP] Question about fsockopen

2005-04-11 Thread Hans Juergen von Lengerke
> Date: Sun, 10 Apr 2005 08:00:23 - (UTC) > From: [EMAIL PROTECTED] > > I have several IP in one interface (eth0) in my server and I want make > connection to another server (check email, etc) using different ip for > every mail server. I was read the document, and there is no way how to > mak

Re: [PHP] Redirection after login with security

2005-04-11 Thread Jason Wong
On Monday 11 April 2005 10:48, Adam Hubscher wrote: There seems to be 2 issues here: > In an attempt to provide the best way to limit the # of accounts per > person, I assumed that this could be accomplished by placing a dummy > value only used by the site itself that is the username/encoded > pa

[PHP] problem with mcrypt_generic_deinit function

2005-04-11 Thread php
I have a problem with this function. When I execute via web the script: I get the following: 3`ZïeYS lyZøW».c¿º¾óÇY»ÞÐ" ”4½ôUr-Ì¿°˜¯h Fatal error: Call to undefined function: mcrypt_generic_deinit() in /path/script.php on line 10 The first line on the www client is the third l

[PHP] Update XML

2005-04-11 Thread Stefan
Hi NG! I've a problem in updating an XML-Node value. How can I change the value of an XML node? Thanks in Advance Stefan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] in_array and annidated path

2005-04-11 Thread kioto
Hi all sory for the double post but i have deleted the first email that i have send to the list. The problem that i have found is that in_array function don't work with annidate path. I have created a function that update a list of filepath from a directory to DB but when i use particular path w

Re: [PHP] Adding Fonts to JpGraph

2005-04-11 Thread Graham Cossey
On Apr 6, 2005 2:53 AM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Mon, April 4, 2005 12:39 pm, Stephen Johnson said: > > I am using JPGraph for a project that I am working on right now and I have > > hit a small snag - > > > > My client wants to have the user be able to select from a list of ab

Re: [PHP] Limiting Cpu usage

2005-04-11 Thread zini10
another thing i just noticed is that it is designed for nanoweb server , not for apache but thanks anyway for your help. "Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Apr 10, 2005 9:27 AM, zini10 <[EMAIL PROTECTED]> wrote: >> hello, how can i limit cpu usag

Re: [PHP] Limiting Cpu usage

2005-04-11 Thread zini10
ok, that will do some of the trick , but still , a user can just write a script which: for($i=0;$i<;$i++) { $x=$x+1; } or something and refresh it the whole time and really slow down everybody else "Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On A

[PHP] alternative to mysql_real_escape_string()

2005-04-11 Thread info
Hello, I have a quick question: To use a custom solution for inhibiting sql injection attacks and not a database specific solution like mysql_real_escape_string() http://php.net/manual/en/function.mysql-real-escape-string.php ... that will run on any database, not just MySql, would the followin