Re: [PHP] php package

2004-02-28 Thread Burhan Khalid
[EMAIL PROTECTED] wrote:

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

www.rpmfind.net

Next time, google for it.

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



Re: [PHP] What's your favorite PHP weather code?

2004-02-28 Thread Burhan Khalid
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 ;)

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


[PHP] Weird Problem with INPUT tag

2004-02-28 Thread Ahbaid Gaffoor
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):
 
   Emil
    
   
   
   
 
but the following code is yellowed:
 
   Email
    
   
   
   
 
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

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


Re: [PHP] Allow service to interact with desktop and have network access

2004-02-28 Thread Burhan Khalid
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.

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


Re: [PHP] $sring = ARRAY?

2004-02-28 Thread Burhan Khalid
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.

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


Re: [PHP] Trying to get PHP to run on Windows

2004-02-28 Thread Susan Donnelly
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

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



Re: [PHP] Re: PHP application design with WAE UML.

2004-02-28 Thread daniel
just found these links

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

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

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



[PHP] Trying to get PHP to run on Windows

2004-02-28 Thread Susan Donnelly
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

Re: [PHP] Re: PHP application design with WAE UML.

2004-02-28 Thread Manuel Lemos
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHPdoc web interface

2004-02-28 Thread daniel
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 ?

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



[PHP] $sring = ARRAY?

2004-02-28 Thread Axiom
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
 


Re: [PHP] mkdir and rmdir possible but not readdir and opendir???

2004-02-28 Thread Rasmus Lerdorf
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

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



Re: [PHP] Re: PHP application design with WAE UML.

2004-02-28 Thread daniel

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

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



Re: [PHP] - Receive mail with PHP.

2004-02-28 Thread Manuel Lemos
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP application design with WAE UML.

2004-02-28 Thread Manuel Lemos
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] 2 questions - PHP site Automatic search and slow display

2004-02-28 Thread Rasmus Lerdorf
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
>

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



[PHP] Re: 2 questions - PHP site Automatic search and slow display

2004-02-28 Thread Andre Cerqueira
-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-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] 2 questions - PHP site Automatic search and slow display

2004-02-28 Thread Ryan A
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



Re: [PHP] Array Question

2004-02-28 Thread Michal Migurski
>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/cahttp://mike.teczno.com/contact.html

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



Re: [PHP] Possible Leap Year bug with strtotime (4.3.4)?

2004-02-28 Thread hitek
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.''."\n");
echo ('"Next" Monday: '.date('l, M d Y',$start).''."\n");
$first = strtotime('first Monday',$start);
echo ('"First" Monday: '.date('l, M d Y',$first).''."\n");
$oneth = strtotime('1 Monday',$start);
echo ('"1" Monday: '.date('l, M d Y',$oneth).''."\n");
$next = strtotime('next Monday',$start);
echo ('"Next" Monday: '.date('l, M d Y',$next).''."\n");
$twoth = strtotime('2 Monday',$start);
echo ('"2" Monday: '.date('l, M d Y',$twoth).''."\n");
$third = strtotime('third Monday',$start);
echo ('"Third" Monday: '.date('l, M d Y',$third).''."\n");
$threeth = strtotime('3 Monday',$start);
echo ('"3" Monday: '.date('l, M d Y',$threeth).''."\n");
?>
[dali]$ php t1.php
Content-type: text/html
X-Powered-By: PHP/4.3.4

