Re: [PHP] trans_sid and forms -- feature request???

2003-09-28 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
> * Thus wrote Justin French ([EMAIL PROTECTED]):
> > Hi all,
> > 
> > enable_trans_sid in the PHP ini has given me no grief to date, but now 
> > I'm working towards XHTML 1.0 Strict, and PHP seems to fall over when 
> > dealing with forms.
> > 
> > So, one option is to exclude form= from the list or rewrite tags in 
> > php.ini, but this places a burden on the developers and writers to 
> > manually do this.
> > 
> > Option 2 I had *hoped* would be for the action='' attribute of a form 
> > tag to be re-written rather than a hidden form element being added, but 
> > I haven't been able to get this to work.
> > 
> > 
> > Can anyone offer a solution?
> > Has this feature been requested before, or is it likely to be included 
> > in PHP 5?
>  
> I found this:
>  http://bugs.php.net/bug.php?id=13472
> 
> After reading that I'm still confused wether it was fixed.
> So I tested it a bit with php 4.3.3 trans_id on...
 
Hmm..  Set up your form like this:









Then with ini setting:
url_rewriter.tags="a=href,area=href,frame=src,input=src,fieldset="

Works like a Charm :)



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] fsockopen server monitor

2003-09-28 Thread Cameron Metzke
Sorry about that . Its my first post, :(
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Cameron Metzke ([EMAIL PROTECTED]):
> > Hi there,
> > I have been trying to make a simple monitor script using fsockopen. here
it
> > is
> > --Start Code-
> >
> >  > error_reporting(0);
> > include 'config.php';
> > $domain = $_POST['domain'];
> >
> > [... unneeded code ...]
> >
> >  > // Http port connection
> >  $http = fsockopen($domain, $httpport, $errno, $errstr, 30);
> >  if (!$http)
> >  {
> >
> >  [.. (130 lines) more unneeded  code  ..]
> >
> >
> > END CODE
> >
> > all seems to work ok , except that the http and smtp ports always come
up ok
> > even when the domain doesnt exist. I am thinking mabey it has something
to
> > do with verisign playing with the .com names lattley?. any ideas and
help
> > would be appreciated :)
>
> It seems that you've already answered your question.
>
> 
> and playing is a rather nice term; I'd rather say something like
> destroying, stealing, monopolizing, betraying, untrusting,
> "stupidly trying to make the 'internet' more friendly by taking
> advantage of certain organizations that weren't on the ball" with
> the .com names.
> 
>
> 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] fsockopen server monitor

2003-09-28 Thread Curt Zirzow
* Thus wrote Cameron Metzke ([EMAIL PROTECTED]):
> Hi there,
> I have been trying to make a simple monitor script using fsockopen. here it
> is
> --Start Code-
> 
>  error_reporting(0);
> include 'config.php';
> $domain = $_POST['domain'];
>
> [... unneeded code ...]
>
>  // Http port connection
>  $http = fsockopen($domain, $httpport, $errno, $errstr, 30);
>  if (!$http)
>  {
>
>  [.. (130 lines) more unneeded  code  ..]
>
> 
> END CODE
> 
> all seems to work ok , except that the http and smtp ports always come up ok
> even when the domain doesnt exist. I am thinking mabey it has something to
> do with verisign playing with the .com names lattley?. any ideas and help
> would be appreciated :)

It seems that you've already answered your question.


and playing is a rather nice term; I'd rather say something like
destroying, stealing, monopolizing, betraying, untrusting,
"stupidly trying to make the 'internet' more friendly by taking
advantage of certain organizations that weren't on the ball" with
the .com names.


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] trans_sid and forms -- feature request???

2003-09-28 Thread Curt Zirzow
* Thus wrote Justin French ([EMAIL PROTECTED]):
> Hi all,
> 
> enable_trans_sid in the PHP ini has given me no grief to date, but now 
> I'm working towards XHTML 1.0 Strict, and PHP seems to fall over when 
> dealing with forms.
> 
> So, one option is to exclude form= from the list or rewrite tags in 
> php.ini, but this places a burden on the developers and writers to 
> manually do this.
> 
> Option 2 I had *hoped* would be for the action='' attribute of a form 
> tag to be re-written rather than a hidden form element being added, but 
> I haven't been able to get this to work.
> 
> 
> Can anyone offer a solution?
> Has this feature been requested before, or is it likely to be included 
> in PHP 5?
 
I found this:
 http://bugs.php.net/bug.php?id=13472

After reading that I'm still confused wether it was fixed.
So I tested it a bit with php 4.3.3 trans_id on...

; does nothing
url_rewriter.tags ="a=href,area=href,frame=src,input=src"

; makes bad  entry 
url_rewriter.tags ="a=href,area=href,frame=src,input=src,form=fakeentry"

; makes bad  entry AND appends SID to 'action'
url_rewriter.tags ="a=href,area=href,frame=src,input=src,form=action"

I would think that the last one should only append the SID to
action and not add the input entry.


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



[PHP] fsockopen server monitor

2003-09-28 Thread Cameron Metzke
Hi there,
I have been trying to make a simple monitor script using fsockopen. here it
is
--Start Code-




monitor script






  
HTTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
FTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
POP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
IMAP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
SMTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
SSH Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
Bogus Server :
");
 }

 else
 {
 echo ("");
 }
?>

  





END CODE

all seems to work ok , except that the http and smtp ports always come up ok
even when the domain doesnt exist. I am thinking mabey it has something to
do with verisign playing with the .com names lattley?. any ideas and help
would be appreciated :)

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



[PHP] fsockopen server monitor

2003-09-28 Thread Cameron Metzke
Hi there,
I have been trying to make a simple monitor script using fsockopen. here it
is
--Start Code-




