[PHP] Affiliates Programs

2004-06-01 Thread The Digital E
Does anyone know of a good PHP affiliates program, I'm willing to spend 
some cash if I need to, I have to have one up in a week for a client 
and can't possibly write it from the ground up by then. A good free one 
that I can build on or a great package that costs $100 or less would be 
ideal.

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


Re: [PHP] Slightly OT Mysql question

2004-06-01 Thread Burhan Khalid
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 ?
I have search mysql.com docs and other web resources but can not figure it
out.
Running FreeBSD 4.7 and MySql 3.23.58 if that helps
Thank you in advance for any help or guidance and once again sorry for being
a bit OT.
If you have an int auto-increment field that is the primary key, you 
could have reached the upper limit for int -- which would prevent new 
rows from being added.

1mb is not any limit for MySQL.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Affiliates Programs

2004-06-01 Thread The Digital E
I ran across that one as well, it may be a bit more than I need though, 
and doesn't look very customizable. I'll look further into that one, 
though, thanks. If anyone has used it though... please let me know how 
your experience has been.
Thanks

On Jun 1, 2004, at 4:00 AM, Ryan A wrote:
Hey,
I came accross a great one a month back ...I remember that it was 
around 99$
coz I couldnt afford it ;-)

http://www.idevdirect.com/idevaffiliate.php
If you find this advise useful and do buy it, please consider 
"lending" a
copy to me till I can afford to buy my own copy...

Thanks,
-Ryan
On 6/1/2004 9:28:54 AM, The Digital E ([EMAIL PROTECTED]) 
wrote:
Does anyone know of a good PHP affiliates program,
I'm willing to spend
some cash if I need to, I have to have one up in a week for a client
and can't
possibly write it from the ground up by then. A good free one
that I can build on or a great package that costs $100 or less would 
be
ideal.

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


Eric Symbouras
thedigitale.com
347.613.9934
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] query-apache2.0.49 installation

2004-06-01 Thread rohit mohta
  
whenever it try to manually start apache 2.0.49 from my system it throws the following 
error
only one useage of each socket address  is normally 
permitted :make sock could not bind to address 127.0.0.1:80
no listening sockets available ,shutting down
unable to open logs

when i enter localhost at the address bar of internet explorer the html page stating 
apache has been successfully installed.But when i try to run a testscript it throws an 
error stating that

html file not found

can any one please say me where i may be going wrong



Re: [PHP] RE: GD Library Upgrade

2004-06-01 Thread Jason Wong
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



Re: [PHP] kill a script...plz help

2004-06-01 Thread Jason Wong
On Tuesday 01 June 2004 10:17, CurlyBraces Technologies \( Pvt \) Ltd wrote:
> sorry for asking such questions , ..
> If u all don't have codings for such cases , could u plz direct me with
> some steps ?

Have a look at the 'kill' command.

-- 
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
--
/*
P-K4
*/

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



[PHP] R: [PHP] query-apache2.0.49 installation

2004-06-01 Thread Alessandro Vitale
check apache server version from the test page.
depending on your system, you may have another web server already running.
if you really wish to install and use version 2.0.49 make sure the installed
server is not conflicting with another one.

cheers,

A.

-Messaggio originale-
Da: rohit mohta [mailto:[EMAIL PROTECTED]
Inviato: martedì 1 giugno 2004 11.08
A: [EMAIL PROTECTED]
Oggetto: [PHP] query-apache2.0.49 installation


  
whenever it try to manually start apache 2.0.49 from my system it throws the
following error
only one useage of each socket address  is
normally permitted :make sock could not bind to address 127.0.0.1:80
no listening sockets available ,shutting down
unable to open logs

when i enter localhost at the address bar of internet explorer the html page
stating apache has been successfully installed.But when i try to run a
testscript it throws an error stating that

html file not found

can any one please say me where i may be going wrong

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



[PHP] Remember username and password

2004-06-01 Thread Phpu
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


Re: [PHP] Slightly OT Mysql question

2004-06-01 Thread XMG
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

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



Re: [PHP] Remember username and password

2004-06-01 Thread "Miguel J. Jiménez"
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] zlib compatibility

