php-general Digest 13 Dec 2003 20:49:33 -0000 Issue 2471

Topics (messages 172631 through 172648):

Re: count the elements of each dimension of the array
        172631 by: Marek Kilimajer

[Newbie Guide] For the benefit of new members
        172632 by: Ma Siva Kumar

Netscape4.7 will reload the page when resize the window if there have session_start() 
in these page
        172633 by: Jonathan Zhang

Re: POST upload script timeout
        172634 by: Iain Staffell

Re: (0/T) executeing script below public
        172635 by: Mike

session_start() make netscape 4.7 reload page.
        172636 by: Jonathan Zhang

session doesn't keep data
        172637 by: Kratos kenkes

Re: What is a XSS attacks?
        172638 by: Chris Shiflett
        172648 by: Chris Shiflett

PHP IDE?
        172639 by: Jough Jeaux
        172640 by: Ahbaid Gaffoor
        172641 by: Jough Jeaux
        172642 by: Richard Davey
        172643 by: Clint Tredway
        172644 by: Website Managers.net
        172645 by: Clint Tredway
        172646 by: Brian V Bonini

Email Forwarders
        172647 by: Matt Palermo

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:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
[EMAIL PROTECTED] wrote:
I have this script:

<?
$ojpp[] = "1";
$ojpp[] = "2";
$ojpp[] = "3";
$ojpp[] = "4";

This is illegal. Only one pair of empty square brackets is allowed. How whould php know where to add the new key?
$ojpp[][] = "1";

--- End Message ---
--- Begin Message ---
=======================================
This message is for the benefit of new subscribers 
and those new to PHP.  Please feel free to add 
more points and send to the list.
=======================================
1. If you have any queries/problems about PHP try 
http://www.php.net/manual/en first. You can 
download a copy and use it offline also. 

Please also try http://www.php.net/manual/faq.php 
to get answers to frequently answered questions 
about PHP (added by Christophe Chisogne).

2. Try http://www.google.com next. Searching for 
"php YOUR QUERY" may fetch you relevant results 
within the first 10 results, if you are lucky.

3. There is a searchable archive of the mailing 
list discussion at 
http://phparch.com/mailinglists. Many of the 
common topics are discussed repeatedly, and you 
may get answer to your query from the earlier 
discussions. 

For example: One of the repeatedly discussed 
question in the list is "Best PHP 
editor". Everyone has his/her favourite editor. 
You can get all the opinions by going through the 
list archives. If you want a chosen list try this 
link : 
http://phpeditors.linuxbackup.co.uk/ (contributed 
by Christophe Chisogne).

4. Just put the following code into a file with a 
.php extension and access it through your 
webserver:

<?php
phpinfo();
?>

This will display tons of info if php is enabled, 
or, it will ask you to download a file if php is 
NOT enabled.  (contributed by Teren)

5. If you are stuck with a script and do not 
understand what is wrong, instead 
of posting the whole script, try doing some 
research yourself. One useful trick is to print 
the variable/sql query using print or echo 
command and check whether you get what you 
expected. 

After diagnosing the problem, send the details of 
your efforts (following steps 1, 2 & 3) and ask 
for help.

6. PHP is a server side scripting language. 
Whatever processing PHP does takes 
place BEFORE the output reaches the client. 
Therefore, it is not possible to access the 
users'  computer related information (OS, screen 
size etc) using PHP. You need to go for 
JavaScript and ask the question in a JavaScript 
list.

(You can access information SENT by the user's 
browser while requesting pages from your server. 
You can get the details about browser, OS etc as 
reported by this request. - contributed by Wouter 
van Vliet)

7. Provide a clear descriptive subject line. Avoid 
general subjects like "Help!!", "A Question" etc.  
Especially avoid blank subjects. 

8. When you want to start a new topic, open a new 
mail composer and enter the mailing list address 
[EMAIL PROTECTED] instead of replying to 
an existing thread and replacing the subject and 
body with your message.

9. It's always a good idea to post back to the 
list once you've solved your problem. People 
usually add [SOLVED] to the subject line of their
email when posting solutions. By posting your 
solution you're helping the next person with the 
same question. [contribued by Chris W Parker]

10. Ask smart questions  
http://catb.org/~esr/faqs/smart-questions.html
[contributed by Jay Blanchard)

Hope you have a good time programming with PHP.

Best regards,
-- 
Integrated Management Tools for leather industry
----------------------------------
http://www.leatherlink.net

Ma Siva Kumar,
BSG LeatherLink (P) Ltd,
Chennai - 600106

--- End Message ---
--- Begin Message ---
test.php
-->
<?
session_start();
?>
<form>
<input type="text" name="test">
</form>

For Win2kpro+netscape 4.7,all form data you enter in this page will lost
when resize the browser's window size, ns4.7 have reload this page when
resize the window.
But if you remove the session_start() from this page, the issue will not
exist.

Is there any solution for it?

thanks,
Jonathan Zhang

