Re: [PHP] How to override header info in mail()

2002-11-30 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
The correct way of doing that is:
if (!mail($to, $subject, $body, "From: ". $from ."\r\nContent-type". $contentType)) 
{..}
HTH!
~Paul

On Saturday 30 November 2002 12:58 pm, Phil Powell wrote:
> I am using this line:
>
> if (!mail($to, $subject, $body, "From: " . $from . ";" .
> header("Content-type " . $contentType))) {..}
>
> to use the mail() function in PHP to send simple text/plain or text/html
> email.  However, upon attempting to send I get a warning message indicating
> that header information has already been set prior to emailing.
>
> Is there a way to overwrite only certain header information prior to
> emailing to ensure the content-type of the email being either text/plain or
> text/html?
>
> Just wondering
> Thanx
> Phil

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE96QeuDyXNIUN3+UQRAkFEAJ0SBT8VZMHitu4zOOb+cf3jaRCX7QCffEpD
txhpy024829NozyhYq6H3Fk=
=Szfo
-END PGP SIGNATURE-

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




Re: [PHP] How to override header info in mail()

2002-11-30 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

ok, what is on line 13 and on line 104?
That error is saying that you have a header() call on line 104 that I don't 
think should be there(The header command is not used with mail)if it 
should you'll have to look at output buffering.
~Pauly
http://php.net/manual/en/function.header.php
http://php.net/manual/en/function.mail.php
http://php.net/manual/en/ref.outcontrol.php


On Saturday 30 November 2002 02:37 pm, Phil Powell wrote:
> I'm sorry that didn't work either.. here is my error:
>
> Warning: Cannot add header information - headers already sent by (output
> started at /users/ppowell/web/recommend.php:13) in
> /users/ppowell/web/recommend.php on line 104
>
>
> Phil
> - Original Message -
> From: "Paul Nicholson" <[EMAIL PROTECTED]>
> To: "Phil Powell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Saturday, November 30, 2002 1:46 PM
> Subject: Re: [PHP] How to override header info in mail()
>
> > Hey,
> > The correct way of doing that is:
> > if (!mail($to, $subject, $body, "From: ". $from ."\r\nContent-type".
>
> $contentType)) {..}
>
> > HTH!
> > ~Paul
> >
> > On Saturday 30 November 2002 12:58 pm, Phil Powell wrote:
> > > I am using this line:
> > >
> > > if (!mail($to, $subject, $body, "From: " . $from . ";" .
> > > header("Content-type " . $contentType))) {..}
> > >
> > > to use the mail() function in PHP to send simple text/plain or
> > > text/html email.  However, upon attempting to send I get a warning
> > > message
>
> indicating
>
> > > that header information has already been set prior to emailing.
> > >
> > > Is there a way to overwrite only certain header information prior to
> > > emailing to ensure the content-type of the email being either
> > > text/plain
>
> or
>
> > > text/html?
> > >
> > > Just wondering
> > > Thanx
> > > Phil

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE96VjYDyXNIUN3+UQRArAqAKCLtc0i7iNJyCcZ14/midkP3JFZXACaAgfk
FBrQwCIlYgxRyj9UFNhh4HQ=
=XosZ
-END PGP SIGNATURE-

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




Re: [PHP] unlink ($files);

2003-01-07 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
You can't delete the files all at onceyou have to delete them one by one 
or use this function that  will remove full directories.
- -
function force_rmdirs($dir) {
$dh = opendir($dir);
while(false !== ($file = readdir($dh))) {
if($file != '.' && $file != '..') {
$path = $dir .'/'. $file;
if(is_dir($path)) {
force_rmdirs($path);
} else {
unlink($path);
}
}
}
closedir($dh );
return rmdir($dir);
}
- -
HTH!
~Paul

On Wednesday 08 January 2003 12:29 am, [EMAIL PROTECTED] wrote:
> Ok, Jason, here's another one!
>
> I think I've read how to delete a file.
> I need to delete 25 files, then do a rmdir(blah);
>
> Line 16:  $directory = "path/*.*";
> Warning: Unlink failed (No such file or directory) in
> /mnt/ls6/17/169//htdocs/2003/_admin/del_listing_action.php on line
> 16
>
> Warning: RmDir failed (File exists) in
> /mnt/ls6/17/169//htdocs/2003/_admin/del_listing_action.php on line
> 17
>
> Thanks

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+G8/JDyXNIUN3+UQRAmd/AJ42CW5HDYEQ1dvf/m5CLynoqGekwgCdE5T2
rxlRjVBaFNIhQGFQc38ylks=
=mJq1
-END PGP SIGNATURE-

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




Re: [PHP] files no longer upload!

2003-01-20 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

sure...we could look at your code if you showed it to us.
Other than seeing it I'd say check 'register_globals'...
HTH!
~Paul

On Monday 20 January 2003 05:27 pm, Phil Powell wrote:
> I'm having a day, gang!
>
> I have done nothing to my code and now is_uploaded_file is constantly
> false, even when uploading a file every time.  I dunno what to do, would
> someone want to look at my code and tell me what I did wrong; I'm out of
> ideas.
>
> Phil

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+LHibDyXNIUN3+UQRAvo0AKCAoCOjj0laMSUPEhqvH1EyGLvr7gCePfc0
29Eip+/Liu2BlBCxRRkrvZc=
=eSjL
-END PGP SIGNATURE-

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




Re: [PHP] is this better or is it still in html?

2003-01-20 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It is better:)

On Sunday 19 January 2003 10:59 pm, Karl James wrote:
> Karl

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+LMkSDyXNIUN3+UQRAgauAJ0SQ3rPKvvh49BZoGUmdfxSqXdIZgCfbKWs
IZIBz+7OBrREYPDPHKn5V5o=
=SSw7
-END PGP SIGNATURE-

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




Re: [PHP] Re: Re: Editors

2003-02-26 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 26 February 2003 02:19 pm, James Hatridge wrote:
[snip]
> Thanks for the address. I looked into it closer and I find that it is only
> for Windows. Pity.
It will run on linux using wine. Yes, I've tried it...it works!
~Paul

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+XS1iDyXNIUN3+UQRAjabAJ0Xa0JwW5+16uxCayf4V5CgZrAUPQCeK7Gw
2JDeyuhG79NMzcFtupm8ja0=
=o9U5
-END PGP SIGNATURE-

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



[PHP] Re: Re: Re: Editors

2003-02-27 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey Jim,
- From the WINE Faq (http://www.winehq.org/).
"3.8. Do I need to have a DOS partition on my system to use Wine?
 You do not need a licensed and installed copy of DOS or MS Windows to 
install, configure and run Wine. However, Wine has to be able to 'see' an MS 
Windows binary (i.e. application) if it is to run it."
You *might* need to download some of the common windows type dlls but thats 
about all. :)
~Paul
On Thursday 27 February 2003 01:12 pm, James Hatridge wrote:
[snip]
> I stopped using Windows at 3.1 . If I understand correctly you have to
> have a copy of W$ 9X (or whatever). If this is true then I can't use wine
> because I don't have a usable copy of W$. Has this changed in the past few
> years?
>
> Thanks
> JIM
> PS Been useing SuSE since version 4.4.1 :)

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+XnYXDyXNIUN3+UQRAoUuAKCeN+6ejYXcaBeW2xA2c6PawFY3YgCfWNiA
75QGnpM/751hqcXECTst/t4=
=snUY
-END PGP SIGNATURE-

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



Re: [PHP] php and html differences

