php-general Digest 29 Feb 2004 10:50:49 -0000 Issue 2618

Topics (messages 179094 through 179127):

Re: creating file links on linux (ln) with php
        179094 by: Jeremy

Re: mkdir and  rmdir possible but not readdir and opendir???
        179095 by: raisinlove
        179097 by: raisinlove
        179113 by: Rasmus Lerdorf

Re: 2 OOP or Not 2 OOP
        179096 by: Gareth Williams

How to recognize .mov .mp3 file types
        179098 by: Radek Zajkowski
        179103 by: Radek Zajkowski

Stumped on a totally wierd problem
        179099 by: Brian V Bonini
        179100 by: Brian V Bonini

Possible Leap Year bug with strtotime (4.3.4)?
        179101 by: Rob Petty
        179102 by: Rob Petty
        179105 by: hitek

Array Question
        179104 by: Jason Williard
        179106 by: Michal Migurski

2 questions - PHP site Automatic search and slow display
        179107 by: Ryan A
        179108 by: Andre Cerqueira
        179109 by: Rasmus Lerdorf

Re: PHP application design with WAE UML.
        179110 by: Manuel Lemos
        179112 by: daniel.electroteque.org
        179116 by: Manuel Lemos
        179118 by: daniel.electroteque.org

Re: - Receive mail with PHP.
        179111 by: Manuel Lemos

$sring = ARRAY?
        179114 by: Axiom
        179120 by: Burhan Khalid

PHPdoc web interface
        179115 by: daniel.electroteque.org
        179125 by: Andre Cerqueira
        179126 by: daniel.electroteque.org

Trying to get PHP to run on Windows
        179117 by: Susan Donnelly
        179119 by: Susan Donnelly

Re: Allow service to interact with desktop and have network access
        179121 by: Burhan Khalid

Weird Problem with INPUT tag
        179122 by: Ahbaid Gaffoor
        179127 by: Richard Davey

Re: What's your favorite PHP weather code?
        179123 by: Burhan Khalid

Re: php package
        179124 by: Burhan Khalid

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

http://us2.php.net/manual/en/function.symlink.php

-----Original Message-----
From: Merlin [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 28, 2004 3:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] creating file links on linux (ln) with php


Hi there,

I do have a couple of hundred file links to create. I am wondering if 
this could be automated with php.

On a linux shell it would look like this:
ln united-states-map.jpg vereinigte-staaten-karte.jpg

Are there php commands to execute this ln command?

Thanx for any help on that,

Merlin

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

--- End Message ---
--- Begin Message --- Rasmus Lerdorf wrote:

This is normal.  You are allowed to create the directory because the
directory you are creating it in is owned by the same user id that owns
the script calling mkdir().  However, since your web server runs as some
other user the owner of the newly created dir will be that user and not
your own so you subsequently cannot manipulate that directory.  Same
problem with safe mode and file uploads.  ISP's are generally better off
using open_basedir instead of safe-mode for this very reason.

I see, so there's no way around this then. I'll inquire to my host why open_basedir couldnt be used instead of safe-mode.
There's goes my plan of FTP-less website management :(


thanks
-steph

--- End Message ---
--- Begin Message ---
Surely if there is a work-around then safe mode would not be doing its job properly?

Well this was part of the purpose of my post, before Rasmus explained it, I didn't understand why I couldnt access a directory I had created. I was hoping for a function which would achieve the same purpose but wouldn't be affected by safe-mode. I've seen many other workaround solutions to other problems caused by the safe-mode setting.
Unfortunatly this doesnt seem to be such a case.


-s
--- End Message ---
--- Begin Message ---
On Sat, 28 Feb 2004, raisinlove wrote:

> > Surely if there is a work-around then safe mode would not be doing its job
> > properly?
>
> Well this was part of the purpose of my post, before Rasmus explained
> it, I didn't understand why I couldnt access a directory I had created.
> I was hoping for a function which would achieve the same purpose but
> wouldn't be affected by safe-mode. I've seen many other workaround
> solutions to other problems caused by the safe-mode setting.
> Unfortunatly this doesnt seem to be such a case.

