php-general Digest 12 Feb 2005 20:45:31 -0000 Issue 3282

Topics (messages 208580 through 208588):

NOTICE: Attachment Blocked
        208580 by: postmaster.adw1.com

updated php $_GET
        208581 by: Jacco Ermers
        208583 by: Marek Kilimajer
        208584 by: Jacco Ermers

Question: re: Session-only cookies and Firefox
        208582 by: RGL

Users logins in Linux machine
        208585 by: Bruno Santos
        208586 by: John Nichel

Advice/opinion requested on page section lineup
        208587 by: Alp

create/edit videofiles with php
        208588 by: arjen

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        php-general@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
The following message has been blocked because 
it contained a potential virus in an attachment.

        To:              php-general@lists.php.net
        From:            [EMAIL PROTECTED]
        Date:            Sat, 12 Feb 2005 08:35:56 +0100
        Subject:         [PHP] Re: unknown

If this was a legitimate attachment, please contact 
the IT Department for help.

--- End Message ---
--- Begin Message ---
Hello everyone,

I recently installed php5 onto my windows IIS. Previous I had php running on 
Apache. I coded a page (testing purposes) but now I get errors. the page can 
be viewed on a remote server (without the errors) http://seabird.jmtech.ca

Locally I receive these errors:

Undefined index:  section in 
C:\Inetpub\wwwroot\Seabird-local\includes\submenu.php on line 3

if($_GET['section']=='') etc.
It used to be that I could use a section == ''
is it new to php5 that I cannot? and I also used to be able to use 
$_GET[section] and now I have to use $_GET['section']

did I overlook anything configuring my php.ini or is this due to my new 
enviroment?

Thank you for helping 

--- End Message ---
--- Begin Message --- Jacco Ermers wrote:
Hello everyone,

I recently installed php5 onto my windows IIS. Previous I had php running on Apache. I coded a page (testing purposes) but now I get errors. the page can be viewed on a remote server (without the errors) http://seabird.jmtech.ca

Locally I receive these errors:

Undefined index: section in C:\Inetpub\wwwroot\Seabird-local\includes\submenu.php on line 3

if($_GET['section']=='') etc.
It used to be that I could use a section == ''
is it new to php5 that I cannot? and I also used to be able to use $_GET[section] and now I have to use $_GET['section']


did I overlook anything configuring my php.ini or is this due to my new enviroment?

Thank you for helping


This is due to different setting in error reporting, now you have also E_NOTICE turned on.


if($_GET['section']=='')

should be coded as:

if(empty($_GET['section']))

If GET variable 'section' is not sent, it is not equal to '', it does not even exists, is undefined. Using it triggers error of level E_NOTICE.

If you write

$_GET[section]

php is looking for constant named 'section'. However, it does not exists, so an error of level E_NOTICE is triggered. Undefined constant is then converted to string with its name. So you get $_GET['section'] in the end.

It's a good practice have full error reporting turned on, since this will help you spot errors and write safer code.
--- End Message ---
--- Begin Message ---
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Jacco Ermers wrote:
>> Hello everyone,
>>
>> I recently installed php5 onto my windows IIS. Previous I had php running 
>> on Apache. I coded a page (testing purposes) but now I get errors. the 
>> page can be viewed on a remote server (without the errors) 
>> http://seabird.jmtech.ca
>>
>> Locally I receive these errors:
>>
>> Undefined index:  section in 
>> C:\Inetpub\wwwroot\Seabird-local\includes\submenu.php on line 3
>>
>> if($_GET['section']=='') etc.
>> It used to be that I could use a section == ''
>> is it new to php5 that I cannot? and I also used to be able to use 
>> $_GET[section] and now I have to use $_GET['section']
>>
>> did I overlook anything configuring my php.ini or is this due to my new 
>> enviroment?
>>
>> Thank you for helping
>
> This is due to different setting in error reporting, now you have also 
> E_NOTICE turned on.
>
> if($_GET['section']=='')
>
> should be coded as:
>
> if(empty($_GET['section']))
>
> If GET variable 'section' is not sent, it is not equal to '', it does not 
> even exists, is undefined. Using it triggers error of level E_NOTICE.
>
> If you write
>
> $_GET[section]
>
> php is looking for constant named 'section'. However, it does not exists, 
> so an error of level E_NOTICE is triggered. Undefined constant is then 
> converted to string with its name. So you get $_GET['section'] in the end.
>
> It's a good practice have full error reporting turned on, since this will 
> help you spot errors and write safer code.