2003-03-02 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Use Smarty(http://smarty.php.net/) and Maguma Studio(http://www.maguma.com/).
~Paul

On Sunday 02 March 2003 07:13 pm, Sunfire wrote:
> where could i get a templet editor from that is good and fairly easy to
> use?
>
[snip]

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+YqJUDyXNIUN3+UQRAlfbAJ9/GVpqmnhQHJOFCZmegOOxh/6JwwCfTJzG
H8abV4rC/ddiNb623gOVTLg=
=U6rL
-END PGP SIGNATURE-

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



Re: [PHP] creating mail on submitting a form.

2002-09-03 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Take a look at http://php.net/mail
If you want a script written I'll need to see the page that has the form and 
the email id you want the message sent to.
~Pauly

On Tuesday 03 September 2002 06:46 pm, Anil Garg wrote:
> hi,
>
> In a form i have several text area.when i submit the form, I need to
> send a email at a particular id which contains the text entered in the text
> area.
> Can someone gimme a script which gives me and idea about how to do
> that...or some link where i can find that.
>
> Thanx and regards
> anil

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9dYPVDyXNIUN3+UQRAuDuAJ0S5EPYee1dGzZrI1HaZQuSrfYLYQCfdMGP
Sb0wN2ajQVkYa+x5eEK/i4c=
=uEnU
-END PGP SIGNATURE-

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




Re: [PHP] PHP 4.2.2 install problem

2002-09-03 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Yes, you can add those two linesadd them at the bottom.
~Pauly

On Tuesday 03 September 2002 06:57 pm, Mark McCulligh wrote:
> I am new to Linux and is trying to install PHP/MySQL/SSL.
>
> I used the instruction found on this link:
> http://www.brtnet.org/linux/lampssl.htm
>
> Everything seemed to install OK; on the last step, open httpd.conf and
> uncomment the lines:
>
> AddType application/x-httdp-php .php
> AddType application/x-httdp-php-source .phps
>
> I couldn't find the lines in the file.  If these lines are not there did I
> do something wrong, or can I just add them.  If I can just add them, where
> to I add them.
>
> Thanks, Mark.

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9dYYGDyXNIUN3+UQRAo9DAKCZhf7ORj/dzPY70uZVwvj+uW8P9ACfcJls
ia5gtB6XUHhWZ6PVqh8XM3Q=
=NyJ2
-END PGP SIGNATURE-

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




Re: [PHP] dropdown Newbie question

2002-09-05 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
If your php version is > = 4.1.0 use:
$var_from_dropdown = $_GET['theme'];
else use:
$var_from_dropdown = $HTTP_GET_VARS['theme'];
You might want to change the method used to submit your form
from get to post, like:
// Start Dropdown
echo '
Then you code should read: $var_from_dropdown = $_POST['theme']; or
$var_from_dropdown = $HTTP_POST_VARS['theme']; applying the rules from above.

Hope that helps!
~Pauly

On Thursday 05 September 2002 07:18 am, Scott Houseman wrote:
> Hi there.
>
> The value from that dropdown will be returned to you in the variable
>
> $_POST OR $_GET, depending on which method you used to submit the form.
>
> Assuming you use POST, you can access the selected value like this:
>
> $var_from_dropdown = $_POST['theme'];
>
> Regards
>
> -|Scott
>
> > -Original Message-
> > From: Mario Ohnewald [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 05, 2002 1:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] dropdown Newbie question
> >
> >
> > Hello!
> > I am very new in php and i have a little dummy question ;D
> > I have a dropdown box with a entry in it called "Coctail Blue"
> > Now i want to put the selected string  ("Coctail Blue" in this
> > case) in to a
> > variable when i press the button below.
> > options.php is the page it should go after.
> >
> > // ..SNIP ...
> >
> > // Start Dropdown
> > echo '
> > 
> >   ';
> > for($i=0;$i > {
> > echo "".$theme_name[$i]."\n";
> > }
> > //end dropdown
> >
> > // Button
> > echo '  ';
> >
> > //doesnt work:
> > $var_from_dropdown = theme
> >
> > // ..SNIP ...
> >
> >
> > What did i do wrong?
> >
> > Thank you!
> > Mario
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9d0OmDyXNIUN3+UQRAmbzAJ9qUW6LYEndO81ybqFsMpeklHzs1wCfUGDK
Egom83QUipWIZ0ko2q1x5/s=
=OiSG
-END PGP SIGNATURE-

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




Re: [PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Send the results of mysql_errno() please. :)
~Pauly

if ($update_type == update_Williams) {
mysql_query("INSERT INTO events ('user', 'detaildesc', 'index',
'reference', 'date_added') VALUES (\'$cookiewho\',
\'$add_Williams\',\'\',\'$row_num\',\'$last_update\')", $sql4)
or echo mysql_errno()/*die ("could not do update")*/;
}



On Sunday 08 September 2002 03:07 pm, you wrote:
> Hello,
>
> My code below always dies!  I've tried just about every iteration of the
> values, etc..  Can anybody show me how to insert into MySQL a value?
>
> "INSERT INTO events ('user','detaildesc') VALUES ('$user','$details')"
>
> I just don't get it!
>
>
> if ($update_type == update_Williams) {
> mysql_query("INSERT INTO events ('user', 'detaildesc', 'index',
> 'reference', 'date_added') VALUES (\'$cookiewho\',
> \'$add_Williams\',\'\',\'$row_num\',\'$last_update\')", $sql4)
>   or die ("could not do update");
>   }

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9e6McDyXNIUN3+UQRAriZAKCTPYsBfypW7N6k8vpG+UDJEZ77BQCfVtEi
BmSkmFZDBbXuAm+g3nvw/tc=
=InFX
-END PGP SIGNATURE-

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




Re: [PHP] file upload > 2 MB

2002-09-09 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I have not tested this but I think the correct syntax is:
php_value upload_max_filesize 50M
If the above doesn't work my next bet would be:
php_admin_value  upload_max_filesize 50M
Hope that helps!
~Pauly

On Monday 09 September 2002 07:04 am, andy wrote:
> Hi there,
>
> I am trying to configure php inside the httpd.conf to allow file uploads
> inside a special directory with more than 2 MB.
>
> Somehow the syntax is wrong, since I do get the errormsg that there are 2
> arguments required. Here is the code:
>
> # special settings for webmailer
> 
>php_flag upload_max_filesize = 50M
> 
>
> Does anybody has an idea?
>
> Thanx for any help,
>
> Andy

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9fIZdDyXNIUN3+UQRAjNTAJ47ByGezeKHW/C+wuNEljOyzgMO8QCfU85S
saMM2bBQORm8ReXS/K+kIu0=
=DqKb
-END PGP SIGNATURE-

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




Re: [PHP] Weird fileupload problem

2002-09-09 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
First of all, you can *not* set the upload size via .htaccess. You have to 
set it in httpd.conf or php.ini. And you need to use php_value instead of 
php_flag.

   php_value upload_max_filesize 8M

btw, this was discussed on the list within this monthread the archives & 
the manual! :)
~Pauly

On Monday 09 September 2002 10:02 am, you wrote:
> Hi!
>
> I'm working on a simple file upload form here, where the user can upload
> large zip files containing images to be added to the selected image
> gallery...
>
> However, uploading large files seems to be a little problem.. Whenever I
> upload large files (the file I'm experimenting with is about 8MB) both
> the $_POST and the $_FILES-arrays become completely empty.
>
> In my post form I have POST_MAX set to 107374182400, and in a
> .htaccess-file placed in the same directory as the upload scripts I have
> the following lines;
> php_flag upload_max_filesize 107374182400
> php_flag max_file_size 107374182400
> php_flag post_max_size 107374182400
>
> ...so, uploading small files works perfectly, but large files just
> empties the superglobal arrays... Is there any other settings I have to
> change for this to work?

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9fLAyDyXNIUN3+UQRAsnJAJ92QNDBWPdjkBjETbVSjlMlisF05wCghnDe
UFzBfSnQTEfZhvxgErpcMN0=
=6CvM
-END PGP SIGNATURE-

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




Re: [PHP] Weird fileupload problem

2002-09-09 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
http://php.net/manual/en/features.file-upload.php
hmm.the "max_file_size" won't do anything - you should remove it.
The post_max_size should be larger than the upload_max_filesize & you might 
just to check memory limit..that has to be larger than the 
post_max_size. 
You might want to look at the html form as wellshould have a
hidden field like:

Make sure that the value is high enough. 
If it still fails, get the output of phpinfo() and send it to me. Also 
include the html form and target file size...100M is a lot, I hope its just a 
temp value:)
HTH!
~Pauly

On Monday 09 September 2002 11:22 am, Trond Arve Nordheim wrote:
> On Mon, Sep 09, 2002 at 10:29:04AM -0400, Paul Nicholson wrote:
> > Hey,
> > First of all, you can *not* set the upload size via .htaccess. You have
> > to set it in httpd.conf or php.ini. And you need to use php_value instead
> > of php_flag.
> > 
> >    php_value upload_max_filesize 8M
> > 
>
> Actually, that didn't help :)
> $_POST and $_FILES is still empty, and the httpd.conf (in the
> virtualhost) reads like this;
> php_value upload_max_filesize 100M
> php_value max_file_size 100M
> php_value post_max_size 100M
> (tried to apply this both "globally" in the virtualhost and on a specified
> directory)
>
> ..and there's no .htaccess involved anymore.
>
> > btw, this was discussed on the list within this monthread the
> > archives & the manual! :)
>
> I've read the manual, and all about the php variables I have to change...
> just can't recall reading anything about superglobals beeing emptied out :)
> Reading the list archives as we speak ;)

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9fMMKDyXNIUN3+UQRArY2AJ9rQkjp1DthR6P/gfTJrWhU4tPavQCeN1Io
/xOnrZsxVlgJ0HwXfxweymw=
=hevu
-END PGP SIGNATURE-

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




Re: [PHP] refresh function?

2002-09-11 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
There sure is!:)
/* 60 = Time in  seconds */
header("Refresh: 60; URL=http://www.php.net";);
(http://php.net/header)
~Pauly

On Wednesday 11 September 2002 11:56 pm, Peter wrote:
> Hi,
>   Is there a function that will auto refresh a page?
>
> Thanks in advance,
> -Peter

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9gBQODyXNIUN3+UQRApe5AJwIZOW3K0giVp4JhWZzzcVPp7jWDwCfcSdx
ugFMxvuBSLS3oUIN5swE7gY=
=aFAO
-END PGP SIGNATURE-

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




Re: [PHP] Re: Large uploads

2002-09-18 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
You might want to check the archives..I know this came up before.
Anyway, you didn't say if you checked your memory limitthat has to be 
larger than the post_max_size.
HTH!
~Pauly

On Wednesday 18 September 2002 11:54 am, you wrote:
> Hi again,
>
> Is there anyone in this group that has successfully uploaded a file large
> than 10 MB?
>
> Regards, Rickard.
>
>
> "Rickard Dahlstrand" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > Hi,
> >
> > I have been trying to upload files using PHP 4.1.2. Everything works OK
> > until the filesize gets above 10MB. I have set all the paramaters upload
> > filesize and max postsize in PHP and Apache ini-files but it still
> > doesn't work. The server seems to just drop the connection since IE just
> > tells me that the server didn't respond.
> >
> > Please help.
> >
> > Rickard.

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9iM1yDyXNIUN3+UQRAgDXAJ9HFJ0GCINrupusBPM/Eq+LkyRCNQCcCAIc
A5PpKLPaYaRVEb2SHPqmzms=
=Ou2V
-END PGP SIGNATURE-


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




Re: [PHP] Unserialize stopped working after php & db upgrade

2002-09-18 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
There must be an error in the serialized stringswould you mind posting 
one for us to look at? How about posting some code?
~Pauly

On Wednesday 18 September 2002 02:02 pm, you wrote:
> Hi folks
>
> Bit of a major panic - any help MUCH appreciated.
>
> I have been storing serialized arrays in MySQL Gemini tables without
> any problems.
>
> But with Gemini looking more and more like a dead duck, I decided to
> take the server down and port from Gemini to InnoDB. I also took the
> opportunity to upgrade from php 4.1 to php 4.2.2
>
> Now, when I run unserialize( ) on the serialized arrays, the strings
> are being returned unchanged. No error - they are simply passing
> through unserialize( ) without being altered.
>
> It is not a backslash issue, as there are no escaped characters in the
> strings affected, nor are the strings urlencoded.
>
> I have no idea how to go about fixing this and I am under serious
> pressure to get the server back up ASAP - so I am very much hoping
> that to get a response from the list.

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9iM4vDyXNIUN3+UQRAmhGAJ9jAX88mO1F7MvFPTy/cB0jNf5d0ACeIaDb
jOLego6+k2mIcplJ3y9uUNs=
=a4Br
-END PGP SIGNATURE-


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




[PHP] Re: Unserialize stopped working after php & db upgrade

2002-09-18 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Geoff,
It looks like that string has been serialized multiple times.
Update your serialized string to:
- -
a:2:{s:10:"attributes";a:32:{s:13:"attr
ibute_204";s:1:"4";s:13:"attribute_205";s:1:"5";s:13:"attribute_206";s:3:"Ye
s";s:13:"attribute_207";s:3:"Yes";s:13:"attribute_208";s:3:"Yes";s:13:"attri
bute_209";s:3:"Yes";s:13:"attribute_210";s:2:"No";s:13:"attribute_211";s:2:"
No";s:13:"attribute_212";s:1:"2";s:13:"attribute_213";s:2:"No";s:13:"attribu
te_214";s:2:"No";s:13:"attribute_215";s:2:"No";s:13:"attribute_216";s:3:"Yes
";s:13:"attribute_217";s:2:"No";s:13:"attribute_218";s:2:"No";s:13:"attribut
e_219";s:2:"No";s:13:"attribute_220";s:2:"No";s:13:"attribute_221";s:2:"No";
s:13:"attribute_222";s:2:"No";s:13:"attribute_223";s:2:"No";s:13:"attribute_
224";s:15:"Residual
 drying";s:13:"attribute_225";s:3:"Yes";s:13:"attribute_226";s:2:"No";s:13:"
attribute_227";s:2:"12";s:13:"attribute_228";s:2:"53";s:13:"attribute_229";s
:5:"White";s:13:"attribute_230";s:3:"651";s:13:"attribute_231";s:3:"555";s:1
3:"attribute_232";s:3:"460";s:13:"attribute_233";s:1:"C";s:13:"attribute_234
";s:1:"B";s:13:"attribute_235";s:1:"C";}s:5:"lists";a:20:{s:14:"list_2_1_lab
el";s:0:"";s:17:"list_2_1_man_code";s:0:"";s:13:"list_2_1_code";s:0:"";s:13:
"list_2_1_sort";s:0:"";s:14:"list_2_2_label";s:0:"";s:17:"list_2_2_man_code"
;s:0:"";s:13:"list_2_2_code";s:0:"";s:13:"list_2_2_sort";s:0:"";s:14:"list_2
_3_label";s:0:"";s:17:"list_2_3_man_code";s:0:"";s:13:"list_2_3_code";s:0:""
;s:13:"list_2_3_sort";s:0:"";s:14:"list_2_4_label";s:0:"";s:17:"list_2_4_man
_code";s:0:"";s:13:"list_2_4_code";s:0:"";s:13:"list_2_4_sort";s:0:"";s:14:"
list_2_5_label";s:0:"";s:17:"list_2_5_man_code";s:0:"";s:13:"list_2_5_code";
s:0:"";s:13:"list_2_5_sort";s:0:"";}}
- 
Yes, you'll need to delete the line breaks and make that one line.
As far as the format, I'm not sure of a url/manpageI just know a little 
of the format.
The basic is:
var type : var length : var value;
For arrays you have the format reoccur inside of braces.
~Pauly
 
On Wednesday 18 September 2002 04:19 pm, Geoff Caplan wrote:
> Paul,
>
> PN> There must be an error in the serialized stringswould you mind
> PN> posting  one for us to look at? How about posting some code?
>
> This is all very strange. The code has been working in production for
> months. Since the upgrade of PHP and the DB, some are working and some
> not. I can't see any pattern.
>
> Where can I find info of the serialize format so I can look for
> damage?
>
> Here is one of the strings that is not unserializing - sorry it is so
> long.
>
>--  Geoff
> Caplan Advantae Ltd
>
> mailto:[EMAIL PROTECTED]
> http://www.advantae.com

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9iOfEDyXNIUN3+UQRAkt6AJwIFoicQsDCIXCsaU1VmTqLYM1ysACZAdvP
S2JTvSK3vZnn/aV4thj++bE=
=NGC+
-END PGP SIGNATURE-

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




Re: [PHP] Unserialize stopped working after php & db upgrade

2002-09-19 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Geoff,
I looked at the string.
s:1745:"s:1735:"s:1725:"s:1715:"s:1705:"s:1695:"s:1685:"s:1675:"s:1665:"s:1655:"s:1645:"s:1635:"s:1625:"s:1615:"a:2:{
see all of the s's? It means that unserializer will produce a string that 
looks like was not unserialized(but it was). So, I just deleted everthing to 
the 'a' and removed everything past the last } at the end.
I'm glad it worked out for you:)
~Pauly

On Thursday 19 September 2002 01:35 am, Geoff Caplan wrote:
> Paul,
>
> PN> It looks like that string has been serialized multiple times
>
> Many thanks - that is the problem! I think that this qualifies as one
> of my more creative bugs...
>
> Can I ask you how you spotted this? Pretty impressive, considering you
> only had the string itself to go on.
>
> Thanks again,

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9id2SDyXNIUN3+UQRApeyAJ4ohHufAZW6A4Sn1jY+YI2X0RvGZACeJGyp
t5/CIlMx9O8fWWQSld3krRI=
=a36C
-END PGP SIGNATURE-

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




Re: [PHP] editor php

2002-09-19 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've used Quantaits an opensource project.
http://quanta.sourceforge.net/
~Pauly

On Thursday 19 September 2002 11:57 am, Gian Michele wrote:
> Hi,
> does any body knows a cool editor for php that run under redhat 7.x and
> where i can find?
> tanks  -- Gian Michele

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9ifjoDyXNIUN3+UQRAg/DAKCQkRcfosrBNW5iSExXMmRAol4eFgCePbsK
asGslqIH/5oN9VSydkp+RKI=
=s6uN
-END PGP SIGNATURE-

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




Re: [PHP] Apache not parsing without .php on url?

2002-09-20 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I think what you're after is 'Options MultiViews' in your apache 
config.don't know about v2 though.
http://httpd.apache.org/docs/mod/core.html#options
HTH!
~Pauly

On Thursday 19 September 2002 01:21 pm, Stefan wrote:
> Hello,
> I have a new Apache 2.0.40 with PHP 4.2.3 installation on a Solaris x86
> box.
>
> Configered in httpd.conf  with:
> AddType application/x-httpd-php .php
> and
> LoadModule 
>
> Parsing url´s with " .php" works fine, but i can´t figure out why it
> dosen´t
> work if i leave out the ".php"extension in the url? This works in my old
> apache 1 installation.!
>
> The file is named "test.php" in the "abc" directory.
> "http://my.server.se/abc/test.php"; works, but not
> "http://my.server.se/abc/test";
>
> Any tips in what i missed out in configuration or how to fix this would be
> appreciated.
>
> best regards,
> Stefan

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9iwjNDyXNIUN3+UQRAlJmAJ43X2Aitk+Qpo8wn1yjuqOr1SmW0wCgh5Z6
4AZvoaM6XP9gnE+7UJif+lA=
=Nh4/
-END PGP SIGNATURE-

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




Re: [PHP] Editor

2002-09-21 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I use PHPCoder on my windoze machines.thats when I have to use windows;)
Search google for "r2p3setup.exe" to get a copy.
~Pauly