monitor script






  
HTTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
FTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
POP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
IMAP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
SMTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
SSH Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
Bogus Server :
");
 }

 else
 {
 echo ("");
 }
?>

  





END CODE

all seems to work ok , except that the http and smtp ports always come up ok
even when the domain doesnt exist. I am thinking mabey it has something to
do with verisign playing with the .com names lattley?. any ideas and help
would be appreciated :)

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



Re: [PHP] PHP coders spare time [OT}

2003-09-28 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]):
> --- Curt Zirzow <[EMAIL PROTECTED]> wrote:
> > http://zirzow.dyndns.org/html/mlists/php_general/
> 
> There's also this:
> 
> http://www.zend.com/cgi-bin/m_stats.pl?list=php-general&date=200309
> 
> What would be really interesting is to see a page like yours that offers
> statistics for "all time" in addition to specific months. I'd like to know how
> many posts John Holmes has had, for example. :-)

And whats really scary is I'm tempted to do that :) I can easily
read all the 164194 messages sitting on the news server (since May
2000) and then build a summary poster summary page.

Then I just need to come up with some logic to determain who has a
tendency to (be) flamed.

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



[PHP] Re: mail(); and embedding pictures

2003-09-28 Thread Manuel Lemos
Hello,

On 09/26/2003 05:03 PM, Iggy wrote:
I am wondering if it is possible to embed pictures into email messages using
this function.
Sure, you need to compose an HTML message either with full URL in the 
http://www...";> tag or compose a multipart/related message to 
embed the image data in the actual messsage. You may want to try this 
class that makes it easy for you to do that and even comes with an 
example that demonstrates precisely how to do that:

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP to Adobe's Flashpaper for reports?

2003-09-28 Thread dvanatta
I am currently creating reports using the FPDF library and want to change to
Adobe's Flashpaper format.

Are there PHP libraries for this?  Possible examples of this being done?

Thanks,
Darin

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



Re: [PHP] PHP coders spare time [OT}

2003-09-28 Thread - Edwin -
And while checking other parts of the site...

Robert Cummings <[EMAIL PROTECTED]> wrote:

> On Sun, 2003-09-28 at 21:50, Curt Zirzow wrote:
> > And what they do with it...
> > 
> > http://zirzow.dyndns.org/html/mlists/php_general/
> 
> *heheh* Most popular threads is funny, in the #3 slot is "non-php
> issue". LMAO

Found a very "useful" script: (check the result)

  Php Code -> tests -> dumbass.php

...talking about naming conventions...

Hehe :)

- E -

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] PHP coders spare time [OT}

2003-09-28 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote:
> http://zirzow.dyndns.org/html/mlists/php_general/

There's also this:

http://www.zend.com/cgi-bin/m_stats.pl?list=php-general&date=200309

What would be really interesting is to see a page like yours that offers
statistics for "all time" in addition to specific months. I'd like to know how
many posts John Holmes has had, for example. :-)

Chris

=
HTTP Developer's Handbook
 http://shiflett.org/books/http-developers-handbook
My Blog
 http://shiflett.org/

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



[PHP] trans_sid and forms -- feature request???

2003-09-28 Thread Justin French
Hi all,

enable_trans_sid in the PHP ini has given me no grief to date, but now 
I'm working towards XHTML 1.0 Strict, and PHP seems to fall over when 
dealing with forms.

It seems to put an extra (hidden) form element straight after the 
 tag, and the W3 validator doesn't like it.  I've also 
confirmed this by validating an otherwise empty form.  It appears that 
inputs need to be wrapped in some kind of block level element (like a 
div or p) to validate.  I can manually wrap my form elements in a div, 
but cannot do the same for PHP's auto-generated hidden element for the 
SID.  It even says "if you want XHTML conformity, remove the form 
element" in php.ini

So, one option is to exclude form= from the list or rewrite tags in 
php.ini, but this places a burden on the developers and writers to 
manually do this.

Option 2 I had *hoped* would be for the action='' attribute of a form 
tag to be re-written rather than a hidden form element being added, but 
I haven't been able to get this to work.

Can anyone offer a solution?
Has this feature been requested before, or is it likely to be included 
in PHP 5?

Justin French

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


Re: [PHP] PHP coders spare time [OT}

2003-09-28 Thread Justin French
On Monday, September 29, 2003, at 11:50  AM, Curt Zirzow wrote:

http://zirzow.dyndns.org/html/mlists/php_general/
The fact that you're the top responder in the last 30 days pretty much 
confirms you have too much spare time Curt!

I remember the days when I would have been in the top ten, but they are 
long gone :)

Justin

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


Re: [PHP] PHP coders spare time [OT}

2003-09-28 Thread Robert Cummings
On Sun, 2003-09-28 at 21:50, Curt Zirzow wrote:
> And what they do with it...
> 
> http://zirzow.dyndns.org/html/mlists/php_general/

*heheh* Most popular threads is funny, in the #3 slot is "non-php
issue". LMAO

Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



[PHP] PHP coders spare time [OT}

2003-09-28 Thread Curt Zirzow
And what they do with it...

http://zirzow.dyndns.org/html/mlists/php_general/


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] General .htaccess question

2003-09-28 Thread Robert Cummings
On Sun, 2003-09-28 at 21:09, Robert Cummings wrote:
> In your 404.php script, add a line like error_log( '404.php invoked' ),
> then check your log.

Must be getting sleepy, I read the question below as "does 404.php get
read on every request". Whoops.

Cheers,
Rob.

