[PHP] CMS advice needed

2004-03-19 Thread php4
Hi guys,

I need to setup a Content Management System

Which is the best from the many?

Thanks

Nico

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



[PHP] Safe Mode

2004-02-21 Thread php4
Hi,

I'm running PHP4.3 with Apache 1.3.26 on Linux with a number of vittual domains.

Safe_mode is set by default for obvious reasons.

I wan't to install gallery
http://gallery.menalto.com/modules.php?op=modloadname=Newsfile=index

It requires to be run without safe_mode.

Is it possible to set Apache in such a way that everyting is run under safe-mode, 
except for a directory and everything underneath in a virtual domain?

Thanks

Nico

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



[PHP] eregi_replace help needed

2004-01-29 Thread php4
Hi,

I want to locate patterns such as

12345678
1 23 45 67 89
1 2 34 567 890

and replace the pattern string with a new string.

I tried

$filter['message'] = eregi_replace([0-9\s]{4,},'string replaced', 
$filter['message']);

but it does not work on all the above examples.

Thanks for the assistance!

Nico

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



RE: [PHP] eregi_replace help needed

2004-01-29 Thread php4
Hi,

the off the top of your head was perfect.  It is contrary to everything I've read on 
this, but it did the trick.

off the top of my head, I don't think '\s' is valid in a character
class, so just use ' ' instead

try  eregi_replace([0-9 ]{4,}

-Craig

Thanks

Nico

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



[PHP] Regular expression tutorial

2003-11-27 Thread php4
Hi,

I see from the postings that I should learn Regular Expressions quite fast.

Is there somewhere a decent online tutorial you could recommend?

Thanks

Nico

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



[PHP] Accounting package

2003-10-27 Thread php4
Hi,

I have a need for a very simple financial accounting package which is webbased.

Is there any such thing around?

Thanks

Nico

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



[PHP] Classes Tutorials

2003-09-22 Thread php4
Hi,

I'm want to master the art of programming in Classes and worked through some 
elementary tutorials.

Are there perhaps a bit more advanced tutorials than Devshed?

Thanks

Nico

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



[PHP] PHP and SAP

2003-09-18 Thread php4
Hi,

I had a request if it is possible to access SAP data from PHP.

If it is, where can I get more info?

Thanks

Nico

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



RE: [PHP] PHP forum

2003-07-08 Thread PHP4 Emailer
HOLY COW,

I never laughed so hard in my life, This is DEAD ON, for what happens in
this exact forum.

Damn that [EMAIL PROTECTED] is funny!!

And I've only been here for about 3 months now. I've see about every one of
those in that short time. Boy that cracks me up.

Good find Richard!!
ha...  :}

-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 10:42 PM
To: PHP General
Subject: [PHP] PHP forum


Ok some of you might not like this, others of you will know exactly what I
mean, but it just reminded me so much of this forum that I am sure some of
you will catch the humor in it:

http://www.mac-forums.com/forums/showpost.php?postid=5736postcount=85

Please keep your flames directed at me instead of the mailing list so we can
keep this thread to one post.

Cheers!

What's in a name? That which we call a rose by any other name would smell
as sweet. - Shakespeare


--
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] WEB HOST NEEDED!!!!!

2003-06-24 Thread PHP4 Emailer
SO let me get this straight, IF I pay 1000.00 a month, you'll throw the
pony in?

Sweet, where do I sign up!!

PS, if for some unknown reason the credit card I enter doesn't work it's
because I got it for free. :)

-Original Message-
From: erythros [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 5:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] WEB HOST NEEDED!


he should ask for a pony too while he's at it...

Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
Like I said, I need a web host.
It MUST support PHP, mySQl and sending emails, optional.
It shouldn't have any ads (pop-ups, ads), but I will allow if it has
watermarks (SMALL! watermarks).
It should be TOTALY FREE!
[/snip]

Denis I am going to make a small suggestion, please Google for this
information. Apparently many of the answers that have been given to you
on this list are not acceptable. Do some research. There is no such
thing as totally free.

HTH!

Jay



--
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] a question, need an answer