On Saturday 21 September 2002 09:15 am, Bryan McLemore wrote:
> Hi guys, just wondering if anyone could recomend a good editor that is
> based on windows.  Thanks, Bryan

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9jNeaDyXNIUN3+UQRAuLpAKCJyZIYfoy2CcsLrBwct8eARzKt+wCfcign
9nwQhWebxfmPExHhFqcKuHI=
=qL86
-END PGP SIGNATURE-

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




Re: [PHP] right name for

2002-09-24 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Try this:

AllowOverride None
order deny,allow
Deny from all
Allow from 127.0.0.1

php_flag engine on
php_value include_path ".:/srv/www/default/html/acid/config"



order deny,allow
deny from all


What exactly is not working?
Did you check to see if the engine is turned on?
If it is not then try "php_admin_flag engine on". Why are you turning the 
engine on? Is it disabled everywhere else? The include path should have 
double quotes surrounding it and the paths in  should not.
HTH!
~Pauly

On Monday 23 September 2002 03:23 pm, Andreas Hasenack wrote:
> What is the right name to use in apache's (2.0.41-dev) IfModule
> directive to test if the php4 module is loaded? I'm including
> the file below via httpd.conf's Include statement but the
> part between the IfModule is being completely ignored:
>
> 
> AllowOverride None
> order deny,allow
> Deny from all
> Allow from 127.0.0.1
> 
> php_flag engine on
> php_value include_path '.:/srv/www/default/html/acid/config'
> 
> 
>
> 
> order deny,allow
> deny from all
> 
>
> I'm using php-4.2.3 (compiled with apxs2) and apache-2.0.41-dev. The
> PHP module *is* being loaded in another included file, but it doesn't
> matter if I put the above in an external file or in httpd.conf itself.

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9kH/YDyXNIUN3+UQRAttcAJ0QvCFk1A3K2bkZlJnPTPx6ue1xBwCfW4/8
irAOPOcmuuB1AZ6mEtJ6Cns=
=QiPE
-END PGP SIGNATURE-

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




Re: [PHP] Looking for a forum

2002-09-26 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
http://www.ibforums.com/
~Pauly

On Thursday 26 September 2002 01:26 am, John Taylor-Johnston wrote:
> Hi,
> I'm looking for some forum script, a bit like this:
> http://www.chevelles.com/cgi-bin/forum/Ultimate.cgi
> Can anyone post a link to something useful?
> John

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9ku11DyXNIUN3+UQRAvs9AJ4jGZ9X4QKEXQDhKYXBLAjTXzO/ygCcCHXw
aT5wk0Z0Lc97xlqpIgQQaHs=
=po2u
-END PGP SIGNATURE-

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




Re: [PHP] HELP: Carriage returns don't display in HTML