2004-06-01 Thread Jason Wong
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
*/

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



[PHP] Re: drop down menu populated from a directory

2004-06-01 Thread Torsten Roehr
"Dustin Krysak" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ok - here is the relevant Quicktime code:
>
> 
>  width="320" height="256"
> codebase="http://www.apple.com/qtactivex/qtplugin.cab";>
>
>
> value="http://www.apple.com/quicktime/download/indext.html";>
>
>
>
> autoplay="true" controller="true" border="0"
> pluginspage="http://www.apple.com/quicktime/download/indext.html";
> target="myself">
> 
> 
>
> 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/"

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


Regards, Torsten

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



[PHP] forms and DB

2004-06-01 Thread BigMark
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
markblah blah blah blah blah
jenny   blah blah blah blah blah

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



[PHP] extracting quoted text in string

2004-06-01 Thread Vincent DUPONT
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

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



Re: [PHP] extracting quoted text in string

2004-06-01 Thread Chris Hayes
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.

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


Re: [PHP] extracting quoted text in string

2004-06-01 Thread Jason Wong
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.
*/

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



Re: [PHP] extracting quoted text in string

2004-06-01 Thread John W. Holmes
From: "Chris Hayes" <[EMAIL PROTECTED]>

> >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...

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



Re: [PHP] Remember username and password

2004-06-01 Thread John W. Holmes
From: "Phpu" <[EMAIL PROTECTED]>

> 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...

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



Re: [PHP] Cant right click

2004-06-01 Thread Stephen Lake
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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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

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



[PHP] PEAR/MySQL woes: Function registration failed - duplicate name

2004-06-01 Thread Jough P
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


Re: [PHP] PEAR/MySQL woes: Function registration failed - duplicate name

2004-06-01 Thread Jough P
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Security/Web tree/db connect and select

2004-06-01 Thread Chris W. Parker
John W. Holmes 
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.

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



RE: [PHP] Security/Web tree/db connect and select

2004-06-01 Thread Chris W. Parker
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.

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



[PHP] PHP Basic's Problem with a simple script.

2004-06-01 Thread php-general
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:

--


";
   }
?>


Please enter a Name and send the form:

 2nd Name
 1st Name







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


















Re: [PHP] Security/Web tree/db connect and select

2004-06-01 Thread John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]>
> > 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...

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



RE: [PHP] Security/Web tree/db connect and select

2004-06-01 Thread Chris W. Parker
John W. Holmes 
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.

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



RE: [PHP] PHP Basic's Problem with a simple script.

2004-06-01 Thread Jay Blanchard
[snip]


";
   }
?>


Please enter a Name and send the form:

 2nd Name
 1st Name





[/snip]

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

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



Re: [PHP] PHP Basic's Problem with a simple script.

2004-06-01 Thread John W. Holmes
From: "php-general" <[EMAIL PROTECTED]>

> 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.
>
> if ($dispatched)
>{
>   echo "You have entered the following";
>   echo " Name: $vn $nn";
>}
> ?>
[snip]
> 

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:



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

---John Holmes...

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



Re: [PHP] PHP Basic's Problem with a simple script.

2004-06-01 Thread Steve Douville
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:

--


";
   }
?>


Please enter a Name and send the form:

 2nd Name
 1st Name







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

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



[PHP] Spammers

2004-06-01 Thread The Digital E
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


RE: [PHP] Spammers

