OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 1 Jun 2004 23:43:28 -0000 Issue 2797

php-general-digest-helplists.php.net
Date: Tue Jun 01 2004 - 18:43:28 CDT


php-general Digest 1 Jun 2004 23:43:28 -0000 Issue 2797

Topics (messages 187335 through 187410):

Re: Slightly OT Mysql question
        187335 by: XMG

Re: Remember username and password
        187336 by: "Miguel J. Jiménez"
        187344 by: John W. Holmes

Re: zlib compatibility
        187337 by: Jason Wong

Re: drop down menu populated from a directory
        187338 by: Torsten Roehr

forms and DB
        187339 by: BigMark
        187372 by: Justin Patrin
        187383 by: Justin Patrin

extracting quoted text in string
        187340 by: Vincent DUPONT
        187341 by: Chris Hayes
        187342 by: Jason Wong
        187343 by: John W. Holmes

Re: Cant right click
        187345 by: Stephen Lake

PEAR/MySQL woes: Function registration failed - duplicate name
        187346 by: Jough P
        187347 by: Jough P

Re: Security/Web tree/db connect and select
        187348 by: Chris W. Parker
        187349 by: Chris W. Parker
        187351 by: John W. Holmes
        187352 by: Chris W. Parker

PHP Basic's Problem with a simple script.
        187350 by: php-general
        187353 by: Jay Blanchard
        187354 by: John W. Holmes
        187355 by: Steve Douville
        187362 by: Chris Shiflett

Spammers
        187356 by: The Digital E
        187357 by: Jay Blanchard
        187358 by: Chris Boget
        187359 by: Steve Douville
        187360 by: Jay Blanchard
        187361 by: Steve Douville
        187364 by: Tyler Replogle
        187365 by: The Digital E
        187367 by: Curt Zirzow
        187373 by: Justin Patrin
        187377 by: John Nichel
        187378 by: John Nichel
        187380 by: Justin Patrin
        187382 by: The Digital E
        187386 by: Steve Douville
        187389 by: Jason Wong
        187397 by: John Nichel

Re: How to verify that data is in a blob?
        187363 by: Bob Lockie

Re: PHP Coding Standards
        187366 by: Don Read
        187368 by: Justin Patrin
        187369 by: Travis Low
        187371 by: Jay Blanchard
        187379 by: Justin Patrin

Re: GD Library Upgrade
        187370 by: Ryan Schefke
        187391 by: Jason Wong

IE Buffering
        187374 by: Stephen Lake
        187381 by: Justin Patrin
        187410 by: Curt Zirzow

easy question...
        187375 by: Tim Traver

Problem with postgres
        187376 by: alantodd
        187387 by: Jason Wong

"Date object"
        187384 by: Ryan A
        187395 by: John W. Holmes
        187402 by: Ryan A

Online Testing Application
        187385 by: Pushpinder Singh
        187396 by: John W. Holmes
        187398 by: Alex Hogan

Editor's Page
        187388 by: Jay Blanchard
        187394 by: Jason Wong

Test Email
        187390 by: Tom Chubb
        187393 by: Jason Wong
        187407 by: John W. Holmes

Re: Editor's Page SOLVED
        187392 by: Jay Blanchard

update mysql using radio button
        187399 by: Matt Newell
        187401 by: Jay Blanchard
        187403 by: Daniel Clark
        187405 by: Matt Newell
        187406 by: John W. Holmes
        187408 by: Daniel Clark

Strtotime() weirdness
        187400 by: Alex Hogan
        187404 by: Daniel Clark

[PHP-General] - LOC/FP for PHP.
        187409 by: francesco[AT]automationsoft[DOT]biz

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


On Mon, 31 May 2004, Dave Carrera wrote:

> Hi List,
>
> Sorry for this question being slightly OT but its is to
> due with my Php
> script in a way.
>
> MySql has stopped adding rows since the db table hit 1mb...
>
> Anyone know why ?

Do you check mysql_error and mysql_errno to see what
errors are returned?

lk

attached mail follows:


Yes, you must use a cookie with function setcookie() before any header
is sent...

Phpu wrote:

>Hi,
>
>How can i make a registration form that will remember my username and password every time i login from the same computer?
>I think i should set a cookie but i don't know how.
>
>Thanks
>
>
>
>---
>avast! Antivirus: Mensaje ENTRANTE limpio.
>Base de datos de Virus (VPS): 0422-1, 27/05/2004
>Fecha: 01/06/2004 13:01:38
>
>
>
>
>

--
Miguel J. Jiménez
ISOTROL, S.A. (Área de Internet)
Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA)
mjjimenez AT isotrol DOT com --- http://www.isotrol.com
ICQ# 12670750
TLFNO. 955036800 ext. 111

attached mail follows:


From: "Phpu" <phpugo.ro>

> How can i make a registration form that will remember
> my username and password every time i login from the same computer?
> I think i should set a cookie but i don't know how.

http://us2.php.net/setcookie

Don't put the username and password in the cookie. You need to set a unique
identifier in the cookie that is related to the username and password on the
server side. md5() and uniqid() can come in handy for this.

---John Holmes...

attached mail follows:


On Tuesday 01 June 2004 14:09, Francis Mak wrote:

> This is a resend of my previous question, since nobody answer my question.
> Maybe I went to a wrong way of asking such question: "whenever you see it
> is related to VB, just ignored"...
> Anyways, anybody has experience working with zlib and PHP? is the text
> compressed in zlib compatible with PHP gzuncompress?
>
> THANK YOU.
>
> My previous post below:
>
> What I am trying to do:
>
> - in VB, compress a string
> - save it as a file
> - use php to open it, then gzuncompress it
>
> I am using a vb wrapper in:
>
> http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=42297&l
>n gWId=1
>
> I am sure that the above program works, since it can uncompress the
> file. Acutally this program is only an interface using the zlib

Have you tried 'compressing' something using PHP and then 'uncompressing' it
using the VB-zlib wrapper?

> just another question, what is the difference between gzuncompress and
> gzdeflate ??

gzuncompress() <-> gzcompress()
gzinflate() <-> gzdeflate()

There seems to be an error in the manual listing:

  "gzuncompress -- Uncompress a deflated string"

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The first myth of management is that it exists. The second myth of
management is that success equals skill.
                -- Robert Heller
*/

attached mail follows:


"Dustin Krysak" <mailinglistsdigitalcollision.com> wrote in message
news:96B52152-B378-11D8-8115-000A95902366digitalcollision.com...
> Ok - here is the relevant Quicktime code:
>
> <!-- START QUICKTIME CONTENT -->
> <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
> width="320" height="256"
> codebase="http://www.apple.com/qtactivex/qtplugin.cab">
> <param name="autoplay" value="true">
> <param name="controller" value="true">
> <param name="pluginspage"
> value="http://www.apple.com/quicktime/download/indext.html">
> <param name="target" value="myself">
> <param name="type" value="video/quicktime">
> <param name="src" value="../../../mov/THElostART.mov">
> <embed src="../../../mov/THElostART.mov" width="320" height="256"
> autoplay="true" controller="true" border="0"
> pluginspage="http://www.apple.com/quicktime/download/indext.html"
> target="myself"></embed>
> </object>
> <!-- END QUICKTIME CONTENT -->
>
> Now I figure - getting the file name in there would be pretty easy (for
> the most part), but the thing is getting the dimensions of the movie in
> there... as it is possible that not all movies are the same dimensions.
> I am hoping to have just the one PHP that will change dynamically for
> the QT content - I would like to avoid having a php or html file for
> each QT movie.
>
> d
>
> PS - please CC me directly as I am subscribed in digest mode.. thanks
> much!

