Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
Dre wrote: and by the way .. I'm using MS Windows XP Pro. which I do believe that it has some hand in the problem :) Like you did not change session.save_path setting in php.ini from /tmp to whatever it is supposed to be on windows. "Dre" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Peter Brodersen
On Mon, 6 Sep 2004 13:33:02 +0800, in php.general [EMAIL PROTECTED] (Jason Wong) wrote: >> $username = trim(addslashes($_POST['user_name'])); >> $pass = trim(addslashes($_POST['password'])); > >addslashes() is not needed as you're performing SELECT query and not an INSERT >query. How did you

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Jason Wong
Please do not top post. On Monday 06 September 2004 06:53, Dre wrote: As well as what everybody else has said ... > $username = trim(addslashes($_POST['user_name'])); > $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're performing SELECT query and not an INSE

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: yes I'm sure Won't hurt to echo it out. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-05 Thread php-list
Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as secure as possible. I'm going to place the files outside the web directory and use authentication to approve that the user can download some particular song. I didn't know you could do a forced download. I will definitely

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
yes I'm sure "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dre wrote: > > > if((empty($_POST['user_name'])) || (empty($_POST['password']))) > > { > > header('Location: index.php'); > >include("login_form"); > >exit(); > > } > > That include is useless

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: if((empty($_POST['user_name'])) || (empty($_POST['password']))) { header('Location: index.php'); include("login_form"); exit(); } That include is useless, as you're forwarding to another document right before it. else{ include("db.php"); $sql = "SELECT * FROM me

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
and by the way .. I'm using MS Windows XP Pro. which I do believe that it has some hand in the problem :) "Dre" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I do know this > and what happen is that the $_SESSION array become empty once I redirect > from the login page (after logi

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
this is the username/password validation script which receives the user name and password from a regular form and they are sent correctly logme_in.php //== == "."CLICK HERE TO GO TO MEMBERS SECTION"; echo ""; //session_write

Re: [PHP] Session again !!!

2004-09-05 Thread Chris Shiflett
--- Dre <[EMAIL PROTECTED]> wrote: > $username = trim(addslashes($_POST['user_name'])); > $pass = trim(addslashes($_POST['password'])); I recommend using mysql_escape_string() or mysql_real_escape_string() instead of addslashes(). > if((empty($_POST['user_name'])) || (empty($_POST['password'])))

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! Are you starting the session on every page? How are you sending the session id? -- By-Tor.com It's all about the Rush http://ww

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-09-05 Thread Sam Hobbs
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > How about middle posting? I have noticed that usually when people say things like "don't top post", the reasons provided for not doing it apply equally as much to bottom-posting. What they really maen is that they wan

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
Dre wrote: I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! That means you are loosing your session. Is the session id sent? Is the session file (usualy in /tmp) created? "Marek Kilimajer"

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dre wrote: > > I don't know why but session variables does

[PHP] Re: Session again !!!