2004-06-01 Thread Jay Blanchard
[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.

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



Re: [PHP] Spammers

2004-06-01 Thread Chris Boget
> > [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

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



Re: [PHP] Spammers

2004-06-01 Thread Steve Douville
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" <[EMAIL PROTECTED]>
To: "Php-General-Help" <[EMAIL PROTECTED]>
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



RE: [PHP] Spammers

2004-06-01 Thread Jay Blanchard
[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 

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



Re: [PHP] Spammers

2004-06-01 Thread Steve Douville
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" <[EMAIL PROTECTED]>
To: "Steve Douville" <[EMAIL PROTECTED]>; "Php-General-Help"
<[EMAIL PROTECTED]>
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 

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



Re: [PHP] PHP Basic's Problem with a simple script.

2004-06-01 Thread Chris Shiflett
--- php-general <[EMAIL PROTECTED]> 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";

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/

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



Re: [PHP] How to verify that data is in a blob?

2004-06-01 Thread Bob Lockie
On 05/31/04 15:44 [EMAIL PROTECTED] 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?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Spammers

2004-06-01 Thread Tyler Replogle
yeah same thing for me, but i don't really care, its no reason to start 
hacker the server.


From: "Steve Douville" <[EMAIL PROTECTED]>
Reply-To: "Steve Douville" <[EMAIL PROTECTED]>
To: "Php-General-Help" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
To: "Php-General-Help" <[EMAIL PROTECTED]>
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


Re: [PHP] Spammers

2004-06-01 Thread The Digital E
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" <[EMAIL PROTECTED]>
Reply-To: "Steve Douville" <[EMAIL PROTECTED]>
To: "Php-General-Help" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
To: "Php-General-Help" <[EMAIL PROTECTED]>
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: PHP Coding Standards

2004-06-01 Thread Don Read

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

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



Re: [PHP] Spammers

2004-06-01 Thread Curt Zirzow
* Thus wrote The Digital E ([EMAIL PROTECTED]):
> 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."

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



Re: [PHP] Re: PHP Coding Standards

2004-06-01 Thread Justin Patrin
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 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: PHP Coding Standards

2004-06-01 Thread Travis Low
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


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


RE: [PHP] RE: GD Library Upgrade

2004-06-01 Thread Ryan Schefke
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:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 5:21 AM
To: [EMAIL PROTECTED]
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

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



RE: [PHP] Re: PHP Coding Standards

2004-06-01 Thread Jay Blanchard
[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?

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



[PHP] Re: forms and DB

2004-06-01 Thread Justin Patrin
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
markblah 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 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Spammers

2004-06-01 Thread Justin Patrin
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 
boardtimes 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" <[EMAIL PROTECTED]>
To: "Php-General-Help" <[EMAIL PROTECTED]>
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 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] IE Buffering

2004-06-01 Thread Stephen Lake
Can anyone tell me what size the buffer in IE has to be before it outputs
data?

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



[PHP] easy question...

2004-06-01 Thread Tim Traver
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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Problem with postgres

2004-06-01 Thread alantodd
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



Re: [PHP] Spammers

2004-06-01 Thread John Nichel
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.
H...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
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Spammers

2004-06-01 Thread John Nichel
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
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: PHP Coding Standards

2004-06-01 Thread Justin Patrin
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 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Spammers

2004-06-01 Thread Justin Patrin
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 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: IE Buffering

2004-06-01 Thread Justin Patrin
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 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Spammers

2004-06-01 Thread The Digital E
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.
H...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
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Eric Symbouras
thedigitale.com
347.613.9934
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: forms and DB

2004-06-01 Thread Justin Patrin
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
markblah 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 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] "Date object"

2004-06-01 Thread Ryan A
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

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



[PHP] Online Testing Application

2004-06-01 Thread Pushpinder Singh
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 

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


Re: [PHP] Spammers

2004-06-01 Thread Steve Douville
"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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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 
>
> -- 
> 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



Re: [PHP] Problem with postgres

2004-06-01 Thread Jason Wong
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.
*/

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



[PHP] Editor's Page

2004-06-01 Thread Jay Blanchard
I am missing the link to the editor's list for PHP, can someone repost
it?

Thanks!

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



Re: [PHP] Spammers

2004-06-01 Thread Jason Wong
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.]
*/

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



[PHP] Test Email

2004-06-01 Thread Tom Chubb
Sorry if anyone else gets this, but I'm not receiving any emails at the
moment and wanted to check my subscription.


Re: [PHP] RE: GD Library Upgrade

2004-06-01 Thread Jason Wong
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.
*/

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



RE: [PHP] Editor's Page SOLVED

2004-06-01 Thread Jay Blanchard
[snip]
I am missing the link to the editor's list for PHP, can someone repost
it?
[/snip]

Found it...thanks!

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



Re: [PHP] Test Email

2004-06-01 Thread Jason Wong
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.
*/

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



Re: [PHP] Editor's Page

2004-06-01 Thread Jason Wong
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!!
*/

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



Re: [PHP] "Date object"

2004-06-01 Thread John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]>