The work-around is to create the directory outside of your web application
from your regular account.  Or if you are allowed to run cgi scripts and
these are set up via cgiwrapper or suExec to run as your own user id, use
this to create the directory.  Once created with the right owner, you can
manipulate it from your regular Apache-embedded PHP scripts.

-Rasmus

--- End Message ---
--- Begin Message --- I had programmed for years in OO, and when I learned PHP, it only seemed natural to stay with it. I personally find the OO functionality in PHP to be not quite complete, but good enough for daily use. In fact, I don't write any sites in a non-oo manner. I love it.



On 28 Feb 2004, at 22:58, Monty wrote:

I've decided it's time to learn how to program using PHP's OOP. But, I just
found this article which is giving me second thoughts...


http://www.zend.com/zend/art/mistake1.php#Heading13

The article was written in 2000, so, it may not apply now. Is OOP in PHP 4.3
slow and incomplete as the article states? Or is it much better now? I
probably won't be moving to PHP 5 in then near future, which apparently has
much better OOP support.


So, I can't decide if I should just go ahead and start using OOP in PHP 4.3
(as long as it's not slow and klugey) or if I should just wait until I get
PHP 5? Anyone have any insight??


- Monty

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



--- End Message ---
--- Begin Message --- getimagesize() takes care of determining whether an image is GIF, JPEG SWF etc.

but how do I determine if a file is a .mov or .mp3?

R>
--- End Message ---
--- Begin Message --- This is extremly swell:

http://getid3.sourceforge.net/


Radek Zajkowski wrote:


getimagesize() takes care of determining whether an image is GIF, JPEG SWF etc.

but how do I determine if a file is a .mov or .mp3?

R>


--- End Message ---
--- Begin Message ---
I have something really wierd going on with a form that let's a user
add/edit/delete data from a mysql database.

It's like I can not edit any data that was not recently added or if it
was added by another user.

If I log into mysql directly under the same user I'm using form the php
script and run the same query it's fine. But if I run it form the form
it behave like everything is ok but the data is not updated. AND only on
old data or data someone else added. If add some data I can for a while
edit it all I want from the php script but after a while (like the next
day) I can no longer edit it. Goes through all the motions, no error
messages, but no updates in the db. Yest, as I said, at the same time I
can still edit "fresh" data so the queries must be fine AND I can edit
the data directly.

I've never encountered this before so any suggestions.... It's like the
data is tied to a certain session or something. 

I hope that makes sense.

--- End Message ---
--- Begin Message ---
nevermind I got it.


<< snip >>
I have something really wierd going on with a form that let's a user
add/edit/delete data from a mysql database.

It's like I can not edit any data that was not recently added or if it
was added by another user.

If I log into mysql directly under the same user I'm using form the php
script and run the same query it's fine. But if I run it form the form
it behave like everything is ok but the data is not updated. AND only on
old data or data someone else added. If add some data I can for a while
edit it all I want from the php script but after a while (like the next
day) I can no longer edit it. Goes through all the motions, no error
messages, but no updates in the db. Yest, as I said, at the same time I
can still edit "fresh" data so the queries must be fine AND I can edit
the data directly.

I've never encountered this before so any suggestions.... It's like the
data is tied to a certain session or something. 

I hope that makes sense.

--- End Message ---
--- Begin Message ---
I am getting incorrect results from strtotime:

[dali]$ uname -a
Linux dali 2.4.24-grsec+w+fhs5+gr1913+nfs+++p3+c3+bu+gr0b-v6.182 #1 SMP Mon Jan 5 
12:43:44 PST 2004 i686 unknown
[dali]$ date
Sat Feb 28 14:33:39 PST 2004
[dali]$ cat t1.php
<?
$start = strtotime('next monday');
echo ('Start timestamp: '.$start.'<br>'."\n");
echo ('"Next" Monday: '.date('l, M d Y',$start).'<br>'."\n");
$first = strtotime('first Monday',$start);
echo ('"First" Monday: '.date('l, M d Y',$first).'<br>'."\n");
$oneth = strtotime('1 Monday',$start);
echo ('"1" Monday: '.date('l, M d Y',$oneth).'<br>'."\n");
$next = strtotime('next Monday',$start);
echo ('"Next" Monday: '.date('l, M d Y',$next).'<br>'."\n");
$twoth = strtotime('2 Monday',$start);
echo ('"2" Monday: '.date('l, M d Y',$twoth).'<br>'."\n");
$third = strtotime('third Monday',$start);
echo ('"Third" Monday: '.date('l, M d Y',$third).'<br>'."\n");
$threeth = strtotime('3 Monday',$start);
echo ('"3" Monday: '.date('l, M d Y',$threeth).'<br>'."\n");
?>
[dali]$ php t1.php
Content-type: text/html
X-Powered-By: PHP/4.3.4

Start timestamp: 1078732800<br>
"Next" Monday: Monday, Mar 08 2004<br>
"First" Monday: Monday, Mar 08 2004<br>
"1" Monday: Monday, Mar 08 2004<br>
"Next" Monday: Monday, Mar 15 2004<br>
"2" Monday: Monday, Mar 15 2004<br>
"Third" Monday: Monday, Mar 22 2004<br>
"3" Monday: Monday, Mar 22 2004<br>
[dali]$


"next monday" should be Mar 01 2004 instead of Mar 08 2004.  Any ideas?

--- End Message ---
--- Begin Message ---
"Rob Petty" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
| I am getting incorrect results from strtotime:
|
| [dali]$ uname -a
| Linux dali 2.4.24-grsec+w+fhs5+gr1913+nfs+++p3+c3+bu+gr0b-v6.182 #1 SMP Mon Jan 5 
12:43:44 PST 2004 i686 unknown
| [dali]$ date
| Sat Feb 28 14:33:39 PST 2004
| [dali]$ cat t1.php
| <?
| $start = strtotime('next monday');
| echo ('Start timestamp: '.$start.'<br>'."\n");
| echo ('"Next" Monday: '.date('l, M d Y',$start).'<br>'."\n");
| $first = strtotime('first Monday',$start);
| echo ('"First" Monday: '.date('l, M d Y',$first).'<br>'."\n");
| $oneth = strtotime('1 Monday',$start);
| echo ('"1" Monday: '.date('l, M d Y',$oneth).'<br>'."\n");
| $next = strtotime('next Monday',$start);
| echo ('"Next" Monday: '.date('l, M d Y',$next).'<br>'."\n");
| $twoth = strtotime('2 Monday',$start);
| echo ('"2" Monday: '.date('l, M d Y',$twoth).'<br>'."\n");
| $third = strtotime('third Monday',$start);
| echo ('"Third" Monday: '.date('l, M d Y',$third).'<br>'."\n");
| $threeth = strtotime('3 Monday',$start);
| echo ('"3" Monday: '.date('l, M d Y',$threeth).'<br>'."\n");
| ?>
| [dali]$ php t1.php
| Content-type: text/html
| X-Powered-By: PHP/4.3.4
|
| Start timestamp: 1078732800<br>
| "Next" Monday: Monday, Mar 08 2004<br>
| "First" Monday: Monday, Mar 08 2004<br>
| "1" Monday: Monday, Mar 08 2004<br>
| "Next" Monday: Monday, Mar 15 2004<br>
| "2" Monday: Monday, Mar 15 2004<br>
| "Third" Monday: Monday, Mar 22 2004<br>
| "3" Monday: Monday, Mar 22 2004<br>
| [dali]$
|
|
| "next monday" should be Mar 01 2004 instead of Mar 08 2004.  Any ideas?



But, the exact same code run from my system returns correct results:

[EMAIL PROTECTED] tmp]# uname -a
Linux helios 2.4.20-28.7smp #1 SMP Thu Dec 18 11:18:31 EST 2003 i686 unknown
[EMAIL PROTECTED] tmp]# date
Sat Feb 28 13:34:08 MST 2004
[EMAIL PROTECTED] tmp]# php /tmp/t1.php
X-Powered-By: PHP/4.1.2
Content-type: text/html