2003-06-22 Thread PHP4 Emailer
I could be wrong here, but from my experiences with sessions is that your
first session_start()
is assigning the value of 'arma2' to the $_SESSION['eventid'] variable,
whereas the second one you are making the 'arama2' variable a global session
variable, so as to whatever it's value is on the page can be called from
subsequent pages like post would do with a form script after a user hits
submit.

I'm still learning PHP, so I could be way off, but that's how it's been
working for me. *Shrugs*

Good Luck

-Original Message-
From: nabil [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 1:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] a question, need an answer


what is the diffirent between :
//
session_start ();
$_SESSION['eventid'] = 'arma2';
///
and
/
session_start ();
session_register('arama2');
///

Regards
Nabil

--
open source world, open mind for all



--
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] a question, need an answer

2003-06-22 Thread PHP4 Emailer
PS, from the http://www.php.net/manual/en/function.session-register.php
page, you might want to read that because your second session call won't
work with register globals is disabled but $_SESSION array will.  :)

-Original Message-
From: PHP4 Emailer [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 3:46 AM
To: nabil; [EMAIL PROTECTED]
Subject: RE: [PHP] a question, need an answer


I could be wrong here, but from my experiences with sessions is that your
first session_start()
is assigning the value of 'arma2' to the $_SESSION['eventid'] variable,
whereas the second one you are making the 'arama2' variable a global session
variable, so as to whatever it's value is on the page can be called from
subsequent pages like post would do with a form script after a user hits
submit.

I'm still learning PHP, so I could be way off, but that's how it's been
working for me. *Shrugs*

Good Luck

-Original Message-
From: nabil [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 1:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] a question, need an answer


what is the diffirent between :
//
session_start ();
$_SESSION['eventid'] = 'arma2';
///
and
/
session_start ();
session_register('arama2');
///

Regards
Nabil

--
open source world, open mind for all



--
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] Will this work right?

2003-06-14 Thread PHP4 Emailer

./PARTIAL SNIP/.

converting number of minutes into
/hours
# of mins in an hour = 60
/days
# of minutes in a day = 1440
/weeks
# of minutes in a week = 10080
/monthes
# of minutes in a month Feb non leap= 282240
Apr, June, Sept, Nov,   = 
302400
Jan, Mar, May, July, August, Oct, Dec   = 312480
/years
# of minutes in a year = 525600 and add 1440 to this for leap year.

/End Partial SNIP/...

Now the equation
If you have 10999 mins, lets call them apples and you do the equation as
follows:

10999 - 10080 = 919 mins, there's one week
919 / 60 = 15 (.31...etc)
(15 * 60 = 900 makes 19 minutes left over)
SO the # of slices from your apples = 1 Week / 15 Hours / 19 Minutes.


Wow, your right that was hard, not sure what I would have done with out my
calculator, but again if your having trouble and finding this too dificult
to understand, By all means let me know and I'll help ya.  BTW, I'm a newbie
at php, but the math, I think I learned that in 4th or 5th grade, I forget
(**Where's my diary?**).

'?php print LOL; ?'  :)

Besides, if you can write the equation in if statements you can do the
math to check your work. There's your 2nd human opinion. Good luck.

.:TIME:.
9.67 minutes! Boy the human brain can't be beat, Life is great.  Sorry that
was the smart ass in me comin out. :) ENJOY the apples!

-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 12:40 AM
To: PHP4 Emailer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Will this work right?


Unfortunatley, an equation to do what this script does would be as hard
to come up with, and as likely not to work.  That's why I want a second
(human) opinion.

PHP4 Emailer wrote:

I'm gonna go out on a limb here, but isn't that why the human brain made
calculators?  ;)

Good luck with the buttons, if you need help let me know. :)


--
The above message is encrypted with double rot13 encoding.  Any unauthorized
attempt to decrypt it will be prosecuted to the full extent of the law.



--
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] regarding ?php ? tags

2003-06-13 Thread PHP4 Emailer
My understanding of this (am still a newbie though) is that the
?=$variable? is a short tag that assignes the $variable directly to a
print/echo command. You can use the other way by just adding ?php print
$variable; ?

Hope this helps.

-Original Message-
From: Ulrik NIelsen [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 7:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] regarding ?php ? tags


Hi NG,


Does any og you know why it's not possible to use the syntax:

?php=$something?

when you can use this:

?=$something?

it would be a nice feature when mixing xml and php ...


--
   ulrik - ulrik(@)lazy.dk
excuse of the day : Domain controller not responding
 from bofh : http://www.cs.wisc.edu/~ballard/bofh/


--
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] Will this work right?

2003-06-13 Thread PHP4 Emailer
I'm gonna go out on a limb here, but isn't that why the human brain made
calculators?  ;)

Good luck with the buttons, if you need help let me know. :}

-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 3:40 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Will this work right?


Already have, and it seems to work fine.  Fairly hard to test though,
since the human brain has a hard time converting number of minutes into
years/monthes/weeks/days/hours/minutes.

Alex Earl wrote:

Why not just try it?

Alex




--
The above message is encrypted with double rot13 encoding.  Any unauthorized
attempt to decrypt it will be prosecuted to the full extent of the law.



--
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] mail() problem affecting output to browser on completion

2003-06-07 Thread PHP4 Emailer
Alright with the following code I am using is printing/echoing to the
browser a 1 before the html output. It's like it's adding 2 variables
together.

Here is what I am trying to do. I have a form that enters information to a
text file, and at the same time sends the information to a predetermined
email address. This email example is one that I made up on my server, but
will work for this example. I need it to stop printing the number 1 before
the rest of the page's output.

$address = [EMAIL PROTECTED];
$subject = Your Feedback Page has been submitted\n;
$body = The following is the information that was entered.br\r\n;
$body .= Message Type: $messageTypebr\r\n;
$body .= Subject: $subjectbodybr\r\n;
$body .= Other Subject: $otherSubjectbr\r\n;
$body .= Comments: $commentsbr\r\n;
$body .= User Name: $usernamebr\r\n;
$body .= Email Address: $emailbr\r\n;
$body .= Telephone Number: $telephonebr\r\n;
$body .= Fax Number: $faxbr\r\n;
$body .= Contact Option: $contactbr\r\n;
$moreheaders = From:
[EMAIL PROTECTED]: text/html\n;
$send = mail($address, $subject, $body, $moreheaders);
echo $send;


I noticed that the 1 is being entered in right as I call the Print command
or in this case echo (I have tried using 'print $send' aswell). Knowing
this doesn't solve my issue as all the echo/print command does in general is
to start referencing my variables from earlier within the same script.  Also
if you need the whole script I can send that aswell.  The part right here is
what's bugging me,because if I take this out of the script, it works fine,
just doesn't send an email but it still writes to the text fine and then
displays without the 1, the problem is somewhere in this script section. I'm
assuming, hehe
Any help would be much appreciated. Thanks in advance


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



RE: [PHP] How to optimize this MySQL command?

2003-06-05 Thread PHP4 Emailer
Wouldn't it be easier to SELECT * from bt_member WHERE ch='$ch' 
id='$result[mid]',$db);
//I'm not sure of the exact syntax there since I'm a newbie, but wouldn't it
be easier to do that and then do a pulling of the fields that you want?
//ie...
while ($result = mysql_fetch_object($resultb)){
print TR\n;
print td width=90 valign=\top\$row-id/td\n;
print td width=90 valign=\top\$row-mid/td\n;
print td valign=\top\$row-nick/td\n;
print /tr\n;

}
print /Table\n;
print /Center\n;

I took this from an example that I have now for something similar, it uses
fetch_object, you could still use fetch_array, and just use a $row['id'] or
something too. Good luck with this, maybe someone who knows correct syntax
could clean this up a bit. I guess my opinion is that it slows the processor
down having to pull only certain fields from the database compared to just
pulling all of them from a certain table. Most tables shouldn't be that big,
if they are you should be using primary keys and making other tables that is
the point of a relational database. ;)  You can always join tables in the
end. (ramblin again!!, sigh)
Best of luck,
David

-Original Message-
From: Erick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 7:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to optimize this MySQL command?


$resultb = mysql_query(SELECT id,mid FROM bt_message where ch='$ch' ,$db);
while ($result = mysql_fetch_array($resultb)) {
$result2b = mysql_query(SELECT nick FROM bt_member where id ='$result[mid]'
,$db);
$result2 = mysql_fetch_array($result2b);
.
}