> 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...

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



Re: [PHP] Online Testing Application

2004-06-01 Thread John W. Holmes
From: "Pushpinder Singh" <[EMAIL PROTECTED]>

>   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...

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



Re: [PHP] Spammers

2004-06-01 Thread John Nichel
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
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Online Testing Application

2004-06-01 Thread Alex Hogan

> 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. 
*

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



[PHP] update mysql using radio button

2004-06-01 Thread Matt Newell

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:



club member?
No: club_member ==
'N'){echo 'CHECKED';}?>>
Yes: 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



[PHP] Strtotime() weirdness

2004-06-01 Thread Alex Hogan
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. 
*


RE: [PHP] update mysql using radio button

2004-06-01 Thread Jay Blanchard
[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:



club member?
No: club_member ==
'N'){echo 'CHECKED';}?>>
Yes: 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;

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



Re: [PHP] "Date object"

2004-06-01 Thread Ryan A
> From: "Ryan A" <[EMAIL PROTECTED]>
>
> > 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

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



Re: [PHP] update mysql using radio button

2004-06-01 Thread Daniel Clark
I think you need Values for the radio buttons.

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:
>
> 
>
> club member?
> No: club_member
> ='N'){echo 'CHECKED';}?>>
> Yes: 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
>
>

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



Re: [PHP] Strtotime() weirdness

2004-06-01 Thread Daniel Clark
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

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



RE: [PHP] update mysql using radio button

2004-06-01 Thread Matt Newell

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:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 1:14 PM
To: Matt Newell
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] update mysql using radio button

I think you need Values for the radio buttons.

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:
>
> 
>
> club member?
> No: club_member 
> ='N'){echo 'CHECKED';}?>>
> Yes: 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
>
>

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



Re: [PHP] update mysql using radio button

2004-06-01 Thread John W. Holmes
From: "Daniel Clark" <[EMAIL PROTECTED]>

> club_member
>  ='N'){echo 'CHECKED';}?>>

=='N', you mean. :)

---John Holmes...

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



Re: [PHP] Test Email

2004-06-01 Thread John W. Holmes
From: "Tom Chubb" <[EMAIL PROTECTED]>

> 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!)

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



Re: [PHP] update mysql using radio button

2004-06-01 Thread Daniel Clark
Right.  (oops)

> From: "Daniel Clark" <[EMAIL PROTECTED]>
>
>>  if($row->club_member
>>  ='N'){echo 'CHECKED';}?>>
>
> =='N', you mean. :)
>
> ---John Holmes...

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



[PHP] [PHP-General] - LOC/FP for PHP.

2004-06-01 Thread francesco[AT]automationsoft[DOT]biz
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
[EMAIL PROTECTED]




Re: [PHP] IE Buffering

2004-06-01 Thread Curt Zirzow
* Thus wrote Stephen  Lake ([EMAIL PROTECTED]):
> 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."

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



RE: [PHP] RE: GD Library Upgrade

2004-06-01 Thread Ryan Schefke
Jason,

I have root access to my server.  It's a dedicated server with 1and1.com.  I
have zero experience with shell commands and will be working off of any
directions I can find online.  

I'm researching whether to upgrade PHP from 4.2.2 to 4.3.6 or just upgrade
the GD Library from 1.8.4 to the latest.  But I'm still not sure if it's
best to upgrade the entire thing or just the library.