Start timestamp: 1078124400<br>
"Next" Monday: Monday, Mar 01 2004<br>
"First" Monday: Monday, Mar 01 2004<br>
"1" Monday: Monday, Mar 01 2004<br>
"Next" Monday: Monday, Mar 01 2004<br>
"2" Monday: Monday, Mar 08 2004<br>
"Third" Monday: Monday, Mar 15 2004<br>
"3" Monday: Monday, Mar 15 2004<br>

--- End Message ---
--- Begin Message --- I don't think it's so much a bug as it is just some odd behavior. If you use 'this monday' the results are correct.
$start = strtotime('this monday');


Keith

At 02:44 PM 2/28/2004, Rob Petty wrote:
I am getting incorrect results from strtotime:

[dali]$ uname -a
Linux dali 2.4.24-grsec+w+fhs5+gr1913+nfs+++p3+c3+bu+gr0b-v6.182 #1 SMP Mon Jan 5 12:43:44 PST 2004 i686 unknown
[dali]$ date
Sat Feb 28 14:33:39 PST 2004
[dali]$ cat t1.php
<?
$start = strtotime('next monday');
echo ('Start timestamp: '.$start.'<br>'."\n");
echo ('"Next" Monday: '.date('l, M d Y',$start).'<br>'."\n");
$first = strtotime('first Monday',$start);
echo ('"First" Monday: '.date('l, M d Y',$first).'<br>'."\n");
$oneth = strtotime('1 Monday',$start);
echo ('"1" Monday: '.date('l, M d Y',$oneth).'<br>'."\n");
$next = strtotime('next Monday',$start);
echo ('"Next" Monday: '.date('l, M d Y',$next).'<br>'."\n");
$twoth = strtotime('2 Monday',$start);
echo ('"2" Monday: '.date('l, M d Y',$twoth).'<br>'."\n");
$third = strtotime('third Monday',$start);
echo ('"Third" Monday: '.date('l, M d Y',$third).'<br>'."\n");
$threeth = strtotime('3 Monday',$start);
echo ('"3" Monday: '.date('l, M d Y',$threeth).'<br>'."\n");
?>
[dali]$ php t1.php
Content-type: text/html
X-Powered-By: PHP/4.3.4