2002-09-27 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Try nl2br(http://www.php.net/nl2br).
~Pauly
 
On Friday 27 September 2002 08:19 pm, Shane wrote:
> Greetings folks.
>
> I need my carriage returns to show up in my HTML output from my text form
> field.
>
> There is a JavaScript function that will convert carriage return to 
> tags, but is there a PHP function that will add  or  tags to a text
> form field in place of the carriage returns a user might add.
>
> Thanks in advance!
> -NorthBayShane

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9lQxPDyXNIUN3+UQRAplZAJsHW7SeDvHzESn+mqbXZhmobMw8IwCfcWry
IzMWaMTsegPaXrBmvjl9vVQ=
=sL/V
-END PGP SIGNATURE-

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




Re: [PHP] using CURL to post data to a search engine

2002-09-27 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I don't think you'll get php to work with google unless you use the google 
api - I heard that google has filtered out the php(and others) user-agent.
If you need more info on the google api just let me know.
~Pauly

On Friday 27 September 2002 07:25 pm, [EMAIL PROTECTED] wrote:
>  I am trying to use curl to post data to a search engine and then
>  return the results in a variable so I can manipulate it.
>   I have tried this but it does not seam to work properly.
>   This is just an example of how I am trying to do this I don't have
>   to use google for the search engine just thought if I can get it
>   working with this I can get it to work with others
>
> $ch = curl_init ("http://www.google.com/";);
> curl_setopt ($ch, CURLOPT_POST, 1);
> $word="php";
> $args="action=/search&hl=en&ie=UTF-8&oe=UTF-8&q=$word&btnG=Google Search";
> curl_setopt ($ch, CURLOPT_POSTFIELDS, $args);
> curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
> $data = curl_exec ($ch);
> curl_close ($ch);
> echo $data;
>
> There does not seam to be much info or examples on using curl with php
> is there anyplace that you know of that has more info than the manual

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9lQ4TDyXNIUN3+UQRAgkDAJ4tTM2U/c0giejT1DzdDEg5HbQm0gCdE1Ht
il6KWww8aId6IE9xpBage08=
=2miE
-END PGP SIGNATURE-

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




Re: [PHP] How to get a total...

2002-10-01 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Try: http://www.php.net/manual/en/language.operators.arithmetic.php
I think that'll get you started:)
~Paul

On Tuesday 01 October 2002 09:44 am, Chuck Payne wrote:
> Hi,
>
> I am really lost. I have spent an hour looking on the net and php.net for
> how to get total and how to do math with php. If anyone has a link to a
> site that show it or can example to me how to do it, that would be great. I
> have a small project where I am going to track invoices. But they want to
> be able to see how total amount of the invoice that I am tracking. I know
> this is got to be simple but it hard if I do have example of the commands
> to do it.
>
> Chuck Payne
> Magi Design and Support

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mag+DyXNIUN3+UQRAqGLAJ0f4NDQU3/kQ6z7lYGfp8Esa+ZzEwCeLmBU
eT8+TDyHoS6B9Rjv3TDMwjQ=
=y7LJ
-END PGP SIGNATURE-

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




[PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-01 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey gang,
I've been wondering about developing scripts that the end-user might run on 
php < 4.1.0. I've heard allot of ways except for one that I recently thought 
of.
How about using:
- 
if(!isset($_GET)) { global $HTTP_GET_VARS; $_GET = &$HTTP_GET_VARS; }
- 
? That allows you to use $_GET as if you were using the new versions and it 
only requires one lineand doesn't depend on the new versions to have 
$HTTP_*_VARS. It also works for the other vars(POST, SESSION, etc).
~Paul

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mke1DyXNIUN3+UQRAikLAJ9qEoMoEdhdqE3RF8owBSlvg0CJSwCdH8Wi
LYepO02gxAoY09Sld2x2m6M=
=7FF4
-END PGP SIGNATURE-

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




Re: [PHP] Wanting to better understand

2002-10-01 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
ok, I'm not sure if I totally understand what you're trying to do but.I'll give
it my best. Try:
switch (TRUE) {
 case ($days > 30):
$days =  "" . $days . "";
break;
 case ($days > 45):
 $days = "" . $days . "";
break;
}
or:
If ($days > 30) {
$days = "" . $days . "";
}elseif ($days > 45) {
$days = "" . $days . "";
}
HTH!
~Pauly

On Tuesday 01 October 2002 10:50 pm, Chuck \"PUP\" Payne wrote:
> Hey,
>
> I am trying to better understand something, I learned a couple weeks ago
> that if I do this...
>
> If ($field == "value1") {
> $field = "change to new value";
>
> Now I have use this to change -00-00 to  . And the following.
>
> If ($days > "30") {
> $days "" . $days . "";
> }
>
>
> Want I want to do was add a second line this below to change the another
> value to change to change to another color...
>
> If ($days > "45") {
> $days "" . $days . "";
>
> }
>
> But, the second value is over riding the first vaule so I can't see the
> differents. I sorry that this might be confusing but I am trying to ask the
> way I can. I am not sure what you call this, expression I think. Any way is
> there a way that I can use this expression to get two or more colors.
>
> Thanks
>
> Chuck Payne
> Magi Design and Support

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mmNtDyXNIUN3+UQRAuPnAJ9rMhXkTfeLsxYy8MzO1BtxA1bUMgCfcmR4
MhMn3ihvEdecAxUcQt2S2U8=
=C4fu
-END PGP SIGNATURE-

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




Re: [PHP] Wanting to better understand

2002-10-01 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

yeah, I know...duh! *yawn* long nite...I'll see y'all in the morn. :)
~Paul

On Tuesday 01 October 2002 11:22 pm, Chris Shiflett wrote:
> Paul Nicholson wrote:
> >If ($days > 30) {
> >$days = "" . $days . "";
> >}elseif ($days > 45) {
> >$days = "" . $days . "";
> >}
>
> Just a side note - the elseif when used like this is superfluous.
>
> If $days is not greater than 30, then it must be 30 or less. Thus, it
> will never be greater than 45.

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mmgNDyXNIUN3+UQRAhrdAJ0bXw015Qm8hVR6ZMZqq4YheOQoDwCeMwEC
DiITc88LjDqHEKKLX05eyLQ=
=2CnR
-END PGP SIGNATURE-

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




Re: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-01 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
[snip]
> If any script shall be executeable on such an old PHP release, this method
> sounds really good. But, for security reasons i would prefer to ship this
> in an extra script, which the user has explicitly to include (Maybe just
> paranoia)...[/snip]
ummyou'd have to include that line at the top of every function that uses 
get(or any of the other) vars(scoping reasons) or somehow pass it via a 
reference to the function. I've always added the line at the top.
[snip]
> Hmm, anyway it would be better to force those old versions to be updated -
> since 1) there was a lot of security changes/updates and other bug fixes 2)
> new functions have been developed in more recent versions. i.e. executing
> stored procedures on MSSQL. I think, this will force people much more to
> update. Wouldn't it be better to force them now, than provide backward
> compatibility for _new_ scripts?[/snip]
Thats if the user has the option to upgrade - some system admin don't like to 
do their job...I know of quite a few isps still running 4.0.6:(
~Paul

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mmxgDyXNIUN3+UQRAuZBAJ0Y2xekGSnMFI2v+zvMww0LblchdQCeOkWv
4alNcCyFkohhLPiUYjKOI5E=
=89QY
-END PGP SIGNATURE-

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




Re: [PHP] Wanting to better understand

2002-10-01 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

oppsI need those reversed.
- 
switch (TRUE) {
 case ($days > 45):
 $days = "" . $days . ""; 
break;
 case ($days > 30):
$days =  "" . $days . ""; 
break;
}
- 
If ($days > 45) {
$days = "" . $days . "";
}elseif ($days > 30) {
$days = "" . $days . "";
}
- 
~Paul

On Tuesday 01 October 2002 11:09 pm, Paul Nicholson wrote:
> Hey,
> ok, I'm not sure if I totally understand what you're trying to do
> but.I'll give it my best. Try:
> switch (TRUE) {
>  case ($days > 30):
> $days =  "" . $days .
> ""; break;
>  case ($days > 45):
>  $days = "" . $days .
> ""; break;
> }
> or:
> If ($days > 30) {
> $days = "" . $days . "";
> }elseif ($days > 45) {
> $days = "" . $days . "";
> }
> HTH!
> ~Pauly

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mmV5DyXNIUN3+UQRApoNAJ9CVpSw5QIHeBHS6uIOCaAXVnpQjgCdG1ye
kVMaV+ecWgxC/CEVF2Zw4bs=
=ncYb
-END PGP SIGNATURE-

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




Re: [PHP] Incrementing the value

2002-10-01 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Whats the php version on the window machine? register_globals on?
Try:

HTH!
~Pauly

On Tuesday 01 October 2002 11:53 pm, Uma Shankari T. wrote:
> Hello ,
>
>  border="0">
>
> While clicking this link the $hid value get incremented and fetch the value
> from the database according to that..the same thing is working in linux
> platform and it is not working for the windows platform..the value is not
> getting increment..Can anyone please tell me how to go about with this..??
>
> Regards,
> Uma

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mm5dDyXNIUN3+UQRAkTuAKCK8IcVPhpPH1c+lOKRmRsZjkGtaACcDCay
dkgKoXfmWmrRYU3Fklj3T7k=
=EXy4
-END PGP SIGNATURE-

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




Re: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-02 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

yeah, at the top of each functionwhere you would normally put "global 
$HTTP_GET_VARS;" The created $_GET is not a superglobal so its scope is only 
in the function its defined in or if you define it in the global namespace 
you'd have to "global $_GET;" inside of your function & I'm sure that'll 
conflict with the superglobals on newer versions.

On Wednesday 02 October 2002 12:13 am, Sascha Cunz wrote:
> At the top of each _function_? Urgs. Sounds like a hell of a lot of work.
> Would be enough at the beginning of the script - or even better, creating a
> dummy include for that or it might even be posibile to run it via an
> .htaccess (how is this option named php_prepend or such?).
>
> ...
>
> If they can't update the PHP Version they should update the ISP :-) Well,
> 4.0.6 might be a "famous" release (as you can find this very often), but
> it's about 1 year old now... If ISPs don't updated, they make their own
> machines vulnerable - the only conclusion (to make them learn their lesson)
> can be, that customers keep on running away, ain't it?
Thats if they notice the one or two clients that leave over this issue. :|

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9muqkDyXNIUN3+UQRAiHUAJ4mxVd+makwIpmvsgIYauKCPl+mhwCeMrFA
z4cX5Z3+ib/hirVLc5cSHbA=
=Se8t
-END PGP SIGNATURE-

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




Re: [PHP] no errors ?

2002-10-02 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Is short_tags on?
~Pauly

On Wednesday 02 October 2002 05:51 pm, gamin wrote:
> hi,
>
>   i'm running PHP 4.0.6 with apache on RedHat 7.2 , error_reporing is set
> to default(2039) in the php.ini file :
> my script is as follows :
>
>  qwe;
>
>
> dsf
> ?>
>
> But i dont get even a parse error or anything
>
> Any clues to what is going wrong ?
>
> thx
>
> gamin.

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9m3xHDyXNIUN3+UQRAn1NAJ0S3zXi7JQ9OPg2/m9B1Vx4NHu/wQCeJQwR
8KACs0TmgDXQunDdRI7DHT4=
=b7S7
-END PGP SIGNATURE-

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




Re: [PHP] Incrementing the value

2002-10-02 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I've helped you as far as I can without actually seeing the rest of the 
script to check if that value gets overridden somewhere else.
- From the sample you are giving us everything looks ok *if* register_globals 
is on(and you say that it is). How about looking for differences in the 
windows php.ini compared to the linux one? Are the php version the same?
~Pauly

On Wednesday 02 October 2002 10:40 pm, Uma Shankari T. wrote:
>  Hello ,
>
>border="0">
>
>  While clicking this link the $hid value get incremented and fetch the
> value from the database according to that..the same thing is working in
> linux platform and it is not working for the windows platform..the value is
> not getting increment..Can anyone please tell me how to go about with
> this..??
>
>  Regards,
>  Uma

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9m8LuDyXNIUN3+UQRAv0UAJ40j6B85t20DTxKHRtIncpSoVX4oACfY+na
gza2HlC8MuAniM5AB07e7QE=
=PEdU
-END PGP SIGNATURE-

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




Re: [PHP] no errors ?

2002-10-03 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Check these three ini settings,
log_errors
display_errors
error_log
My guess is the you have log_errors on, display_errors off, & error_log as 
your apache access log.
HTH!
~Pauly

On Thursday 03 October 2002 04:20 am, gamin wrote:
> Yes,
>
>Short tags should be On, cause
>
>  phpinfo();
> ?>
>
> results in the exptected page.
>
> Still unable to understand why this is happening, here are some of the
> following code snippets with the errors:
>
>  somejunk;
> somemorejunk;
> anotherlineofjunk;
> ?>
>
> NO ERROR REPORTED FROM PHP
>
> [results in the Apache/access.log] 127.0.0.1 - - [03/Oct/2002:13:33:49
> +0530] "GET /real/1.php HTTP/1.1" 200 5
> ---
>  somejunk;
> somemorejunk;
> anotherlineofjunk;
> ?>
>
> Parse error: parse error, unexpected T_STRING in c:\program files\apache
> group\apache\htdocs\real\1.php on line 2
>
> [results in the Apache/access..log]  127.0.0.1 - - [03/Oct/2002:13:36:08
> +0530] "GET /real/1.php HTTP/1.1" 200 161
> ---
> I hope this provides enough information to  someone who can tell what is
> going wrong.
>
> thx
>
> gamin.

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9nF+5DyXNIUN3+UQRAoHwAKCFSQRiKmtqoK/JpH8sjzES4SergQCeJsG+
ixl5HmQnDPeKopG2T6IyKuU=
=jz2k
-END PGP SIGNATURE-

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




[PHP] Re: Mysqldump

2002-10-06 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I'm not sure about windows machines as I use linux but it looks like you're 
sending the right commands. You need to check your permissions.
~Paul

On Sunday 06 October 2002 12:30 am, Uma Shankari T. wrote:
> Hello,
>
>   I am trying to dump the text file contents to mysql which was already
> backup from mysql only..While trying to dump it is telling access denied
> error
>
>  i am trying from here
>
>  d:\mysql\bin>mysqldump databasename txt.file name
>
> Can anyone tell me how to go about with this ??
>
> Regards,
> Uma

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9oFpTDyXNIUN3+UQRAq7wAJ97jRHEUq/oQivyZzHD22wpQegbZwCdGeTl
Sux8I5NCDdbJk9lstKeKsr8=
=dwjM
-END PGP SIGNATURE-

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




Re: [PHP] Best Forum System

2002-10-12 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Give them time.they've only been at it for less than 6 months.
That's the fastest I've seen a board developed and the clean code(security 
checks are in place) at that. And skinning isn't all that bad. It's also the 
fastest forum software I've seen.

On Friday 11 October 2002 09:13 pm, Stephen scribbled:
> I'd use that but the skinning difficulty compared to others is just down
> right horrible...
>
>
> ----- Original Message -
> From: "Paul Nicholson" <[EMAIL PROTECTED]>
> To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
> <[EMAIL PROTECTED]>
> Sent: Friday, October 11, 2002 6:58 PM
> Subject: Re: [PHP] Best Forum System
>
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Hey,
> > I use ibforums(http://www.ibforums.com/)100% OO php and its FREE.
> > ~Pauly
> >
> > On Friday 11 October 2002 05:36 pm, Stephen wrote:
> > > Hello,
> > >
> > > I know there will be a load of different responses but I'm after the
>
> most
>
> > > frequent one. What exactly is the best forum system out there? I'm
>
> mainly
>
> > > after a PHP one but a Perl or CGI one will do just fine. Thanks!
> > >
> > > Thanks,
> > > Stephen Craton
> > > http://www.melchior.us
> > > http://php.melchior.us
> >
> > - --
> > ~Paul Nicholson
> > Design Specialist @ WebPower Design
> > "The webthe way you want it!"
> > [EMAIL PROTECTED]
> >
> > "It said uses Windows 98 or better, so I loaded Linux!"
> > Registered Linux User #183202 using Register Linux System # 81891
> > -BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE9p2GGDyXNIUN3+UQRArHdAJ9J+ZC1Zf+gTxkKSY4zgq5TKONdkACglAQE
> > vEYPRv3tgJ5YZ+oaybak61s=
> > =oB2D
> > -END PGP SIGNATURE-
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9p6Y3DyXNIUN3+UQRAv0EAJ9wWFPnJRR5UQcTvLPLdEO6/TJiGwCfRxHf
nryycMkvzJT6i4N53zpIl/k=
=rAAO
-END PGP SIGNATURE-

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




Re: [PHP] Best Forum System

2002-10-12 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I use ibforums(http://www.ibforums.com/)100% OO php and its FREE.
~Pauly

On Friday 11 October 2002 05:36 pm, Stephen wrote:
> Hello,
>
> I know there will be a load of different responses but I'm after the most
> frequent one. What exactly is the best forum system out there? I'm mainly
> after a PHP one but a Perl or CGI one will do just fine. Thanks!
>
> Thanks,
> Stephen Craton
> http://www.melchior.us
> http://php.melchior.us

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9p2GGDyXNIUN3+UQRArHdAJ9J+ZC1Zf+gTxkKSY4zgq5TKONdkACglAQE
vEYPRv3tgJ5YZ+oaybak61s=
=oB2D
-END PGP SIGNATURE-

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




Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 14 October 2002 09:44 am, Maxim Maletsky scribbled:
> On Mon, 14 Oct 2002 14:25:09 +0100
>
> Chris Hewitt <[EMAIL PROTECTED]> wrote:
> > Phil Schwarzmann wrote:
> > >I need users to be able to insert special characters (ö and ä) into a
> > >text field.
> > >
> > >Unfortunately, English-speaking people do not have these keys on their
> > >keyboards.  Currently, they are cutting and pasting these characters
> > >into the text boxes.
> > >
> > >I believe ASP can insert characters into text fields by pressing a form
> > >buttoncan PHP do something like this?
> >
> > Nothing to do with the language used on a server, everything to do with
> > the operating system the client uses. If your client computer runs MS
> > Windows, holding down the "Alt"
>
> "ALT" key? I don't think so.

Yes, the ALT + ASCII number does work on windoze.
Try ALT + 0191.

> The only way to type other language's characters is by switch the
> keyboard layout (ALT-SHIFT, usually) so your keyboard inputs the ASCII
> mapped to your keys. That's the only way. And, anyhow, it has nothing to
> do with PHP at that point. It's client-side.
>
> Maxim Maletsky.
>
> > key and pressing the ASCII number for
> > the character wanted on the digits on the number pad will give the
> > character. I'm afraid I don't know the equivalent if your client
> > computers run linux (I'm sure there is one and its just my ignorance).
> > I'd be interested to know the answer.
> >
> > HTH
> > Chris
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9qs8yDyXNIUN3+UQRAlVaAJ4hWKt7bO/X2fjci0+IC5nkkwBDNQCgkrB8
hgojoDyfvQH6w5WoKfNIgqE=
=dn9E
-END PGP SIGNATURE-

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




Re: [PHP] Re: Another odd file problem / Limit on File uploads?

2002-10-15 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Can you post the values of the post_max_size, upload_max_filesize,
& memory limit ini settings?
~Paul

On Tuesday 15 October 2002 03:21 pm, Jason Young wrote:
> Can't anyone help me with this? :-/
>
> Read below...
>
> I wrote:
> > Hey yet again...
> >
> > I've got a 3x3 grid of type 'file' input elements, for a nifty total of
> > 9 upload spaces..
> >
> > After specifying a file in all 9, and attempting upload, I only got 5..
> > I noticed the total filesize was 2 megs, so I changed the php.ini to 8..
> > yet I still got that problem.  So I checked how my file array was being
> > posted, and it turns out only 5 of them go through!
> >
> > Hopefully someone can follow this particular code...
> > In the HTML Form, we have:
> >
> > Include
> > Include
> > .
> > Include
> >
> > (The picInc array just allows them to set whether or not they really
> > want that picture included (in case they mess up and don't want to
> > upload such a pic - I wouldn't expect some of the users to be savvy
> > enough to know to just delete the text from the field))
> >
> > In the PHP upload, to check to see which elements are being parsed, I
> > have:
> >
> > $current = 0;
> >
> > while (list($key) = each($_FILES['picname'])) {
> >
> >   echo $current;
> >   /* -- This is the normal code just to satisfy everyone's curiosity.
> >   if ($picInc[$current] == true) {
> >
> > if (!is_dir($dir))
> >   mkdir($dir);
> >
> > if (!is_uploaded_file ($_FILES['picname']['tmp_name'][$current]))
> >   echo "*" . $_FILES['picname']['name'][$current] . "* couldn't
> > be copied!";
> >
> > if (is_uploaded_file ($_FILES['picname']['tmp_name'][$current])) {
> >   move_uploaded_file($_FILES['picname']['tmp_name'][$current],
> > $dir.$current.".jpg");
> >
> >   $log_query = "INSERT INTO pictures (pictureID, series) VALUES
> > ('$pID', '$current')";
> >   $log_result = mysql_query($log_query) or die ("Couldn't Insert
> > Picture Record!");
> > }
> >   }
> >   */ -- End curiosity mode ;-)
> >   $current++;
> > }
> >
> > On my output, I just get 01234 .. 5 elements.
> > My question is specifically on how to get all 9 to upload, those 5
> > files,  if specified, do indeed upload fine - just clearing that up :-)
> >
> > Any insight? 5 elements seems to be something deliberate, but I can't be
> > sure, myself.
> >
> > Thanks!
> > -Jason

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9rHAlDyXNIUN3+UQRAkOFAJ9WZ7n1319LPagN8UlG8SHhOxBL+QCbBQnY
ffiyL5zI3kpCpr4nj7F41s4=
=eTBn
-END PGP SIGNATURE-

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




Re: [PHP] Re: Another odd file problem / Limit on File uploads?

2002-10-15 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
AFAIK, There is no "limit" on the amount of files that can be uploaded at 
once. Could you post the html code for the form? 
Note: The post_max_size should be larger than the upload_max_filesize &
the memory limit has to be larger than the post_max_size.
So you should have something like:
upload_max_filesize = 8M
post_max_size = 14M
memory_limit = 16M
~Paul

On Tuesday 15 October 2002 03:58 pm, Jason Young wrote:
> Sure..
>
> post_max_size = 10M
> upload_max_filesize = 8M
> memory_limit = 8M
>
> As I said before, however.. even without throwing files there, my loop
> test code only spits out '01234', meaning that its only looping 5 times
> through the code before exiting... Does file handling only allow for 5
> files at a time??
>
> -Jason

- --
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9rHllDyXNIUN3+UQRAnWhAJoCzG5nR92Vvq/XL7H0y/O6NBfDaQCgiTbV
cUr4AQHsTOrqDPqtGaiRGWo=
=gVfa
-END PGP SIGNATURE-

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




Re: [PHP] Re: Another odd file problem / Limit on File uploads?

2002-10-15 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday 15 October 2002 04:45 pm, David Freeman wrote:
> How large are the files you're using for testing?  Try repeating the
> test with files under 1k and see if the result is different.  You might
> be running into a page timeout rather than file size limitation.
>
> CYA, Dave

He is posting without files and it still stops at 5 and if it was timeout 
wouldn't it say something like max_execution_time exceeded?

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9rJlaDyXNIUN3+UQRAlWVAJsEJnBMNCYOn774fvdCSbCGWIIJuACffOeL
lpXSs1ADA4G02ZygYWv6Tx8=
=MWas
-END PGP SIGNATURE-

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




Re: [PHP] Problem with fputs/fgets

2002-10-16 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I saw that you fixed this but have you ever thought of using the imap_* 
functions for this? It'd be a lot easier and it does work on pop3 servers.
~Paul

On Wednesday 16 October 2002 05:02 pm, Jason Young wrote:
> I'm in the process of writing a very very simple web-based email client,
> just for my personal use, so I can perm-delete all the spam that comes
> in through the day on my home account before i get home.
>
>
> On the very first connect, its great.. connects, does a 'uidl' which
> lists all the mail ID's (the 'else' part of the if statement below)
>
> The problem lies where I click the generated link and attempt to read a
> message, the browser load just hangs (despite the set_time_limit()) and
> when I cancel it, the server tells me there's another connection active.
>
> I have an fputs($pop, "QUIT\r\n); as well as an fclose($pop); ..
> Shouldn't this be sufficient to make sure the connection is closed
> before my visit to trying to read a message? Or is that not the problem?
>
> I'm thinking its something with the actual ($action == "read") code..
> but... what would it be?
>
> Thanks for all help!
> -Jason
>
> Code
>
>  if (isset($_GET['action']))
>$action = $_GET['action'];
> if (isset($_GET['msg']))
>$msg = $_GET['msg'];
>
> $pop = fsockopen("pop.server", 110, $errno, $errstr, 300);
>
> fgets($pop,255);
>
> fputs($pop,"USER name\r\n");
> fgets($pop,255);
>
> fputs($pop,"PASS word\r\n");
> $status = fgets($pop,255);
>
> if (substr($status, 0, 4) == "-ERR") {
>echo $status;
>exit();
> }
>
> if ($action == "read") {
>set_time_limit(10);
>$cmd = "top $msg 10";
>fputs($pop, $cmd);
>$themsg = fgets($pop);
>echo $themsg;
> } else {
>fputs($pop,"uidl\r\n"); // Get list of messages
>$list = fgets($pop,255)."";
>$list = substr($list, 4, strpos($list, " ", 3));
>for ($i = 1; $i <= $list; $i++) {
>  $curr = fgets($pop);
>  echo " "))."\">$curr";
>}
>echo "$list messages";
> }
>
> fputs($pop,"QUIT\r\n");
> echo fgets($pop);
>
> fclose($pop);
> ?>

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9rgbwDyXNIUN3+UQRAuO3AJ9zntAWZ6RkOC2LHQDSEVlirN1CegCfZatW
JGjOasC8q+s56CcF1j9Odok=
=49DU
-END PGP SIGNATURE-

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




Re: [PHP] $_SESSION

2002-10-16 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Try:
- -
foreach ($_SESSION as $k => $v) {
if(($k != 'errmsg') && ($k != 'errcount')) {
unset($_SESSION[$k]);
}
}
- -
HTH!
~Paul

On Wednesday 16 October 2002 04:04 am, Paonarong Buachaiyo wrote:
> Please, I' also have some question about  $_SESSION.
>
> Simple, how can we earse all $SESSION variable except one or two variables.
>
> Beacuse i want to show some error message in my login form when login
> failed. i want to destroy all other $_SESSION variable (about 10) except
> $_SESSION['errmsg'] and $_SESSION['errcount'].
>
> Any way to do it except
>
> unset($_SESSION['xx1']);
> unset($_SESSION['xx2']);
> unset($_SESSION['xx3']);
> .
> unset($_SESSION['xx10']);
>
> Please,
> Pao
>
> "John W. Holmes" <[EMAIL PROTECTED]> wrote in message
> 000501c274a4$ed28ae40$7c02a8c0@coconut">news:000501c274a4$ed28ae40$7c02a8c0@coconut...
>
> > > Hi All,
> > >still trying to update old code. Am I using $_SESSION properly?
> > >
> > > 
> > >if (mysql_num_rows($res) ==1){
> > >/* If correct start session*/
> > > session_start();
> > > $_SESSION['SESSION_UNAME'];
> > > $SESSION_UNAME = $user;
> > >
> > > header("Location: welcome.php");
> > > mysql_free_result ($res);
> > > 
> >
> > Nope. Just use $_SESSION['SESSION_UNAME'] = $user;
> >
> > You can treat $_SESSION just as you would any other array.
> >
> > $_SESSION['something'] = "whatever";
> >
> > etc... Then, on any page with session_start(), you have the whole
> > session array available to you, no matter what page the variable was
> > initially created on.
> >
> > FYI: use unset($_SESSION['SESSION_UNAME']); to erase a session variable.
> >
> > ---John Holmes...

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9rhvkDyXNIUN3+UQRAivwAKCcBNJ1hfZU7WFfGaCythFfPPpZOQCePte1
3xJtk0cmbfr1g6wOQnqOYMk=
=jou+
-END PGP SIGNATURE-

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




Re: [PHP] Problem with fputs/fgets

2002-10-16 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Glad I could help...I did something like what you're doing and I used the  
imap functions. If you're conecting to a Redhat pop3 server you have to add a 
special param to the connect function...let me know if you need the command 
and I'll look it up.
~Paul

On Wednesday 16 October 2002 09:55 pm, Jason Young wrote:
> Oh.. I had no idea.. I suppose I will be looking that up then ;-)
>
> Thanks for the heads up!
> -Jason
>
> Paul Nicholson wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Hey,
> > I saw that you fixed this but have you ever thought of using the imap_*
> > functions for this? It'd be a lot easier and it does work on pop3
> > servers. ~Paul
> >
> > On Wednesday 16 October 2002 05:02 pm, Jason Young wrote:
> >>I'm in the process of writing a very very simple web-based email client,
> >>just for my personal use, so I can perm-delete all the spam that comes
> >>in through the day on my home account before i get home.
> >>
> >>
> >>On the very first connect, its great.. connects, does a 'uidl' which
> >>lists all the mail ID's (the 'else' part of the if statement below)
> >>
> >>The problem lies where I click the generated link and attempt to read a
> >>message, the browser load just hangs (despite the set_time_limit()) and
> >>when I cancel it, the server tells me there's another connection active.
> >>
> >>I have an fputs($pop, "QUIT\r\n); as well as an fclose($pop); ..
> >>Shouldn't this be sufficient to make sure the connection is closed
> >>before my visit to trying to read a message? Or is that not the problem?
> >>
> >>I'm thinking its something with the actual ($action == "read") code..
> >>but... what would it be?
> >>
> >>Thanks for all help!
> >>-Jason
> >>
> >>Code
> >>
> >> >>if (isset($_GET['action']))
> >>   $action = $_GET['action'];
> >>if (isset($_GET['msg']))
> >>   $msg = $_GET['msg'];
> >>
> >>$pop = fsockopen("pop.server", 110, $errno, $errstr, 300);
> >>
> >>fgets($pop,255);
> >>
> >>fputs($pop,"USER name\r\n");
> >>fgets($pop,255);
> >>
> >>fputs($pop,"PASS word\r\n");
> >>$status = fgets($pop,255);
> >>
> >>if (substr($status, 0, 4) == "-ERR") {
> >>   echo $status;
> >>   exit();
> >>}
> >>
> >>if ($action == "read") {
> >>   set_time_limit(10);
> >>   $cmd = "top $msg 10";
> >>   fputs($pop, $cmd);
> >>   $themsg = fgets($pop);
> >>   echo $themsg;
> >>} else {
> >>   fputs($pop,"uidl\r\n"); // Get list of messages
> >>   $list = fgets($pop,255)."";
> >>   $list = substr($list, 4, strpos($list, " ", 3));
> >>   for ($i = 1; $i <= $list; $i++) {
> >> $curr = fgets($pop);
> >> echo " >>"))."\">$curr";
> >>   }
> >>   echo "$list messages";
> >>}
> >>
> >>fputs($pop,"QUIT\r\n");
> >>echo fgets($pop);
> >>
> >>fclose($pop);
> >>?>
> >
> > - --
> > ~Paul Nicholson
> > Design Specialist @ WebPower Design
> > "The webthe way you want it!"
> > [EMAIL PROTECTED]
> >
> > "It said uses Windows 98 or better, so I loaded Linux!"
> > Registered Linux User #183202 using Register Linux System # 81891
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE9rgbwDyXNIUN3+UQRAuO3AJ9zntAWZ6RkOC2LHQDSEVlirN1CegCfZatW
> > JGjOasC8q+s56CcF1j9Odok=
> > =49DU
> > -END PGP SIGNATURE-

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9rhzODyXNIUN3+UQRAvAeAKCILeHYDOA5wxUDKQlAiTgmFjNJzACgmzda
Rbsm8Jgse4zTQ5f8O/tt91E=
=w42i
-END PGP SIGNATURE-

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