Start timestamp: 1078732800
"Next" Monday: Monday, Mar 08 2004
"First" Monday: Monday, Mar 08 2004
"1" Monday: Monday, Mar 08 2004
"Next" Monday: Monday, Mar 15 2004
"2" Monday: Monday, Mar 15 2004
"Third" Monday: Monday, Mar 22 2004
"3" Monday: Monday, Mar 22 2004
[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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Array Question

2004-02-28 Thread Jason Williard
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

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



Re: [PHP] How to recognize .mov .mp3 file types

2004-02-28 Thread Radek Zajkowski
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>

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


[PHP] Re: Possible Leap Year bug with strtotime (4.3.4)?

2004-02-28 Thread Rob Petty

"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
| '."\n");
| echo ('"Next" Monday: '.date('l, M d Y',$start).''."\n");
| $first = strtotime('first Monday',$start);
| echo ('"First" Monday: '.date('l, M d Y',$first).''."\n");
| $oneth = strtotime('1 Monday',$start);
| echo ('"1" Monday: '.date('l, M d Y',$oneth).''."\n");
| $next = strtotime('next Monday',$start);
| echo ('"Next" Monday: '.date('l, M d Y',$next).''."\n");
| $twoth = strtotime('2 Monday',$start);
| echo ('"2" Monday: '.date('l, M d Y',$twoth).''."\n");
| $third = strtotime('third Monday',$start);
| echo ('"Third" Monday: '.date('l, M d Y',$third).''."\n");
| $threeth = strtotime('3 Monday',$start);
| echo ('"3" Monday: '.date('l, M d Y',$threeth).''."\n");
| ?>
| [dali]$ php t1.php
| Content-type: text/html
| X-Powered-By: PHP/4.3.4
|
| Start timestamp: 1078732800
| "Next" Monday: Monday, Mar 08 2004
| "First" Monday: Monday, Mar 08 2004
| "1" Monday: Monday, Mar 08 2004
| "Next" Monday: Monday, Mar 15 2004
| "2" Monday: Monday, Mar 15 2004
| "Third" Monday: Monday, Mar 22 2004
| "3" Monday: Monday, Mar 22 2004
| [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
"Next" Monday: Monday, Mar 01 2004
"First" Monday: Monday, Mar 01 2004
"1" Monday: Monday, Mar 01 2004
"Next" Monday: Monday, Mar 01 2004
"2" Monday: Monday, Mar 08 2004
"Third" Monday: Monday, Mar 15 2004
"3" Monday: Monday, Mar 15 2004

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



[PHP] Possible Leap Year bug with strtotime (4.3.4)?

2004-02-28 Thread Rob Petty
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
'."\n");
echo ('"Next" Monday: '.date('l, M d Y',$start).''."\n");
$first = strtotime('first Monday',$start);
echo ('"First" Monday: '.date('l, M d Y',$first).''."\n");
$oneth = strtotime('1 Monday',$start);
echo ('"1" Monday: '.date('l, M d Y',$oneth).''."\n");
$next = strtotime('next Monday',$start);
echo ('"Next" Monday: '.date('l, M d Y',$next).''."\n");
$twoth = strtotime('2 Monday',$start);
echo ('"2" Monday: '.date('l, M d Y',$twoth).''."\n");
$third = strtotime('third Monday',$start);
echo ('"Third" Monday: '.date('l, M d Y',$third).''."\n");
$threeth = strtotime('3 Monday',$start);
echo ('"3" Monday: '.date('l, M d Y',$threeth).''."\n");
?>
[dali]$ php t1.php
Content-type: text/html
X-Powered-By: PHP/4.3.4

Start timestamp: 1078732800
"Next" Monday: Monday, Mar 08 2004
"First" Monday: Monday, Mar 08 2004
"1" Monday: Monday, Mar 08 2004
"Next" Monday: Monday, Mar 15 2004
"2" Monday: Monday, Mar 15 2004
"Third" Monday: Monday, Mar 22 2004
"3" Monday: Monday, Mar 22 2004
[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



[PHP] Stumped on a totally wierd problem

2004-02-28 Thread Brian V Bonini
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.

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



[PHP] Stumped on a totally wierd problem

2004-02-28 Thread Brian V Bonini
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.

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



[PHP] How to recognize .mov .mp3 file types

2004-02-28 Thread Radek Zajkowski
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>

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


Re: [PHP] mkdir and rmdir possible but not readdir and opendir???

2004-02-28 Thread raisinlove
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

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


Re: [PHP] 2 OOP or Not 2 OOP

2004-02-28 Thread Gareth Williams
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

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


Re: [PHP] mkdir and rmdir possible but not readdir and opendir???

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


RE: [PHP] creating file links on linux (ln) with php

2004-02-28 Thread Jeremy
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

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



php-general Digest 28 Feb 2004 21:58:44 -0000 Issue 2617

2004-02-28 Thread php-general-digest-help

php-general Digest 28 Feb 2004 21:58:44 - Issue 2617

Topics (messages 179059 through 179093):

Re: Text cleaning?
179059 by: Karl Timmermann
179063 by: Brian V Bonini
179066 by: Jason Wong

PHP to UML ?
179060 by: Rick \[Kitty5\]

- Receive mail with PHP.
179061 by: francesco.automationsoft.biz
179065 by: Raditha Dissanayake

UML from PHP?
179062 by: Rick \[Kitty5\]

Re: What's your favorite PHP weather code?
179064 by: Lowell Allen

Re: PHP5 only configures mysql 4.1 source with mysqli
179067 by: Raditha Dissanayake
179072 by: electroteque

php crash and memory_limit
179068 by: kringla
179084 by: Rasmus Lerdorf
179089 by: kringla

Compare timestamps?
179069 by: Brian Dunning
179083 by: Rasmus Lerdorf

Problem With Session Handling
179070 by: Kyndig
179080 by: Rasmus Lerdorf
179081 by: Rasmus Lerdorf
179082 by: Rasmus Lerdorf
179085 by: Kyndig
179086 by: Rasmus Lerdorf

Allow service to interact with desktop and have network access
179071 by: Vincent Bouret

mkdir and  rmdir possible but not readdir and opendir???
179073 by: raisinlove
179074 by: raisinlove
179075 by: Jason Wong
179077 by: Rasmus Lerdorf

flock problem
179076 by: Armand Turpel
179078 by: Rasmus Lerdorf
179079 by: Armand Turpel

between timestamps
179087 by: Ryan A
179090 by: Robert Cummings

Set Library Path
179088 by: Mike Mapsnac

creating file links on linux (ln) with php
179091 by: Merlin

Re: [PHP-DEV] PHP5: Class behavior: method overloading
179092 by: Cristiano Duarte

2 OOP or Not 2 OOP
179093 by: Monty

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 ---
Like if the sentence is split.

Thanks

On Feb 28, 2004, at 1:34 AM, Jason Wong wrote:

On Saturday 28 February 2004 16:15, Karl Timmermann wrote:
Opps, I failed to mention there can be more paragraphs with legit new
lines, like:
Hello, my name is Karl.
Hello, my name
is Dave.
This is some more example text.
Yes, this is yet some more.
So what is your criteria for "incorrect carriage returns" ?

--
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 PILLSBURY DOUGHBOY is CRYING for an END to BURT REYNOLDS movies!!
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Sat, 2004-02-28 at 00:09, Karl Timmermann wrote:
> Does anyone have some PHP code to remove incorrect carriage returns?
> 

Depends on your definition of "incorrect".

-- 
BrianGnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
  Key Server: pgp.mit.edu
==
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org


signature.asc
Description: This is a digitally signed message part
--- End Message ---
--- Begin Message ---
On Saturday 28 February 2004 18:49, Karl Timmermann wrote:

Please do not top post.

> Like if the sentence is split.

1) define your idea of a sentence
2) construct a suitable regex for use with preg_replace()

If you don't know how to do (2) then at least do (1) and then someone might be 
able to help you do (2).

-- 
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
--
/*
I cannot draw a cart, nor eat dried oats; If it be man's work I will do it.
*/
--- End Message ---
--- Begin Message ---
Is there a linux utility to parse a PHP project and spit out some UML
diagrams?
-- 
Rick

Kitty5 NewMedia http://Kitty5.com
POV-Ray News & Resources http://Povray.co.uk
TEL : (+44) 0845 1083740 - ICQ : 15776037

PGP Public Key : http://pgp.kitty5.com
--- End Message ---
--- Begin Message ---
Hi all,
i've two questions today: 
1- it's possible to receive mail with PHP?
There's in PHP a function (like mail()) for receive mail?
2- These's a tool for convet code in ASP in code in PHP?

Tha

[PHP] 2 OOP or Not 2 OOP

2004-02-28 Thread Monty
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



[PHP] Re: [PHP-DEV] PHP5: Class behavior: method overloading

2004-02-28 Thread Cristiano Duarte
Hi Walter,

On Thu, 26 Feb 2004 11:44:47 -0800, Walter A. Boring IV wrote:
> well, if you are implementing something completely new in php5,
> there there are no compatibility issues.  I have many classes in my
> projects in php4.  I'm not sure of how many child constructors have
> different parameters (my guess is not many), but enforcing strict
> parameter count for childs classes would break compatibility.  Which is
> why I think that one should just use an interface to enforce this rule. 
> It seems like the right place for it.
In the object oriented point of view, there are no differences between an
interface and a class when you use something like this: ...
} catch (MyException $e) {
...

So, MyException is a "class" or an "interface" ? You can't tell. That's
why this enforcement is applied over classes too. A class definition is
still a commitment of "interfacing". When you extend the base class you
are not supposed to break this commitment. If you allow this commitment
break, it may lead to "buggy" code when you take a class by its superclass
"interface".

Best Regards,

Cristiano Duarte

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



[PHP] creating file links on linux (ln) with php

2004-02-28 Thread Merlin
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


Re: [PHP] between timestamps

2004-02-28 Thread Robert Cummings
On Sat, 2004-02-28 at 14:59, Ryan A wrote:
> Hey everyone...
> In the last 24 hours there have been questions on how to get the all the
> records of a day
> based on the timestamp and to check whether the current date/time is later
> than a timestamp,
> I have  a new one... how do you fetch all records between date1 and date2?
> 
> eg:
> you have some entries in a join_date (timestamp(4)) field for every day of
> Feb and need to
> get all records between sayyy... 7th Feb and 15th Feb..

There are many ways to go about this, here is one...

$qString =
"SELECT * from your_table "
   ."WHERE TO_DAYS( db_date ) >= TO_DAYS( '$sDate' ) "
   ."AND TO_DAYS( db_date ) <= TO_DAYS( '$eDate' ) ";

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] php crash and memory_limit