Put an if check around your QT placeholder code:

if (isset($_POST['nameOfYourSelectBox'])) {

// placeholder code

}

Set your embed src-tag to:

src="../../../mov/<?= $_POST['nameOfYourSelectBox']; ?>"

So if you submit your select box the selected movie should be shown. Maybe
you can omit the width and height attributes.

Regards, Torsten

attached mail follows:


Hi i urgently need a complete ---connect_db/form/results script, does
anyone know of a ready to use script available and ready to use today.

All i need is a connect.php page, a form to input a users name and one for
some text -----and also a page that shows all the table results . i have to
get this on my site in the next few hours, please any help appreciated.

ie:

john blah blah blah blah blah
mark blah blah blah blah blah
jenny blah blah blah blah blah

attached mail follows:


Bigmark wrote:

> Hi i urgently need a complete ---connect_db/form/results script, does
> anyone know of a ready to use script available and ready to use today.
>
> All i need is a connect.php page, a form to input a users name and one for
> some text -----and also a page that shows all the table results . i have to
> get this on my site in the next few hours, please any help appreciated.
>
>
> ie:
>
> john blah blah blah blah blah
> mark blah blah blah blah blah
> jenny blah blah blah blah blah

Well, there's phpMyAdmin, but it's a complete DB admin system. If you
just want a form to enter data and a listing of data, you might want to
look into PEAR's DB_DataObject_FormBuilder and rdbedit2.

http://pear.php.net/package/DB_DataObject_FormBuilder
http://sf.net/rdbedit

--
paperCrane <Justin Patrin>

attached mail follows:


Justin Patrin wrote:

> Bigmark wrote:
>
>> Hi i urgently need a complete ---connect_db/form/results script, does
>> anyone know of a ready to use script available and ready to use today.
>>
>> All i need is a connect.php page, a form to input a users name and one
>> for
>> some text -----and also a page that shows all the table results . i
>> have to
>> get this on my site in the next few hours, please any help appreciated.
>>
>>
>> ie:
>>
>> john blah blah blah blah blah
>> mark blah blah blah blah blah
>> jenny blah blah blah blah blah
>
>
> Well, there's phpMyAdmin, but it's a complete DB admin system. If you
> just want a form to enter data and a listing of data, you might want to
> look into PEAR's DB_DataObject_FormBuilder and rdbedit2.
>
> http://pear.php.net/package/DB_DataObject_FormBuilder
> http://sf.net/rdbedit
>

Whoops, wrong URL form rdbedit.
http://sf.net/projects/rdbedit

--
paperCrane <Justin Patrin>

attached mail follows:


Hi,

I would like to extract the quoted text from a string
for example : the translation for beautiful is "beau" and wonderful is "formidable"
I need to get 'beau' and 'formidable' strings into an array.

Any idea??
I can go with strpos and substrings, but maybe there is something more convenient?

Vincent

attached mail follows:


At 14:43 1-6-04, you wrote:
>Hi,
>
>I would like to extract the quoted text from a string
>for example : the translation for beautiful is "beau" and wonderful is
>"formidable"
>I need to get 'beau' and 'formidable' strings into an array.
>
>Any idea??
>I can go with strpos and substrings, but maybe there is something more
>convenient?

I can imagine preg_match() with search pattern "/\"[[:alnum:]]*\"/Ui"

See http://www.php.net/preg_match. You may need print_r to see where the
desired result is in the array of matches.

attached mail follows:


On Tuesday 01 June 2004 20:43, Vincent DUPONT wrote:

> I would like to extract the quoted text from a string
> for example : the translation for beautiful is "beau" and wonderful is
> "formidable" I need to get 'beau' and 'formidable' strings into an array.

  preg_match_all('|.*"(.*)".*|U', ...);

Season to taste.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Walk softly and carry a BFG-9000.
*/

attached mail follows:


From: "Chris Hayes" <chayesantenna.nl>

> >I would like to extract the quoted text from a string
> >for example : the translation for beautiful is "beau" and wonderful is
> >"formidable"
> >I need to get 'beau' and 'formidable' strings into an array.
> >
> >Any idea??
> >I can go with strpos and substrings, but maybe there is something more
> >convenient?
>
> I can imagine preg_match() with search pattern "/\"[[:alnum:]]*\"/Ui"
>
> See http://www.php.net/preg_match. You may need print_r to see where the
> desired result is in the array of matches.

Use preg_match_all(), otherwise you'll only get the first match.

---John Holmes...

attached mail follows:


Or under Mozilla go -> View -> Page Source
Or Ctrl-U

Only Java/VB script to my knowldege can disable "Right-Click"

> Under IE->View->Source and Bingo.
>
> It's probably a javascript script. Easy to bypass.
>
> PHP related...err no.
>
> ----- Original Message -----
> From: "Brent Clark" <bclarkequation.co.za>
> To: <php-generallists.php.net>
> Sent: Tuesday, June 01, 2004 2:49 PM
> Subject: [PHP] Cant right click
>
>
> Hi all
>
> On the link provided below, I noticed that you cant right click.
> Therefore you cant get "View source code"
> or "Copy link" etc (Depenind on the browser used of course)
>
> http://www.full.xtremedl.com/6.htm
>
> Would anyone know how to do this.
> I see that you cant even right click on the pic
>
> Weird
>
> Kind Regards
> Brent Clark
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


Installed a new PHP last night because I wanted to start using PEAR.
When I use 'pear' from the command line a few funny things happen.
Among them are a bunch of errors like the following:

PHP Warning: Function registration failed - duplicate name -
mysql_connect in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
mysql_pconnect in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
mysql_close in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
mysql_select_db in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
mysql_create_db in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
mysql_drop_db in Unknown on line 0
etc....

I looked in php.ini and the line that includes the mysql.so is only
there once:
extension=mysql.so

Any ideas how I can fix this? I'd rather not have a couple pages full
of errors every time I use the pear command.

Thanks!!

attached mail follows:


Hrm, I restarted apaches and got the following:
[warn] module php4_module is already loaded, skipping

Is there a way to restart the PHP DSO?

On Jun 1, 2004, at 8:56 AM, Jough P wrote:

> Installed a new PHP last night because I wanted to start using PEAR.
> When I use 'pear' from the command line a few funny things happen.
> Among them are a bunch of errors like the following:
>
> PHP Warning: Function registration failed - duplicate name -
> mysql_connect in Unknown on line 0
> PHP Warning: Function registration failed - duplicate name -
> mysql_pconnect in Unknown on line 0
> PHP Warning: Function registration failed - duplicate name -
> mysql_close in Unknown on line 0
> PHP Warning: Function registration failed - duplicate name -
> mysql_select_db in Unknown on line 0
> PHP Warning: Function registration failed - duplicate name -
> mysql_create_db in Unknown on line 0
> PHP Warning: Function registration failed - duplicate name -
> mysql_drop_db in Unknown on line 0
> etc....
>
> I looked in php.ini and the line that includes the mysql.so is only
> there once:
> extension=mysql.so
>
> Any ideas how I can fix this? I'd rather not have a couple pages full
> of errors every time I use the pear command.
>
> Thanks!!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

