php-general Digest 2 Jul 2004 11:24:02 -0000 Issue 2853

2004-07-02 Thread php-general-digest-help
php-general Digest 2 Jul 2004 11:24:02 - Issue 2853 Topics (messages 189498 through 189530): Create a function 189498 by: John Taylor-Johnston 189499 by: Jason Barnett 189500 by: Jason Barnett Online Users 189501 by: Matt Palermo 189502 by: Curt

[PHP] php functions avail ?

2004-07-02 Thread Brent Clark
Hi I would like to know if these functions (for php 5)are already uploaded, available on the php.net sites, in terms of research and or support. http://zend.com/php5/whats-new.php Kind Regards Brent Clark MSN: [EMAIL PROTECTED] eMail: [EMAIL PROTECTED] Cell: +27 82 701 7827 Work No: +27 21 683

Re: [PHP] HTTP_AUTHORIZATION question

2004-07-02 Thread Alan McDonald
I have files contained in a download directory (.doc, .xls etc files) so I can't request authentication on each download from insie the files. I use authentication against a DB for the rest of the site and all pages are protected this way. My only way to protect these download files is to

RE: [PHP] Online Users[Scanned]

2004-07-02 Thread Michael Egan
Matt, The most comprehensive example of this is provided by PhpBB (www.phpbb.com). This application pretty much follows the logic you've set out. HTH, Michael Egan -Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: 02 July 2004 06:13 To: [EMAIL PROTECTED] Subject:

[PHP] Re: MySQL QUERY Results Not Appearing

2004-07-02 Thread Harlequin
Craig. Thanks for the response and sorry I've been delayed in getting back to you. I put a new page together and dropped all the peripheral code and this is what I ended up with: ?php /* MySQL Connection Variables */ $host=localhost; $user=arras_WebMaster; $password=qwerty;

[PHP] Reference Scripts: Imaging Database, Recursion, Age Validation, Reg Ex

2004-07-02 Thread Jason Paschal
Some things crop up while coding that I do not often use, so that I tend to forget the proper way to handle them and end up researching it and going through the same inoperable code again and again until I end up with something that works. Finally decided to host the code on my site and

RE: [PHP] Re: MySQL QUERY Results Not Appearing[Scanned]

2004-07-02 Thread Michael Egan
Don't know that this will work but it might help isolate the problem: /* MySQL Connection Variables */ $host=localhost; $user=arras_WebMaster; $password=qwerty; $dbase=arras_Members; /* MySQL Connection String */ if(!$dbConnect = @mysql_connect ($host, $user, $password)) { echo

RE: [PHP] PHP Bug ?

2004-07-02 Thread Pierre
Just try this : $temp = $country_list[$country_symbol]['AU'] ; Seems better :) Pierre -Message d'origine- De : adwinwijaya [mailto:[EMAIL PROTECTED] Envoyé : vendredi 2 juillet 2004 05:01 À : [EMAIL PROTECTED] Objet : [PHP] PHP Bug ? Hi... I found a bug (may be) I tried to do like

[PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Hi all, I have an extrange problem with the session cookie: In all my pages there I have this two lines to start the session: session_name('jcwse'); session_start(); When I access my website, at any page, everytyhink works OK, and the session cookie is set with no problem except for links. In

[PHP] Object is not instatiated on POST, Fatal error

2004-07-02 Thread Angelo binc2
Hi all, I have a PHP file. and when it loads it creates an object for my database : include(db_class.inc); fine. I make a couple of calls to the database class this is also working fine. Then I post the page but to itself and then I go into a function (lets call it xfunction) which is ONLY

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Angelo binc2
shouldn't session_start() come first? also remember that your devel computer might have different settings in the PHP.ini file to that of your ISP, probably register_globals is set to off. I would check it. HTH Angelo Jordi Canals [EMAIL PROTECTED] 7/2/2004 11:14:28 AM Hi all, I have an

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Jordi Canals wrote: This problem only arises on my ISP hosting (Linux+Apache 1.3) and does not show on my devel computer (Windows+Apache 2.0). I've been searching the manual, but found no explanation about that. Sorry forgot it: The two platforms run PHP 4.3.7 Thanks again, Jordi. -- PHP General

RE: [PHP] Object is not instatiated on POST, Fatal error SOLVED

2004-07-02 Thread Angelo binc2
Ok guys, I have fixed the problem and its a really easy fix. basically the object was out of scope and therefore PHP treated my object name as a new variable and therefore it obvioulsy was not set because it is a new variable. SO the way I got it working was to just call the code directly and not

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Angelo, thanks for your comments. session_name must go before session_start. I think register_globals has nothing to do with session cookies. I always work with register_globals = off as recommended. About the cookie params (In PHP.INI) I checked them on the two platforms with phpinfo() and

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Lars Torben Wilson
Jordi Canals wrote: Angelo, thanks for your comments. session_name must go before session_start. I think register_globals has nothing to do with session cookies. I always work with register_globals = off as recommended. About the cookie params (In PHP.INI) I checked them on the two platforms

Re: [PHP] Object is not instatiated on POST, Fatal error

2004-07-02 Thread Daniel Kullik
You might as well add a reference of your db-object to global scope. [code] $GLOBALS['_db_object'] = $db; [/code] Then you could access it anywhere in your code like this: [code] $GLOBALS['_db_object']-sumbitQuery($query); [/code] Daniel Angelo Binc2 wrote: Ok guys, I have fixed the problem and

[PHP] Re: Problem with session on first page loaded

2004-07-02 Thread Daniel Kullik
Source: http://www.php.net/set_cookie [snip] Once the cookies have been set, they can be accessed on the next page load with the $_COOKIE or $HTTP_COOKIE_VARS arrays. [/snip] Since PHP cannot access a cookie right after it has been set PHP cannot be sure if the cookie has been accepted on

[PHP] $_SESSION

2004-07-02 Thread Dennis Koot
Hello all, i have a question concerning the $_SESSION stuff. i have a domain registered with online webspace on this webspace i have put a litte bit of code that will send the visitor's of the website to my server using a frame. I open one frame full-screen size and i let it open

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Lars Torben Wilson wrote: About the cookie params (In PHP.INI) I checked them on the two platforms with phpinfo() and are exactly the same. Was your binary compiled with --enable-trans-sid? If so, I imagine the explanation would be something along the lines that because the session manager

Re: [PHP] HTTP_AUTHORIZATION question

2004-07-02 Thread Torsten Roehr
Alan McDonald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have files contained in a download directory (.doc, .xls etc files) so I can't request authentication on each download from insie the files. I use authentication against a DB for the rest of the site and all pages

[PHP] Re: Reference Scripts: Imaging Database, Recursion, Age Validation, Reg Ex

2004-07-02 Thread Torsten Roehr
Jason Paschal [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Some things crop up while coding that I do not often use, so that I tend to forget the proper way to handle them and end up researching it and going through the same inoperable code again and again until I end up with

[PHP] Strange Session Problem

2004-07-02 Thread Shaun
Hi, I have a config file which i include in every page: snip class object {}; $CFG = new object; $CFG-dbhost = localhost; $CFG-dbname = x; $CFG-dbuser = x; $CFG-dbpass = x; $connection = mysql_connect($CFG-dbhost, $CFG-dbuser, $CFG-dbpass); @mysql_select_db($CFG-dbname) or die( Unable to

[PHP] Re: Strange Session Problem

2004-07-02 Thread Shaun
Ooops, sorry about the attempted fake URL! Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a config file which i include in every page: snip class object {}; $CFG = new object; $CFG-dbhost = localhost; $CFG-dbname = x; $CFG-dbuser = x; $CFG-dbpass = x;

Re: [PHP] Online Users

2004-07-02 Thread Greg Donald
On Fri, 2 Jul 2004 01:13:14 -0400, Matt Palermo [EMAIL PROTECTED] wrote: Is it possible to make a table of all logged in users session ids and then check to see if the session still exists every couple minutes? So every minute or two, it would go through the table and for each record it

[PHP] Header or includes for one-level up access?

2004-07-02 Thread Andre Dubuc
Orginally when I designed my site, I put the db access file, conn.php, in the webarea - where all files reside. After reading a recent thread, I realize that this may not be too secure. Therefore, I would like to shove conn.php one level above the webarea. However, I don't feel like re-writng

Re: [PHP] MySQL QUERY Results Not Appearing[Scanned]

2004-07-02 Thread Harlequin
Michael just wanted to thank you through the group for your time. U R A Star...! -- - Michael Mason Arras People www.arraspeople.co.uk - Michael Egan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Have a look at the mysql

RE: [PHP] MySQL QUERY Results Not Appearing[Scanned]

2004-07-02 Thread Michael Egan
Glad to be of help. I'm sure there will be many more occasions when I'm badly in need of assistance. Cheers, Michael -Original Message- From: Harlequin [mailto:[EMAIL PROTECTED] Sent: 02 July 2004 13:55 To: [EMAIL PROTECTED] Subject: Re: [PHP] MySQL QUERY Results Not Appearing[Scanned]

RE: [PHP] Problem with session on first page loaded

2004-07-02 Thread Michael Sims
Jordi Canals wrote: the ISP changed a param in the PHP.INI, and they changed session.use_trans_sid setting it to 1. [...] Now I should talk to the provider to not set this parameter to ON by default, because the security risk on it (As stated on the manuals). If they allow you to use

[PHP] session id changing all the time on some pc's

2004-07-02 Thread Zilvinas Saltys
Hello, I have a strange problem. For example i have a script: ?php session_start(); echo session_id(); ? Once it started a session the session_id should never change. It works on my localhost with default php configuration. I'm using mozilla firefox and IE. I put this script on some other

Re: [PHP] Header or includes for one-level up access?

2004-07-02 Thread Jordi Canals
Andre Dubuc wrote: I thought a simple re-direct page might do the trick. I've tried three methods: the header approach header(location: ../conn-up.php); an absolute header: header(location: /vhome/conn-up.php); and an include approach: include(../conn-up.php); Te header methods will not

[PHP] Re: Header or includes for one-level up access?

2004-07-02 Thread Daniel Kullik
Andre Dubuc wrote: Orginally when I designed my site, I put the db access file, conn.php, in the webarea - where all files reside. After reading a recent thread, I realize that this may not be too secure. Therefore, I would like to shove conn.php one level above the webarea. However, I don't

Re: [PHP] Header or includes for one-level up access? [SOLVED]

2004-07-02 Thread Andre Dubuc
On Friday 02 July 2004 09:16 am, Jordi Canals wrote: Andre Dubuc wrote: I thought a simple re-direct page might do the trick. I've tried three methods: the header approach header(location: ../conn-up.php); an absolute header: header(location: /vhome/conn-up.php); and an

[PHP] Uploading multiple files

2004-07-02 Thread gennaro losappio
Dear All. I ma trying to write a script that let the user choose how many languages to upload. Therefore the first script checks weather the user has choosed to add images, if not, he'll get a preview of the web site; otherwise array_padd will increment the array for the number of images the user

[PHP] call_user_func and call-time pass-by-reference

2004-07-02 Thread Andrew Nagy
How do you use the call_user_func function with call-time pass-by-reference deprecation? For example: function fun($arg) { $arg++; } $var = 0; call_user_func(fun, $var); echo $var; //echoes 0 instead of 1 Is their anyway to do this: call_user_func(fun, $var); Thanks for any help with this!

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Gerard Samuel
On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I looked at server configurations but i couldn't find anything usefull. I tried to change IE settings to accept all cookies but nothing changed. Maybe someone knows where's the problem.. I dont know of all the specifics of your

[PHP] Re: Uploading multiple files

2004-07-02 Thread Torsten Roehr
Gennaro losappio [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear All. Hi. I ma trying to write a script that let the user choose how many languages to upload. Therefore the first script checks weather the user has choosed to add images, if not, he'll get a preview of the web

Re: [PHP] Online Users

2004-07-02 Thread Matt Palermo
This looks like a good solution. What is the best way to list the current users, since the sesssionData seems to be serialized in the db or something? I just want to list out all the users from the db. Thanks, Matt http://sweetphp.com Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Best way to send XML via HTTPS POST

2004-07-02 Thread Shaun Fanning
I need to interface with a partner's XML API and they require that the XML request be sent via HTTPS POST. I also need to parse the XML response that the partner's server will send back. Is CURL the best way to handle the transfer or something like PEAR HTTP_Request? I'm looking for the approach

Re: [PHP] call_user_func and call-time pass-by-reference

2004-07-02 Thread Tom Rogers
Hi, Saturday, July 3, 2004, 2:02:42 AM, you wrote: AN How do you use the call_user_func function with call-time AN pass-by-reference deprecation? AN For example: AN function fun($arg) { AN$arg++; AN } AN $var = 0; AN call_user_func(fun, $var); AN echo $var; //echoes 0 instead of 1 AN Is

Re: [PHP] call_user_func and call-time pass-by-reference

2004-07-02 Thread Andrew Nagy
Tom Rogers wrote: With call_user_function() you need to do this: call_user_func(fun, $var); Tom, this won't work due to the Call-Time Pass-By-Reference deprecation. Does anyone know how to do this? The error message says If you would like to pass it by reference, modify the declaration of

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Zilvinas Saltys
On Fri, 2 Jul 2004 12:21:34 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I looked at server configurations but i couldn't find anything usefull. I tried to change IE settings to accept all cookies but nothing changed. Maybe someone

Re: [PHP] Best way to send XML via HTTPS POST

2004-07-02 Thread Justin Patrin
On Fri, 02 Jul 2004 12:40:56 -0400, Shaun Fanning [EMAIL PROTECTED] wrote: I need to interface with a partner's XML API and they require that the XML request be sent via HTTPS POST. I also need to parse the XML response that the partner's server will send back. Is CURL the best way to handle

[PHP] include() with a query string?

2004-07-02 Thread Trejkaz Xaoza
Is there some way to fake inclusion with a query string attached? I am trying to add a feature to PHP-Mesh (don't know if anyone's heard of it or using it in these parts), basically some user discovered that they can't have portals with query strings attached to the URL. Currently, portals are

Re: [PHP] include() with a query string?

2004-07-02 Thread Justin Patrin
On Sat, 03 Jul 2004 03:02:07 +1000, Trejkaz Xaoza [EMAIL PROTECTED] wrote: Is there some way to fake inclusion with a query string attached? Yep. Set the $_GET, $_POST, or $_REQUEST vars you need before including. You could also store a backup copy before doing this and put it back after

Re: [PHP] Online Users

2004-07-02 Thread Matt Palermo
Okay, I actually found out how to list the users, but you have the following line of code: define('SITE_ONLINE_EXPIRE', 900); What is the 900? Is that 900 seconds? Thanks, Matt http://sweetphp.com Matt Palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This looks like a good

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 12:21:34 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I looked at server configurations but i couldn't find anything usefull. I tried to

[PHP] PHP 5 Install problem:[sapi/cli/php] Error 1 ?

2004-07-02 Thread Jough P
Hi all, I'm having trouble installing PHP 5 on a Fedora Core 2 box. I get through ./configure fine but during the make I get errors like this: ext/pcre/php_pcre.lo(.text+0x2e38):/home/jough/php-5.0.0RC3/ext/pcre/ php_pcre.c:1482: undefined reference to `php_pcre_exec' collect2: ld returned

RE: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Michael Sims
Zilvinas Saltys wrote: The problem is as i understand IE is not accepting the cookie. So the session id allways regenerates. Everything works fine with mozilla. [...] The only thing i want to know is all the truth about IE (6?) and cookies :) Could it be a problem with IE6 and P3P

Re: [PHP] safe mode/open basedir not working ?

2004-07-02 Thread robert mena
Ok. How about set the safe_mode_exec_dir to /dev/null then ? On Wed, 30 Jun 2004 21:55:17 -0700, Justin Patrin [EMAIL PROTECTED] wrote: YES. You need to set the safe_mode_exec_dir path to be some path without binaries. Such as: /etc, although that's a bad example. Make a directory with only

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 12:21:34 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I looked at server configurations but i couldn't find anything usefull. I

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 12:21:34 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I

Re: [PHP] safe mode/open basedir not working ?

2004-07-02 Thread Justin Patrin
That *may* not work as it's a file, not a folder. You're welcome to try, though. :-) On Fri, 2 Jul 2004 14:19:25 -0400, robert mena [EMAIL PROTECTED] wrote: Ok. How about set the safe_mode_exec_dir to /dev/null then ? On Wed, 30 Jun 2004 21:55:17 -0700, Justin Patrin [EMAIL PROTECTED]

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the user. Could you describe the last paragraph a bit more in detail? Thanks in advance! Torsten What if you used this? session_start();

Re: [PHP] safe mode/open basedir not working ?

2004-07-02 Thread robert mena
Ok. It did not worked. I had to create an empy dir. Well, one problem. Since I have users with ftp access and they host php scripts that handle file uploads. The files are created with apache.apache and are usually moved to the user's directory using move_uploaded_file. Since the owner/gorup

[PHP] Password encyption

2004-07-02 Thread Anzak Wolf
I have been looking at a number of scripts and they all seem to use something like a config.php file where there is a var called something like $dbpasswd but the password is still clear text. While I understand that the file only sets vars and it can be put outside the document root so that

[PHP] regular expression

2004-07-02 Thread George Lantz
Could someone help me with a regular expression? I am not very good at them. I want to find the following pattern inside a file: [%string%] Then extract the string portion to store in array. I would next like to replace those patterns with html code. That's right you guessed it a template

RE: [PHP] Password encyption

2004-07-02 Thread Jay Blanchard
[snip] But has anyone done something like encypting that password rather than leaving it in plan text. [/snip] Yes. Happy Independence Day! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5 Install problem:[sapi/cli/php] Error 1 ?

2004-07-02 Thread Jough P
Greetings, for anyone who is interested, I figured out what the problem was. After perusing my config options a few times I noticed one that was suspicious --with-pcre-regex=/usr I then found out these was the perl compatible regex stuff. I ended up leaving that option out and built PHP

Re: [PHP] Password encyption

2004-07-02 Thread John W. Holmes
Anzak Wolf wrote: Call me paranoid but I think I would rather play the little bit in overhead to decypt the password to give myself a slightly safer feel about my database password. Paranoid. And where do you plan on keeping the key to decrypt the password? In another file? How are you going to

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Gerard Samuel
On Friday 02 July 2004 02:13 pm, Torsten Roehr wrote: Passing the session id via GET/POST may be ugly but makes you independent of the browser's cookie settings. I would have to agree... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the user. Could you describe the last paragraph a bit more in detail? Thanks

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the user. Could you describe the last paragraph a bit more in detail?

Re: [PHP] Password encyption

2004-07-02 Thread Anzak Wolf
I realize the key needs to be stored somewhere which is part of the problem of how to make it a bit more secure. I just don't feel safe if a password in a flat file in clear text. Ideally the database should support something like an ssh style public/private Key auth where the private Key is

RE: [PHP] Password encyption

2004-07-02 Thread Jay Blanchard
[snip] I realize the key needs to be stored somewhere which is part of the problem of how to make it a bit more secure. I just don't feel safe if a password in a flat file in clear text. Ideally the database should support something like an ssh style public/private Key auth where the private

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the

Re: [PHP] regular expression

2004-07-02 Thread Josh Close
First of all, you might want to put more than one % probably like %%% Reason is, asp users % % like php uses ? ?. Just a precaution. You almost had the regex right. /%[a-z]+%/i Thans means, starts with a %, can match a-z, at least once (the + part) but as many times (greedy), then another

Re: [PHP] call_user_func and call-time pass-by-reference

2004-07-02 Thread Curt Zirzow
* Thus wrote Andrew Nagy: How do you use the call_user_func function with call-time pass-by-reference deprecation? For example: function fun($arg) { $arg++; } $var = 0; call_user_func(fun, $var); echo $var; //echoes 0 instead of 1 $func_call = 'fun'; $func_call($var); Curt --

RE: [PHP] Password encyption

2004-07-02 Thread Anzak Wolf
gt;[snip] gt;I realize the key needs to be stored somewhere which is part of the gt;problem of how to make it a bit more secure. I just don't feel safe if gt;a password in a flat file in clear text. Ideally the database should gt;support something gt;like an ssh style public/private Key auth

RE: [PHP] Password encyption

2004-07-02 Thread Bob Eldred
So host your own server. That way nobody but you has access to it. Then you could store the password wherever you want, unecrypted, and it wouldn't matter. If you're running an application that's that security conscious, you shouldn't be using a shared server anyway. -Original Message-

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
The $_SESSION['sid'] will follow from page to page. As long as the user stays in the current session, all $_SESSION variables will follow from page to page as long as session_start() is used. OK, but HOW do you manage that the user stays in the current session. Usually this is made sure by

RE: [PHP] Password encyption

2004-07-02 Thread Matthew Sims
So host your own server. That way nobody but you has access to it. Then you could store the password wherever you want, unecrypted, and it wouldn't matter. If you're running an application that's that security conscious, you shouldn't be using a shared server anyway. -Original

RE: [PHP] Password encyption

2004-07-02 Thread Anzak Wolf
gt;So host your own server. That way nobody but you has access to it. gt;Then you could store the password wherever you want, unecrypted, and it gt;wouldn't matter. If you're running an application that's that security gt;conscious, you shouldn't be using a shared server anyway. I do run my own

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Gerard Samuel
On Friday 02 July 2004 04:38 pm, Matthew Sims wrote: As long as the user keeps his browser pointing at your site, then they'll stay in the currect session. The moment they shut down the web browser, the session is lost. The logic doesnt compute with me. I guess I'll have to try this

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The $_SESSION['sid'] will follow from page to page. As long as the user stays in the current session, all $_SESSION variables will follow from page to page as long as session_start() is used. OK, but HOW do you manage

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
No, this is exactly what I wanted to know. But it would contradict everything I experienced with sessions until now - and it does. I just tested your code (with session_start() also at the top of page2). It does not work because there is absolutely no relation between page1 and page2 with

RE: [PHP] Password encyption

2004-07-02 Thread Bob Eldred
Well that's a whole different thing, then. -Original Message- From: Anzak Wolf [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 1:40 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Password encyption I do run my own server but I know for a fact that even if I

[PHP] PHP cgi

2004-07-02 Thread Steve Douville
There used to be a way that stripped something from a PHP binary that drastically reduced the size of the cgi file. For the life of me, I can't remember and can't find it on google anywhere. Anyone know what it is? TIA, Steve

[PHP] Re: Best way to send XML via HTTPS POST

2004-07-02 Thread Manuel Lemos
Hello, On 07/02/2004 01:40 PM, Shaun Fanning wrote: I need to interface with a partner's XML API and they require that the XML request be sent via HTTPS POST. I also need to parse the XML response that the partner's server will send back. Is CURL the best way to handle the transfer or something

[PHP] Help needed

2004-07-02 Thread Ingrid Angelin
Hi, I am completely new to PHP and would need some help. I have just opened a site for my manufaturing business and would like to create a section where each of my clients get their own account in which they can login and check the status of their order. For this I would need a script for

[PHP] Re: Best way to send XML via HTTPS POST

2004-07-02 Thread Shaun Fanning
Thanks Manuel, I will take a look at it. I do have complete control over the box this is running on, so I can rebuild PHP with support for CURL and OpenSSL if necessary. My main concern is having a robust approach that is fast and efficient under a high load. On 7/2/04 5:55 PM, Manuel Lemos

Re: [PHP] PHP cgi

2004-07-02 Thread Curt Zirzow
* Thus wrote Steve Douville: There used to be a way that stripped something from a PHP binary that drastically reduced the size of the cgi file. For the life of me, I can't remember and can't find it on google anywhere. Anyone know what it is? You're looking for the 'strip' command Curt --

RE: [PHP] PHP cgi

2004-07-02 Thread Vail, Warren
Found lots of stuff under google PHP Obfuscate. Unless you have compiler, php is source, and obfuscators seem to be directed at making things both compact and hard to hack. On the other hand, if you have a compiler, ignore this. Warren Vail -Original Message- From: Curt Zirzow

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Curt Zirzow
* Thus wrote Torsten Roehr: Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The only thing i want to know is all the truth about IE (6?) and cookies :) Heeelp :) Sorry to say that but just DO NOT use cookies. You will always have problems with users having

[PHP] Re: Best way to send XML via HTTPS POST

2004-07-02 Thread Manuel Lemos
Hello, On 07/02/2004 07:18 PM, Shaun Fanning wrote: Thanks Manuel, I will take a look at it. I do have complete control over the box this is running on, so I can rebuild PHP with support for CURL and OpenSSL if necessary. My main concern is having a robust approach that is fast and efficient under

Re: [PHP] PHP 5 Install problem:[sapi/cli/php] Error 1 ?

2004-07-02 Thread Curt Zirzow
* Thus wrote Jough P: Hi all, I'm having trouble installing PHP 5 on a Fedora Core 2 box. I get through ./configure fine but during the make I get errors like this: ext/pcre/php_pcre.lo(.text+0x2e38):/home/jough/php-5.0.0RC3/ext/pcre/ php_pcre.c:1482: undefined reference to

Re: [PHP] PHP 5 Install problem:[sapi/cli/php] Error 1 ?

2004-07-02 Thread Curt Zirzow
* Thus wrote Jough P: Greetings, for anyone who is interested, I figured out what the problem was. After perusing my config options a few times I noticed one that was suspicious --with-pcre-regex=/usr I had a feeling it was that. I then found out these was the perl compatible regex

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Zilvinas Saltys
On Fri, 2 Jul 2004 22:45:23 + Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Torsten Roehr: Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The only thing i want to know is all the truth about IE (6?) and cookies :) Heeelp :) Sorry to say