I'm totally new at installing apps via shell...if anyone is interested in
doing it for a small fee please let me know!

Ryan

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] RE: GD Library Upgrade

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.
*/

-- 
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



Re: [PHP] "Date object"

2004-06-01 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]):
> > From: "Ryan A" <[EMAIL PROTECTED]>
> >
> > > 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 :-)...

Here's a little tip:

  $a = (object) getDate();
  print_r($a);

haha.. now you got your date object :)

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

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



Re: [PHP] Test Email

2004-06-01 Thread John Nichel
John W. Holmes wrote:
From: "Tom Chubb" <[EMAIL PROTECTED]>
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!)
Spam, spam, spamity, spam. ;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] session variables

2004-06-01 Thread Bob Lockie
$_SESSION['new_name'] = $_REQUEST['new_name'];
Is not global.
I printed out the value locally but it is not made into a session variable.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] session variables

2004-06-01 Thread John Nichel
Bob Lockie wrote:
$_SESSION['new_name'] = $_REQUEST['new_name'];
Is not global.
I printed out the value locally but it is not made into a session variable.
Did you start the session before you set $_SESSION['new_name']?
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Text Streaming in PHP

2004-06-01 Thread Stephen Lake
Thanks all for the suggestionsI finally got it workingand it works
perfectly in IE too (so far anyway)

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



Re: [PHP] Test Email

2004-06-01 Thread Stephen Lake
No [EMAIL PROTECTED] about the spammers!

"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> John W. Holmes wrote:
>
> > From: "Tom Chubb" <[EMAIL PROTECTED]>
> >
> >>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!)
> >
>
> Spam, spam, spamity, spam. ;)
>
> --
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com

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



Re: [PHP] session variables

2004-06-01 Thread John W. Holmes
Bob Lockie wrote:
$_SESSION['new_name'] = $_REQUEST['new_name'];
Is not global.
I printed out the value locally but it is not made into a session variable.
Yes, it is. Providing you have sessions configured correctly and use 
session_start().

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] session variables

2004-06-01 Thread Bob Lockie
On 06/01/04 22:12 John Nichel spoke:
Bob Lockie wrote:
$_SESSION['new_name'] = $_REQUEST['new_name'];
Is not global.
I printed out the value locally but it is not made into a session 
variable.

Did you start the session before you set $_SESSION['new_name']?
That was my problem.
I reorganized and put some code in a file that didn't have a 
session_start() call. :-(

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


[PHP] PHP Newbie needs a little help 1-on-1

2004-06-01 Thread Mike
Ok, I'm a pretty fast learn but syntax and basic lack of serious 
programming background hinder my efforts. I can make Javascript do what I 
want it to and usually perl also but I'm in over my head with my PHP 
project and I'm on a deadline.

Objective:

To create a set of forms that 
1) input data to a MySQL database (done)

2) login to that database with a username and password and set thos 
values with a cookie while redirecting the user to a form for updating 
data (mostly done)

3) use the values of the set cookie to call the users record into that 
form for modification (begun)

4) Modify the data on submit

Additional Objectives:

1) create a calculator that takes length x width x depth in inches and 
results a cubic foot calculation.

I've been doing some of the work with Dreamweaver MX, but I'm getting 
some unfound XML error on one of the extension forms so that the code is 
not generated. Know anything about this?

I would like to have an email and phone exchange to finish up this thing.
It's mostly done but I may need syntax and query help.

If you are comfortable with mid level PHP please email ASAP. I'm on Long 
Island and work late into the evening so calls are no problem. I have 
flat rate phone and can call you back.

Mike
[EMAIL PROTECTED]

PS - if you are hip to Burning Man, this project relates to that and I'm 
doing it as a labor of love.

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



[PHP] Willing to Pay For Upgrade Help

2004-06-01 Thread Ryan Schefke
Is any Linux techie out there willing to accept a small payment to upgrade
my Linux dedicated root server from PHP 4.2.2 to PHP 4.3.3 (or 4.3.6,
whichever is recommended)?  I need to leverage the latest version of GD
Library for better quality picture uploads.  I'm a windows guy and don't
have much experience with shell commands and Linux machines.

 