attached mail follows:


John W. Holmes <mailto:holmes072000charter.net>
    on Friday, May 28, 2004 11:25 PM said:

> You're right. Option 2 offers more security in that no one will ever
> be able to reach the file directly with a web browser. You don't need
> to use file() or file_get_contents(), though... A simple
> include('../includes/db.inc'); wil work (where ../ takes you outside
> of the webroot and into an includes/ directory for the db.inc file).
> Or use an absolute path include('/home/user/includes/db.inc'); where
> /home/user/www/ is your webroot (for example).

how about just calling 'db.php' so that when someone does request it via
a web browser it will be parsed and end up not sending any data to the
client?

chris.

attached mail follows:


Chris W. Parker <>
    on Tuesday, June 01, 2004 8:12 AM said:

> how about just calling 'db.php' so that when someone does request it
> via a web browser it will be parsed and end up not sending any data
> to the client?

that should read, "just calling *it* 'db.php'", regarding the name of
the file used to store the username/password info.

c.

attached mail follows:


From: "Chris W. Parker" <cparkerswatgear.com>
> > You're right. Option 2 offers more security in that no one will ever
> > be able to reach the file directly with a web browser. You don't need
> > to use file() or file_get_contents(), though... A simple
> > include('../includes/db.inc'); wil work (where ../ takes you outside
> > of the webroot and into an includes/ directory for the db.inc file).
> > Or use an absolute path include('/home/user/includes/db.inc'); where
> > /home/user/www/ is your webroot (for example).
>
> how about just calling 'db.php' so that when someone does request it via
> a web browser it will be parsed and end up not sending any data to the
> client?

We'll call that Option 3, which is a viable option if you cannot do Option 2
(store outside of webroot). The problems with this method is that if PHP
ever fails for any reason, the file may be delivered as plain text. It can
also be run "out of context". For a db connection script, this could mean
that someone could program a bot to hit this script multiple times and use
up your database connections and slow things down. If the file runs normal
PHP code, depending upon how it's written, it could be run "out of context"
and perhaps generate useful errors to people profiling your application or
possibly show data that wasn't intended to be shown by itself (imagine an
.inc file that generates a table from the database that's normally protected
by surrounding PHP code, but now it can be run by itself).

Option 4 would be to place the files in an .htaccess protected directory.
Again, though, if Apache were to fail for any reason, the file could be
served as plain text. This option is also not portable to other web servers,
so that could be an issue.

---John Holmes...

attached mail follows:


John W. Holmes <mailto:holmes072000charter.net>
    on Tuesday, June 01, 2004 8:29 AM said:

> We'll call that Option 3, which is a viable option if you cannot do
> Option 2 (store outside of webroot). The problems with this method is
> that if PHP ever fails for any reason, the file may be delivered as
> plain text. It can also be run "out of context".

[snip other useful info]

yes this all makes sense. good to know John.

thanks,
chris.

attached mail follows:


Hi !

I am an unexperienced PHP newbie, and a have a Problem:
The following script is a sample from a PHP tutorial,
but it does not work on my machine.
I use PHP Ver. 4.1.2 with apache 1.3.26 on a debian box.
In php.ini, "safe_mode" is off, and "register_globals" is on.