> 
> On Sun, 2003-09-28 at 20:53, Mike Brum wrote:
> > I think I know the answer to this, but want some confirmation from someone a
> > bit more knowledgable about Apache and .htaccess files.
> > 
> > My webhost has the default 404 page set to 404.html. For the sake of
> > consistancy on a number of levels, I prefer a PHP file for this (404.php).
> > So to do this, I created a basic .htaccess file for this very purpose and it
> > sits in the root dir.
> > 
> > Now, does this .htaccess file get read for EVERY resource request on my site
> > - even when the page is found?
> > 
> > Aside from a META redirect from 404.html to 404.php, is there a less
> > server-intensive way to set my 404 in Apache when I don't have root access?

-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] General .htaccess question

2003-09-28 Thread Robert Cummings
In your 404.php script, add a line like error_log( '404.php invoked' ),
then check your log.

Cheers,
Rob.

On Sun, 2003-09-28 at 20:53, Mike Brum wrote:
> I think I know the answer to this, but want some confirmation from someone a
> bit more knowledgable about Apache and .htaccess files.
> 
> My webhost has the default 404 page set to 404.html. For the sake of
> consistancy on a number of levels, I prefer a PHP file for this (404.php).
> So to do this, I created a basic .htaccess file for this very purpose and it
> sits in the root dir.
> 
> Now, does this .htaccess file get read for EVERY resource request on my site
> - even when the page is found?
> 
> Aside from a META redirect from 404.html to 404.php, is there a less
> server-intensive way to set my 404 in Apache when I don't have root access?
> 
> Thanks 
> 
> -M
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] General .htaccess question

2003-09-28 Thread Jon Kriek
*nods at Justin*



Utterly nothing to do with php.general at all.




-- 
Jon Kriek
http://phpfreaks.com



"Justin French" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This is the perfect candidate for a question on an apache list, don't
> you think?
>
> Justin
>
>
> On Monday, September 29, 2003, at 10:53  AM, Mike Brum wrote:
>
> > I think I know the answer to this, but want some confirmation from
> > someone a
> > bit more knowledgable about Apache and .htaccess files.
> >
> > My webhost has the default 404 page set to 404.html. For the sake of
> > consistancy on a number of levels, I prefer a PHP file for this
> > (404.php).
> > So to do this, I created a basic .htaccess file for this very purpose
> > and it
> > sits in the root dir.
> >
> > Now, does this .htaccess file get read for EVERY resource request on
> > my site
> > - even when the page is found?
> >
> > Aside from a META redirect from 404.html to 404.php, is there a less
> > server-intensive way to set my 404 in Apache when I don't have root
> > access?
> >
> > Thanks
> >
> > -M
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > ---
> > [This E-mail scanned for viruses]
> >
> >

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



Re: [PHP] General .htaccess question

2003-09-28 Thread Justin French
This is the perfect candidate for a question on an apache list, don't 
you think?

Justin

On Monday, September 29, 2003, at 10:53  AM, Mike Brum wrote:

I think I know the answer to this, but want some confirmation from 
someone a
bit more knowledgable about Apache and .htaccess files.

My webhost has the default 404 page set to 404.html. For the sake of
consistancy on a number of levels, I prefer a PHP file for this 
(404.php).
So to do this, I created a basic .htaccess file for this very purpose 
and it
sits in the root dir.

Now, does this .htaccess file get read for EVERY resource request on 
my site
- even when the page is found?

Aside from a META redirect from 404.html to 404.php, is there a less
server-intensive way to set my 404 in Apache when I don't have root 
access?

Thanks

-M

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
[This E-mail scanned for viruses]

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


[PHP] General .htaccess question

2003-09-28 Thread Mike Brum
I think I know the answer to this, but want some confirmation from someone a
bit more knowledgable about Apache and .htaccess files.

My webhost has the default 404 page set to 404.html. For the sake of
consistancy on a number of levels, I prefer a PHP file for this (404.php).
So to do this, I created a basic .htaccess file for this very purpose and it
sits in the root dir.

Now, does this .htaccess file get read for EVERY resource request on my site
- even when the page is found?

Aside from a META redirect from 404.html to 404.php, is there a less
server-intensive way to set my 404 in Apache when I don't have root access?

Thanks 

-M

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



php-general Digest 28 Sep 2003 23:18:45 -0000 Issue 2324

2003-09-28 Thread php-general-digest-help

php-general Digest 28 Sep 2003 23:18:45 - Issue 2324

Topics (messages 164158 through 164181):

where are the good examples of using OOP?
164158 by: anders thoresson
164160 by: Burhan Khalid
164165 by: Eugene Lee
164168 by: Robert Cummings
164177 by: Daevid Vincent

Re: Submit button
164159 by: Eugene Lee
164162 by: Karina S
164164 by: Nitin
164166 by: Eugene Lee
164180 by: Chris Shiflett

Dwonload with PHP do not work..
164161 by: Ms Carlsson
164167 by: Boaz Yahav

Re: IIS Ports
164163 by: Burhan Khalid

checked / unchecked
164169 by: phpu
164173 by: phpu

Re: SQL statement
164170 by: sfdgfg

array_multisort ... unsupported in different builds?
164171 by: john
164172 by: Jason Wong
164174 by: john

$php_as_cgi == "error";
164175 by: Ms Carlsson
164179 by: Marek Kilimajer

gettext: changed .mo file, caching issue
164176 by: daniel hahler

fgets prob... !?
164178 by: mArK

Re: Search Submission Tool
164181 by: Erich Kolb

Administrivia:

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

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

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
Hi,

 I'm just about to take the first step into OOP with PHP. I've searched 
the web for tutorials, and even if there are alot, most of them use 
metaphores with houses or cars or other real life things to explain what 
classes and methods are.

 I wonder if someone can point me to tutorials that uses real PHP examples 