Re: [PHP] extract($_POST)

2002-10-25 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 25 October 2002 11:23 am, Johnson, Kirk wrote:
> > And what should these precautions be?  If a malicious user can submit
> > his own form and you are looking for a POST variable, how can you
> > ensure that $admin came from your form and not that user's?
>
> The problem is when a cracker uses form variables in an attempt to set the
> values of "flag" variables kept only in the session, for example, $isAdmin.
> As far as the form variables *you* put in your form, it doesn't matter
> whether the user submits your form or a form they made themselves. Those
> form variables are just data you are trying to collect.
>
> With register_globals on, PHP takes *all* variables (GET, POST, COOKIE)
> received from the client and assigns them to global variables. So if the
> user posts a value for $isAdmin, she can give herself admin privileges.
>
> The key is to retrieve *only* the form variables *you* put in the form from
> the the $_POST array. So don't write a loop and grab *everything* from that
> array.
>
> Kirk

Exactly! Not only should you retrieve *only* the vars you need from POST,
you should also filter them to make sure they contain what you're looking 
for.is_alpha($_POST['name']). And no, php doesn't have an 'is_alpha' 
functionI created that as part of a filtering class.

~Paul


- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9uXoKDyXNIUN3+UQRAkugAJ0aftPjxhmV0tSk125UZSTCuWp47QCfaKJ7
z5+ja1P4NtWUwVMCMsFVt2M=
=UG2o
-END PGP SIGNATURE-

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