Thanks,

Ryan



[PHP] Re: Editor's Page

2004-06-01 Thread David Robley
Jay Blanchard wrote:

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

http://www.thelinuxconsultancy.co.uk/phpeditors/

which can be found on http://au.php.net/links.php under PHP Setup and
Authoring Tools

David

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



[PHP] Installing Imagemagick on Windows

2004-06-01 Thread Tan Ai Leen
Hi,
I need help with installing Imagemagick on Windows. I tried googling but 
there is no solution provided. I discovered that a lot of people are 
having the same problem as me. After placing the dll in the extension 
folder and adding in extension=php_imagick.dll into php.ini, Apache will 
hit error Unknow(): Unable to load dynamic library 
F:\php\extensions\php_imagick.dll.

I believe that my php.ini is configured correctly. I am able to load 
other extensions with out any error.
This is what is in my php.ini file

extension_dir = "F:\php\extensions\"
extension=php_imagick.dll
What should I do with the ImageMagick library? Is there a step by step 
guide on installing imagemagick? With versions of library and links to 
download them?

Thanks in advance,
Ai Leen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Willing to Pay For Upgrade Help

2004-06-01 Thread robi
I am willing to do it.
what is your distribution?
troby

Dňa St 2. Jún 2004 06:08 Ryan Schefke napísal:
> Is any Linux techie out there willing to accept a small payment to upgrade
> my Linux dedicated root server from PHP 4.2.2 to PHP 4.3.3 (or 4.3.6,
> whichever is recommended)?  I need to leverage the latest version of GD
> Library for better quality picture uploads.  I'm a windows guy and don't
> have much experience with shell commands and Linux machines.
>
>
>
> Thanks,
>
> Ryan

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



[PHP] Can session.save_path data be saved to a database instead of a file system?

2004-06-01 Thread Caleb Walker
I have 2 servers fail-over/load-balanced behind an F5
bigIP.  I want session data to be maintained in the event one server takes
a dive.  In this scenario, if a user is in the middle of doing
something while logged in, they will not have to lose all work and log
back into the server to continue working. Can that be done without
rewriting an application?
I saw a link here:
http://www.phpfreaks.com/quickcode/DB_eSession_class_securely_stores_PHP_sessions_in_a_MySQL_DB/286.php
but this seems to be something that would have to be written into the
application and I didn't write it and do not want to take on the
responsibility to do so from here.  Any thoughts would be much appreciated.

Thank You,
Caleb

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



Re: [PHP] RE: GD Library Upgrade

2004-06-01 Thread Jason Wong
On Wednesday 02 June 2004 07:47, Ryan Schefke wrote:

> I have root access to my server.  It's a dedicated server with 1and1.com.

OK.

> I have zero experience with shell commands and will be working off of any
> directions I can find online.

There're plenty of those to be found. The list archives should have plenty of 
posts from myself (and others!) regarding the recompiling/reconfiguring of 
PHP and the installation of GD lib.

> I'm researching whether to upgrade PHP from 4.2.2 to 4.3.6 or just upgrade
> the GD Library from 1.8.4 to the latest.  But I'm still not sure if it's
> best to upgrade the entire thing or just the library.

Well one way to base your decision on salient facts is to find out what has 
changed between the 4.2.2 & 4.3.6 (and the intervening versions) by reading 
the changelogs. Then decide whether the bug fixes and improvements are worth 
your while to upgrade to.

> I'm totally new at installing apps via shell...if anyone is interested in
> doing it for a small fee please let me know!

If you're using a pre-installed dedicated server then it's more than likely it 
has a version of RedHat on it. You may be lucky and be able to upgrade PHP 
via RPM. But AFAIK RedHat has never (or hardly ever) provided PHP upgrades.

-- 
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
--
/*
Windows 99 has been released! (PC Magazine, April 2013)
*/

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



  1   2   >