instead, examples that shows me in a direct way how to use OOP. My biggest 
trouble right now is what should be the classes and what should be the 
methods.

 Also, I wonder if someone could name a blog-application och web 
album-application that uses OOP in a good way and which I can have a look 
at to see how things are done.

 Best regards,

--
anders thoresson
--- End Message ---
--- Begin Message ---
anders thoresson wrote:

 I'm just about to take the first step into OOP with PHP. I've searched 
the web for tutorials, and even if there are alot, most of them use 
metaphores with houses or cars or other real life things to explain what 
classes and methods are.
http://pear.php.net
http://www.phpclasses.org
Both of these have excellent scripts that are OOP based.

 I wonder if someone can point me to tutorials that uses real PHP 
examples instead, examples that shows me in a direct way how to use OOP. 
My biggest trouble right now is what should be the classes and what 
should be the methods.
As a general rule, a class is anything that can be an /object/ or a 
/thing/.  Methods are things you can do to it.

 Also, I wonder if someone could name a blog-application och web 
album-application that uses OOP in a good way and which I can have a 
look at to see how things are done.
A good OOP application for community websites is Drupal - www.drupal.org

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
--- End Message ---
--- Begin Message ---
On Sun, Sep 28, 2003 at 12:52:40PM +0200, anders thoresson wrote:
: 
:  I wonder if someone can point me to tutorials that uses real PHP examples 
: instead, examples that shows me in a direct way how to use OOP. My biggest 
: trouble right now is what should be the classes and what should be the 
: methods.

Objects should try to model a real thing.  A thing may have properties
(e.g. weight, color, dimensions, temperature, gender, age) and/or states
(e.g. solid/liquid/gas, running/ready/waiting, eating/sleeping/working);
properties are stored in instance variables.  And the thing can do tasks
or have tasks done to them; these tasks are your methods.

Here's a simple exercise you can do: make a "watch" class that models a
real watch.  You can get the current time from a watch; and you can also
set the watch's time.  This class should have 3 methods (i.e. 2 methods
and 1 constructor) and 1 instance variable.  If you use Unix timestamps,
this should be really short (maybe around 10 lines of PHP code).
--- End Message ---
--- Begin Message ---
On Sun, 2003-09-28 at 07:09, Burhan Khalid wrote:
> anders thoresson wrote:
> 
> >  I'm just about to take the first step into OOP with PHP. I've searched 
> > the web for tutorials, and even if there are alot, most of them use 
> > metaphores with houses or cars or other real life things to explain what 
> > classes and methods are.
> 
> http://pear.php.net
> http://www.phpclasses.org
> 
> Both of these have excellent scripts that are OOP based.

(shameless plug) http://www.interjinn.com

The whole framework is OOP.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
:-

Re: [PHP] Search Submission Tool

2003-09-28 Thread Erich Kolb
Sorry about that, the URL is: http://www.submitsend.com

"Mek2600-Php" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
>
>
> First suggestion- include the URL.  :)
>
> Michael Kennedy
>
> -Original Message-
> From: Erich Kolb [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 26, 2003 10:55 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Search Submission Tool
>
>
> Im putting together a free web based tool available to anyone who wants
> to automatically submit their website to multiple search engines at the
> same time.  I know this has been done before, but I haven't done it and
> its pretty much a learning experience for me.  It is currently
> functioning, and I will be adding some additional search engines, but I
> was wondering if anyone would be willing to take a look and offer any
> suggestions for improvement.
>
> I apoligize if this is in the incorrect forum, but im looking for as
> much feedback as possible.
>
> Thanks,
> Erich Kolb
>
> -- 
> 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] Submit button

2003-09-28 Thread Chris Shiflett
--- Nitin <[EMAIL PROTECTED]> wrote:
> 

This is a great example of what not to do.

Use http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $php_as_cgi == "error";

2003-09-28 Thread Marek Kilimajer
Open the file in a text editor and check if there is any php 
warning/error showing up.

Ms Carlsson wrote:
Hello this does not work with apache + suexec and php running like cgi

#!/usr/local/bin/php

# in top of all php scripts

?>

the file downloads but when open i get an error but when i try the same 
script on a machine with apache + php as a built in module it works, why 
does this ot work when access the script as cgi with apache + suxex ??

_
Hitta rätt på nätet med MSN Sök http://search.msn.se/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] fgets prob... !?

2003-09-28 Thread mArK
H!

I have this segment of script...

...
$resp = fgets( $sock, 512 );
echo $resp;
...

the output must be:
[EMAIL PROTECTED]

but here came php and take the 3 "#" and convert
they in only one "#", and the output currently is:

[EMAIL PROTECTED]

How I say to php: "STOP", leave my "#" in peace?
--

mArk

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



RE: [PHP] where are the good examples of using OOP?

2003-09-28 Thread Daevid Vincent
http://daevid.com/examples/dhcp/index.php

Was my first try with php's OOP. Source linked at bottom of page.

> -Original Message-
> From: anders thoresson [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, September 28, 2003 3:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] where are the good examples of using OOP?
> 
> 
> Hi,
> 
>   I'm just about to take the first step into OOP with PHP. 
> I've searched 
> the web for tutorials, and even if there are alot, most of them use 
> metaphores with houses or cars or other real life things to 
> explain what 
> classes and methods are.
> 
>   I wonder if someone can point me to tutorials that uses 
> real PHP examples 
> instead, examples that shows me in a direct way how to use 
> OOP. My biggest 
> trouble right now is what should be the classes and what 
> should be the 
> methods.
> 
>   Also, I wonder if someone could name a blog-application och web 
> album-application that uses OOP in a good way and which I can 
> have a look 
> at to see how things are done.
> 
>   Best regards,
> 
> -- 
> anders thoresson
> 
> -- 
> 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] gettext: changed .mo file, caching issue

