[PHP] new session in new window

2004-03-08 Thread Tim Traver
Hi all, I am programming an interface using PHP and rely on sessions to keep state. What I want to be able to do is to open a new window from my application that has a new session, without disturbing the current session. I know that I can kill the current session and start a new one, but that's

Re: [PHP] new session in new window

2004-03-08 Thread Jason Davidson
could create an array to hold the same session? This may not at all be what your looking for, but ive used something similar to this when building a wizard class to handle storing states in wizard steps. like $_SESSION['mySessions']['WindowOne'] = array($userid, $loginTime, $etc) $_SESSION['mySes

[PHP] install mysql and mysqli together

2004-03-08 Thread Juergen Mueller
Hi, i would like to install the standard mysql extension together with the new mysqli extension. the documentation say, that in this case the bundled libmysql libary in PHP cannot be used. furthermore it recommended to use the client libaries installed by MySQL below Version 4.1 in /usr/mysql res

Re: [PHP] new session in new window

2004-03-08 Thread Tim Traver
Hthat would mean that anywhere I used sessions I would have to specify a window name, right ? and where do I determine the window name ? not sure that would work with what I want to do...I just want to start a new window like I would start it if I opened a fresh IE window. Each of thos

[PHP] PHP and GET/POST

2004-03-08 Thread Patrik Fomin
Hi, i got a page that i devided up into 3 diffrent pages, to call i use or 2-3, but i found out that you can just write the url: mypage.php?step=1 to get to step one, is there anyway to get rid of that possibility, since you enter diffrent information in each of the pages and submit it, and i dont

Re: [PHP] Problems with upload

2004-03-08 Thread kringla
Hi I am also running debian, and if I have safe_mode=On I am unable to upload images and get the following warnings. The code works if I disable safe_mode, but I have to get it working with safe_mode also. If I ever will see any money stream to me from my 'boss'... -

RE: [PHP] new session in new window

2004-03-08 Thread Vincent Jansen
I quess you should start another session with another name session_name("newApp"); session_start(); Vincent -Original Message- From: Tim Traver [mailto:[EMAIL PROTECTED] Sent: dinsdag 9 maart 2004 0:01 To: Jason Davidson Cc: [EMAIL PROTECTED] Subject: Re: [PHP] new session in new window

Re: [PHP] new session in new window

2004-03-08 Thread Chris Shiflett
--- Tim Traver <[EMAIL PROTECTED]> wrote: > What I want to be able to do is to open a new window from my > application that has a new session, without disturbing the current > session. Can you elaborate on this a little? This approach seems very odd to me, and I feel certain that it must be unnece

RE: [PHP] PHP and GET/POST

2004-03-08 Thread Vincent Jansen
If you let your script decide which page to load by examining $_POST['step'] You should get the desired behaviour. Seems like you have register_globals = on in your php.ini file and you're testing the variable $step (not the best of practices) Hope this helps. Vincent -- PHP General Mail

Re: [PHP] PHP and GET/POST

2004-03-08 Thread Chris Shiflett
--- Patrik Fomin <[EMAIL PROTECTED]> wrote: > i got a page that i devided up into 3 diffrent pages, > to call i use value="1"> > or 2-3, but i found out that you can just write the url: > mypage.php?step=1 to get to step one, is there anyway to get rid of > that possibility Yes, you can use $_POS

Re: [PHP] Very, very wiered problem

2004-03-08 Thread Marek Kilimajer
Mário Gamito wrote: Hi, I have this site at http://www.dte.ua.pt/ticct I don't know why, but it has a very strange behaviour. If you visit it and make a few reloads or browse through the site you'll see that *randomly* it shows only a blank page or an error saying it cannot find file whatever_fil

[PHP] PHP logging into htaccess Auth

2004-03-08 Thread daniel
Hi there i am having issues trying to get php to log into a htaccess protected directory. I used be able to simply have the username and password in the url like username:[EMAIL PROTECTED]/directory/to/protect now i get invalid syntax, any ideas ? -- PHP General Mailing List (http://www.php.net/

Re: [PHP] PHP and GET/POST

2004-03-08 Thread Patrik Fomin
How should you do it?, i mean i have 3 pages with some forms on two of em First page = some general information to fill in Second page = more deep information and last page to confirm and store in the database. All pages i got is in one single php file to be able to move between them, eg if they di

Re: [PHP] new session in new window

2004-03-08 Thread Tim Traver
Chris, ok, here's what the application is about. As an administrator, you log in to the main application. session id's keep track that you are authenticated, and who you are. In the application, you can get a list of the other users on the system. From that user list, I want to be able to laun

Re: [PHP] PHP logging into htaccess Auth

2004-03-08 Thread daniel
> Hi there i am having issues trying to get php to log into a htaccess > protected directory. I used be able to simply have the username and > password in the url like > username:[EMAIL PROTECTED]/directory/to/protect > > now i get invalid syntax, any ideas ? > > -- > PHP General Mailing List (http

Re: [PHP] PHP and GET/POST

2004-03-08 Thread Chris Shiflett
--- Patrik Fomin <[EMAIL PROTECTED]> wrote: > How should you do it?, i mean i have 3 pages with some forms on two of > em First page = some general information to fill in Second page = more > deep informationand last page to confirm and store in the database. > What methods is there to do this? se

Re: [PHP] PHP and GET/POST

2004-03-08 Thread Patrik Fomin
great thanks =) regards Patrick "Chris Shiflett" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > --- Patrik Fomin <[EMAIL PROTECTED]> wrote: > > How should you do it?, i mean i have 3 pages with some forms on two of > > em First page = some general information to fill in Second

Re: [PHP] new session in new window

2004-03-08 Thread Chris Shiflett
--- Tim Traver <[EMAIL PROTECTED]> wrote: > As an administrator, you log in to the main application. session id's > keep track that you are authenticated, and who you are. > > In the application, you can get a list of the other users on the > system. From that user list, I want to be able to launc

[PHP] Re: Variables inside a function

2004-03-08 Thread John Kaspar
use the global keyword... http://www.php.net/manual/en/language.variables.scope.php On 3/7/2004 6:17 PM, Nathan Croker wrote: I am relatively new to PHP. But something I can't seem to make work is when I call one of the functions I have made and a variable is set inside that function eg. funct

Re: [PHP] Re: Variables inside a function

2004-03-08 Thread Jason Davidson
you can reference the vars as well, but i would guess with some logic changes you could avoid the problem your having? Referencing .. $blah = ''; function add(&$blah, $something, $somethingElse) { $something ++; $somethingElse ++; $blah = $something + $somethingElse } John Kaspar <[E

RE: [PHP] PHP logging into htaccess Auth

2004-03-08 Thread Sam Masiello
I believe that using "http://"; in the front of the URL is required when using this syntax. --Sam [EMAIL PROTECTED] wrote: > Hi there i am having issues trying to get php to log into a htaccess > protected directory. I used be able to simply have the username and > password in the url like > u

Re: [PHP] Question on data loading

2004-03-08 Thread Miles Thompson
It's the old story Normalize your tables Use indexes on commonly called fields Fetch items only as needed, within reason. Remember that the web is stateless, so when you zero in for more data you will be refreshing the page from the server. One thousand items is very few for a database, try

Re: [PHP] new session in new window

2004-03-08 Thread Tim Traver
hthat didn't work. I sent a new session ID with the link to the new window like this : but all it does is change the current session id to the new one, so if I go back to the main window, it carries the new session into it. The reason I'm doing the access control through sessions is s

Re: [PHP] install mysql and mysqli together

2004-03-08 Thread Raditha Dissanayake
Hi, Installing mysqli by itself is complicated enough (or at least it does not run smoothly). I also had this need but gave up on it in the end. You can see my experience with this at http://www.raditha.com/mysql/mysqli.php my final solution was to install both php4 and php 5 :-( all the best

[PHP] Why is this happening

2004-03-08 Thread Bryan Bateman
This does not work: require('languages/' . $language . '/' . basename($PHP_SELF)); This does: require('languages/' . $language . '/' . basename($_SERVER['PHP_SELF']); Why -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Why is this happening

2004-03-08 Thread Martin Towell
have you got register_globals turned on or off? Martin > -Original Message- > From: Bryan Bateman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 9 March 2004 12:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Why is this happening > > > This does not work: > require('languages/' . $language

[PHP] Back Button produces Parse Error

2004-03-08 Thread Jough P
Anyone else had this problem where one of your PHP pages produces some output for a user to click on. The user clicks on one of these links which causes some behavior, then clicks their browsers BACK button. Now the original PHP page is producing a parse error. My particular parse error says:

RE: [PHP] Need Help in shoppin cart

2004-03-08 Thread Chris W. Parker
New Session on Thursday, February 22, 2001 2:58 AM said: > Sir, > I am a web developer, I had made many sites like shooping cart, > mangement leads etc. you *had* made? what happened to them? did they walk away or something? > Iam comfortable in PHP as well as in

Re: [PHP] PHP logging into htaccess Auth

2004-03-08 Thread Jason Wong
On Tuesday 09 March 2004 07:50, [EMAIL PROTECTED] wrote: > > username:[EMAIL PROTECTED]/directory/to/protect [snip] > Is there any other possible way to login dynamically with a script to > access files ? If not i'll have to store the files outside the web > directory and header load them. These

Re: [PHP] PHP logging into htaccess Auth

2004-03-08 Thread daniel
> > How exactly does your protection scheme work? The directories with the flash videos are protected using htaccess > > If you're using PHP to read files (from a .htaccess protected > directory) there is no need to use: > > username:[EMAIL PROTECTED]/directory/to/protect > > PHP is not subjec

RE: [PHP] Back Button produces Parse Error

2004-03-08 Thread Martin Towell
I haven't had anything like this happen to me, but maybe it's not line 52, maybe it's line 51 or 50 that's the problem... HTH Martin > -Original Message- > From: Jough P [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 9 March 2004 12:43 PM > To: PHP > Subject: [PHP] Back Button produces Parse

RE: [PHP] Need Help in shoppin cart

2004-03-08 Thread Ryan A
> > Sir, > > I am a web developer, I had made many sites like shooping cart, > > mangement leads etc. > > you *had* made? what happened to them? did they walk away or something? > > > Iam comfortable in PHP as well as in ASP & iam ready to make sites > > in just $500. > > you can make a website

Re: [PHP] Changing Default Charset

2004-03-08 Thread Span
I think it can't work if the server has set the default_charset in the (Bphp.ini . (B (Beg: (Bif in php.ini has: (Bdefault_charset="gb_2312" (Bthen only changing the charset in html page didn't work. (B>>header('Content-type: text/html; charset=UTF-8'); (B (B (B- Original Message

[PHP] using mail() for multiple email address...

2004-03-08 Thread Adam Reiswig
Hello all, I have a strange problem with the mail() function. It may not be php at all. I have multiple email accounts at my website. I just started testing the mail() function to learn how it works. When I send to multiple address' separating them via a comma, all goes well until I send the sa

[PHP] using mail() for multiple email address...

2004-03-08 Thread Adam Reiswig
Hello all, I have a strange problem with the mail() function. It may not be php at all. I have multiple email accounts at my website. I just started testing the mail() function to learn how it works. When I send to multiple address' separating them via a comma, all goes well until I send the sa

[PHP] using mail() for multiple email address...

2004-03-08 Thread Adam Reiswig
Hello all, I have a strange problem with the mail() function. It may not be php at all. I have multiple email accounts at my website. I just started testing the mail() function to learn how it works. When I send to multiple address' separating them via a comma, all goes well until I send th

[PHP] Re: Why is this happening

2004-03-08 Thread Ben Ramsey
This happens because register_globals is turned off in php.ini. In fact, it's best to leave it this way. Read the manual to find out why: http://www.php.net/variables-predefined Bryan Bateman wrote: This does not work: require('languages/' . $language . '/' . basename($PHP_SELF)); This does

[PHP] Retrieving Browser SSL Info in PHP

2004-03-08 Thread Daniel Collins
Hello, My problem is this: I wish to have extremely highly secure sessions. I have instituted full SSL, tuned apache, and set the web server security such that there is very low possiblity of internal session hijacking. However, I am concerned about the session fixation problem (as well as a dir

[PHP] date() before 1 Jan 1970...

2004-03-08 Thread adwinwijaya
Hello php-general, how to display date like Monday, 1 January 1903 18:11 pm in php ? (since the date() function only able to display date before 1970) (and why it only support date after 1 Jan 1970) ? thanks -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To u

[PHP] Re: MYSQL & Image functions

2004-03-08 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I am trying to use any of the image functions with image data from a > mysql database. I can get these functions to work from files on the > server but for some reason, not out of the database. If any one has > gotten this to work, code y

Re: [PHP] new session in new window

2004-03-08 Thread Chris Shiflett
--- Tim Traver <[EMAIL PROTECTED]> wrote: > I sent a new session ID with the link to the new window like this : > > > > but all it does is change the current session id to the new one, so if > I go back to the main window, it carries the new session into it. Yeah, you're only using one browser,

Re: [PHP] new session in new window

2004-03-08 Thread trlists
On 8 Mar 2004 Tim Traver wrote: > I sent a new session ID with the link to the new window like this : > > > > but all it does is change the current session id to the new one, so if I go > back to the main window, it carries the new session into it. I think this is trickier than it sounds. Ca

[PHP] Re: using mail() for multiple email address...

2004-03-08 Thread trlists
On 8 Mar 2004 Adam Reiswig wrote: > Normally, the two emails would end up in the same pop account but don't > seem to be when I use the above script. If I send to one or the other > they receive appropriately, but if I send to both at the same time, I > only receive one email, not both. If anyon

Re: [PHP] new session in new window

2004-03-08 Thread Tim Traver
Chris, ok, let me start over a little bit... what I meant by the session data getting stored locally is that it is local to the web server, not locally on the client browser. I understand how session variables work. I just said local, and i was thinking server...sorry about that... what i mea

[PHP] Re: date() before 1 Jan 1970...

2004-03-08 Thread Ben Ramsey
Check out the manual: http://www.php.net/strtotime Theoretically, this should work: $old_date = strtotime("January 1, 1903 18:11 pm"); echo date("Y-m-d H:i:s", $old_date); But all that echoes is: 1969-12-31 18:59:59 On that manual page, you'll see the following note: Note: The valid range of a t

[PHP] Re: date() before 1 Jan 1970...

2004-03-08 Thread Ben Ramsey
Ben Ramsey wrote: $old_date = mktime(0, 11, 18, 1, 1, 1903); echo date("Y-m-d H:i:s", $old_date); Argh! I had the numbers reversed. It should be: $old_date = mktime(18, 11, 0, 1, 1, 1903); But you get the idea... -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/Peo

[PHP] gd for windows not working

2004-03-08 Thread Joe Patiani
On Tue, 9 Mar 2004, Mehdi Achour wrote: > > guess. But the php extension not working. I need the php_gd2.dll running, > > I`ve copied it into system dir. But it`s still not working. > > > > Please tell me the solution, so I can use the gd dll in my windows. -- PHP General Mailing List (http:/

[PHP] OT Match Against

2004-03-08 Thread Richard Baskett
Do you have any idea why this query: SELECT hh_listings.listID, listingName, phone, email, held, venderID, hh_listings.disabled, hh_listings.deleted, hh_listings.levelID, levelName, islandName FROM hh_listings, hh_listlevels, hh_islands WHERE hh_listings.levelID=hh_listlevels.levelID AND hh_listin

[PHP] Problem integrating PHP into Servlet environment

2004-03-08 Thread Prudence Au
Hi all, I am working on a project where I need to have PHP talked with Servlet. I've been trying to integrate PHP into Servlet environment, so PHP can be easily communicate with the Servlet. However, I can't even get my test.php to work properly. All test.php does is to call phpinfo(). JDK:

<    1   2