--- End Message ---
--- Begin Message ---
"Eric Bolikowski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "Iain Staffell" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I have a script on my local machine to allow friends to send me files,
as
> IM
> > or FTP transfers don't work, and so I would like to accept reasonably
> large
> > files (10mb max).  I followed some of the examples shown around the net,
> but
> > continually found that the file would completely upload before giving an
> > error message that the maximum execution time of 30 seconds was exceeded
> in
> > line 3.  Not great when line 3 was set_time_limit(3600);
> >
> > I was under the impression that the time spent recieving the file from
the
> > user wasn't included in the execution time, and so timeouts wouldn't be
> > caused by this?
> >
> > The only solution I could find was to physically change the time limit
in
> > php.ini to a large value, which I would rather not do.  I am completely
> > stumped as to why the script times out, I am reasonably sure it behaved
> the
> > same when I enclosed everything in one set of <?  ?> and put echo's
> infront
> > of all the html.
> >
> > Here are snippets of my code and ini:
> >
> > PHP.INI:
> > max_execution_time = 30
> > max_input_time = 60
> > post_max_size = 10M
> > upload_max_filesize = 10M
> >
> > UPLOADS.PHP
> > http://tcc.hopto.org/uploads.php.txt
> >
> > Thankyou for your time :o)
>
> ini_set('max_execution_time', '3600');