2003-09-28 Thread daniel hahler
Hello php-general,

I init gettext with
   putenv('LANGUAGE='.$language);
   putenv('LANG='.$language);
   // Specify location of translation tables 
   bindtextdomain ("messages", "./locale"); 
   // Choose domain 
   textdomain ("messages");
where $language is either "de" or "en".

This works good, but if the .mo file gets changed the old content is
returned by calls to gettext, until I restart Apache.
This is with my local server.

On the remote server, where I upload the files there is even no
translation ATM, although there already has been some.

my local server is:
   Apache 1.3.27
   PHP 4.3.3
   LoadModule php4_module c:/www/php/sapi/php4apache.dll

remote server is also Apache/1.3.27 (Linux/SuSE) PHP/4.3.3
mod_perl/1.27

Any solutions?


-- 
shinE!
http://www.thequod.de ICQ#152282665
Dj Sosse - Summerscream II rocks. 

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



[PHP] $php_as_cgi == "error";

2003-09-28 Thread Ms Carlsson
Hello this does not work with apache + suexec and php running like cgi

#!/usr/local/bin/php

# in top of all php scripts

?>

the file downloads but when open i get an error but when i try the same 
script on a machine with apache + php as a built in module it works, why 
does this ot work when access the script as cgi with apache + suxex ??

_
Hitta rätt på nätet med MSN Sök http://search.msn.se/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] array_multisort ... unsupported in different builds?

2003-09-28 Thread john
umm.. yeah. i wrote out this example below to paraphrase my code and it
worked perfectly both localhost and online. so then i got really p***ed =)

i did some more looking and i realised its actually caused by a session
interference... panic over =) ive been wondering wtf was the deal was with
this for days! it seems the servers online handle sessions differently from
my localhost, i only thought to look for session related issues because its
been causing odd results elsewhere too. i guess that will teach me to be lax
with sessions. unsetting the session before redefining them them cured the
other one, and cured this too. thanks for prompting me to find it,
indirectly =)


$i = array(3, 2, 5, 1, 4);
$hate = array(stuff3, stuff2, stuff5, stuff1, stuff4);
$dodgy = array(blah3, blah2, blah5, blah1, blah4);
$problems = array(meh3, meh2, meh5, meh1, meh4);

for ( $tick = 1; $tick < 4; $tick++ ) {

 $i_each = $i[$tick];
 $hate_each = $hate[$tick];
 $dodgy_each = $dodgy[$tick];
 $problems_each = $problems[$tick];

 $slack[] = array(i => $i_each, hate => $hate_each, dodgy => $dodgy_each,
problems => $problems_each);

}

array_multisort($slack, SORT_ASC);

echo $slack[0][i]."";
echo $slack[0][hate]."";
echo $slack[0][dodgy]."";
echo $slack[0][problems]."";

result;
1
stuff1
blah1
meh1





- Original Message - 
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, 29 September, 2003 2:17 AM
Subject: Re: [PHP] array_multisort ... unsupported in different builds?


> On Monday 29 September 2003 00:12, john wrote:
>
> > short version;
> > array_multisort works on localhost but when i upload it, ceases to work
> > (array is left unsorted)
>
> [snip]
>
> Could you post a concise example which illustrates your problem?
>
> -- 
> 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
> --
> /*
> You can fool all the people all of the time if the advertising is right
> and the budget is big enough.
> -- Joseph E. Levine
> */
>
> -- 
> 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] checked / unchecked

2003-09-28 Thread phpu
It's working..
Thanks a lot

- Original Message -
From: "Jason Sheets" <[EMAIL PROTECTED]>
To: "phpu" <[EMAIL PROTECTED]>
Sent: Sunday, September 28, 2003 6:55 PM
Subject: Re: [PHP] checked / unchecked


> With a conditional, note that if you have more than one picture your
> current setup is not going to work.
>
> if ($_REQUEST['modify_picture'] == 'check') {
> // do update code here
> }
>
> If you will ever have more than one picture at a time you should
> probably use an array instead of just one variable for modify_picture.
>
> Jason
>
> phpu wrote:
>
> >Hi
> >I have this form:
> >
> > 
> > >$sql = "SELECT * FROM table Where id_cat=".$_POST['id_cat'];
> >$result = mysql_query($sql);
> >while ($row=mysql_fetch_array($result))
> >{
> >
> >print 'CategoryPicture
> >';
> >}
> >?>
> >
> >
> >
> >
> >All i wanna do is to modify picture only if the modify_picture checkbox
is checked. How can i do that?
> >
> >thanks
> >
> >
> >
>
>

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



Re: [PHP] array_multisort ... unsupported in different builds?

2003-09-28 Thread Jason Wong
On Monday 29 September 2003 00:12, john wrote:

> short version;
> array_multisort works on localhost but when i upload it, ceases to work
> (array is left unsorted)

[snip]

Could you post a concise example which illustrates your problem?

-- 
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
--
/*
You can fool all the people all of the time if the advertising is right
and the budget is big enough.
-- Joseph E. Levine
*/

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



[PHP] array_multisort ... unsupported in different builds?

2003-09-28 Thread john
ok, heres the thing

short version;
array_multisort works on localhost but when i upload it, ceases to work (array is left 
unsorted)