The script from the mentioned tutorial (http://www.galileocomputing.de/openbook/php4/kapd.htm)
should be a sample for a php-file which invokes itself;
This does not work on my machine;
I can enter names and submit them as often I like, but
the statement from the if-block is never executed, i.e.
the output "You have entered the following name: ..."
is never displayed.

Here is the excerpt from this script:

----------------------------------------------------------
<html>
<head>
<?php
   if ($dispatched)
   {
      echo "You have entered the following";
      echo " Name: $vn $nn<p>";
   }
?>
</head>
<body>
Please enter a Name and send the form:
<form action = "ud12.php" method = "post">
    <input name = "nn"> 2nd Name<p>
    <input name = "vn"> 1st Name<p>
    <input type = "submit" name = "dispatched">
    <input type = "reset">
</form>
</body>
</html>
------------------------------------------------------------

I assume the reason is in global or general settings,
but I don't know them.
Does anybody know what to do ?

best regards

chrm

attached mail follows:


[snip]
<html>
<head>
<?php
   if ($dispatched)
   {
      echo "You have entered the following";
      echo " Name: $vn $nn<p>";
   }
?>
</head>
<body>
Please enter a Name and send the form:
<form action = "ud12.php" method = "post">
    <input name = "nn"> 2nd Name<p>
    <input name = "vn"> 1st Name<p>
    <input type = "submit" name = "dispatched">
    <input type = "reset">
</form>
</body>
</html>
[/snip]

put "post" in all caps "POST".
try changing $vn to $_POST['vn']

attached mail follows:


From: "php-general" <php-generalrf-funkinternet.at>

> I use PHP Ver. 4.1.2 with apache 1.3.26 on a debian box.
> In php.ini, "safe_mode" is off, and "register_globals" is on.
>
> I can enter names and submit them as often I like, but
> the statement from the if-block is never executed, i.e.
> the output "You have entered the following name: ..."
> is never displayed.
>
> <?php
> if ($dispatched)
> {
> echo "You have entered the following";
> echo " Name: $vn $nn<p>";
> }
> ?>
[snip]
> <input type = "submit" name = "dispatched">

Are you clicking on the submit button to submit the form or pressing enter?

If clicking on the button and this still isn't working, then register
globals is OFF. Whoever told you it was ON is a damn liar and should be
whipped and thrown in the brig for a couple weeks to teach them a lesson!!!

If php.ini says it's ON, then you're looking at the wrong php.ini or PHP is
reading another one (or using defaults). Look at the first block of a
phpinfo() page:

<?php phpinfo(); ?>

to see where PHP is reading it's php.ini from or where it's expecting it.

---John Holmes...

attached mail follows:


This works perfectly fine for me, as is.

fyi -- It doesn't matter what case "post" or "get" are in the code, the
global _GET and _POST will be populated properly.

----- Original Message -----
From: "php-general" <php-generalrf-funkinternet.at>
To: <php-generallists.php.net>
Sent: Tuesday, June 01, 2004 11:24 AM
Subject: [PHP] PHP Basic's Problem with a simple script.

Hi !

I am an unexperienced PHP newbie, and a have a Problem:
The following script is a sample from a PHP tutorial,
but it does not work on my machine.
I use PHP Ver. 4.1.2 with apache 1.3.26 on a debian box.
In php.ini, "safe_mode" is off, and "register_globals" is on.

The script from the mentioned tutorial
(http://www.galileocomputing.de/openbook/php4/kapd.htm)
should be a sample for a php-file which invokes itself;
This does not work on my machine;
I can enter names and submit them as often I like, but
the statement from the if-block is never executed, i.e.
the output "You have entered the following name: ..."
is never displayed.

Here is the excerpt from this script:

----------------------------------------------------------
<html>
<head>
<?php
   if ($dispatched)
   {
      echo "You have entered the following";
      echo " Name: $vn $nn<p>";
   }
?>
</head>
<body>
Please enter a Name and send the form:
<form action = "ud12.php" method = "post">
    <input name = "nn"> 2nd Name<p>
    <input name = "vn"> 1st Name<p>
    <input type = "submit" name = "dispatched">
    <input type = "reset">
</form>
</body>
</html>
------------------------------------------------------------

I assume the reason is in global or general settings,
but I don't know them.
Does anybody know what to do ?

best regards

chrm

attached mail follows:


--- php-general <php-generalrf-funkinternet.at> wrote:
> In php.ini, "safe_mode" is off, and "register_globals" is on.

[snip]

> "You have entered the following name: ..." is never displayed.

[snip]

> echo "You have entered the following";
> echo " Name: $vn $nn<p>";

I guess you found a php.ini somewhere and saw that register_globals was
on? I seriously doubt your findings (unless I overlooked a typo regarding
a variable name or something), but please add this code to be sure:

echo 'register_globals [' . ini_get('register_globals') . ']';

Hope that helps.

Chris

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

PHP Security - O'Reilly
     Coming Fall 2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/

attached mail follows:


Hey everyone, don't know about you, but I'm sick of spam and so I've
reported the spammers to their ISP ipowerweb.com
I've sent them the headers and traceroute results and their abuse team
is investigating, it would be more powerful if a bunch of people
complained about it, so if you have a minute and are sick of the
garbage from suisse bank and information desk, send a quick email to
the ISP. They should be shut down.

Last resort
If this doesn't work, I have a few buddies that would love to try out
their DOS attack skills, but I'd rather deal with it legally.

attached mail follows:


[snip]
Hey everyone, don't know about you, but I'm sick of spam and so I've
reported the spammers
[/snip]

Which "spammers" are you referring too?

[snip]
Last resort
If this doesn't work, I have a few buddies that would love to try out
their DOS attack skills, but I'd rather deal with it legally.
[/snip]

And now we would all have your e-mail on file concerning a DOS
attack.....

attached mail follows:


> > [snip]
> > Hey everyone, don't know about you, but I'm sick of spam and so I've
> reported the spammers
> [/snip]
> Which "spammers" are you referring too?

I believe he made reference to them in his original post here:

> so if you have a minute and are sick of the garbage from suisse bank and
> information desk,

Oftentimes, when I send a message to the PHP list, I get an auto-response
from both of the above.

Chris

attached mail follows:


Those messages are only broadcast if you happen to send a message to the
board cause people have autoresponders set. Given that there are only two
and now one bad address returning a message, I find it fairly easy to just
hit the delete button three times. I don't think this qualifies as spam.

So, as I hit the send button, I know I'll have 3 messages to delete in a few
seconds. No big deal...
----- Original Message -----
From: "The Digital E" <newslettersthedigitale.com>
To: "Php-General-Help" <php-generallists.php.net>
Sent: Tuesday, June 01, 2004 11:50 AM
Subject: [PHP] Spammers

> Hey everyone, don't know about you, but I'm sick of spam and so I've
> reported the spammers to their ISP ipowerweb.com
> I've sent them the headers and traceroute results and their abuse team
> is investigating, it would be more powerful if a bunch of people
> complained about it, so if you have a minute and are sick of the
> garbage from suisse bank and information desk, send a quick email to
> the ISP. They should be shut down.
>
> Last resort
> If this doesn't work, I have a few buddies that would love to try out
> their DOS attack skills, but I'd rather deal with it legally.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>

attached mail follows:


[snip]
Those messages are only broadcast if you happen to send a message to the
board cause people have autoresponders set. Given that there are only
two
and now one bad address returning a message, I find it fairly easy to
just
hit the delete button three times. I don't think this qualifies as spam.
[/snip]

You can set up a rule in outlook or send them to /dev/null or ....

attached mail follows:


Well yeah, I could, but I'm rather adept at deleting the REAL spam I get so
it's not a bother. lol

I use a combination of filters and outlook message rules to catch most of
it, so no worries. I'm used to it now.

(And yet again, another couple to delete...)
----- Original Message -----
From: "Jay Blanchard" <jay.blanchardniicommunications.com>
To: "Steve Douville" <phpdouville.net>; "Php-General-Help"
<php-generallists.php.net>
Sent: Tuesday, June 01, 2004 12:01 PM
Subject: RE: [PHP] Spammers

[snip]
Those messages are only broadcast if you happen to send a message to the
board cause people have autoresponders set. Given that there are only
two
and now one bad address returning a message, I find it fairly easy to
just
hit the delete button three times. I don't think this qualifies as spam.
[/snip]

You can set up a rule in outlook or send them to /dev/null or ....

attached mail follows:


yeah same thing for me, but i don't really care, its no reason to start
hacker the server.

>From: "Steve Douville" <phpdouville.net>
>Reply-To: "Steve Douville" <phpdouville.net>
>To: "Php-General-Help" <php-generallists.php.net>
>Subject: Re: [PHP] Spammers
>Date: Tue, 1 Jun 2004 11:57:33 -0400
>
>Those messages are only broadcast if you happen to send a message to the
>board cause people have autoresponders set. Given that there are only two
>and now one bad address returning a message, I find it fairly easy to just
>hit the delete button three times. I don't think this qualifies as spam.
>
>So, as I hit the send button, I know I'll have 3 messages to delete in a
>few
>seconds. No big deal...
>----- Original Message -----
>From: "The Digital E" <newslettersthedigitale.com>
>To: "Php-General-Help" <php-generallists.php.net>
>Sent: Tuesday, June 01, 2004 11:50 AM
>Subject: [PHP] Spammers
>
>
> > Hey everyone, don't know about you, but I'm sick of spam and so I've
> > reported the spammers to their ISP ipowerweb.com
> > I've sent them the headers and traceroute results and their abuse team
> > is investigating, it would be more powerful if a bunch of people
> > complained about it, so if you have a minute and are sick of the
> > garbage from suisse bank and information desk, send a quick email to
> > the ISP. They should be shut down.
> >
> > Last resort
> > If this doesn't work, I have a few buddies that would love to try out
> > their DOS attack skills, but I'd rather deal with it legally.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> >
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

_________________________________________________________________
Watch LIVE baseball games on your computer with MLB.TV, included with MSN
Premium! http://join.msn.click-url.com/go/onm00200439ave/direct/01/

attached mail follows:


I made note earlier that I was joking about hacking the server... I'm a
programmer not a hacker. I am however not a fan of spam and will report
it when I can.

On Jun 1, 2004, at 12:26 PM, Tyler Replogle wrote:

> yeah same thing for me, but i don't really care, its no reason to
> start hacker the server.
>
>
>
>> From: "Steve Douville" <phpdouville.net>
>> Reply-To: "Steve Douville" <phpdouville.net>
>> To: "Php-General-Help" <php-generallists.php.net>
>> Subject: Re: [PHP] Spammers
>> Date: Tue, 1 Jun 2004 11:57:33 -0400
>>
>> Those messages are only broadcast if you happen to send a message to
>> the
>> board cause people have autoresponders set. Given that there are only
>> two
>> and now one bad address returning a message, I find it fairly easy to
>> just
>> hit the delete button three times. I don't think this qualifies as
>> spam.
>>
>> So, as I hit the send button, I know I'll have 3 messages to delete
>> in a few
>> seconds. No big deal...
>> ----- Original Message -----
>> From: "The Digital E" <newslettersthedigitale.com>
>> To: "Php-General-Help" <php-generallists.php.net>
>> Sent: Tuesday, June 01, 2004 11:50 AM
>> Subject: [PHP] Spammers
>>
>>
>> > Hey everyone, don't know about you, but I'm sick of spam and so I've
>> > reported the spammers to their ISP ipowerweb.com
>> > I've sent them the headers and traceroute results and their abuse
>> team
>> > is investigating, it would be more powerful if a bunch of people
>> > complained about it, so if you have a minute and are sick of the
>> > garbage from suisse bank and information desk, send a quick email to
>> > the ISP. They should be shut down.
>> >
>> > Last resort
>> > If this doesn't work, I have a few buddies that would love to try
>> out
>> > their DOS attack skills, but I'd rather deal with it legally.
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >
>> >
>> >
>> >
>> >
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> _________________________________________________________________
> Watch LIVE baseball games on your computer with MLB.TV, included with
> MSN Premium!
> http://join.msn.click-url.com/go/onm00200439ave/direct/01/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
Eric Symbouras
thedigitale.com
347.613.9934

attached mail follows:


* Thus wrote The Digital E (newslettersthedigitale.com):
> Hey everyone, don't know about you, but I'm sick of spam and so I've
> reported the spammers to their ISP ipowerweb.com
> I've sent them the headers and traceroute results and their abuse team
> is investigating, it would be more powerful if a bunch of people
> complained about it, so if you have a minute and are sick of the
> garbage from suisse bank and information desk, send a quick email to
> the ISP. They should be shut down.

I have sent a message to them as well, got a investigating response
and nothing has happened. ipowerweb seems to be a popular place
for people to spam from. Even though they do have a no-spam
policy, they seem to look the other way when it does occur.

Curt
--
"I used to think I was indecisive, but now I'm not so sure."

attached mail follows:


Steve Douville wrote:

> Those messages are only broadcast if you happen to send a message to the
> board cause people have autoresponders set. Given that there are only two
> and now one bad address returning a message, I find it fairly easy to just
> hit the delete button three times. I don't think this qualifies as spam.
>

It's not spam per-se, but these addresses obviously should not be on the
list. AND If you try to respond, the mailboxes are full, so there's no
way to contact the users themselves. I see it as spam because it's
wasting lots of bandwidth. Just think of the number of messages on this
board....times 3. Going out all over the place. That's a lot of wasted
bandwidth and "deleting time". IMHO, the php list admins should just
delete them, but none of them EVER respond to requests for this.

> So, as I hit the send button, I know I'll have 3 messages to delete in a few
> seconds. No big deal...
> ----- Original Message -----
> From: "The Digital E" <newslettersthedigitale.com>
> To: "Php-General-Help" <php-generallists.php.net>
> Sent: Tuesday, June 01, 2004 11:50 AM
> Subject: [PHP] Spammers
>
>
>
>>Hey everyone, don't know about you, but I'm sick of spam and so I've
>>reported the spammers to their ISP ipowerweb.com
>>I've sent them the headers and traceroute results and their abuse team
>>is investigating, it would be more powerful if a bunch of people
>>complained about it, so if you have a minute and are sick of the
>>garbage from suisse bank and information desk, send a quick email to
>>the ISP. They should be shut down.
>>
>>Last resort
>>If this doesn't work, I have a few buddies that would love to try out
>>their DOS attack skills, but I'd rather deal with it legally.
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>
>>

--
paperCrane <Justin Patrin>

attached mail follows:


The Digital E wrote:
> Last resort
> If this doesn't work, I have a few buddies that would love to try out
> their DOS attack skills, but I'd rather deal with it legally.

Hmmmm...nice thing to put your name on record for.

'No need for a trial your honor...we have his email to the php mailing
lists right here...'

--
John C. Nichel
KegWorks.com
716.856.9675
johnkegworks.com

attached mail follows:


Steve Douville wrote:
> So, as I hit the send button, I know I'll have 3 messages to delete in a few
> seconds. No big deal...

Set up a filter.

--
John C. Nichel
KegWorks.com
716.856.9675
johnkegworks.com

attached mail follows:


John Nichel wrote:

> Steve Douville wrote:
>
>> So, as I hit the send button, I know I'll have 3 messages to delete in
>> a few
>> seconds. No big deal...
>
>
> Set up a filter.
>

Everyone says use a filter, but you need to think of the resource issue
as well. There are at least 2 (probably more) servers which have to
process this mail. In addition, extra bandwidth is used. This may not
seem like much, but it's still a complete waste of resources.

--
paperCrane <Justin Patrin>

attached mail follows:


Can no one take a joke... it would be rather stupid to send an email
out to a list if I was preparing to hack a system, especially with my
company name in the email. To repeat what I've said 3 times:

'I made note earlier that I was joking about hacking the server... I'm
a programmer not a hacker. I am however not a fan of spam and will
report it when I can.'

On Jun 1, 2004, at 1:38 PM, John Nichel wrote:

> The Digital E wrote:
>> Last resort
>> If this doesn't work, I have a few buddies that would love to try out
>> their DOS attack skills, but I'd rather deal with it legally.
>
> Hmmmm...nice thing to put your name on record for.
>
> 'No need for a trial your honor...we have his email to the php mailing
> lists right here...'
>
> --
> John C. Nichel
> KegWorks.com
> 716.856.9675
> johnkegworks.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
Eric Symbouras
thedigitale.com
347.613.9934

attached mail follows:


"This may not seem like much, but it's still a complete waste of resources."

So is this thread... ;-)

Really, though, the spam problem as a WHOLE is a resource waster. On top of
the 100+ spam messages I get a day, getting these two IF I post a message
really isn't wasting that much resource. I mean, really, I don't read all of
the posts from this list, either, but the mail server still has to process
them all.

The only reasonable way to solve this is for the admins to delete the
addresses. Maybe if they got as many emails as this thread has produced,
perhaps they would be prompted to do something about it.

Oh, look, two more to delete. (I knew the risk, believe me...) ;-)
----- Original Message -----
From: "Justin Patrin" <papercranereversefold.com>
To: <php-generallists.php.net>
Sent: Tuesday, June 01, 2004 1:43 PM
Subject: Re: [PHP] Spammers