Thank you, that did the trick. Now it works without problems. 

--- End Message ---
--- Begin Message ---
Question:
Has anybody else noticed session-only cookies not disappearing when using
Firefox? Is this a Firefox bug (should they be notified/ or I get latest
Firefox) ?

Using IE6 I can:
setcookie('sesvar', 'this session only', 0, "", "www.mypersonaldomain.net");
This can be read and disappears after the browser has been closed.

Doing the same with Firefox 0.8 the cookie can be read, but also can be read
when the browser has been closed and a new one opened. It can also be read
after logging out, closing the browser and reopening a new browser.

Any ideas

Many Thanks

Roger

PS - I hope that this is the correct place to ask this question

--- End Message ---
--- Begin Message ---
Hello all.

I've a linux server that runs a mailserver for several users. I want to build a page where users can change their email password, that's their accounts password.

how can i with PHP manage to compare the password they type in a web form with the one they have in the system ?? (/etc/passwd) ??

can it be with LDAP ? or PAM ? or any other method ?

cheers !

Bruno Santos

--
Say no to software patents
www.nosoftwarepatents.com/
--
[EMAIL PROTECTED]
--
Divisao de Informatica
[EMAIL PROTECTED]
Tel: +351 272 000 155
Fax: +351 272 000 257
--
Hospital Amato Lusitano
[EMAIL PROTECTED]
Tel: +351 272 000 272
Fax: +351 272 000 257

--- End Message ---
--- Begin Message --- Bruno Santos wrote:
Hello all.

I've a linux server that runs a mailserver for several users. I want to build a page where users can change their email password, that's their accounts password.

how can i with PHP manage to compare the password they type in a web form with the one they have in the system ?? (/etc/passwd) ??

can it be with LDAP ? or PAM ? or any other method ?

SUEXE can do it, but I wouldn't recommend it.

--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com

--- End Message ---
--- Begin Message ---
Hi Experts,

I would like to be able to alter the lining-up of several sections on a php
generated webpage. What would be the best/optimal approach in achieving
that?

As an example "sections" referred to are mostly tables generated via code on
data obtained from a DB. Should I name them (somehow), shall I use a
seperate table to store the lining-up information or shall I add a
"precedence" integer column to each relevant table in the database, ...?

Thanks in advance for your guidance.

Alp

--- End Message ---
--- Begin Message ---
hello,

i'm rather new to php, but have quite some programming experience in different langiuages.
i'm working on an interactive installation that generates small movies, that are uoploaded to a server.
and i want two things to happen;
in one situation i need to encode the smal clips in the right format,
and copy them to a streaming server,


in the other situation i want those small clips to be stiched together on the server side,
before being encoded in the appropreate format and copied to the a streaming server


i've got multiple of those interactive installations, that communicate,
but they don't have the resources to de all the work themselves..
also they don't have the bandwidth to act as a server..
but the recoding/not recording time-proportions are more than enough
to keep up with uploading recorded movies.. so i want the server to do the rest


and i've got the idea that php should be capable of doing this...
but the only docs i find aree about creating Quicktime reference movies.

i'd prefer anything that's compatible with Quicktime- or Darwin streaming servers,
but any other suggestions are welcome too.. anyone?



thanks arri

--- End Message ---

Reply via email to