long version;
i have array_multisort sorting a multi dimensional array with sort_asc. i understand 
that it sorts by the first index by default. on my localhost (iis on xp, php4.3.3) it 
works perfectly sorting the whole array based on the first row, but when i upload the 
code to the online webserver the array_multisort does nothing. no sorting is taking 
place, its as though the line is being skipped, but its not in the middle of an if 
statement or any other possible means of being skipped logically. ive tried uploading 
this on a both a 4.3.3 server and a 4.3.2 with the same result.

i started off with just listing the parts of the array, eg array(something, something 
else, blah) so it assigns index numbers. then as part of updating various things i 
changed that to set the indexes myself, eg array(indexname => something, index2 
=>somethingelse) etc. it was working online before so ive tried putting just the first 
row as non-assigned index, and going back to number indexes for the whole lot, and no 
dice.

can anyone suggest why this would work fine on my machine and yet cease to function on 
another server of the same version? im completely at a loss and p***ed off.

tia
john

Re: [PHP] SQL statement

2003-09-28 Thread sfdgfg
Curt Zirzow wrote:
* Thus wrote Dan J. Rychlik ([EMAIL PROTECTED]):

Well,  we have a word for myself that over looks things and takes things
literal.  Its called "pencil smoke"  It means dump, dunce, and lost.
Jennifer was right, their was an error in my SQL query.


technically it was an error in the code not the query.


SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y')
as timestamp FROM custlogon;
not as formatted_ts.

It worked fine even on zeus it tested fine.


Glad to hear it worked.  For future reference, however, it can be a lot
easier to help you if you could provided some essential information
about your problem, some things to keep in mind:
  - What is the error message.
  - Show some code that surrounds the line number in the error.
  - If a variable is causing  the problem, explain how that variable
gets assigned.
So, If you would have posted a message something like:

---
  I get this error in my php script:
  Notice: Undefined index: timestamp in C:\Program Files\Apache
  Group\Apache2\htdocs\Ameriforms\admintool\includes\getlogonhist.php on line
  44
  My line 44 looks like this:

  The variable $row is filled in from a mysql_fetch_assoc() call And the query
  I'm executing is like this:
  SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') FROM custlogon
--- 

So instead of 21 emails sent back and forth with trial and errors.
The problem would have been easily solved.
HTH,

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


[PHP] checked / unchecked

2003-09-28 Thread phpu
Hi
I have this form:

 
Picture
';
}
?>




All i wanna do is to modify picture only if the modify_picture checkbox is checked. 
How can i do that?

thanks


Re: [PHP] where are the good examples of using OOP?

2003-09-28 Thread Robert Cummings
On Sun, 2003-09-28 at 07:09, Burhan Khalid wrote:
> anders thoresson wrote:
> 
> >  I'm just about to take the first step into OOP with PHP. I've searched 
> > the web for tutorials, and even if there are alot, most of them use 
> > metaphores with houses or cars or other real life things to explain what 
> > classes and methods are.
> 
> http://pear.php.net
> http://www.phpclasses.org
> 
> Both of these have excellent scripts that are OOP based.

(shameless plug) http://www.interjinn.com

The whole framework is OOP.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



RE: [PHP] Dwonload with PHP do not work..

2003-09-28 Thread Boaz Yahav
Try this :

How to let a user download a picture by clicking on it instead of needing to right 
click and Save-As.
http://www.weberdev.com/get_example.php3?count=1562

How to force the user to download a file instead of opening it up in an controlled 
environment within the browser (i.e. MS Word/Adobe Acrobat)
http://www.weberdev.com/get_example.php3?count=1627

Sincerely
 
berber
 
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
Share your code : http://addexample.weberdev.com
Search for PHP Code from your browser http://toolbar.weberdev.com


-Original Message-
From: Ms Carlsson [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 28, 2003 1:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Dwonload with PHP do not work..


$file = "/home//openssh-3.6.1p1.tar.gz";
$mb = filesize($file);
$download = "openssh-3.6.1p1.tar.gz";

$fp = fopen($file, "r");

  Header ( "HTTP/1.1 206 One resume, coming up!" );
  Header ( "Pragma: no-cache" );
  Header ( "Content-Type: application/octet-stream" );
  Header ( "Content-Length: ".filesize("$file") );
  Header ( "Content-Disposition: attachment; filename=$download" )$

  readfile("/home//openssh-3.6.1p1.tar.gz");
  exit;




THis start a download but give me a corrupted downloaded file... Any help out 
here..

_
Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/

-- 
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] Submit button

2003-09-28 Thread Eugene Lee
On Sun, Sep 28, 2003 at 01:20:32PM +0200, Karina S wrote:
: 
: I have changed the code, but it doesn't work.
: 
:  if (!(isset($_Post['SubmitForm_x'])))
:   {
: ...
: .
:  
: }
: else
: {
: .
: }

1. The superglobal array is $_POST (all caps), not $_Post.

2. Make sure the URL path to your image file is correct, i.e. change
"image.gif" to the relative or absolute URL.

3. The "alt" attribute is technically unneeded.

4. When in doubt:

print_r($_POST);

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



Re: [PHP] where are the good examples of using OOP?

2003-09-28 Thread Eugene Lee
On Sun, Sep 28, 2003 at 12:52:40PM +0200, anders thoresson wrote:
: 
:  I wonder if someone can point me to tutorials that uses real PHP examples 
: instead, examples that shows me in a direct way how to use OOP. My biggest 
: trouble right now is what should be the classes and what should be the 
: methods.

Objects should try to model a real thing.  A thing may have properties
(e.g. weight, color, dimensions, temperature, gender, age) and/or states
(e.g. solid/liquid/gas, running/ready/waiting, eating/sleeping/working);
properties are stored in instance variables.  And the thing can do tasks
or have tasks done to them; these tasks are your methods.