> John Nichel wrote:
>
> > Steve Douville wrote:
> >
> >> So, as I hit the send button, I know I'll have 3 messages to delete in
> >> a few
> >> seconds. No big deal...
> >
> >
> > Set up a filter.
> >
>
> Everyone says use a filter, but you need to think of the resource issue
> as well. There are at least 2 (probably more) servers which have to
> process this mail. In addition, extra bandwidth is used. This may not
> seem like much, but it's still a complete waste of resources.
>
> --
> paperCrane <Justin Patrin>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>

attached mail follows:


On Wednesday 02 June 2004 01:16, Justin Patrin wrote:

> IMHO, the php list admins should just
> delete them

Agree.

> but none of them EVER respond to requests for this.

Not true, it's just that it often takes someone several days to weeks to
respond!

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Ad astra per aspera.
        [To the stars by aspiration.]
*/

attached mail follows:


Justin Patrin wrote:
> John Nichel wrote:
>> Set up a filter.
>>
>
> Everyone says use a filter, but you need to think of the resource issue
> as well. There are at least 2 (probably more) servers which have to
> process this mail. In addition, extra bandwidth is used. This may not
> seem like much, but it's still a complete waste of resources.
>

Nobody's debating that it need's to be stopped, but until it is....

--
John C. Nichel
KegWorks.com
716.856.9675
johnkegworks.com