Re: [PHP] Webserver-Administration

2002-10-28 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Here is one I just came acrossits even in php.
http://webcp.can-host.com/
~Pauly

On Monday 28 October 2002 03:45 pm, Adam Williams wrote:
> look up webmin on your favorite search engine.
>
>   Adam
>
> On Mon, 28 Oct 2002, [ISO-8859-1] Jochen Kächelin wrote:
> > How can I use PHP to admin my Apache over the browser?
> >
> > How do big providers allow their customers to admin their
> > subdomains, forwarders, ftp-accounts  over the webbrowser?
> >
> > Apache should not run under the root account, or?!

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9va36DyXNIUN3+UQRAkDqAKCB+XUAGj+KCsbwh+1Vkbt/+51ZqwCfSagi
boG7NIcaO/MnDI7LPxBCwFs=
=tmeH
-END PGP SIGNATURE-

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




Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I think you should be able to serialize and urlencode the array and then
pass that via get/post.post would be a lot better as get is limited to so many 
chars.
Something like:
$sql = "select stuff from my_table";
$result = mysql_query($sql);
while ($myrow = mysql_fetch_assoc($result)) {
  $id = $myrow["id"];
  $my_array[] = $id;
}
echo 'Next';
You'll need to unserialize+urldecode the array at the other end.
And yes, $count is not needed if you use $my_array[].
HTH!
~Paul