2004-02-28 Thread kringla
Rasmus Lerdorf wrote:

Which web server and version?

 

php: 4.3.4
apache 1.3.27
Linux x 2.4.20aa1 #2 SMP Fri Mar 7 15:07:36 CET 2003 i686
Server API CGI/FastCGI
max_execution_time 120
max_input_time -1
'./configure' '--enable-force-cgi-redirect' 
'--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-gd' 
'--with-png' '--enable-bcmath' '--enable-safe-mode' 
'--enable-track-vars' '--with-pear=/usr/share/pear' 
'--with-mysql=shared' '--enable-memory-limit' '--enable-bcmath' 
'--enable-dbx' '--with-zlib' '--enable-fastcgi' '--with-jpeg-dir' 
'--with-png-dir' '--enable-gd-native-ttf' '--with-gettext' 
'--enable-discard-path' '--with-freetype-dir'

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


[PHP] Set Library Path

2004-02-28 Thread Mike Mapsnac
How to set up the path for PHP Library?
I want to create a directory that will contain all libraries files. And than 
I want to include the directory in each file. How to specify the path in php 
setting?

Thanks

_
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx

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


[PHP] between timestamps

2004-02-28 Thread Ryan A
Hey everyone...
In the last 24 hours there have been questions on how to get the all the
records of a day
based on the timestamp and to check whether the current date/time is later
than a timestamp,
I have  a new one... how do you fetch all records between date1 and date2?

eg:
you have some entries in a join_date (timestamp(4)) field for every day of
Feb and need to
get all records between sayyy... 7th Feb and 15th Feb..


ideas?

Thanks,
-Ryan

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



Re: [PHP] Problem With Session Handling

2004-02-28 Thread Rasmus Lerdorf
This stuff hasn't changed in about 5 years though.  ignore_user_abort was
introduced in 3.0.7 released March 1, 1999 and I remember writing that
connection handling chapter in the manual sometime before that.

-Rasmus

On Sat, 28 Feb 2004, Kyndig wrote:

>
>
> Rasmus Lerdorf wrote:
> > Uh, sorry, I meant "ignore_user_abort = On"
> > These negated ini options suck.
> >
> > -Rasmus
> >
>
> That fixed it! =) I'll make sure to read the Connection Handling
> chapter. I havn't looked into the php.ini docs, in quite a few php
> versions. I'm sure my knowledge about them is now outdated.
>
> Thank you. This was a problem I've had for a little over a year now.
>
> Kyndig
>
> > On Sat, 28 Feb 2004, Rasmus Lerdorf wrote:
> >
> >
> >>ignore_user_abort = Off
> >>
> >>in your php.ini file
> >>
> >>And read the Connection Handling chapter in the manual.
> >>
> >>-Rasmus
> >>
> >>On Sat, 28 Feb 2004, Kyndig wrote:
> >>
> >>
> >>>Hi folks,
> >>>
> >>>   I've been working on my website for a few years now. It uses SESSION
> >>>management. I am using: php4.3 version. A problem I have had for awhile
> >>>now is that all session information is lost if a page does not fully
> >>>load. This wouldn't be an issue, except on every page load I create a
> >>>MySQL link id for that page load, and store the object in a SESSION
> >>>varriable:
> >>>  $db = new db("mydatabase");
> >>>  $_SESSION["db"] = $db;
> >>>
> >>>
> >>>   Then throughout the website code, I'll simply call:   $q =
> >>>$_SESSION["db"];
> >>>This is causing my pages to fail ( I have the queries wrapped to send
> >>>users to an error page if there is a DB issue ).
> >>>
> >>>   The reason I attempt to store the database object in a SESSION is
> >>>because there are quite a number of databases in a single page load that
> >>>can be called. I don't want to spend time opening a new DB connection
> >>>for every query to the database. A single page load could have up to 15
> >>>queries to output the data and use up to 10 different databases (not
> >>>tables) to produce the output.
> >>>
> >>>Recomendations on how to fix my problem are much appreciated. If more
> >>>data is needed to assist in debugging, just let me know.
> >>>
> >>>Thank you,
> >>>Calvin Ellis
> >>>webmaster: http://www.mudmagic.com/
> >>>
> >>>--
> >>>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 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 Session Handling

2004-02-28 Thread Kyndig


Rasmus Lerdorf wrote:
Uh, sorry, I meant "ignore_user_abort = On"
These negated ini options suck.
-Rasmus

That fixed it! =) I'll make sure to read the Connection Handling 
chapter. I havn't looked into the php.ini docs, in quite a few php 
versions. I'm sure my knowledge about them is now outdated.

Thank you. This was a problem I've had for a little over a year now.

Kyndig

On Sat, 28 Feb 2004, Rasmus Lerdorf wrote:


ignore_user_abort = Off

in your php.ini file

And read the Connection Handling chapter in the manual.

-Rasmus

On Sat, 28 Feb 2004, Kyndig wrote:


Hi folks,

  I've been working on my website for a few years now. It uses SESSION
management. I am using: php4.3 version. A problem I have had for awhile
now is that all session information is lost if a page does not fully
load. This wouldn't be an issue, except on every page load I create a
MySQL link id for that page load, and store the object in a SESSION
varriable:
 $db = new db("mydatabase");
 $_SESSION["db"] = $db;
  Then throughout the website code, I'll simply call:   $q =
$_SESSION["db"];
This is causing my pages to fail ( I have the queries wrapped to send
users to an error page if there is a DB issue ).
  The reason I attempt to store the database object in a SESSION is
because there are quite a number of databases in a single page load that
can be called. I don't want to spend time opening a new DB connection
for every query to the database. A single page load could have up to 15
queries to output the data and use up to 10 different databases (not
tables) to produce the output.
Recomendations on how to fix my problem are much appreciated. If more
data is needed to assist in debugging, just let me know.
Thank you,
Calvin Ellis
webmaster: http://www.mudmagic.com/
--
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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php crash and memory_limit

2004-02-28 Thread Rasmus Lerdorf
Which web server and version?

On Sat, 28 Feb 2004, kringla wrote:

> Hi
> I'm having a problem with file uploads and freezings of the php-module
> in apache. Yes I have googled and RTFM:ed but I don't get any good
> results out from what I have tested so far.
>
> I have set MAX_FILE_SIZE as a hidden value in the form, the value is set
> to "40"
> I increased 'memory_limit' from 8M to 200M in my home server and it all
> worked, when I then tested the same thing on the web-hotel I got
> 'Internal server error 500' and I was unable to access files in the same
> directory as the problematic page was in.  I did it with "ini_set(" in
> the page.
>
> Since my web-hotel won't change any settings I have to either configure
> with ini_set or the .htaccess file.
> I set LimitRequestBody to 16M in a .htaccess file since many have
> suggested that this would solve the problem. But not.
>
> I think these variables can be set in .htaccess but I don't get the
> correct syntax in the file, i'm just getting 'internal server error' all
> the time.
>
> php_value memory_limit 34M
> php_value post_max_size 33M
> php_value upload_max_filesize 32M
> php_value max_execution_time 600
>
> --
> 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] Compare timestamps?

2004-02-28 Thread Rasmus Lerdorf
if($stamp1 > $stamp2) ...

On Sat, 28 Feb 2004, Brian Dunning wrote:

> How would I make an if() comparison to check whether the current
> date/time is later than a timestamp for the database formatted as
> 20040226085607?
>
> Thanks,
>
> - Brian
>
> --
> 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 Session Handling

2004-02-28 Thread Rasmus Lerdorf
Uh, sorry, I meant "ignore_user_abort = On"
These negated ini options suck.

-Rasmus

On Sat, 28 Feb 2004, Rasmus Lerdorf wrote:

> ignore_user_abort = Off
>
> in your php.ini file
>
> And read the Connection Handling chapter in the manual.
>
> -Rasmus
>
> On Sat, 28 Feb 2004, Kyndig wrote:
>
> > Hi folks,
> >
> >I've been working on my website for a few years now. It uses SESSION
> > management. I am using: php4.3 version. A problem I have had for awhile
> > now is that all session information is lost if a page does not fully
> > load. This wouldn't be an issue, except on every page load I create a
> > MySQL link id for that page load, and store the object in a SESSION
> > varriable:
> >   $db = new db("mydatabase");
> >   $_SESSION["db"] = $db;
> >
> >
> >Then throughout the website code, I'll simply call:   $q =
> > $_SESSION["db"];
> > This is causing my pages to fail ( I have the queries wrapped to send
> > users to an error page if there is a DB issue ).
> >
> >The reason I attempt to store the database object in a SESSION is
> > because there are quite a number of databases in a single page load that
> > can be called. I don't want to spend time opening a new DB connection
> > for every query to the database. A single page load could have up to 15
> > queries to output the data and use up to 10 different databases (not
> > tables) to produce the output.
> >
> > Recomendations on how to fix my problem are much appreciated. If more
> > data is needed to assist in debugging, just let me know.
> >
> > Thank you,
> > Calvin Ellis
> > webmaster: http://www.mudmagic.com/
> >
> > --
> > 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem With Session Handling

2004-02-28 Thread Rasmus Lerdorf
Uh, sorry, I meant "ignore_user_abort = On"
These negated ini options suck.

-Rasmus

On Sat, 28 Feb 2004, Rasmus Lerdorf wrote:

> ignore_user_abort = Off
>
> in your php.ini file
>
> And read the Connection Handling chapter in the manual.
>
> -Rasmus
>
> On Sat, 28 Feb 2004, Kyndig wrote:
>
> > Hi folks,
> >
> >I've been working on my website for a few years now. It uses SESSION
> > management. I am using: php4.3 version. A problem I have had for awhile
> > now is that all session information is lost if a page does not fully
> > load. This wouldn't be an issue, except on every page load I create a
> > MySQL link id for that page load, and store the object in a SESSION
> > varriable:
> >   $db = new db("mydatabase");
> >   $_SESSION["db"] = $db;
> >
> >
> >Then throughout the website code, I'll simply call:   $q =
> > $_SESSION["db"];
> > This is causing my pages to fail ( I have the queries wrapped to send
> > users to an error page if there is a DB issue ).
> >
> >The reason I attempt to store the database object in a SESSION is
> > because there are quite a number of databases in a single page load that
> > can be called. I don't want to spend time opening a new DB connection
> > for every query to the database. A single page load could have up to 15
> > queries to output the data and use up to 10 different databases (not
> > tables) to produce the output.
> >
> > Recomendations on how to fix my problem are much appreciated. If more
> > data is needed to assist in debugging, just let me know.
> >
> > Thank you,
> > Calvin Ellis
> > webmaster: http://www.mudmagic.com/
> >
> > --
> > 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem With Session Handling

2004-02-28 Thread Rasmus Lerdorf
ignore_user_abort = Off

in your php.ini file

And read the Connection Handling chapter in the manual.

-Rasmus

On Sat, 28 Feb 2004, Kyndig wrote:

> Hi folks,
>
>I've been working on my website for a few years now. It uses SESSION
> management. I am using: php4.3 version. A problem I have had for awhile
> now is that all session information is lost if a page does not fully
> load. This wouldn't be an issue, except on every page load I create a
> MySQL link id for that page load, and store the object in a SESSION
> varriable:
>   $db = new db("mydatabase");
>   $_SESSION["db"] = $db;
>
>
>Then throughout the website code, I'll simply call:   $q =
> $_SESSION["db"];
> This is causing my pages to fail ( I have the queries wrapped to send
> users to an error page if there is a DB issue ).
>
>The reason I attempt to store the database object in a SESSION is
> because there are quite a number of databases in a single page load that
> can be called. I don't want to spend time opening a new DB connection
> for every query to the database. A single page load could have up to 15
> queries to output the data and use up to 10 different databases (not
> tables) to produce the output.
>
> Recomendations on how to fix my problem are much appreciated. If more
> data is needed to assist in debugging, just let me know.
>
> Thank you,
> Calvin Ellis
> webmaster: http://www.mudmagic.com/
>
> --
> 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] flock problem

2004-02-28 Thread Armand Turpel
The problem was that the file was opened for reading and it was locked exclusiv.

$_fp = @fopen($file, "r");

flock($_fp, LOCK_EX);

After change to LOCK_SH it works. What is strange is that not all systems have this 
behavior. On linux with php 4.3.4 as module this was not a problem. !?!

Why??


- Original Message - 
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Armand Turpel" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, February 28, 2004 8:04 PM
Subject: Re: [PHP] flock problem


> Is the file on an NFS-mounted filesystem?  flock() in 4.3.3 works fine.
> 
> -Rasmus
> 
> On Sat, 28 Feb 2004, Armand Turpel wrote:
> 
> > Hi,
> >
> > flock($_fp, LOCK_EX );
> >
> > return always false. I'm relativily shure that the file to flock is not flocked 
> > elsewhere. php 4.3.3 is running as cgi on linux.
> > What is going wrong?
> >
> > thanks for an answer.
> 
> 

Re: [PHP] flock problem

2004-02-28 Thread Rasmus Lerdorf
Is the file on an NFS-mounted filesystem?  flock() in 4.3.3 works fine.

-Rasmus

On Sat, 28 Feb 2004, Armand Turpel wrote:

> Hi,
>
> flock($_fp, LOCK_EX );
>
> return always false. I'm relativily shure that the file to flock is not flocked 
> elsewhere. php 4.3.3 is running as cgi on linux.
> What is going wrong?
>
> thanks for an answer.

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



Re: [PHP] mkdir and rmdir possible but not readdir and opendir???

2004-02-28 Thread Rasmus Lerdorf
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.