Start timestamp: 1078732800<br>
"Next" Monday: Monday, Mar 08 2004<br>
"First" Monday: Monday, Mar 08 2004<br>
"1" Monday: Monday, Mar 08 2004<br>
"Next" Monday: Monday, Mar 15 2004<br>
"2" Monday: Monday, Mar 15 2004<br>
"Third" Monday: Monday, Mar 22 2004<br>
"3" Monday: Monday, Mar 22 2004<br>
[dali]$


"next monday" should be Mar 01 2004 instead of Mar 08 2004. Any ideas?


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

--- End Message ---
--- Begin Message ---
I would like to be able to search an array for a match the a specific
variable.  So far, I have been trying to use preg_grep but am not getting
the results that I want.

Basically, I would have a variable: $url = "domain.com"

I would like to search an array to see if the value of the variable $url
exists in this array.  The array would look like:

$archives = array( "domain.com","domain2.com");

As for the results of the search, I just need a simple yes/no 1/0 response.
What would be the best method of handling this?


Thank You,
Jason Williard

--- End Message ---
--- Begin Message ---
>I would like to search an array to see if the value of the variable $url
>exists in this array.  The array would look like:

in_array()

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html

--- End Message ---
--- Begin Message ---
Hi,
I have to questions which are pretty unrelated except that both of them are
in PHP.