On Tuesday 29 October 2002 12:56 pm, Sascha Cunz wrote:
> Hi,
>
> first of all, i would prefer to do this task in a session-variable (less
> traffic, less security holes).
>
> But, if you're sure you need to pass the array via an URL, try:
>
> 
>
> which will result in test.php called with $_GET['ary'] containing:
>
> [0] = '1'
> [1] = '2'
>
> If the array contains strings (as databases usualy do), you should
> url-encode them.
>
> If there is a better way to do this task, please let me know too.
>
> - Sascha
>
> Am Dienstag, 29. Oktober 2002 18:40 schrieb Petre Agenbag:
> > Hi
> > I KNOW I'm gonna get flamed, but I can't find this anywhere in my books
> > or in the manual, yet I know I've read it somewhere.
> >
> > I created an array in a loop as such:
> >
> > $sql = "select stuff from my_table";
> > $result = mysql_query($sql);
> > $count = 0;
> >
> > while ($myrow = mysql_fetch_assoc($result)) {
> > $id = $myrow["id"];
> > $my_array[$count] = $id;
> > }
> >
> >
> > Now, I want to send that array to another page with a normal:
> >
> > Next
> >
> > BUT, that obviously doesn't work...
> >
> > Please just help me out, I'm suffering...

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9vtzwDyXNIUN3+UQRAmOuAKCcK9Tsu/iO/wgwbL+HL6U7aqRkjQCePTF8
sgGAtUCCe5K+dlw6ljcJFzY=
=+BC1
-END PGP SIGNATURE-

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




Re: [PHP] Re: Dazed and Confused

2002-10-30 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

try(untested): array_walk($myarray, array($this, 'DoArrayStuff'),1);
HTH!
~Paul

On Wednesday 30 October 2002 02:08 pm, PHP List wrote:
> I think the fog is starting to clear, thanks for the help.
>
> I do have one more question:
> If I want to use array_walk in a class, how do I refer to a function in
> that class?
>
> Class MyClass
> {
> .
> .
> .
> function DoArrayStuff(&$item1, $key, $nMode)
> {
> echo $item1;
> }
> function SomeOtherFunction
> {
> .
> .
> $myarray already filled with, say, 5 items;
> array_walk($myarray,'DoArrayStuff',1);  <--- PHP error:
> DoArrayStuff() - function does not exist in . . .
>
> I have tried 'MyClass::DoArrayStuff', 'this->DoArrayStuff',
> '$this->DoArrayStuff' but none work.
> The only way I can seem to use DoArraySuff is to define the funcion
> seperate(outside) from the class, which seems kind of odd since the only
> time the function is needed is internally by this class.
> }
>
> }

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9wDVJDyXNIUN3+UQRAhsMAJwMSyZKC6wFXRNskGuFyFlBQmLTiACglapX
ALnKP+nU3K6P51VcHC0egAI=
=MGMU
-END PGP SIGNATURE-

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




Re: [PHP] Re: Dazed and Confused

2002-10-30 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

oopsforgot the &.
array_walk($myarray, array(&$this, 'DoArrayStuff'),1);

On Wednesday 30 October 2002 02:38 pm, Paul Nicholson wrote:
> try(untested): array_walk($myarray, array($this, 'DoArrayStuff'),1);
> HTH!
> ~Paul
>
> On Wednesday 30 October 2002 02:08 pm, PHP List wrote:
> > I think the fog is starting to clear, thanks for the help.
> >
> > I do have one more question:
> > If I want to use array_walk in a class, how do I refer to a function in
> > that class?
> >
> > Class MyClass
> > {
> > .
> > .
> > .
> > function DoArrayStuff(&$item1, $key, $nMode)
> > {
> > echo $item1;
> > }
> > function SomeOtherFunction
> > {
> > .
> > .
> > $myarray already filled with, say, 5 items;
> > array_walk($myarray,'DoArrayStuff',1);  <--- PHP error:
> > DoArrayStuff() - function does not exist in . . .
> >
> > I have tried 'MyClass::DoArrayStuff', 'this->DoArrayStuff',
> > '$this->DoArrayStuff' but none work.
> > The only way I can seem to use DoArraySuff is to define the
> > funcion seperate(outside) from the class, which seems kind of odd since
> > the only time the function is needed is internally by this class.
> > }
> >
> > }

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9wDlTDyXNIUN3+UQRAtztAJsEDcpul5+59W4SBkix48bjjPQ/dQCgmtnk
rt2kPQqufaW1yoFDrizoHeQ=
=cBGo
-END PGP SIGNATURE-

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




Re: [PHP] Php "Ready-to-go"

2002-11-04 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

http://pear.php.net/bcompiler ?
~Paul

On Monday 04 November 2002 08:09 am, Alexander Kuznetsov wrote:
> Hello Martin,
>
> Monday, November 04, 2002, 2:53:48 PM, you wrote:
>
> MT> Hello!
>
> MT> Is there a way to run a php-script on a pc/windows-computer which
> hasn't MT> php-installed? I thought of somekind of compiler which creates
> an .exe, MT> which embeds the script and the php-environment.
>
> MT> Martin
>
> On win32 I use PHP-GTK and I've solved this problem:
>
> php-gtk need php executable and some dlls
> all what I've done - I've created with Install Shield an
> instalation package which contains php executable and its own dlls
> and php-gtk files
>
> InstallShield during install my package copy some dlls and php.ini
> into %windir% and creates shortcut to my main programm file:
> "php_gtk main.php"
>
> if you don't need gtk - I think you should dig around a shortcut some
> like this "php.exe your_script.php"

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9xtHTDyXNIUN3+UQRAtxaAKCan2IXOu+irl0ti21jHDrhiqlvRQCePk86
FxH6Qm00KYpqhsES5okk9VY=
=MdQC
-END PGP SIGNATURE-

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




Re: [PHP] PHP/MySql Array problem (newbie)

2002-11-05 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

He isn't."I create the arry from a form, serialize it, urlencode it and 
send it to a row in mysql."
Alex:
Can you send me some of the code you're using?
~Pauly

On Tuesday 05 November 2002 12:09 pm, Maxim Maletsky wrote:
> You can't send the whole array into on "cell". Try doing:
>
> echo $array;
>
> and you'll see what I mean.
>
> You will need to insert each element individually.

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9yBFnDyXNIUN3+UQRAr49AJsHK5rJwUSoaCMe/wgv/0xCZ95RXwCfXCfO
/nBS95XhfPyELZcT1wrVKzE=
=nd3N
-END PGP SIGNATURE-

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




Re: [PHP] Installation error with 4.2.3

2002-11-06 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
I think your problem has something to do with "--enable-mbstr-enc-trans". I 
remember hearing about problems with that.check the archives(I think it 
was on PHP-DEV).
HTH!
~Paul