attached mail follows:


On 05/31/04 15:44 philfilanya.com spoke:
> I want to verify that there is data (doesn't matter whether it's valid data or
> not) inside a MySQL blob using a PHP function. How do I do this?
>
> Thanks!!

What characteristic defines a blob?

attached mail follows:


On 31-May-2004 Travis Low wrote:
> I have to say I like everything about the PEAR coding standards
> except for the
> K&R bracing style. I much prefer:
>
> if( foo )
> {
> blah;
> }
>

Icky.

So ... Vee-Eye or Eighty Megs and Constantly Swapping ?
 ;->

--
Don Read dreadispwest.net
-- It's always darkest before the dawn. So if you are going to
   steal the neighbor's newspaper, that's the time to do it.

attached mail follows:


Travis Low wrote:

> I have to say I like everything about the PEAR coding standards except
> for the K&R bracing style. I much prefer:
>
> if( foo )
> {
> blah;
> }
>
> to
>
> if( foo ) {
> blah;
> }
>
>
> The latter form (K&R) conserves vertical space, but I find it a lot
> harder to follow. Harder to move blocks of code around too. I'm sure
> plenty of people disagree, so of course this is IMHO.

And I'm one of them. :-) I like the K&R version because it saves
verticaly space and most editors can't really handle correct tabbing
when you put it after. IMHO it's just not necessary as ALL blocks should
have braces, even those that are one-line. If you always use the braces,
  you can looks for indenting as the open of the block and the end-brace
(and un-indenting) as the close of the block.

>
> cheers,
>
> Travis
>
> Michael Nolan wrote:
>
>> charles kline wrote:
>>
>>> Hi all,
>>>
>>> I was having a conversation with a friend and talking about coding
>>> standards in the open source community (focusing on PHP). I seem to
>>> remember there being a document out there that sort of laid it out
>>> pretty well.
>>>
>>> Anyone know where I might find a copy?
>>>
>>
>> PEAR has a page in their documentation about coding standards:
>>
>> http://pear.php.net/manual/en/standards.php
>>
>> HTH,
>>
>> Mike
>>
>

--
paperCrane <Justin Patrin>

attached mail follows:


Justin Patrin wrote:
> Travis Low wrote:
>
>> [I hate K&R indenting]
>
> And I'm one of them. :-) I like the K&R version because it saves
> verticaly space and most editors can't really handle correct tabbing...

Arrggghh...TABS. Don't even get me started on tabs...

cheers,

Travis

--
Travis Low
<mailto:travisdawnstar.com>
<http://www.dawnstar.com>

attached mail follows:


[snip]
>> [I hate K&R indenting]
>
> And I'm one of them. :-) I like the K&R version because it saves
> verticaly space and most editors can't really handle correct
tabbing...

Arrggghh...TABS. Don't even get me started on tabs...
[/snip]

How many holy wars can be started in one thread legally?

attached mail follows:


Travis Low wrote:

> Justin Patrin wrote:
>
>> Travis Low wrote:
>>
>>> [I hate K&R indenting]
>>
>>
>> And I'm one of them. :-) I like the K&R version because it saves
>> verticaly space and most editors can't really handle correct tabbing...
>
>
> Arrggghh...TABS. Don't even get me started on tabs...
>
> cheers,
>
> Travis
>

I meant indenting. I won't get into tabs vs. spaces here. ;-)

--
paperCrane <Justin Patrin>

attached mail follows:


So there's no way to upgrade PHP 4.2.2's GD Library without upgrading to the
latest version of PHP?

Ryan

-----Original Message-----
From: Jason Wong [mailto:php-generalgremlins.biz]
Sent: Tuesday, June 01, 2004 5:21 AM
To: php-generallists.php.net
Subject: Re: [PHP] RE: GD Library Upgrade

On Tuesday 01 June 2004 12:42, Ryan Schefke wrote:

> I'm working with a host on a Linux box with PHP 4.2.2. The version of GD
> Library they have is 1.8.4. I was uploading some pictures using a script
> that leveraged GD Library 2+. Using the php version with the newer GD
> library seemed to produce a better quality image. I have two questions:
>
>
>
> 1 - Can a newer version of GD Library (1.8.4 vs 2+) make a difference in
> image quality?

Possibly. You would have to read the changelog of GD to see.

> 2 - I'd like to upgrade the Linux box that has PHP 4.2.2 and GD Library
> 1.8.4 to the most recent version. Is this easy? Any guidance? Do I need
> a patch?

You would normally have to recompile PHP to get it use a newer version of
GD.
If your host allowed you to do so then you might as well upgrade your
version
of PHP and use the bundled GD libs.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Q: Why did the programmer call his mother long distance?
A: Because that was her name.
*/

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

attached mail follows:


On Wednesday 02 June 2004 01:10, Ryan Schefke wrote:

> So there's no way to upgrade PHP 4.2.2's GD Library without upgrading to
> the latest version of PHP?

That was not what was said nor implied in my reply. Basically upgrading the GD
lib used by PHP needs root privileges. If I understand you correctly, you're
on a shared host, thus _you_ are not able to upgrade anything.

If you do manage to persuade your hosting company to do an upgrade then they
may as well upgrade PHP and use the bundled GD lib which apparently works
better with PHP than the standard GD lib as opposed to just upgrading the GD
lib.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Put your Nose to the Grindstone!
                -- Amalgamated Plastic Surgeons and Toolmakers, Ltd.
*/

attached mail follows:


Can anyone tell me what size the buffer in IE has to be before it outputs
data?

attached mail follows:


Stephen Lake wrote:

> Can anyone tell me what size the buffer in IE has to be before it outputs
> data?

I don't know the answer, but I just output a large HTML comment that
forces it to display...after every output that I want the user ot see
real-time. Of course, this is somewhat inefficient bandwitdh-wise, so
you should use it sparingly.

--
paperCrane <Justin Patrin>

attached mail follows:


* Thus wrote Stephen Lake (slake2ns.sympatico.ca):
> Can anyone tell me what size the buffer in IE has to be before it outputs
> data?

The calculation is as follows:

[Total Virtual Memory] - [Non-table enclosed data] +
[sizeof(input.buffer)] / [random.crash()]

Curt
--
"I used to think I was indecisive, but now I'm not so sure."

attached mail follows:


Hi all,

I'm sure this question has come up before, so it should be an easy answer...

I'm running PHP as an apache module, and have safe_mode turned on.

When a script attempts to create a directory, or upload a file, it creates
it as the web server user.

Since it is an apache module, running suexec won't make it act like a
particular user, so how can you get it to create directories, or upload
files that have a particular user ownership ?

Thanks,

Tim.

SimpleNet's Back !
http://www.simplenet.com/

attached mail follows:


I have php with pg and mysql commands working on the web site all scripts
work. When I call them from the cmdline I get a different story. Call to
undefined function: pg_connect() but run the same script from the web and
it works no problem.. Anyone have some insight why this is happening

 

Thanks,

Alan Todd

attached mail follows:


On Wednesday 02 June 2004 01:31, alantodd wrote:
> I have php with pg and mysql commands working on the web site all scripts
> work. When I call them from the cmdline I get a different story. Call to
> undefined function: pg_connect() but run the same script from the web and
> it works no problem.. Anyone have some insight why this is happening

  /path/to/php -i | less

to see that your php cli binary was (most likely) not compiled with the
necessary postgresql support.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The average individual's position in any hierarchy is a lot like pulling
a dogsled -- there's no real change of scenery except for the lead dog.
*/

attached mail follows:


Hi,
A bit confused, I downloaded a function and it says it takes a "date
object"....what exactly is a "date object"?

This is exactly what is written " The function takes a date object as its
only parameter."

I checked out the manual and tried a timestamp, and then checked "date",
"getdate", "mktime" etc
am doing something wrong...but wont know what till I understand the "date
object" that this needs.

The script is at:
http://scripts.franciscocharrua.com/php-calendar.php

Thanks,
-Ryan

attached mail follows:


From: "Ryan A" <ryancoinpass.com>

> A bit confused, I downloaded a function and it says it takes a "date
> object"....what exactly is a "date object"?
>
> This is exactly what is written " The function takes a date object as its
> only parameter."

No such thing. If you look at the code, though, it looks like it expects an
array such as the one returned from getdate().

---John Holmes...

attached mail follows:


> From: "Ryan A" <ryancoinpass.com>
>
> > A bit confused, I downloaded a function and it says it takes a "date
> > object"....what exactly is a "date object"?
> >
> > This is exactly what is written " The function takes a date object as
its
> > only parameter."
>
> No such thing. If you look at the code, though, it looks like it expects
an
> array such as the one returned from getdate().
>
> ---John Holmes...

Yep, noticed the getdate() thing but was just confused about the "date
object" and went through the manual again plus google wondering how the heck
did I miss "date objects" when learning PHP :-)...

Thanks for clearing that up.

Cheers,
-Ryan

attached mail follows:


Hello All,

      I am designing a PHP and MySQL based online Testing Application.
The application will consist of about 120 lessons and each lesson will
have a quiz at the end of the lesson. There will also be some core
lessons that all test takers will have to pass before going ahead.
There will be a good number of optional/elective courses.

The main page that I am trying to design a page which will tell a user,
what lessons he/she has passed, what lessons he /she is eligible to
take and the lessons he /she cannot take at the moment. The lessons are
numbered sequentially like Lesson 101, 102, 103, 104, 105 , 106
....110. Out of them e.g. only Lesson 101 and 104 are CORE
requirements, the rest are just electives. However a person cannot do
Lesson 106 (which is an elective ) till he /she has passed Lesson 104.

I know people may have attempted to do the same in the past. I would
appreciate any pointers for the design/ implementation. I know that I
will have to create a set of rule which will dictate the order in
which the users will be allowed to travel through the tests. But other
suggestions will be most welcome.

Thanks in advance
Pushpinder

attached mail follows:


From: "Pushpinder Singh" <pgarchaadelphia.net>

> I am designing a PHP and MySQL based online Testing Application.
> The application will consist of about 120 lessons and each lesson will
> have a quiz at the end of the lesson. There will also be some core
> lessons that all test takers will have to pass before going ahead.
> There will be a good number of optional/elective courses.
>
> The main page that I am trying to design a page which will tell a user,
> what lessons he/she has passed, what lessons he /she is eligible to
> take and the lessons he /she cannot take at the moment. The lessons are
> numbered sequentially like Lesson 101, 102, 103, 104, 105 , 106
> ....110. Out of them e.g. only Lesson 101 and 104 are CORE
> requirements, the rest are just electives. However a person cannot do
> Lesson 106 (which is an elective ) till he /she has passed Lesson 104.

What about just a parent-child relationship? Lessons 101 and 104 will have
no parent and the others have parents that are the prerequisites. So 106 has
a parent of 104, meaning 104 must be completed first.

Or just use a separate table that lists relationships in two columns:
class_id and prereq_id. So 101 and 104 would have no entries and 106 would
have one entry for 104. This method would be useful for classes that may
have more than one prerequisite, also.

---John Holmes...

attached mail follows:


> The main page that I am trying to design a page which will
> tell a user, what lessons he/she has passed, what lessons he
> /she is eligible to take and the lessons he /she cannot take
> at the moment. The lessons are numbered sequentially like
> Lesson 101, 102, 103, 104, 105 , 106 ....110. Out of them
> e.g. only Lesson 101 and 104 are CORE requirements, the rest
> are just electives. However a person cannot do Lesson 106
> (which is an elective ) till he /she has passed Lesson 104.

I use a prereq table that contains lesson ids and the associated
prereqs. When a student meets the minimal requirements for the
prerequisite course then they are given access to the additional or sub
sequential courseware. This will show up in their login area of the
LMS.

I would suggest that you make everything as modular as possible, all the
way down to the ELOs. This way you can reuse any learning objective
logic that you used in a previous lesson. All you have to do is
re-associate the content. Most of the problems I have run into is the
IDs either don't think large enough, which is evident in the way the
course seems disjointed, or they don't think small enough, they worry
too much on the lesson and not enough on the objectives that make up the
lesson and how they can be made into expressions that will transcend
lessons, courses, etc...

alex hogan
*************************************************************************************
The contents of this e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is addressed. The
views stated herein do not necessarily represent the view of the company. If you are
not the intended recipient of this e-mail you may not copy, forward, disclose, or
otherwise use it or any part of it in any form whatsoever. If you have received this
e-mail in error please e-mail the sender.
*************************************************************************************

attached mail follows:


I am missing the link to the editor's list for PHP, can someone repost
it?

Thanks!

attached mail follows:


On Wednesday 02 June 2004 02:12, Jay Blanchard wrote:
> I am missing the link to the editor's list for PHP, can someone repost
> it?