Here's a simple exercise you can do: make a "watch" class that models a
real watch.  You can get the current time from a watch; and you can also
set the watch's time.  This class should have 3 methods (i.e. 2 methods
and 1 constructor) and 1 instance variable.  If you use Unix timestamps,
this should be really short (maybe around 10 lines of PHP code).

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



Re: [PHP] Submit button

2003-09-28 Thread Nitin
You can always use:



Try it and enjoy
Nitin

Re: [PHP] IIS Ports

2003-09-28 Thread Burhan Khalid
Jon Kriek wrote:
The point is get a "good" firewall, doesn't matter which one.

Personally I prefer Sygate Personal Firewall PRO
http://smb.sygate.com/products/pspf/pspf_ov.htm
Enabling ICF will probably help.



--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Submit button

2003-09-28 Thread Karina S
I have changed the code, but it doesn't work.

 if (!(isset($_Post['SubmitForm_x'])))
  {
...
.
 
}
else
{
.
}


"Eugene Lee" <[EMAIL PROTECTED]> az alábbiakat írta a következo üzenetben
news:[EMAIL PROTECTED]
> On Sun, Sep 28, 2003 at 12:49:27PM +0200, Karina S wrote:
> :
> : I want to use an image as submit button on my form. Now I use the
following
> : code with button:
> :
> :   if (!(isset($_Post['SubmitForm'])))
> :   {
> : ...
> : .
> :  
> : }
> : else
> : {
> : .
> : }
> :
> : Is it possible to change the Submit button with an image?
>
> Yep.  It's a feature of HTML.
>
> 
>
> Note that the x,y coordinates of where you clicked on the image gets
> submitted as "SubmitForm.x" and "SubmitForm.y", so watch out for the
> existence of these variables.

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



[PHP] Dwonload with PHP do not work..

2003-09-28 Thread Ms Carlsson
$file = "/home//openssh-3.6.1p1.tar.gz";
$mb = filesize($file);
$download = "openssh-3.6.1p1.tar.gz";
$fp = fopen($file, "r");

 Header ( "HTTP/1.1 206 One resume, coming up!" );
 Header ( "Pragma: no-cache" );
 Header ( "Content-Type: application/octet-stream" );
 Header ( "Content-Length: ".filesize("$file") );
 Header ( "Content-Disposition: attachment; filename=$download" )$
 readfile("/home//openssh-3.6.1p1.tar.gz");
 exit;


THis start a download but give me a corrupted downloaded file...
Any help out here..
_
Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] where are the good examples of using OOP?

2003-09-28 Thread Burhan Khalid
anders thoresson wrote:

 I'm just about to take the first step into OOP with PHP. I've searched 
the web for tutorials, and even if there are alot, most of them use 
metaphores with houses or cars or other real life things to explain what 
classes and methods are.
http://pear.php.net
http://www.phpclasses.org
Both of these have excellent scripts that are OOP based.

 I wonder if someone can point me to tutorials that uses real PHP 
examples instead, examples that shows me in a direct way how to use OOP. 
My biggest trouble right now is what should be the classes and what 
should be the methods.
As a general rule, a class is anything that can be an /object/ or a 
/thing/.  Methods are things you can do to it.

 Also, I wonder if someone could name a blog-application och web 
album-application that uses OOP in a good way and which I can have a 
look at to see how things are done.
A good OOP application for community websites is Drupal - www.drupal.org

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Submit button

2003-09-28 Thread Eugene Lee
On Sun, Sep 28, 2003 at 12:49:27PM +0200, Karina S wrote:
: 
: I want to use an image as submit button on my form. Now I use the following
: code with button:
: 
:   if (!(isset($_Post['SubmitForm'])))
:   {
: ...
: .
:  
: }
: else
: {
: .
: }
: 
: Is it possible to change the Submit button with an image?

Yep.  It's a feature of HTML.



Note that the x,y coordinates of where you clicked on the image gets
submitted as "SubmitForm.x" and "SubmitForm.y", so watch out for the
existence of these variables.

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



[PHP] where are the good examples of using OOP?

2003-09-28 Thread anders thoresson
Hi,

 I'm just about to take the first step into OOP with PHP. I've searched 
the web for tutorials, and even if there are alot, most of them use 
metaphores with houses or cars or other real life things to explain what 
classes and methods are.

 I wonder if someone can point me to tutorials that uses real PHP examples 
instead, examples that shows me in a direct way how to use OOP. My biggest 
trouble right now is what should be the classes and what should be the 
methods.

 Also, I wonder if someone could name a blog-application och web 
album-application that uses OOP in a good way and which I can have a look 
at to see how things are done.

 Best regards,

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


php-general Digest 28 Sep 2003 10:49:11 -0000 Issue 2323

2003-09-28 Thread php-general-digest-help

php-general Digest 28 Sep 2003 10:49:11 - Issue 2323

Topics (messages 164126 through 164157):

Re: apache logs reset at midnight
164126 by: Jason Sheets
164128 by: John Ryan

Re: IIS Ports
164127 by: Jon Kriek

Re: Array question
164129 by: Cristian Lavaque

Re: Please visit my php program
164130 by: Cristian Lavaque
164132 by: Ryan A
164133 by: Cristian Lavaque
164134 by: Ryan A

Re: php.general on your desktop
164131 by: Cristian Lavaque

register_globals won't turn off!
164135 by: Damon Kohler
164136 by: Cristian Lavaque
164137 by: Jon Kriek
164138 by: Damon Kohler
164139 by: Damon Kohler
164140 by: Robert Cummings
164141 by: Greg Beaver
164142 by: Damon Kohler
164143 by: Damon Kohler
164144 by: Greg Beaver
164145 by: Tom Rogers
164146 by: Damon Kohler
164147 by: Greg Beaver
164148 by: Damon Kohler
164149 by: Raquel Rice

