[PHP] Upload

2002-04-24 Thread Gabriele Biondo

Hi, guys!
Does anyone know how to write a php script to upload a file
from my browser?
Moreover; how could i avoid security errors?

Thanx in advance

Gabriele

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] confusing problem w/sessions

2001-08-20 Thread Gabriele Biondo

Dear sirs;
i have a simple snippet of code :
?
session_start();
$a = 10;
session_register(a);
?

i am trying to understand how do session work.

Accessing at this document directly from the server (it is a SuSE 7.2 PE -
running PHP 4.0.4
and apache 1.3.9) i find out the following problem:

Warning: cannot send session cookie - headers already sent (output started
at )

and

Warning: cannot send session cache limiter - headers already sent (output
started at )

The matter is that if i access this variables from another page, they seem
to be empty...

How can i solve this little confusing problem?

Thanks in advance

Gabriele


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] confusing problem w/sessions

2001-08-20 Thread Gabriele Biondo



 start your session before sending any html output to browser

Okay. This solves the problem w/the warnings

 check that register_globals is on

It is actually on

 if not use $HTTP_SESSION_VARS(a) instead to reference your session var
 assign a value after having initialiazed your var not before
Done. Nothing changes at all...
my variables are saved (session_register(a) returns true) but from the
second page,
wich code is:
?session_start();
print $HTTP_SESSION_VARS[a];
print br$a;
?
i do not see anything at all...

more suggestions?

thanks in advance

Gabriele


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Need for dox...

2001-07-30 Thread Gabriele Biondo

Hi... i would like to have more infos about the sessions in PHP.
Where could i found them???

Thanks in advance

Gabriele



Re: [PHP] Need for dox...

2001-07-30 Thread Gabriele Biondo

Thanks buddies...

I didn't know the http://www.phpbuilder.com/ site!!! 
many, many thanks.

Gabriele


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need for dox...

2001-07-30 Thread Gabriele Biondo

Thanx again, buddies.
The pages you listed were really useful...

... is there a better search engine than the experience of other people that
faced the
problem before???

Later, friends!


- Original Message -
From: B. van Ouwerkerk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 3:53 PM
Subject: Re: [PHP] Need for dox...


 At 09:08 30-7-01 -0400, Jeff Lewis wrote:
 No need to get nasty :)  Keep the list friendly, it's better that way ;)

 HUH

 /me is always friendly..

 Seriously.. you can get lots of information from searchengines..

 Bye,


 B.


 Yeah, there are more important things in life then money,
 but they won't get out with you if you don't have any.


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] R: [PHP] Shopping with variables

2001-05-16 Thread Gabriele Biondo

 
 ?php print( You have asked to purchase $dvd $video $cd 's - 
 Thank you) ?
 
 This prints out, You have bought 16 - Thank you for example, see the
 problem? How do I get it to print the variable name not just it's value?

Try with replacing your print with the following one:

print( You have asked to purchase DVD: $dvd VIDEO: $video CD: $cd 's - ...

it should work.

Bye
Gabriele



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] R: [PHP] Shopping with variables

2001-05-16 Thread Gabriele Biondo


 Thanks Gabriele :) Whilst waiting for your e-mail I figured out another
 way...Thought I would show you it just in case you ever find the 
 need to use
 this alternative:
 
 ?php print( You have asked to purchase .
   ($dvd ? DVD: $dvd :'').
   ($video ? Video: $video :'').
   ($cd ? CD's: $cd :'').
- Thank you) ?
 
 Best Regards
 
 Taz


This should work even better.

Ciao

Gabriele

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Little question

2001-05-09 Thread Gabriele Biondo

Hi, Folks...
I have this little snippet of code:

?$myOra=MY STRING
?if (!(empty($myOra) || $myOra=)):{?
br
table width=550 border=0 align=center
tr bgcolor=ff
td colspan=3font size=2bOrario:/b?print($myOra)?/font/td
/tr
/table
?} endif?

It should print a little table with the string MY STRING...
... unfortunately, it doesn't.

Any suggestion

BTW: I run this code on the following configuration:

PHP Version: 4.0.4pl1
MySQL API version: 3.23.22-beta
Server API: httpd on a RHLinux 7.1

Thanks in advance

Gabriele Biondo


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] R: [PHP] Little question

2001-05-09 Thread Gabriele Biondo

Already added, nothing changed at all...


 -Messaggio originale-
 Da: Jason Murray [mailto:[EMAIL PROTECTED]]
 Inviato: mercoledì 9 maggio 2001 9.56
 A: 'Gabriele Biondo'
 Oggetto: RE: [PHP] Little question


  ?$myOra=MY STRING

 This needs to have a ? after it...

 Jason


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] R: [PHP] Little question

2001-05-09 Thread Gabriele Biondo

 this :
 
   if ... $myOra= ...
 
 should be more like :
 
   if ... $myOra ==  ...
 
 essentially you're setting $myOra as blank everytime which evaluates to
 true, then it ends up printing the blank, which is not good. regarding
 typos, this is a common one and since it reveals no error ... it can be
 frustrating! :)  you have others but this is the big one.

Thanks!!! I was really naive!!!
The other errors were all fixed (lots of them were caused by a Copy-paste
operation from UE to OE...)

Anyway you were really helpful

Thanks a lot

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]