(1)
I am using a class to send email, 3 different kinds (text, html, text+html
attachement)
no problem there, but I am giving the client the option to mail all his
members/clients
at the same time...I have set the timeout to +30 everytime it loops so each
email has
enough time to go through even if its a couple of thousand, heres my
problem:

I want to display a message after each mail has gone through
eg:
after the first mail it says: Mail #1: Sent
the after the second mail Mail #2: Sent
etc etc
something like a progress bar...but for now, it waits then loads the whole
page at a go instead of
one by one. I have looked at the manual and the closest I can come up with
is to use sleep()
but even then am not getting the display like that and its of course slowing
down the sending of mail.
Next I looked at buffering...which is not really for my needs either...
Any ideas?


(2)
We are developing a developer site and its going to be php powered and very
php related, we
want to have that php function search facility that php.net has
eg:
you type http://php.net/mail
and it shows you the mail functions page...

I searched the php.net site but I couldnt find any reference to how they are
doing that...
I know it probably has mod_rewrite which takes the variable to a search
script...right?
any ideas? or is it somewhere on the php.net site that i have not looked?
URL?

Thanks,
-Ryan

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(1) dont know if u understood, but have you tryed flush()? (http://www.php.net/flush)

(2) i think you could make a script for 404 error, and that script could take that path in the url and use it for searching...


Ryan A wrote:
Hi,
I have to questions which are pretty unrelated except that both of them are
in PHP.

(1)
I am using a class to send email, 3 different kinds (text, html, text+html
attachement)
no problem there, but I am giving the client the option to mail all his
members/clients
at the same time...I have set the timeout to +30 everytime it loops so each
email has
enough time to go through even if its a couple of thousand, heres my
problem:

I want to display a message after each mail has gone through
eg:
after the first mail it says: Mail #1: Sent
the after the second mail Mail #2: Sent
etc etc
something like a progress bar...but for now, it waits then loads the whole
page at a go instead of
one by one. I have looked at the manual and the closest I can come up with
is to use sleep()
but even then am not getting the display like that and its of course slowing
down the sending of mail.
Next I looked at buffering...which is not really for my needs either...
Any ideas?


(2) We are developing a developer site and its going to be php powered and very php related, we want to have that php function search facility that php.net has eg: you type http://php.net/mail and it shows you the mail functions page...

I searched the php.net site but I couldnt find any reference to how they are
doing that...
I know it probably has mod_rewrite which takes the variable to a search
script...right?
any ideas? or is it somewhere on the php.net site that i have not looked?
URL?

Thanks,
-Ryan

- -- André Cerqueira
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFAQUYbaxdA/5C8vH8RAjoFAJ0d47zlJvZWv6PVVGBGg/sAvdbkeQCfTGKR
eeeFXfm7SGtDWuIBcsnj8KE=
=6s7N
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
Keep in mind that we have a "show source" button on every php.net page so
you can see how everything is done.  Here is the source for the code that
handles the error redirection:

   http://www.php.net/source.php?url=/error.php

-Rasmus

On Sun, 29 Feb 2004, Ryan A wrote:

> Hi,
> I have to questions which are pretty unrelated except that both of them are
> in PHP.
>
> (1)
> I am using a class to send email, 3 different kinds (text, html, text+html
> attachement)
> no problem there, but I am giving the client the option to mail all his
> members/clients
> at the same time...I have set the timeout to +30 everytime it loops so each
> email has
> enough time to go through even if its a couple of thousand, heres my
> problem:
>
> I want to display a message after each mail has gone through
> eg:
> after the first mail it says: Mail #1: Sent
> the after the second mail Mail #2: Sent
> etc etc
> something like a progress bar...but for now, it waits then loads the whole
> page at a go instead of
> one by one. I have looked at the manual and the closest I can come up with
> is to use sleep()
> but even then am not getting the display like that and its of course slowing
> down the sending of mail.
> Next I looked at buffering...which is not really for my needs either...
> Any ideas?
>
>
> (2)
> We are developing a developer site and its going to be php powered and very
> php related, we
> want to have that php function search facility that php.net has
> eg:
> you type http://php.net/mail
> and it shows you the mail functions page...
>
> I searched the php.net site but I couldnt find any reference to how they are
> doing that...
> I know it probably has mod_rewrite which takes the variable to a search
> script...right?
> any ideas? or is it somewhere on the php.net site that i have not looked?
> URL?
>
> Thanks,
> -Ryan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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

On 02/27/2004 05:58 PM, Lukasz Karapuda wrote:
I have recently started to put more emphasis on PHP web application design and
the documenting techniques that are associated with that (UML, flowcharting). I
fairly well acquainted with UML diagraming techniques in general.


I was not successful in finding a lot of resources on Web that would relate to
proven practices of web application design for PHP. I considered the use of the
"Web Application Extension for UML" standard. It seems however that in order to
sucessfully utilize that standard, there is a need to adopt a certain framework
for application development and assume the use of it for the design process.

I would appreciate any input on proven design/diagramming techniques for PHP web
application design.

This is not exactly about going from UML to PHP but going from model design to PHP with optional UML class diagram generation:


http://www.meta-language.net/metastorage.html

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--- End Message ---
--- Begin Message ---
> This is not exactly about going from UML to PHP but going from model
> design to PHP with optional UML class diagram generation:
>
> http://www.meta-language.net/metastorage.html
>

Hi manuel, this is excellent, i too have been looking into UML. I may
investigate in this, there is a tool called Rational Rose which is an IBM
product that does UML dont understand it enough just yet though. So what
this does is you write the variables and functions in xml which will
generate the files ? Is this double handling, or having it in xml means it
can be portable to other languages please enlighten me.

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

On 02/29/2004 12:42 AM, [EMAIL PROTECTED] wrote:
This is not exactly about going from UML to PHP but going from model
design to PHP with optional UML class diagram generation:

http://www.meta-language.net/metastorage.html

Hi manuel, this is excellent, i too have been looking into UML. I may investigate in this, there is a tool called Rational Rose which is an IBM product that does UML dont understand it enough just yet though. So what

Yes, we all know Rational Rose. The problem of most UML tools is that they are not specialized in domain problems.


Some UML tools are able to reverse engineer classes of objects and let you update the model diagrams and write the update classes code again.

However this is largely insufficient. I do not want just to the tool to keep the code synchronized with the model. I want the tool to be aware of specialized code generators that produce code based on intentional design model, i.e. a model that expresses the intention of what I want to do, and not just how I want to do it.


this does is you write the variables and functions in xml which will
generate the files ? Is this double handling, or having it in xml means it
can be portable to other languages please enlighten me.

No, Metastorage uses a custom XML format to express models of data object classes. UML tools also use a XML format named XMI but that is not sufficient to specify all the parameters and design artifacts that Metastorage is capable of understanding and generating code to provide an API based on classes of objects to manipulate those data objects.


It is possible to generate a design specification using the Metastorage XML format departing from XMI but the reverse would mean loosing design information.

Metastorage is a very high level tool for rapid development of applications that need to store data object information in persistent storage like for instance databases.

In practice this means that what people usally do by designing database table schemas and scripts with SQL code to access the information stored in such tables, Metastorage generates classes that encapsulate the functions and variables that do that for you. Over that it also generates forms and later also reports.

The point is to speed up development, testing and debugging that traditionally is done by hand. Think of this as the jump from the hand made product manufacturing to the industrial age.


--


Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--- End Message ---
--- Begin Message ---
just found these links

http://uml.sourceforge.net/index.php

http://www.phppatterns.com/index.php/link/category/39/

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

On 02/28/2004 10:01 AM, [EMAIL PROTECTED] wrote:
1- it's possible to receive mail with PHP?
    There's in PHP a function (like mail()) for receive mail?

If you get the messages in a mailbox accessible with POP3 protocol, you may want to try using this PHP POP3 client class:


http://www.phpclasses.org/pop3class

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--- End Message ---
--- Begin Message ---
Why is it that in the following code that $value comes back with just the
word ‘ARRAY’ instead of the actual result? 

 

if (($value = mysql_fetch_row($result)) AND ($value == $username)) {

        echo "You are authenticated";

} else {

        echo "Your username or password is incorrect";

}

 

-Casey


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004
 

--- End Message ---
--- Begin Message --- Axiom wrote:
Why is it that in the following code that $value comes back with just the
word ‘ARRAY’ instead of the actual result?




if (($value = mysql_fetch_row($result)) AND ($value == $username)) {

echo "You are authenticated";

} else {

echo "Your username or password is incorrect";

}

Read http://www.php.net/mysql-fetch-row -- especially the part where it talks about what the function returns. Hint -- its at the very top of the page.


Another hint -- the function returns whatever it is you typed in ALL CAPS in your email.

And the final hint -- the answer to your subject is, no -- you cannot do that.

In short, read the manual.
--- End Message ---
--- Begin Message ---
Has anyone tried out the new version ? I've never managed to make it work
without having to make ini files for each directory i want to document. I
tried just making my options in the form, but it doesnt work here is the
output

Parsing Files ...
PHP Version 4.3.1
phpDocumentor version 1.3.0RC2

Parsing configuration file phpDocumentor.ini...
done
using tokenizer Parser
ERROR: nothing parsed


I also like to make a introduction page and some comments and links to
other documentation, has anyone done this sought of thing ?

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i think you are talking about this: http://www.phpdoc.de/
while this newsgroups is about this: http://www.php.net/

you may find what you want to now here, but maybe you would have more luck here: http://www.phpdoc.de/doc/
or here: http://www.phpdoc.de/feedback.html (where the author said it would be very hard to find him here)




[EMAIL PROTECTED] wrote:
Has anyone tried out the new version ? I've never managed to make it work
without having to make ini files for each directory i want to document. I
tried just making my options in the form, but it doesnt work here is the
output

Parsing Files ...
PHP Version 4.3.1
phpDocumentor version 1.3.0RC2

Parsing configuration file phpDocumentor.ini...
done
using tokenizer Parser
ERROR: nothing parsed


I also like to make a introduction page and some comments and links to other documentation, has anyone done this sought of thing ?

- -- André Cerqueira
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFAQaR3axdA/5C8vH8RAmGnAJoCRjm8fpeJoCLVGLLyXbQQ8BOBDQCgzMmE
q7BtHM6WqQORvv16/yZaR5U=
=I0dx
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
nah man, i was asking if anyone has tried this, it is documenting php code
right ?, i think so :D. I've alread tried him, all i get is RTFM, i think
its a bug.

-----Original Message-----
From: Andre Cerqueira [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 29, 2004 7:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHPdoc web interface


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i think you are talking about this: http://www.phpdoc.de/
while this newsgroups is about this: http://www.php.net/

you may find what you want to now here, but maybe you would have more
luck here: http://www.phpdoc.de/doc/
or here: http://www.phpdoc.de/feedback.html (where the author said it
would be very hard to find him here)



[EMAIL PROTECTED] wrote:
> Has anyone tried out the new version ? I've never managed to make it work
> without having to make ini files for each directory i want to document. I
> tried just making my options in the form, but it doesnt work here is the
> output
>
> Parsing Files ...
> PHP Version 4.3.1
> phpDocumentor version 1.3.0RC2
>
> Parsing configuration file phpDocumentor.ini...
> done
> using tokenizer Parser
> ERROR: nothing parsed
>
>
> I also like to make a introduction page and some comments and links to
> other documentation, has anyone done this sought of thing ?

- --
André Cerqueira
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAQaR3axdA/5C8vH8RAmGnAJoCRjm8fpeJoCLVGLLyXbQQ8BOBDQCgzMmE
q7BtHM6WqQORvv16/yZaR5U=
=I0dx
-----END PGP SIGNATURE-----

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

--- End Message ---
--- Begin Message ---
I'm very new to PHP and trying to get it to run on Windows ME.  I have both Apache and 
Personal Web Server installed and can't get it to run on either.  I keep getting a 
message that my page cannot be displayed.  I'm typing http://oemcomputer/hello.php in 
the subject line of my browser, with oemcomputer being the name of my server (at least 
in PWS).  I'd prefer to use Apache but either one will do while I'm learning.  Thank 
you for your time.

In frustration,
Susan Donnelly

--- End Message ---
--- Begin Message ---
Nevermind.  I found an excellent resource on the internet that should take
care of this.

Thanks again.
----- Original Message ----- 
From: "Susan Donnelly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 28, 2004 11:28 PM
Subject: [PHP] Trying to get PHP to run on Windows


I'm very new to PHP and trying to get it to run on Windows ME.  I have both
Apache and Personal Web Server installed and can't get it to run on either.
I keep getting a message that my page cannot be displayed.  I'm typing
http://oemcomputer/hello.php in the subject line of my browser, with
oemcomputer being the name of my server (at least in PWS).  I'd prefer to
use Apache but either one will do while I'm learning.  Thank you for your
time.

In frustration,
Susan Donnelly

--- End Message ---
--- Begin Message --- Vincent Bouret wrote:

Hi,

I was trying to figure out if there was any way I could run Apache in
Windows 2000 as a service which is allowed to interact with desktop and
which has network priviledges? I try to exec a an .exe from PHP which needs
network priviledges and which needs to interact with desktop.

By default, Apache installs as a service on Windows 2000.


Having Apache installed as a service has nothing to do with running an .exe in php, etc. That is dependent on how you configure PHP to run with Apache, and what security options you enable.

To enable some network functions (like sockets) you have to uncomment the extension line in your php.ini.

As far as interacting with the desktop -- if you could be more specific, that would help.
--- End Message ---
--- Begin Message --- I'm building a site using PHP for the navigation section of each page and to to do the general page layout.

To this effect I have created php functions to structure the pages and I fill in the static text specific to each page.

This all works.

I have now got to the point where I am doing a page to send emails...

this uses a FORM with INPUT tags, what is weird is that under IE6 some of the INPUT fields are showing up with yellow
backgrounds!!!!


They all use the same style sheet class, and simply varying the spelling of the field name and label from "emil" to "ail" fixes it!!!

for example the code below is coorrect (no yellowing):
 <tr height=1>
   <td class=label>Emil</td>
   <td>&nbsp</td>
   <td colspan=2>
       <input type=text name=emil size=80 class=finput>
   </td>
 </tr>

but the following code is yellowed:
 <tr height=1>
   <td class=label>Email</td>
   <td>&nbsp</td>
   <td colspan=2>
       <input type=text name=email size=80 class=finput>
   </td>
 </tr>

Now this goes away under Mozilla or Firebird browsers, so I know that this is specific to IE6....

I'd really like to know why this is happening and how to correct this behaviour, and I cannot tell my client to not use IE.

thanks for all your help....

the link below shows the problem in action, note the "Email" and "Emil" sections....
http://geosysllc.ilmtech.com/contact


many thanks,

Ahbaid
--- End Message ---
--- Begin Message ---
Hello Ahbaid,

Sunday, February 29, 2004, 6:33:45 AM, you wrote:

AG> this uses a FORM with INPUT tags, what is weird is that under IE6 some
AG> of the INPUT fields are showing up with yellow
AG> backgrounds!!!!

Sounds to me like you have the Google toolbar installed with the
AutoFill option enabled. See the preferences to turn the yellow
background off.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

--- End Message ---
--- Begin Message --- Karl Timmermann wrote:

I'm looking for some code to get the latest weather and put it on my webpage, and have it very customizable. What are your favorites?

http://weatherpixie.com/


Can't get any more customized than that ;)
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:

> Dear All,
> 
> Is there ( www.php.net )  RPM / SRPMS packages can be downloaded ?

www.rpmfind.net

Next time, google for it.

--- End Message ---

Reply via email to