-Rasmus

On Sat, 28 Feb 2004, raisinlove wrote:

> Hi, I'm having trouble understanding why I can create and delete
> directories with my script via mkdir and rmdir, but not simply being
> able to read them with opendir or readdir?
>
> For example, when I attempt to access these directories with opendir, I
> get this error message:
>
> Warning: opendir(): SAFE MODE Restriction in effect. The script whose
> uid is 789 is not allowed to access...
>
> Safe Mode is on as I am hosted on a shared server and cannot change
> this. Surely there's a work-around for this?
>
> Any helpfull input would appreciated
> Thanks,
> -s
>
> --
> 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] flock problem

2004-02-28 Thread Armand Turpel
Hi,

flock($_fp, LOCK_EX );

return always false. I'm relativily shure that the file to flock is not flocked 
elsewhere. php 4.3.3 is running as cgi on linux. 
What is going wrong?

thanks for an answer.

Re: [PHP] mkdir and rmdir possible but not readdir and opendir???

2004-02-28 Thread Jason Wong
On Saturday 28 February 2004 22:47, raisinlove wrote:
> Hi, I'm having trouble understanding why I can create and delete
> directories with my script via mkdir and rmdir, but not simply being
> able to read them with opendir or readdir?

Are you saying that you can create a directory using mkdir() and then 
subsequently cannot read that directory using opendir()?

> For example, when I attempt to access these directories with opendir, I
> get this error message:
>
> Warning: opendir(): SAFE MODE Restriction in effect. The script whose
> uid is 789 is not allowed to access...

What directory are you trying to read?

> Safe Mode is on as I am hosted on a shared server and cannot change
> this. Surely there's a work-around for this?

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

-- 
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
--
/*
War is an equal opportunity destroyer.
*/

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



[PHP] mkdir and rmdir possible but not readdir and opendir???

2004-02-28 Thread raisinlove
Hi, I'm having trouble understanding why I can create and delete 
directories with my script via mkdir and rmdir, but not simply being 
able to read them with opendir or readdir?

For example, when I attempt to access these directories with opendir, I 
get this error message:

Warning: opendir(): SAFE MODE Restriction in effect. The script whose 
uid is 789 is not allowed to access...

Safe Mode is on as I am hosted on a shared server and cannot change 
this. Surely there's a work-around for this?

Any helpfull input would appreciated
Thanks,
-s
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] mkdir and rmdir possible but not readdir and opendir???

2004-02-28 Thread raisinlove
Hi, I'm having trouble understanding why I can create and delete 
directories with my script via mkdir and rmdir, but not simply being 
able to read them with opendir or readdir?

For example, when I attempt to access these directories with opendir, I 
get this error message:

Warning: opendir(): SAFE MODE Restriction in effect. The script whose 
uid is 789 is not allowed to access...

Safe Mode is on as I am hosted on a shared server and cannot change 
this. Surely there's a work-around for this?

Any helpfull input would appreciated
Thanks,
-s
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP5 only configures mysql 4.1 source with mysqli

2004-02-28 Thread electroteque
Heh i just read the bit about having to change the functions from mysql to
mysqli, now what is someone doesnt use a db wrapper, they'd have a field
day, lucky i use a wrapper heh.


-Original Message-
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 29, 2004 1:21 AM
To: electroteque
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP5 only configures mysql 4.1 source with mysqli


Hi,
Mysqli installation certainly isn't improved :-) i had a lot of trouble
too, and shared my experience online at
http://www.raditha.com/mysql/mysqli.php

hope someone finds it usefull.

electroteque wrote:

>Hi i dont know who to tell, please forward it on, I'm running Solaris 9,
>PHP5 only seems to configure mysql 4.1 using the mysqli, i tried the binary
>distribution and it complained about the wrong library version so i
compiled
>the source and it was fine. Just letting people know, i also had to do
>a --disable-mysql so the full configure was
>
>./configure --with-apxs2=/usr/local/httpd/bin/apxs --without-mysql --with-m
y
>sqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir=/usr/local/libxml/
s
>parcv9 --with-zlib-dir=/opt/csw
>
>
>


--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.

--
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] Allow service to interact with desktop and have network access

2004-02-28 Thread Vincent Bouret
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.

Thanks

Vincent

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



[PHP] Problem With Session Handling

2004-02-28 Thread Kyndig
Hi folks,

  I've been working on my website for a few years now. It uses SESSION 
management. I am using: php4.3 version. A problem I have had for awhile 
now is that all session information is lost if a page does not fully 
load. This wouldn't be an issue, except on every page load I create a 
MySQL link id for that page load, and store the object in a SESSION 
varriable:
 $db = new db("mydatabase");
 $_SESSION["db"] = $db;

  Then throughout the website code, I'll simply call:   $q = 
$_SESSION["db"];
This is causing my pages to fail ( I have the queries wrapped to send 
users to an error page if there is a DB issue ).

  The reason I attempt to store the database object in a SESSION is 
because there are quite a number of databases in a single page load that 
can be called. I don't want to spend time opening a new DB connection 
for every query to the database. A single page load could have up to 15 
queries to output the data and use up to 10 different databases (not 
tables) to produce the output.

Recomendations on how to fix my problem are much appreciated. If more 
data is needed to assist in debugging, just let me know.

Thank you,
Calvin Ellis
webmaster: http://www.mudmagic.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Compare timestamps?

2004-02-28 Thread Brian Dunning
How would I make an if() comparison to check whether the current 
date/time is later than a timestamp for the database formatted as 
20040226085607?

Thanks,

- Brian

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


[PHP] php crash and memory_limit