On Wednesday 06 November 2002 05:04 am, Daniele Baroncelli wrote:
> No one replied to this message yet.
> I am trying to address it again, as probably the previuos newsmessage title
> wasn't very descriptive.
>
> Thanks
>
> Daniele
>
>
> =
>
> Hi guys,
>
> I have very weird problem.
>
> I have installed the PHP version 4.2.3 on the LINUX virtual server of my
> web project.
> Previously I had the PHP version 4.0.6.
>
> The error I get is very weird.
> When I insert a record with the phpMyAdmin, the first 4 characters of each
> field don't get saved.
> Same thing happened with some data entry interfaces I coded!
>
>
> The only difference I can see in the two installation (provided the php.ini
> file is in the same location):
>
> The old version 4.0.6 was installed by the server provider and my virtual
> server space I can only see the .so file.
> The new version 4.2.3 is actually inside my virtual server space.
> Hence, the path I provided in the php configuration is different (I don't
> have idea if this can influence something).
>
> NEW VERSION (4.2.3) configuration run by me
>  './configure' '--with-apxs=/usr/local/apache/1.3/bin/apxs'
> '--prefix=/usr/home/rockit/usr/local'
> '--with-mysql=/usr/home/rockit/usr/local/mysql' '--with-xml'
> '--enable-xslt' '--with-xslt-sablot=/usr/home/rockit/usr/local'
> '--with-regex=system' '--with-expat-dir=/usr/home/rockit/usr/local'
> '--with-iconv=/usr/home/rockit/usr/local' '--enable-inline-optimization'
> '--disable-debug' '--enable-memory-limit' '--enable-sigchild'
> '--without-pear' '--enable-mbstring' '--enable-mbstr-enc-trans'
> '--with-gdbm=/usr/local' '--enable-sockets' '--enable-versioning'
> '--with-ttf=/usr/local' '--enable-ftp' '--with-gd=/usr/local' '--with-zlib'
> '--enable-gd-native-ttf'
>
> OLD VERSION (4.0.6) configuration run by the server provider
>  './configure' '--enable-inline-optimization'
> '--with-apxs=/usr/local/apache/1.3/bin/apxs'
> '--with-config-file-path=/usr/local/lib' '--disable-debug'
> '--enable-memory-limit' '--enable-sigchild' '--with-gettext'
> '--without-pear' '--with-regex=system' '--enable-mbstring'
> '--enable-mbstr-enc-trans' '--with-iconv=/usr/local'
> '--with-gdbm=/usr/local' '--with-dbm=/usr/local' '--enable-sockets'
> '--enable-versioning' '--with-freetype-dir=/usr/local'
> '--with-ttf=/usr/local' '--enable-ftp' '--with-curl=/usr/local/curl'
> '--with-openssl=/usr/local/openssl' '--with-gd=/usr/local'
> '--with-freetype-dir=/usr/local' '--with-ttf=/usr/local'
> '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
> '--with-t1lib=/usr/local' '--with-zlib' '--enable-gd-native-ttf'
> '--with-imap' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local'
> '--with-dom=/usr/local' '--with-mysql=/usr/local/mysql' '--with-zlib'
> '--with-zlib'
>
>
> I must admit that I didn't not include all parameter as the old
> installation, as I didn't know most options and thought is not needed. In
> the new installation I instead provided additional XML parameter (after
> installing the correspond modules, which all seem to work fine).
>
>
> Hints on problem are very well welcome!
>
>
> Daniele

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9yRVvDyXNIUN3+UQRAmRaAJ4+XnqM9eIkG2XKeXI3Pam3emXl7wCfUmnH
sXth4YcEhlJJ5LiZOTdFNA8=
=kkzH
-END PGP SIGNATURE-

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




Re: [PHP] Securing PHP Code with GET | POST | SESSIONS or other things

2002-11-08 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Never trust data from the client...always filter it(I use an lib to do that)!
Make sure register_globals is off or code accordingly.
HTH!
~Paul

On Saturday 09 November 2002 01:12 am, Creighton Brown wrote:
> I want to know recommendations securing GET | POST | SESSIONS or other data
> in WebPages.
>
> One site I may be developing for the local govt has the need to take and
> receive data from a database and data will be past with GET | POST |
> SESSIONS.
>
> Any recommendations regarding this would be welcome.
>
> The server is a national web host, one of two I may be using... both of
> which are reasonably secure.

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]
www.webpowerdesign.net

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9zKhPDyXNIUN3+UQRAm22AJ0RTHn6agukzCxSLEQv2g2p+BoZtgCfU5qI
B0wL2RD7frx6CVDOk+UIOIk=
=5jop
-END PGP SIGNATURE-

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




Re: [PHP] HTML forms & php 4.2.3 - how to get cvs fix applied

2002-11-09 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Reconfigure php without "--enable-mbstr-enc-trans" and that will fix the 
problem.
HTH!
~Paul

On Friday 08 November 2002 06:56 pm, andy wrote:
> I recently updated from 4.2.0 to 4.2.3 - since doing so values submitted
> to php from HTML forms using keys  - value="foo[bar]" - get truncated in
> php - example: if I submit "[EMAIL PROTECTED]" it will come out as
> "eight13.com" with a print_r($_POST)
>
> I found these bug reports which say what appears to be the same bug has
> been "fixed in CVS":
>
> http://bugs.php.net/bug.php?id=20024
> http://bugs.php.net/bug.php?id=19829
>
> I'm wondering where to go from this point. I have a production server
> which I need this fixed on.
>
> Is my only choice to checkout the entire branch for the latest version
> 4.2.x? (I'm assuming its branched - I've not looked at any of this yet)
>
> Is there not a patch? Could I just checkout the applicable files?
>
> http://snaps.php.net/ wasn't avilable at the time of writing this -
> possibly it would have given me more information.
>
>
> Apache 1.3.20
> php from source as module
> Mandrake 8

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]
www.webpowerdesign.net

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD4DBQE9zcldDyXNIUN3+UQRArDSAKCRyBACPvmlkvHv5335p5jzNijyQACXaRPA
JTBavZvIutTMj9eHFdu+zA==
=xhW8
-END PGP SIGNATURE-

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




Re: [PHP] Errors and Logging Configuration Options: docref-root

2002-11-09 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Did you restart apache?
HTH!
~Paul

On Saturday 09 November 2002 03:14 pm, Stefan Schiller wrote:
> I updated my development-server
>
> --> FreeBSD 4.7-REALEASE, Apache/1.3.27 (Port-Build), PHP 4.2.3
> (Port-Build) ...]
>
> After this I found
>
> http://www.php.net/manual/en/ref.errorfunc.php#ini.docref-root
>
> In the manual. I downloaded the manual and changed some config-item
>
> [httpd.conf]
> Alias /manual/ "/X//manual/"
>
> [php.ini]
> docref_roof = /manual/php4_manual
> docref_ext = .html
>
>
> But I noticed no changes!
>
> - is this a future of php ?.?.? ??
>
> - are some configure options needed for the build?
>
> - is it useful, how does it look like?
>
>
> [some more options out php.ini]
> error_reporting  =  E_ALL
> display_errors = On
> log_errors = On
> html_errors = On
> error_log = "/XX/YYYYY/ZZZZZ/php.err"
> docref_roof = /manual/php4_manual
> docref_ext = .html
>
> Best regards
>
> Stefan Schiller

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]
www.webpowerdesign.net

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9zcwODyXNIUN3+UQRAqXDAJ9V0D2msdGLtwL9IxNtEKm+7bzPsQCfdmzr
sE5SgBnX6WgcAT7rm2GrLQ0=
=kibB
-END PGP SIGNATURE-

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




Re: [PHP] New commercial software needs beta testers

2002-11-19 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hmmI hope you're happy cause you certainly gave Intravative Software a 
bad public image. I wouldn't buy/try betas from your company for NOTHING
~Paul

On Wednesday 13 November 2002 05:14 pm, Jeremy Wilson wrote:
> Well fine... by reading a bunch of your other posts when you talk to
> people, it looks like you are just a rude SOB... so I am really not
> offended.
>
>
>
> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 13, 2002 2:20 PM
> To: Jeremy Wilson
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] New commercial software needs beta testers
>
> You spammed 6 different lists with the same message.  What in the world
> does it have to do with PHP Installation issues, for example?  It's
> spam,
> and your domain has been blocked.
>
> -Rasmus
>
> On Wed, 13 Nov 2002, Jeremy Wilson wrote:
> > Hey it isn't spam. This is php specific
> >
> > -Original Message-
> > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, November 13, 2002 2:15 PM
> > To: [EMAIL PROTECTED]
> > Cc: Jeremy Wilson
> > Subject: Re: [PHP] New commercial software needs beta testers
> >
> > Argh!  That's the second commercial spam message to hit multiple php
> > lists
> > in a couple of days.
> >
> > This company has been blocked from further posting as well now.
> >
> > -Rasmus
> >
> > On Wed, 13 Nov 2002, Jeremy Wilson wrote:
> > > Intravative Software Corporation will be releasing a new commercial
> > > software
> > > application in January 2003 called iIPN. The software enables paypal
> > > sellers
> > > to sell and automatically deliver digital and non-digital products
> >
> > from
> >
> > > their web site. The software is currently the most robust out of any
> > > other
> > > commercial grade pay pal software and was designed with software
> > > publishers
> > > and music producers in mind for distributing their goods and
>
> services.
>
> > > We are performing consumer based beta testing for the month of
> >
> > December
> >
> > > 2002
> > > and are accepting applications for people who would like to
> >
> > participate
> >
> > > in
> > > the beta program.
> > >
> > > Accepted Beta testers receive a free domain license and fully
> >
> > functional
> >
> > > software for this product to test with. You must provide your own
> >
> > server
> >
> > > and
> > > equipment to do the beta testing with.
> > >
> > > At the end of the beta testing period for this program, beta testers
> > > will
> > > receive a free copy of the final release software and a single
>
> domain
>
> > > license for using the software.
> > >
> > > Application URL: http://www.intravative.com/v2/iipn_betatester.php

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE92jjkDyXNIUN3+UQRAiF+AJ0b9HNVs+NTtl4PdAwVlfEM9VROowCeJZsZ
Ri60PGpO3iJ+nzavXuJu3yQ=
=HZet
-END PGP SIGNATURE-

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




Re: [PHP] How can I populate or bypass the mod_auth_mysql prompt

2003-09-19 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 19 September 2003 09:36 pm, Daevid Vincent wrote:
> I am using mod_auth_mysql to protect some directories. All works great.
> However, when someone joins up, I send them a username/pw for them to login
> with. What I'd like is in addition, to shoot them into the protected
> section so they don't have to login with these credentials (the first
> time). I tried to set these PHP variables, but I still am prompted. Is
> there some other trick or way to do this?
8< snip

Hey Daevid,
Redirect them to the page using: 
http://username:[EMAIL PROTECTED]/protected_section/
HTH!  HAND!
~Paul 

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/a7EcDyXNIUN3+UQRAnr0AJ9LubzjwlqYpv/agFEaDlRGDGUqqACeN3Bw
yPJzxGXPY7BuXUTZShuRfa0=
=fr4z
-END PGP SIGNATURE-

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



[PHP] mail list test - ignore!

2005-08-18 Thread Paul Nicholson

Hey guys!
Just testing...

Paul

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