mail() and Sender: field
164150 by: Adam Whitehead
164151 by: Jason Wong
164154 by: Marek Kilimajer

Q on setlocale...
164152 by: jsWalter
164153 by: Tom Rogers

Re: wml and php
164155 by: Patrik Fomin
164156 by: Tom Rogers

Submit button
164157 by: Karina S

Administrivia:

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

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

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
If you are running Linux/Unix check /etc/newsyslog.conf as well, this is 
a program run from cron that rotates the systems and other daemon log files.



Jon Kriek wrote:

Rob is aspsoletly correct; this has to be a rotation called from crontab.



Jon Kriek

http://phpfreaks.com



"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
 

You sure you don't have a cron that run every night and rotates the log
files such that the previous day's is archived?
Rob.

On Sat, 2003-09-27 at 16:49, John Ryan wrote:
   

for some reason, my apache log files reset every night at 12, whihc i
 

dont
 

want. how do i change this in the apache httpd.conf file?

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

--
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'
   

 

--- End Message ---
--- Begin Message ---
yeah, i found 'logrotate.conf' in the etc/conf/ folder. Thanks, I would
never have found it, only messed around with the apache httpd.conf file!

Thanks again
"Jason Sheets" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If you are running Linux/Unix check /etc/newsyslog.conf as well, this is
> a program run from cron that rotates the systems and other daemon log
files.
>
>
>
> Jon Kriek wrote:
>
> >Rob is aspsoletly correct; this has to be a rotation called from crontab.
> >
> >
> >
> >Jon Kriek
> >
> >http://phpfreaks.com
> >
> >
> >
> >"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]
> >
> >
> >
> >>You sure you don't have a cron that run every night and rotates the log
> >>files such that the previous day's is archived?
> >>
> >>Rob.
> >>
> >>On Sat, 2003-09-27 at 16:49, John Ryan wrote:
> >>
> >>
> >>>for some reason, my apache log files reset every night at 12, whihc i
> >>>
> >>>
> >dont
> >
> >
> >>>want. how do i change this in the apache httpd.conf file?
> >>>
> >>>--
> >>>PHP General Mailing List (http://www.php.net/)
> >>>To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>>
> >>>
> >>>
> >>--
> >>..
> >>| InterJinn Application Framework - http://www.interjinn.com |
> >>::
> >>| An application and templating framework for PHP. Boasting  |
> >>| a powerful, scalable system for accessing system services  |
> >>| such as forms, properties, sessions, and caches. InterJinn |
> >>| also provides an extremely flexible architecture for   |
> >>| creating re-usable components quickly and easily.  |
> >>`'
> >>
> >>
> >
> >
> >
--- End Message ---
--- Begin Message ---
The point is get a "good" firewall, doesn't matter which one.

Personally I prefer

[PHP] Submit button

2003-09-28 Thread Karina S
Hello,

I want to use an image as submit button on my form. Now I use the following
code with button:

  if (!(isset($_Post['SubmitForm'])))
  {
...
.
 
}
else
{
.
}

Is it possible to change the Submit button with an image?

Thanks!

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



Re: [PHP] Re: wml and php

2003-09-28 Thread Tom Rogers
Hi,

Sunday, September 28, 2003, 9:32:45 PM, you wrote:
PF> i cant get this $latnum2 = $_REQUEST['nummer'];  to work either,

PF> when i use this i dont get anything in $latnum2;

PF> regards
PF> patrick
You will have to do a page refresh to pass the typed in info back to php which
is running on the server. Split it into 2 pages and change the first href to



Then on the second page it will show up as $_REQUEST['nummer'}

I think you are trying to do too much in one go :)

-- 
regards,
Tom

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



[PHP] Re: wml and php

2003-09-28 Thread Patrik Fomin
i cant get this $latnum2 = $_REQUEST['nummer'];  to work either,

when i use this i dont get anything in $latnum2;

regards
patrick

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



Re: [PHP] mail() and Sender: field

2003-09-28 Thread Marek Kilimajer
Use a class that sends mail by conecting directly to smtp server. For 
example smtp_message.php in www.phpclasses.org/mimemessage

Adam Whitehead wrote:
Hi All

I'm having a problem using the mail() function of PHP. It seems to vary
between platforms (ie. this problem doesn't not occur on my Win32
development platform, but does on my Linux production server).
I'm sending mail using the mail() function and including a "From:" and
"Reply-To:" header.
Usually this is sufficient to ensure that receipients will see that the
mail is from the desired address I included in the From: header.
However on my Linux server (PHP 4.3.2/Sendmail 8.11.6), something is
automatically adding a "Sender: " field which is populated with the
address of the apache user
([EMAIL PROTECTED]) -- so this appears to the e-mail recipient as
From: [EMAIL PROTECTED] ON BEHALF OF [the name/address i specified in
From]
Any idea what is causing this, and how I might be able to disable it?

Adam



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


Re: [PHP] Q on setlocale...

2003-09-28 Thread Tom Rogers
Hi,

Sunday, September 28, 2003, 5:39:53 PM, you wrote:
j> I found this function, setlocale...

j> now, is there a way to GET the LOCALE setting of a machine?

j> Walter


call setlocale with 0 (zero or NULL) as the second parameter and it returns the 
current setting

-- 
regards,
Tom

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



[PHP] Q on setlocale...

2003-09-28 Thread jsWalter
I found this function, setlocale...

now, is there a way to GET the LOCALE setting of a machine?

Walter

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