2004-02-28 Thread kringla
Hi
I'm having a problem with file uploads and freezings of the php-module 
in apache. Yes I have googled and RTFM:ed but I don't get any good 
results out from what I have tested so far.

I have set MAX_FILE_SIZE as a hidden value in the form, the value is set 
to "40"
I increased 'memory_limit' from 8M to 200M in my home server and it all 
worked, when I then tested the same thing on the web-hotel I got 
'Internal server error 500' and I was unable to access files in the same 
directory as the problematic page was in.  I did it with "ini_set(" in 
the page.

Since my web-hotel won't change any settings I have to either configure 
with ini_set or the .htaccess file.
I set LimitRequestBody to 16M in a .htaccess file since many have 
suggested that this would solve the problem. But not.

I think these variables can be set in .htaccess but I don't get the 
correct syntax in the file, i'm just getting 'internal server error' all 
the time.

php_value memory_limit 34M
php_value post_max_size 33M
php_value upload_max_filesize 32M
php_value max_execution_time 600
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP5 only configures mysql 4.1 source with mysqli

2004-02-28 Thread Raditha Dissanayake
Hi,
Mysqli installation certainly isn't improved :-) i had a lot of trouble 
too, and shared my experience online at
http://www.raditha.com/mysql/mysqli.php

hope someone finds it usefull.

electroteque wrote:

Hi i dont know who to tell, please forward it on, I'm running Solaris 9,
PHP5 only seems to configure mysql 4.1 using the mysqli, i tried the binary
distribution and it complained about the wrong library version so i compiled
the source and it was fine. Just letting people know, i also had to do
a --disable-mysql so the full configure was
./configure --with-apxs2=/usr/local/httpd/bin/apxs --without-mysql --with-my
sqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir=/usr/local/libxml/s
parcv9 --with-zlib-dir=/opt/csw
 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Jason Wong
On Saturday 28 February 2004 18:49, Karl Timmermann wrote:

Please do not top post.

> Like if the sentence is split.

1) define your idea of a sentence
2) construct a suitable regex for use with preg_replace()

If you don't know how to do (2) then at least do (1) and then someone might be 
able to help you do (2).

-- 
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
--
/*
I cannot draw a cart, nor eat dried oats; If it be man's work I will do it.
*/

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



Re: [PHP] - Receive mail with PHP.

2004-02-28 Thread Raditha Dissanayake
1) you need a mail server to recieve mail.
2) asp2php
[EMAIL PROTECTED] wrote:

Hi all,
i've two questions today: 
1- it's possible to receive mail with PHP?
   There's in PHP a function (like mail()) for receive mail?
2- These's a tool for convet code in ASP in code in PHP?

Thanks in advance for help.
Frank
[EMAIL PROTECTED]
A&S Automation & Software - only solution 
 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] What's your favorite PHP weather code?

2004-02-28 Thread Lowell Allen
> 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?
> 

I've only tried this one -- found it easy to work with:


--
Lowell Allen

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



Re: [PHP] Text cleaning?

2004-02-28 Thread Brian V Bonini
On Sat, 2004-02-28 at 00:09, Karl Timmermann wrote:
> Does anyone have some PHP code to remove incorrect carriage returns?
> 

Depends on your definition of "incorrect".

-- 
BrianGnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
  Key Server: pgp.mit.edu
==
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org


signature.asc
Description: This is a digitally signed message part


[PHP] UML from PHP?

2004-02-28 Thread Rick \[Kitty5\]
Is there a utility I can point at a PHP project and have it draw lots of
nice UML doodles for me?

-- 
Rick

Kitty5 NewMedia http://Kitty5.com
POV-Ray News & Resources http://Povray.co.uk
TEL : (+44) 0845 1083740 - ICQ : 15776037

PGP Public Key : http://pgp.kitty5.com

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



[PHP] - Receive mail with PHP.

2004-02-28 Thread francesco
Hi all,
i've two questions today: 
1- it's possible to receive mail with PHP?
There's in PHP a function (like mail()) for receive mail?
2- These's a tool for convet code in ASP in code in PHP?

Thanks in advance for help.
Frank
[EMAIL PROTECTED]
A&S Automation & Software - only solution 

[PHP] PHP to UML ?

2004-02-28 Thread Rick \[Kitty5\]
Is there a linux utility to parse a PHP project and spit out some UML
diagrams?
-- 
Rick

Kitty5 NewMedia http://Kitty5.com
POV-Ray News & Resources http://Povray.co.uk
TEL : (+44) 0845 1083740 - ICQ : 15776037

PGP Public Key : http://pgp.kitty5.com

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



Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Karl Timmermann
Like if the sentence is split.

Thanks

On Feb 28, 2004, at 1:34 AM, Jason Wong wrote:

On Saturday 28 February 2004 16:15, Karl Timmermann wrote:
Opps, I failed to mention there can be more paragraphs with legit new
lines, like:
Hello, my name is Karl.
Hello, my name
is Dave.
This is some more example text.
Yes, this is yet some more.
So what is your criteria for "incorrect carriage returns" ?

--
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 PILLSBURY DOUGHBOY is CRYING for an END to BURT REYNOLDS movies!!
*/
--
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-general Digest 28 Feb 2004 09:47:38 -0000 Issue 2616

2004-02-28 Thread php-general-digest-help

php-general Digest 28 Feb 2004 09:47:38 - Issue 2616

Topics (messages 179027 through 179058):

arrays and sessions
179027 by: Kermit Short
179030 by: Chris W. Parker
179032 by: Kermit Short
179037 by: Chris W. Parker
179040 by: Justin Patrin