[PHP] php.ini mail settings

2004-07-02 Thread Olly
[mail function] ; For Win32 only. SMTP = smtp.mail.yahoo.co.uk ; for Win32 only sendmail_from= [EMAIL PROTECTED] ; for Win32 only ; For Win32 only. ;sendmail_from = [EMAIL PROTECTED] is there anyway to set a password for the mail function in php.ini thanks -- Olly Using Opera's revolutionary

Re: [PHP] php.ini mail settings

2004-07-02 Thread Justin Patrin
I don't think so. I would suggest using PEAR::Mail, which has support for passwords through its SMTP backend. On Fri, 02 Jul 2004 23:44:48 +0100, Olly [EMAIL PROTECTED] wrote: [mail function] ; For Win32 only. SMTP = smtp.mail.yahoo.co.uk ; for Win32 only sendmail_from= [EMAIL PROTECTED] ;

[PHP] Help installing on Fedora 2

2004-07-02 Thread David Bevan
Hi Everyone, I'm finally making the switch from Windows to Linux for development and I've run into a problem. I've got Apache, MySql, and PHP (I think, all the files look like there in the right places) installed. However I can only get Apache and MySql up and running, I can't seem to figure

Re: [PHP] include() with a query string?

2004-07-02 Thread Trejkaz Xaoza
Justin Patrin wrote: On Sat, 03 Jul 2004 03:02:07 +1000, Trejkaz Xaoza [EMAIL PROTECTED] wrote: Is there some way to fake inclusion with a query string attached? Yep. Set the $_GET, $_POST, or $_REQUEST vars you need before including. You could also store a backup copy before doing