Can combine together?



--
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] How to optimize this MySQL command?

2003-06-05 Thread PHP4 Emailer
YEAH, disregard my message, I was doing what James was doing but didn't see
that you where using 2 seperate tables already, sigh been a great
morning already. but there's my idea anyhow!!  hehe
David :)

-Original Message-
From: James Lobley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 8:22 AM
To: 'Erick'; [EMAIL PROTECTED]
Subject: RE: [PHP] How to optimize this MySQL command?
Importance: High


I'd guess at:

$resultb = mysql_query(SELECT bt_member.nick FROM bt_member, bt_message
WHERE bt_member.id=bt_message.mid AND bt_message.ch='$ch', $db);
$result2 = mysql_fetch_array($resultb);
.


-Original Message-
From: Erick [mailto:[EMAIL PROTECTED]
Sent: 04 June 2003 13:12
To: [EMAIL PROTECTED]
Subject: [PHP] How to optimize this MySQL command?


$resultb = mysql_query(SELECT id,mid FROM bt_message where ch='$ch' ,$db);
while ($result = mysql_fetch_array($resultb)) {
$result2b = mysql_query(SELECT nick FROM bt_member where id ='$result[mid]'
,$db);
$result2 = mysql_fetch_array($result2b);
.
}

Can combine together?



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


This email is only intended for the person(s) to whom it is addressed and
may contain confidential information.  Unless stated to the contrary, any
opinions or comments are personal to the writer and do not represent the
official view of the company.  If you have received this e-mail in error,
please notify us immediately by reply e-mail and then delete this message
from your system.  Please do not copy it or use if for any purposes, or
disclose its contents to any other person.

We make every effort to keep our network free from viruses. You should
independently check this e-mail and any attachments for viruses, as we
can take no responsibility for any computer viruses that might be
transferred by way of this e-mail.



--
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] trikky authentication question

2003-06-02 Thread PHP4 Emailer
Daniel,
What about using IP Logging? If the user is already logged in with the same
IP you can let them on, if its a new IP you could ask them if they are a
returning user? If so, make them log in a second time for verification, and
close the other logged in user/account.

Make some fancy It appears your at a different location message, for
security we'll need you to log in again.

Now if they have dial up that might be a pain in the rear as the IP can
change on each dial up, but for most broadband accounts and business that
the user could go to, IE public library, etc.. they'd still only have one IP
(assuming it's static) for each terminal(ramblin) but you get the idea,
This is just another suggestion as I don't see it was one used yet.

BTW, I'm only a newbie, so don't ask me how you'd do it, cuz I'm still
learning the art of PHP yet.  ;) I can log ips into a database though, so it
shouldn't be that hard to pull them out and confirm that $newIp==$loggedIp.
If you coupled this idea some of the other expiration techniques mentioned
you could have one hell of a login monitoring system. Best of luck in your
solution.

David

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 9:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] trikky authentication question


hi guys i have an authentication class , there is one last big issue to
fix , i am trying to prevent multiple logins , it does this ok except , the
first login gets kicked instead of the second one , i have a last_login
date entry to work with , what else should i have so on the login check if
the user is logged in , there is an issue using the logged in feature , ok
u give it an interval of say 2 hours , this may prevent that person
reloggin in for two hours right ?? :| , or say its a few minutes , i can
log bak in after a few minutes and still kick the first login, what are my
options



--
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_walk() and class methods

2001-12-19 Thread php4


i have class instance snagfu, of class snafu, with a method, fubar()

i have an array, $tarfu, and want to run it through array_walk(),

array_walk($tarfu, $snagfu-fubar) seems to be logical, if it's possible.

this obviously doesn't work.

How do i use a class method with array walk? or is it even possible? if
it's not possible, why not? seems to be as if it should be possible...

thanks.

Jeff Levy
Software Design
Meta-Craft Creations


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search Engine...

2001-01-25 Thread php4

Hello...
I would like to code a search engine to use just inside my home 
page...Anyone has an idea where can I find informations about how is the 
process to code a search engine with PHP??
Thank you

Felipe Lopes

MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
Faça já o seu. É gratuito!!!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]