Re: List files in a dir
179028 by: Justin Patrin
179041 by: Raditha Dissanayake

Re: read it immediately
179029 by: Justin Patrin

Math weirdness with doubles...
179031 by: jon roig
179033 by: Daniel Clark
179034 by: D. Wokan
179035 by: jon roig
179036 by: Daniel Clark
179038 by: Marek Kilimajer

PHP application design with WAE UML.
179039 by: Lukasz Karapuda

Timestamp query...
179042 by: Ryan A
179043 by: Michal Migurski
179044 by: Robert Cummings
179045 by: Ryan A
179050 by: Jason Wong

php package
179046 by: edwardspl.ita.org.mo

to more fields in register
179047 by: devil_online
179051 by: Jason Wong
179052 by: devil_online
179053 by: Jason Wong
179054 by: devil_online

Text cleaning?
179048 by: Karl Timmermann
179055 by: Five
179056 by: Karl Timmermann
179057 by: Jason Wong

What's your favorite PHP weather code?
179049 by: Karl Timmermann

PHP5 only configures mysql 4.1 source with mysqli
179058 by: electroteque

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 ---
Uh, sorry, I'm Kermit, not news.php.net


OK gurus, I'm trying to create a page that allows me to create a table in my
MSSQL database.  I'm accepting the field info one by one in a form using a
PHP_SELF action.  This information is supposed to be collected in an array
that's to be stored as a session variable for semi-permanance, until the
array contains all the fields and information for the table.  A second form
will contain an action that sends the sql code for creating the table to the
database server, and viola, I've got myself a new table.  Or not.  If anyone
has any suggestions on how I can get this done I'd appreciate it!  I'd
really rather not post my whole code file, as it's really big and long, and
emphasizes how novice I am at PHP.  Thanks in advance for your help!

-Kermit
--- End Message ---
--- Begin Message ---
Kermit Short 
on Friday, February 27, 2004 1:47 PM said:

> A second form will contain an action that
> sends the sql code for creating the table to the database server, and
> viola, I've got myself a new table.

i prefer the violin, but viola's are cool too. ;)

> If anyone has any
> suggestions on how I can get this done I'd appreciate it!

wait.. i don't understand. you're asking us for a method to accomplish
what you describe or are you looking for help with a problem you're
having?? if the former, your method *sounds* ok to me. if the latter
please post the error you're getting.

> I'd really
> rather not post my whole code file, as it's really big and long, and
> emphasizes how novice I am at PHP.

good choice.


> Thanks in advance for your help!

no problem.


> -Kermit

is your real name Kermit?




chris.
--- End Message ---
--- Begin Message ---
I've got some code and it simply isn't working.  I thought it might be
because each time the form submits data, the array I'm storing information
in is being re-initialized.  If this is the case, I don't have the
multidimensional array I'm trying to get, but just a vector array with the
most recent submission data.  I tried making the array a session variable,
but I'm not even sure the session part of it is working.  So, if you have
any methods that you think might work better than what I'm trying to do, I'd
love to hear about it.  Basically, my file is structured like this:

1. Pull in POST data, and store them in php variables
2. If the POST data is null, display the first form and get the table name,
field name, field type, primary key, and null allowed information.  On
submit, the information is stored in an array.
3. If the POST data is not null, again display the entry form in case the
user needs to add more fields, and step through the array to display the
existing table info that the user has already entered.  A button in a second
form is also displayed.  When clicked, it actually creates the table.

My problems are that when I try to step through the array and display its
current contents, I get index not defined errors on my for loop indices
(?!).  The second problem is, when I try to use the print_r function to
display my array, it only displays one set of data.  This might be because
I'm trying to do a C++ type 2 dimensional array concept when PHP arrays are
associative by nature, and I'm 

[PHP] PHP5 only configures mysql 4.1 source with mysqli

2004-02-28 Thread electroteque
Hi i dont know who to tell, please forward it on, I'm running Solaris 9,
PHP5 only seems to configure mysql 4.1 using the mysqli, i tried the binary
distribution and it complained about the wrong library version so i compiled
the source and it was fine. Just letting people know, i also had to do
a --disable-mysql so the full configure was

./configure --with-apxs2=/usr/local/httpd/bin/apxs --without-mysql --with-my
sqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir=/usr/local/libxml/s
parcv9 --with-zlib-dir=/opt/csw

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



Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Jason Wong
On Saturday 28 February 2004 16:15, Karl Timmermann wrote:
> Opps, I failed to mention there can be more paragraphs with legit new
> lines, like:
>
> Hello, my name is Karl.
> Hello, my name
> is Dave.
> This is some more example text.
>
> Yes, this is yet some more.

So what is your criteria for "incorrect carriage returns" ?

-- 
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 PILLSBURY DOUGHBOY is CRYING for an END to BURT REYNOLDS movies!!
*/

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



Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Karl Timmermann
Opps, I failed to mention there can be more paragraphs with legit new 
lines, like:

Hello, my name is Karl.
Hello, my name
is Dave.
This is some more example text.
Yes, this is yet some more.



On Feb 27, 2004, at 11:56 PM, Five wrote:

You mean something like this?

$message = ereg_replace( "\n", " ", $message);

It seems to replace all new line instances with a blank space.



"Karl Timmermann" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Does anyone have some PHP code to remove incorrect carriage returns?

Example:

Sentence should be "Hi, my name is Karl and I like PHP."
but is: "Hi, my name is Karl and I like
PHP."
or
"Hi my name is Karl and
I like PHP."
I think I saw some code before that does it, but can't find it 
anywhere.

Thanks!
Karl
--
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