Re[2]: [PHP] call_user_func and call-time pass-by-reference

2004-07-02 Thread Tom Rogers
Hi, Saturday, July 3, 2004, 3:00:22 AM, you wrote: AN Tom Rogers wrote: With call_user_function() you need to do this: call_user_func(fun, $var); AN Tom, this won't work due to the Call-Time Pass-By-Reference deprecation. AN Does anyone know how to do this? AN The error message says If

Re: [PHP] Password encyption

2004-07-02 Thread Michal Migurski
I realize the key needs to be stored somewhere which is part of the problem of how to make it a bit more secure. I just don't feel safe if a password in a flat file in clear text. Ideally the database should support something like an ssh style public/private Key auth where the private Key

[PHP] help ???

2004-07-02 Thread Dannis Yang
Dear: I wonder why my website runs smooth in PHP 4.1.1 but it does not in 4.3.7. Dannis

Re: [PHP] include() with a query string?

2004-07-02 Thread Justin Patrin
It just depends on the vars that the code expects. If it expects them to come via get, it may be $_GET, post, it may be $_POST. Or either of those could be in $_REQUEST (which is populated according to a config var) in a certain order from $_GET, $_POST, and $_COOKIE. In addition, $_GET can be in

Re: [PHP] Online Users

2004-07-02 Thread zareef ahmed
--- Matt Palermo [EMAIL PROTECTED] wrote: Okay, I actually found out how to list the users, but you have the following line of code: define('SITE_ONLINE_EXPIRE', 900); What is the 900? Is that 900 seconds? Yes time is in seconds. zareef ahmed = Zareef Ahmed :: A PHP Developer in