If you mean text editors then I believe a link is contained in the weekly
"Newbies Guide to Posting" (or whatever it's called). So either wait for the
next weekly posting or use the archives.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Now that I have my "APPLE", I comprehend COST ACCOUNTING!!
*/

attached mail follows:


Sorry if anyone else gets this, but I'm not receiving any emails at the
moment and wanted to check my subscription.

attached mail follows:


On Wednesday 02 June 2004 02:15, Tom Chubb wrote:
> Sorry if anyone else gets this, but I'm not receiving any emails at the
> moment and wanted to check my subscription.

In future please use one of the list archives to check that the list is
functioning. Eg:

  http://marc.theaimsgroup.com/?l=php-general

has already archived your post.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Give your child mental blocks for Christmas.
*/

attached mail follows:


From: "Tom Chubb" <tomps-hosting.co.uk>

> Sorry if anyone else gets this, but I'm not receiving any emails at the
> moment and wanted to check my subscription.

 You know php-general is working when you get emails from Advance Credit
Suisse Bank and the Information Desk.

---John Holmes...

(Sorry... had to do it!)

attached mail follows:


[snip]
I am missing the link to the editor's list for PHP, can someone repost
it?
[/snip]

Found it...thanks!

attached mail follows:


hello all -

i'm having a problem getting an UPDATE to work with radio buttons and
i'm not sure where it's gone wrong. the initial values are being grabbed
properly, but unfortunately they don't want to get updated. the regular
text form values update just fine. would appreciate some help.

the html:

<input type=hidden name="id" value="<?php echo $id ?>">

club member?<br>
No: <input type="radio" name="club_member" <?php if($row->club_member ==
'N'){echo 'CHECKED';}?>><br>
Yes: <input type="radio" name="club_member" <?php if($row->club_member
== 'Y'){echo 'CHECKED';}?>>

the query to update:

$query = "UPDATE outdoor SET name='$name', email='$email', zip='$zip',
club_member='$club_member' WHERE id='$id'";
$result = mysql_query($query) or die ("Error in query: $query. " .
mysql_error());

[trying to keep the code paste to what i think is important, let me know
if more is needed for info.]

thanks!
m.

attached mail follows:


[snip]
i'm having a problem getting an UPDATE to work with radio buttons and
i'm not sure where it's gone wrong. the initial values are being grabbed
properly, but unfortunately they don't want to get updated. the regular
text form values update just fine. would appreciate some help.

the html:

<input type=hidden name="id" value="<?php echo $id ?>">

club member?<br>
No: <input type="radio" name="club_member" <?php if($row->club_member ==
'N'){echo 'CHECKED';}?>><br>
Yes: <input type="radio" name="club_member" <?php if($row->club_member
== 'Y'){echo 'CHECKED';}?>>
[/snip]

You have to create a value for the box...or check for ON

function radioBox($radioBoxState){
        /*
        ** this function will get the tail value of the checked radio
button
        ** and return the appropriate value for use by the database,
either a
        ** 'y' or 'n'
        */
        if(TRUE == preg_match('/Yes/', $radioBoxState)){
                $radioBoxState = "y";
        } elseif(TRUE == preg_match('/No/', $radioBoxState)){
                $radioBoxState = "n";
        }
        return $radioBoxState;
}
function checkBox($checkBoxState){
        /*
        ** this is a function that will turn an 'on' checkbox into a 'y'
for the database
        ** if it is not 'on' an 'n' will be returned
        */
        if("on" == $checkBoxState){
                $checkBoxData = "y";
        } else {
                $checkBoxData = "n";
        }
        return $checkBoxData;

attached mail follows:


I think you need Values for the radio buttons.

<input type="radio" name="club_member" Value="N" <?php if($row->club_member
 ='N'){echo 'CHECKED';}?>>

>
> hello all -
>
> i'm having a problem getting an UPDATE to work with radio buttons and
> i'm not sure where it's gone wrong. the initial values are being grabbed
> properly, but unfortunately they don't want to get updated. the regular
> text form values update just fine. would appreciate some help.
>
> the html:
>
> <input type=hidden name="id" value="<?php echo $id ?>">
>
> club member?<br>
> No: <input type="radio" name="club_member" <?php if($row->club_member
> ='N'){echo 'CHECKED';}?>><br>
> Yes: <input type="radio" name="club_member" <?php if($row->club_member
> == 'Y'){echo 'CHECKED';}?>>
>
>
> the query to update:
>
> $query = "UPDATE outdoor SET name='$name', email='$email', zip='$zip',
> club_member='$club_member' WHERE id='$id'";
> $result = mysql_query($query) or die ("Error in query: $query. " .
> mysql_error());
>
>
>
> [trying to keep the code paste to what i think is important, let me know
> if more is needed for info.]
>
>
> thanks!
> m.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


how embarrassing. :] yes, of course that would be the problem.

just to note, i'm enjoying learning php/mysql and appreciate the help
from this list. it's a great community and the good will makes it a
great place to ask the sometimes really stupid questions.

best,
m.

-----Original Message-----
From: Daniel Clark [mailto:dclarknwlink.com]
Sent: Tuesday, June 01, 2004 1:14 PM
To: Matt Newell
Cc: php-generallists.php.net
Subject: Re: [PHP] update mysql using radio button

I think you need Values for the radio buttons.

<input type="radio" name="club_member" Value="N" <?php
if($row->club_member ='N'){echo 'CHECKED';}?>>

>
> hello all -
>
> i'm having a problem getting an UPDATE to work with radio buttons and
> i'm not sure where it's gone wrong. the initial values are being
> grabbed properly, but unfortunately they don't want to get updated.
> the regular text form values update just fine. would appreciate some
help.
>
> the html:
>
> <input type=hidden name="id" value="<?php echo $id ?>">
>
> club member?<br>
> No: <input type="radio" name="club_member" <?php if($row->club_member
> ='N'){echo 'CHECKED';}?>><br>
> Yes: <input type="radio" name="club_member" <?php if($row->club_member

> == 'Y'){echo 'CHECKED';}?>>
>
>
> the query to update:
>
> $query = "UPDATE outdoor SET name='$name', email='$email', zip='$zip',

> club_member='$club_member' WHERE id='$id'"; $result =
> mysql_query($query) or die ("Error in query: $query. " .
> mysql_error());
>
>
>
> [trying to keep the code paste to what i think is important, let me
> know if more is needed for info.]
>
>
> thanks!
> m.
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>

attached mail follows:


From: "Daniel Clark" <dclarknwlink.com>

> <input type="radio" name="club_member" Value="N" <?php
if($row->club_member
> ='N'){echo 'CHECKED';}?>>

=='N', you mean. :)

---John Holmes...

attached mail follows:


Right. (oops)

> From: "Daniel Clark" <dclarknwlink.com>
>
>> <input type="radio" name="club_member" Value="N" <?php
> if($row->club_member
>> ='N'){echo 'CHECKED';}?>>
>
> =='N', you mean. :)
>
> ---John Holmes...

attached mail follows:


Does anybody know of any peculiarities in the strtotime() function?
 
If I enter any date before 1 Jan 1970 I get a -1 returned.
 

 

alex hogan

 

 

*************************************************************************************
The contents of this e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is addressed. The
views stated herein do not necessarily represent the view of the company. If you are
not the intended recipient of this e-mail you may not copy, forward, disclose, or
otherwise use it or any part of it in any form whatsoever. If you have received this
e-mail in error please e-mail the sender.
*************************************************************************************

attached mail follows:


http://us3.php.net/manual/en/function.strtotime.php

Note: The valid range of a timestamp is typically from Fri, 13 Dec 1901
20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that
correspond to the minimum and maximum values for a 32-bit signed integer.)
Additionally, not all platforms support negative timestamps, therefore
your date range may be limited to no earlier than the Unix epoch. This
means that e.g. dates prior to Jan 1, 1970 will not work on Windows, some
Linux distributions, and a few other operating systems.

> Does anybody know of any peculiarities in the strtotime() function?
>
> If I enter any date before 1 Jan 1970 I get a -1 returned.
>
> alex hogan

attached mail follows:


Hi all,
I have a question about PHP in relation with software engineering, and in particular, in order to apply COCOMO metod in a web-oriented software.
I want to do a cost estimation of a software write in PHP-MySQL (and Linux-Apache) for a LAN.
I know the teory about the software enginnering and especially of the model for estimation cost.
I have many books and online materials about this, but in all I haven't table that show the coefficient of LOC/FP or SLOC/UFP (for COCOMOII) of PHP (in these tables there are coefficient for C, C++, Java, Lisp, Basic, ADA, Assembly, but not about PHP or scripting languages).
Anyone know anything about this arguments?
Thanks in advance and regards to all folks.
Francesco
francescoautomationsoft.biz