2004-09-05 Thread Torsten Roehr
"Dre" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I added print_r($_SESSION); after the session start(); > and the printed text was > > Array( ) Which means that your session value is NOT set. Your if/else should look like this: if (!isset($_SESSION['uname'])) { header('Loc

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
Dre wrote: I don't know why but session variables does not get posted .. is there any thing in the php.ini that I should configure as I can't find any thing wrong in the code I'm using !! Session variables are not posted, they are kept on the server. Only the session id is sent as a cookie, get or

Re: [PHP] ERROR IN THIS CODE

2004-09-05 Thread Jorge
$id = ( isset($_GET['id']) )?$_GET['id']:'1'; this was the solution. - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 05, 2004 9:36 PM Subject: Re: [PHP] ERROR IN THIS CODE Jorge wrote: I resolve the problem. And the solution wa

Re: [PHP] ERROR IN THIS CODE

2004-09-05 Thread John Nichel
Jorge wrote: I resolve the problem. And the solution was? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session again !!!

2004-09-05 Thread Jason Wong
On Sunday 05 September 2004 22:24, Dre wrote: > $_SESSION['uname'] = $username; session_write_close() before you redirect. > header('Location: /members/main.php'); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Inter

[PHP] Session variables does not get sent

2004-09-05 Thread Dre
I don't know why but session variables does not get posted .. is there any thing in the php.ini that I should configure as I can't find any thing wrong in the code I'm using !! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ERROR IN THIS CODE

2004-09-05 Thread Jorge
I resolve the problem. Thank you for all. - Original Message - From: "Jorge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 05, 2004 6:23 PM Subject: [PHP] ERROR IN THIS CODE the problem is that when i do a echo shows me: "SELECT * FROM oposicions WHERE id = ''" ---

[PHP] Re: installing PHP on winXP

2004-09-05 Thread Gerben
I finially found the solution to my problem (see also http://www.sitepoint.com/forums/showthread.php?t=92314). I downloaded the php4apache dll from http://www.kromann.info/php4.php and it's now working like a charm. thanks "Gerben" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >

[PHP] Re: Session again !!!

2004-09-05 Thread Dre
I added print_r($_SESSION); after the session start(); and the printed text was Array( ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] please ignore my last question

2004-09-05 Thread Felix Ang
Dear all, Please ignore my last question. I found out that simple echo on known variable can't work either. It's probably an installation problem. Thanks, Felix Ang

[PHP] Re: OOP in PHP 5 won't work under IIS 5.1

2004-09-05 Thread M. Sokolewicz
How does it not work? Does it show errors? or a blank screen? does IIS crash...? Felix Ang wrote: I installed PHP 5 and tried phpinfo(). It worked. But then I tried OOP sample from www.php.net , like: class MyClass { private $Hello = "Hello, World!\n"; protec

[PHP] Re: ERROR IN THIS CODE

2004-09-05 Thread Daniel Schierbeck
Jorge wrote: the problem is that when i do a echo shows me: "SELECT * FROM oposicions WHERE id = ''" - Original Message - From: "raditha dissanayake" <[EMAIL PROTECTED]> To: "Jorge" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, September 05, 2004 6:01 PM Subject: Re: Fw: [PH

Re: [PHP] tool to increase your web site?s profitability

2004-09-05 Thread Octavian Rasnita
Does this list have a moderator? Teddy From: "theeb basheer" <[EMAIL PROTECTED]> Dear Friend, Would you be excited if I told that YOU COULD EARN $3,500 EVERY DAY from a web site that gets only 100 visitors a day... and sells a product that costs less than $150? You could be earning over $100,0

[PHP] Re: installing PHP on winXP

2004-09-05 Thread Gerben
my install-paths are still the same. the real problem (I think) is that I'm missing the php4apache dll for some peculiar reason ||:-| Thanks anyway. I'll try downloading the zip file and doing it manually. "Chris Martin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gerben wrote

[PHP] Re: tool to increase your web site’s profitability

2004-09-05 Thread Daniel Schierbeck
Theeb Basheer wrote: Dear Friend, Would you be excited if I told that YOU COULD EARN $3,500 EVERY DAY from a web site that gets only 100 visitors a day... and sells a product that costs less than $150? You could be earning over $100,000 every month! This isn't hype. And this certainly is no joke!

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
thanks "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Dre" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I really did > > and it behaves the same > > > > I tried isset() also but there is no good it still does not work !!! > > > > > > "Afan Pasal

[PHP] OOP in PHP 5 won't work under IIS 5.1

2004-09-05 Thread Felix Ang
I installed PHP 5 and tried phpinfo(). It worked. But then I tried OOP sample from www.php.net , like: Hello; print "MyClass::printHello() " . $this->Bar; print "MyClass::printHello() " . $this->Foo; } } class MyClass2 extends MyClass {

[PHP] ERROR IN THIS CODE

2004-09-05 Thread Jorge
the problem is that when i do a echo shows me: "SELECT * FROM oposicions WHERE id = ''" - Original Message - From: "raditha dissanayake" <[EMAIL PROTECTED]> To: "Jorge" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, September 05, 2004 6:01 PM Subject: Re: Fw: [PHP] ERROR IN

Re: [PHP] Slow upload

2004-09-05 Thread Simon Rigét
but for such files PHP may take up a lot of > clocks and ram and thereby slow down on a busy server. >-- > Raditha Dissanayake. Shure you are right about that. But it is'nt 10-20 times harder for the server to upload then to download. I was thinking it was a problem in PHP with flushing a buffer

Re: [PHP] Goosebump ? ? New feature / implementaion in PHP

2004-09-05 Thread Marek Kilimajer
Manoj Kumar wrote: hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will av

[PHP] Re: Session again !!!

2004-09-05 Thread Dre
the code I use is //= ... other html code //= there are no extra spaces between the equal signs, and it does not give any errors, it just acts like if I'm not logged in is there any settings in the php.ini that m

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
it does not actually exist in the real code I just added it to show that there are 2 equal signs in there "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > In your code: > > if($_SESSION['uname'] = = "") > ^ > > Get rid of tha

Re: [PHP] Session again !!!

2004-09-05 Thread Torsten Roehr
"Dre" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I really did > and it behaves the same > > I tried isset() also but there is no good it still does not work !!! > > > "Afan Pasalic" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Try use > > > > if(empty($_SESSI

[PHP] here are Corey’s e-mail trade secrets

2004-09-05 Thread theeb basheer
Hi, It's not often that I am surprised by something I see online. And it's even more rare that I stumble upon a book that causes me to literally stop what I am doing and write a letter to everyone I know. But I just discovered that Corey Rudl -- probably one of the best-known and most well-res

[PHP] Re: interface problem in PHP5

2004-09-05 Thread Torsten Roehr
"Erik franzén" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If you want to delete an object, when you have other references to it, > you must use the & operator, otherwise the object will not be killed for > all references. > > I tested without the &-operator, but that did not work

Re: [PHP] Session again !!!

2004-09-05 Thread raditha dissanayake
Dre wrote: according to what little i know this should give you a parse error. if($_SESSION['uname'] = = "") -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean

[PHP] tool to increase your web site’s profitability

2004-09-05 Thread theeb basheer
Dear Friend, Would you be excited if I told that YOU COULD EARN $3,500 EVERY DAY from a web site that gets only 100 visitors a day... and sells a product that costs less than $150? You could be earning over $100,000 every month! This isn't hype. And this certainly is no joke! It's rare that I a

Re: Fw: [PHP] ERROR IN THIS CODE

2004-09-05 Thread raditha dissanayake
Is this part of a guessing game? do you want us to guess the error message you are seeing? Jorge wrote: include('include/conexion.php'); include('include/conf.php'); $sql = "SELECT * FROM oposicions WHERE id = '$id'";> I think that the

Re: [PHP] Session again !!!

2004-09-05 Thread Andre Dubuc
Hi, In your code: if($_SESSION['uname'] = = "") ^ Get rid of that extra space bewteen the == Hth, Andre On Sunday 05 September 2004 11:23 am, Dre wrote: > I really did > and it behaves the same > > I tried isset() also but there is no good it still does

Re: [PHP] Slow upload

2004-09-05 Thread raditha dissanayake
Simon Rigét wrote: Dos anyone know how to solve the problem of very slow file upload? I think its a common problem, but I can't find a solution anyware. (Upload 10 - 20 times slower then download, even on intranet) php V 4.3.1 /Free BDS 4.8 upload going slower than download is common enough for

[PHP] This is awesome

2004-09-05 Thread theeb basheer
Hi, If you have been marketing on the Internet for any length of time, chances are you have heard of Corey Rudl. Corey is one of the most successful REAL-LIFE Internet marketing experts online today. As one of my mentors, I have learned more about the hard- hitting Internet marketing strategie

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! "Afan Pasalic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try use > > if(empty($_SESSION['uname']) > > instead > > if($_SESSION['uname'] = = "") > > > Afan > > > > Dre wro

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! "Afan Pasalic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try use > > if(empty($_SESSION['uname']) > > instead > > if($_SESSION['uname'] = = "") > > > Afan > > > > Dre wro

[PHP] Slow upload

2004-09-05 Thread Simon Rigét
Dos anyone know how to solve the problem of very slow file upload? I think its a common problem, but I can't find a solution anyware. (Upload 10 - 20 times slower then download, even on intranet) php V 4.3.1 /Free BDS 4.8 Simon Rigét -- PHP General Mailing List (http://www.php.net/) To unsubscr

Fw: [PHP] ERROR IN THIS CODE

2004-09-05 Thread Jorge
include('include/conexion.php'); include('include/conf.php'); $sql = "SELECT * FROM oposicions WHERE id = '$id'";> I think that the problem is here. $result = mysql_query($sql, $link);

Re: [PHP] Session again !!!

2004-09-05 Thread Afan Pasalic
Try use if(empty($_SESSION['uname']) instead if($_SESSION['uname'] = = "") Afan Dre wrote: Hi .. I'm still working on my members login script. I'm using a simple username/password login form that calls the following login script //= if((empty

[PHP] Session again !!!

2004-09-05 Thread Dre
Hi .. I'm still working on my members login script. I'm using a simple username/password login form that calls the following login script //= //= the login scrip works fine .. and it directs

[PHP] ERROR IN THIS CODE

2004-09-05 Thread Jorge
include('include/conexion.php'); include('include/conf.php'); $sql = "SELECT * FROM oposicions WHERE id = '$id'";> I think that the problem is here.

Re: [PHP] PHP site ?

2004-09-05 Thread raditha dissanayake
Lester Caine wrote: Jack Gates wrote: I replaced this: $address = getenv("REMOTE_ADDR"); with this $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); and now I am getting exactly what I was trying to get. This will work fine for networks that provide their own 'REMOTE_ADDR', but once proxies are

[PHP] Re: !!Urgent .. Session Problem Solved ... But not completely

2004-09-05 Thread Torn
Message-ID: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Reply-To: "Dre" <[EMAIL PROTECTED]> From: "Dre" <[EMAIL PROTECTED]> Date: Sat, 4 Sep 2004 16:10:32 +0300 Subject: Re: !!Urgent .. Session Problem Solved ... But not completely > > the errors are as follows > > //===

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-05 Thread Daniel Schierbeck
[EMAIL PROTECTED] wrote: Hello everyone, I want to build a music site, all copyrights intact, and I want users to be able to download mp3 or realplayer files using a one-click link. When they click on a link they will simply be given a typical download window to save that music file. How do I go

Re: [PHP] Re: Does any one else get this?

2004-09-05 Thread Paul Waring
I get bounces from both addresses mentioned, but not every time it seems (must only happen why I reply to one of their questions and CC them I think). I also used to get vacation messages off someone but that's stopped now. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: array_merge changed behaviour in Php5??

2004-09-05 Thread M. Sokolewicz
You can find more info about this here: http://www.php.net/manual/en/migration5.incompatible.php I2eptilex wrote: Hi, I came across a strange behaviour in array_merge since I installed php5. I merge three arrays, one of them can be empty. So not an array at all. In php 4.3.6 that I had before, ther

[PHP] Re: htmlentities and foreign characters from MS Word

2004-09-05 Thread I2eptileX
Well it seems you have a UTF-8 encoded text after your function. Use iconv to change it. See http://de3.php.net/manual/en/ref.iconv.php . try doing this with your array before inserting it into the DB foreach($insert_array as $key => $var){ $new_arr[$key] = iconv("UTF-8", "ISO-8859-1", $v

[PHP] array_merge changed behaviour in Php5??

2004-09-05 Thread I2eptileX
Hi, I came across a strange behaviour in array_merge since I installed php5. I merge three arrays, one of them can be empty. So not an array at all. In php 4.3.6 that I had before, there was no warning and the two first arrays were merged. In php5 on the other hand, there is a warning and my arra

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-05 Thread Anders Ossowicki
Hi. > What should the link include? Is it possible to just say, > for example, http://somesite.com/music/something.mp3? There shuoldn't be any problem in just writing the link. You could make the syntax like this: print "http://domain.com/link/to/your/file.mp3\"; title=\"Name of your MP3 File\">"