Re: [PHP] include() with a query string?

2004-07-02 Thread Trejkaz Xaoza
Justin Patrin wrote: It just depends on the vars that the code expects. If it expects them to come via get, it may be $_GET, post, it may be $_POST. Or either of those could be in $_REQUEST (which is populated according to a config var) in a certain order from $_GET, $_POST, and $_COOKIE. In

[PHP] PHP 4.3.7 build failed on HP-UX 11.23 IPF

2004-07-02 Thread Durai raj
Hello All, I can built PHP 4.3.7 on 11.23 IPF IC71L. But I got core dumped when I give gmake test. I used the following steps to build: $ ./configure --prefix=/opt/hpws/apache/php --with-apxs2=/opt/hpws/apache/bin/apxs --with-gettext --with-xml $ gmake $ gmake test /bin/sh: 13218 Memory

Re: [PHP] help ???

2004-07-02 Thread Galen
On Jul 2, 2004, at 9:46 AM, Dannis Yang wrote: Dear: I wonder why my website runs smooth in PHP 4.1.1 but it does not in 4.3.7. Dannis Please go through and tell us more information! We can't help you otherwise! At least tell us what your site does and define what smooth is and is not. And

Re: [PHP] help ???

2004-07-02 Thread Larry E . Ullman
I wonder why my website runs smooth in PHP 4.1.1 but it does not in 4.3.7. Without knowing any relevant details at all, I would suggest that the settings are different between the two servers, particularly register_globals and magic_quotes. Larry -- PHP General Mailing List

  1   2   >