With using ini_set I can now excede the maximum timeout limit (in that I
don't get a time limit exceeded message) - however instead of confirming the
file was uploaded, I just get a blank screen once the upload is completed,
and the net result is that no file was transferred in the end..
:oS

--- End Message ---
--- Begin Message --- Ryan A wrote:

I noticed one funny thing about this script, it starts with: #!/bin/sh
right on top but does not have a file extention...what kind of a file is
this?


Unix-like systems do not rely on file extensions to determine the file type. It uses whats called a magic number (a unique reference for each filetype)


to check a file type

# /> file myfile
which in this case should return

myfile: Bourne shell script text executable

Mike
--- End Message ---
--- Begin Message ---
test.php
-->
<?
session_start();
?>
<form>
<input type="text" name="test">
</form>

For Win2kpro+netscape 4.7,all form data you enter in this page will lost
when resize the browser's window size, ns4.7 have reload this page when
resize the window.
But if you remove the session_start() from this page, the issue will not
exist.

Is there any solution for it?

thanks,
Jonathan Zhang

--- End Message ---
--- Begin Message ---
Can someone tell me what am i doing wrong here? The session doesn't keep
data variables.
I'm using php 4.0.6 with register_globals on and the system is: "SunOS src
5.7 Generic_106541-12 sun4u sparc SUNW,UltraSPARC-IIi-cEngine" .

The first page called "info.php" looks like that:

<?php
session_start();
header("Cache-control: private");
global $HTTP_SESSION_VARS ;
$HTTP_SESSION_VARS['count'] = 4;
echo "The value of count is: " . $HTTP_SESSION_VARS['count'] . "</br>" ;
?>

and returns "The value of count is 4.</br> "

The second page called "info2.php" looks like:

<?php
session_start();
header("Cache-control: private");
global $HTTP_SESSION_VARS ;
echo "The value of count on the second page is: " .
$HTTP_SESSION_VARS['count'] . "</br>" ;
?>

  I open "info.php" and then i open "info2.php", which returns "The value of
count on the second page is: </br>" .

  Can anyone help please ?

--- End Message ---
--- Begin Message ---
--- [EMAIL PROTECTED] wrote:
> What is a XSS attacks?

I have a few resources on this available for free:

1. An article I wrote for php|architect:
http://www.phparch.com/sample.php?mid=16

2. A talk I gave at OSCON 2003:
http://conferences.oreillynet.com/os2003/

3. A talk I gave at ApacheCon 2003:
http://shiflett.org/talks/apachecon2003

The talks have links to additional resources near the end.

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
     Coming mid-2004
HTTP Developer's Handbook
     http://httphandbook.org/

--- End Message ---
--- Begin Message ---
--- Chris Shiflett <[EMAIL PROTECTED]> wrote:
> 2. A talk I gave at OSCON 2003:
> http://conferences.oreillynet.com/os2003/

My apologies; the link is actually:
http://shiflett.org/talks/oscon2003

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
     Coming mid-2004
HTTP Developer's Handbook
     http://httphandbook.org/

--- End Message ---
--- Begin Message ---
Was wondering what everyone's favortie IDE is for
coding in PHP.  I've got a big PHP project in the
works.  I'll be doing alot with it and am looking for
ways to boost my productivity.

--Jough


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

--- End Message ---
--- Begin Message --- vim - with folding and ctags

sweet.

Ahbaid

Jough Jeaux wrote:

Was wondering what everyone's favortie IDE is for
coding in PHP.  I've got a big PHP project in the
works.  I'll be doing alot with it and am looking for
ways to boost my productivity.

--Jough


__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/




--- End Message ---
--- Begin Message ---
Hmm, I'm currently a vim user also.  You'll have to
elaborate on this folding and ctag business though...


--- Ahbaid Gaffoor <[EMAIL PROTECTED]> wrote:
> vim - with folding and ctags
> 
> sweet.
> 
> Ahbaid
> 
> Jough Jeaux wrote:
> 
> >Was wondering what everyone's favortie IDE is for
> >coding in PHP.  I've got a big PHP project in the
> >works.  I'll be doing alot with it and am looking
> for
> >ways to boost my productivity.
> >
> >--Jough
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >New Yahoo! Photos - easier uploading and sharing.
> >http://photos.yahoo.com/
> >
> >  
> >
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

--- End Message ---
--- Begin Message ---
Hello Jough,

Saturday, December 13, 2003, 5:06:56 PM, you wrote:

JJ> Was wondering what everyone's favortie IDE is for
JJ> coding in PHP.  I've got a big PHP project in the
JJ> works.  I'll be doing alot with it and am looking for
JJ> ways to boost my productivity.

I use NuSphere's phpED - it was a quite expensive initial outlay, but
it has paid for itself many times over since then. For HTML work (with
PHP included) I still use HomeSite 5 + TopStyle and will never move to anything
else (Dreamweaver is bloated beyond belief and don't even get me
started on FrontPage :)

-- 
Best regards,
 Richard                            mailto:[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
I have started using PrimalScript from www.sapien.com

It's cheaper than NuSphere and I love it.

Clint Tredway
www.digital12studios.com


Original Message:
>From: Jough Jeaux <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] PHP IDE?
>Date: Sat, 13 Dec 2003 09:06:56 -0800 (PST)

>Was wondering what everyone's favortie IDE is for
>coding in PHP.  I've got a big PHP project in the
>works.  I'll be doing alot with it and am looking for
>ways to boost my productivity.
>
>--Jough
>
>
>__________________________________
>Do you Yahoo!?
>New Yahoo! Photos - easier uploading and sharing.
>http://photos.yahoo.com/
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--- End Message ---
--- Begin Message ---
Some of us prefer the basics. Note Tab Pro www.notetab.com
Has syntax highlighting and enough clip book libraries to do just about anything we 
want.
NetCaptor www.netcaptor.com for previewing our work.

Jim
www.websitemanagers.net

----- Original Message ----- 
From: "Jough Jeaux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 13, 2003 11:06 AM
Subject: [PHP] PHP IDE?


| Was wondering what everyone's favortie IDE is for
| coding in PHP.  I've got a big PHP project in the
| works.  I'll be doing alot with it and am looking for
| ways to boost my productivity.
| 
| --Jough

--- End Message ---
--- Begin Message ---
I also have Note Tab Pro and I love it for simple stuff. The more complicated my stuff 
got the more I got away from note tab.

Clint Tredway
www.digital12studios.com


Original Message:
>From: "Website Managers.net" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: [PHP] PHP IDE?
>Date: Sat, 13 Dec 2003 12:45:46 -0600

>Some of us prefer the basics. Note Tab Pro www.notetab.com
>Has syntax highlighting and enough clip book libraries to do just about anything we 
>want.
>NetCaptor www.netcaptor.com for previewing our work.
>
>Jim
>www.websitemanagers.net
>
>----- Original Message ----- 
>From: "Jough Jeaux" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Saturday, December 13, 2003 11:06 AM
>Subject: [PHP] PHP IDE?
>
>
>| Was wondering what everyone's favortie IDE is for
>| coding in PHP.  I've got a big PHP project in the
>| works.  I'll be doing alot with it and am looking for
>| ways to boost my productivity.
>| 
>| --Jough
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--- End Message ---
--- Begin Message ---
On Sat, 2003-12-13 at 12:06, Jough Jeaux wrote:
> Was wondering what everyone's favortie IDE is for
> coding in PHP.  I've got a big PHP project in the
> works.  I'll be doing alot with it and am looking for
> ways to boost my productivity.

Quanta Plus:
http://quanta.sourceforge.net

Bluefish is also very promising:
http://bluefish.openoffice.nl/


-- 
Brian        GnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
                                          Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --revc-keys 04A4F0DC
GnuPG: http://gnupg.org

--- End Message ---
--- Begin Message ---
I have a hosted website which uses CPanel.  I can login to CPanel and create
as many email forwarders as I want.  Is there a way I can write a PHP script
to manage these email forwarders?  For example, somebody registers on my
site and they want to be added to the for a certain email address (as an
email forwarder).  How would I write a script that could access this email
forwarders file and insert a new address to it (or delete one if that is the
case)?  Does anyone know if this can be done.  I am trying to use these mail
forwarders as a moch mailing list, so when an email is sent to a specific
address, it will automatically be distributed to everyone on the forwarding
list.  Please help if you have any ideas or suggestions.

Thanks,

Matt
http://sweetphp.com

--- End Message ---

Reply via email to