php-general Digest 31 Mar 2008 16:40:21 - Issue 5378
Topics (messages 272324 through 272345):
Re: preg_replace_callback(), how to pass function argument/param?
272324 by: Casey
272325 by: Micky Hulse
272326 by: Casey
272327 by: Micky Hulse
question about
Casey wrote:
What does mah_process_tags do anyway? XD
Ah, hehe... Oh, basically I am trying to write a plugin for the
Textpattern CMS:
http://textpattern.com/
processTags() is a core TXP function... Basically, it parses any TXP
template tags (txp:function_name atts=foo /).
Long story
i have two select tags as part of a registration form, city1 city2 where
city1 has a list of regions and similar for city2
there are different regions for city1 and city2 so instead of all the
regions appearing one after the other i would like to create a blank option
followed by the next set of
Hi,
I am a new php user and I have a question, for which I couldn't find any
answer.
I'd like to restrict php code to access the filesystem. I'd like to have
only one directory where the php code can write, create or read files,
and an other directory hierarchy where the php codes present. I
I'd like to restrict php code to access the filesystem. I'd like to have
only one directory where the php code can write, create or read files,
and an other directory hierarchy where the php codes present. I need
this to avoid php code to rewrite other php code in case of bug and/or
an
Hi,
I have the code of a function to generate a random 10 character long
password following my signature.
To test it i do:
$clearpass = create_pass();
print('Clear: ' . $clearpass);
die();
But the output is only Clear:
Why isn't it working ?
Any help would be appreciated.
Warm Regards,
Mário Gamito wrote:
I have the code of a function to generate a random 10 character long
password following my signature.
To test it i do:
$clearpass = create_pass();
print('Clear: ' . $clearpass);
die();
But the output is only Clear:
Why isn't it working ?
Works fine here:
Hi,
Thank you for the answer.
I am running my site on a shared server, but I can overwrite the options
in the php.ini file. Unfortunately php runs as my user, so changing the
permissions to 644 doesn't work, php is still able to write anything.
Gabor
2008. 03. 31, hétfő keltezéssel 16.51-kor
Chris schrieb:
If ldap can already use a database backend, just use the normal ldap_*
functions to do all of the work, don't re-invent it all.
http://www.php.net/ldap
Just wanted to avoid installing and maintaining a LDAP server and
mapping all the data.
Perhaps I am underestimating it,
Thank you for the answer.
I am running my site on a shared server, but I can overwrite the options
in the php.ini file. Unfortunately php runs as my user, so changing the
permissions to 644 doesn't work, php is still able to write anything.
Gabor
ok.. your hosting enable the php suexec.
Code wise your form options are too bulky and you need to look at slimming that
down like below. Not that my example is prefect but easier to control the
option enviroment.
echo select name='city1';
for($d=1; $d=2; $d++)
{
if($city1 == region$d){
echo option selected
On Mon, Mar 31, 2008 at 4:21 AM, Hamar Gábor [EMAIL PROTECTED] wrote:
Hi,
I am a new php user and I have a question, for which I couldn't find any
answer.
I'd like to restrict php code to access the filesystem. I'd like to have
only one directory where the php code can write, create or
On Sun, Mar 30, 2008 at 6:03 PM, php [EMAIL PROTECTED] wrote:
Thanks Greg...I am aware of the allow_url_fopen/allow_url_include
relationship.
Your suggestion to look into curl was implemented and there still seems to
be something else afoot.
I created a simple set of curl functions
On Sun, Mar 30, 2008 at 12:26 AM, Mary Anderson
[EMAIL PROTECTED] wrote:
Hi all,
I have a php script which produces text which is to be displayed in
a textarea. I have the wrap for the text area set to 'hard'. I need to
have newlines inserted in the text.
\n and br don't work.
On Sun, Mar 30, 2008 at 12:25 PM, tedd [EMAIL PROTECTED] wrote:
Sure, a few years ago I spent a considerable amount of time finding
the code and here it is:
http://www.webbytedd.com/a/page-rank/index.php
It used to work, but now it doesn't.
Anyone care to tell me why it doesn't work
On Sun, Mar 30, 2008 at 5:27 AM, Alain Roger [EMAIL PROTECTED] wrote:
Hi,
i want to implement on my web portal electronic invoicing system.
basically data will be stored into PostgreSQL DB.
I would like to know if someone already have experiences with such feature
or where could i find
Ok I give it a try as soon as I can.
Hotmail will accept mail delivery from PHP ?
Sure. There is nothing specific of PHP that prevents Hotmail from
accepting messages sent by PHP scripts.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
I wrote a little registration routine, which will send a confirmation letter to
the user with a random number in the message body (my site is on a host, so I
can't write in the subject, and ask the user to reply), which can be clicked
then, and my site will finish the registration. My big
On Mon, Mar 31, 2008 at 12:01 PM, Sándor Tamás (HostWare Kft. )
[EMAIL PROTECTED] wrote:
Hi,
I wrote a little registration routine, which will send a confirmation letter
to the user with a random number in the message body (my site is on a host,
so I can't write in the subject, and ask the
If you do have a index.php file in that directory and you are sure the path is
correct check the chmod and chown of the index.php file.
Richard L. Buskirk
Dont be so -1 cubed.
+++
On Sun, Mar 30, 2008 at 12:25 PM, tedd
Not understanding why this is happening.
$month = date(F, mktime(0,0,0, date(m), date(d), date(Y)));
$zomonth = date(F, mktime(0,0,0, date(m)-1, date(d), date(Y)));
echoing out the exact same month
March
March
Checked server timezone/date/time all is good. Am I half asleep at the wheel on
On Mon, Mar 31, 2008 at 3:07 PM, [EMAIL PROTECTED] wrote:
Not understanding why this is happening.
$month = date(F, mktime(0,0,0, date(m), date(d), date(Y)));
$zomonth = date(F, mktime(0,0,0, date(m)-1, date(d), date(Y)));
echoing out the exact same month
March
March
Checked
Hi Manuel
Hotmail will accept mail delivery from PHP ?
Sure. There is nothing specific of PHP that prevents Hotmail from
accepting messages sent by PHP scripts.
I used your test_smtp_message.php setting to_address to my hotmail,
localhost to my ip on dyndns, smtp_host to www.hotmail.com,
Mário Gamito wrote:
Hi,
I have the code of a function to generate a random 10 character long
password following my signature.
To test it i do:
$clearpass = create_pass();
print('Clear: ' . $clearpass);
die();
But the output is only Clear:
Why isn't it working ?
Any help would be
You need apostrophes (or quotes) around your args to date() in the
parameters...
date('m')
As it stands now, PHP assumes you mean the constant m
(http://php.net/define) and that's not defined, so they are all 0.
So you are passing in 0 to ALL the args.
You also should use E_ALL for your
I tried that a big no go.
Seems if I do a +1 i get 2 months from now and a -1 gives me the current month.
$month = date(F, mktime(0,0,0, date('m'), date('d'), date('Y')));
$zomonth = date(F, mktime(0,0,0, date(m)-1, date(d), date(Y)));
$nmonth = date(F, mktime(0,0,0, date(m)+1, date(d),
On Mon, Mar 31, 2008 at 4:15 PM, [EMAIL PROTECTED] wrote:
I tried that a big no go.
Seems if I do a +1 i get 2 months from now and a -1 gives me the current
month.
$month = date(F, mktime(0,0,0, date('m'), date('d'), date('Y')));
$zomonth = date(F, mktime(0,0,0, date(m)-1, date(d),
On Mon, Mar 31, 2008 at 3:15 PM, [EMAIL PROTECTED] wrote:
I tried that a big no go.
Seems if I do a +1 i get 2 months from now and a -1 gives me the current
month.
$month = date(F, mktime(0,0,0, date('m'), date('d'), date('Y')));
$zomonth = date(F, mktime(0,0,0, date(m)-1, date(d),
On Mon, Mar 31, 2008 at 4:15 PM, [EMAIL PROTECTED] wrote:
I tried that a big no go.
Seems if I do a +1 i get 2 months from now and a -1 gives me the current
month.
Like I said, mktime makes corrections for otherwise invalid dates.
Today is March 31. Moving the month number back by one (-1)
Thank you again Dan. Thought never crossed my mind the day being the 31st. That
fixed it.
Richard L. Buskirk
On Mon, Mar 31, 2008 at 4:15 PM, [EMAIL PROTECTED] wrote:
I tried that a big no go.
Seems if I do a +1 i get 2 months from now and a -1 gives me the current
month.
On Mon, Mar 31, 2008 at 4:15 PM, [EMAIL PROTECTED] wrote:
I tried that a big no go.
Seems if I do a +1 i get 2 months from now and a -1 gives me the current
month.
$month = date(F, mktime(0,0,0, date('m'), date('d'), date('Y')));
$zomonth = date(F, mktime(0,0,0, date(m)-1, date(d),
On Mon, Mar 31, 2008 at 4:24 PM, [EMAIL PROTECTED] wrote:
Thank you again Dan. Thought never crossed my mind the day being the 31st.
That fixed it.
Thank Andrew Ballard, actually. He said it even before I did.
I'm getting slow in my old age! ;-P
--
/Daniel P. Brown
Forensic
Hello All,
I have a date in 2008-03-29 12:15:00 format.
- How can I reduce one day from it?
- How can I reduce one hour from it?
- How can I add 1 hour to today's date?
Thanks
VamVan írta:
Hello All,
I have a date in 2008-03-29 12:15:00 format.
- How can I reduce one day from it?
- How can I reduce one hour from it?
- How can I add 1 hour to today's date?
Thanks
just convert it to a timestamp with strtotime()
then you can manipulate it by
Zoltán Németh wrote:
VamVan írta:
Hello All,
I have a date in 2008-03-29 12:15:00 format.
- How can I reduce one day from it?
- How can I reduce one hour from it?
- How can I add 1 hour to today's date?
Thanks
just convert it to a timestamp with strtotime()
then you can
At 12:20 PM -0700 3/31/08, Jim Lucas wrote:
I have a very similar routine, but for the previous line, since you
can reference a string as an array, I do this:
$char = $possible[mt_rand(0, strlen($possible)-1)];
In this example, it would save ten function calls, if not more.
just a suggestion
Daniel Brown wrote:
A lot of people don't realize, but if you're using Linux, CUPS has
a nice print-to-PDF-file option. It's not native PHP, of course, but
it's a nice, quick, reliable alternative.
Indeed. I always find this very useful and even more so when it's
exposed via Samba to all
Did they finally do it or is April fools com early?
http://digg.com/business_finance/Microsoft_Purchase_Yahoo_For_62_Billion
K
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You are pathetic. Spamming your own fake digg article to your own fake
news story and didn't even take the effort to host it on another
domain?
Direct link:
http://www.phpro.org/articles/Microsoft-Purchase-Yahoo-For-62-Billion.html
Domain Name:PHPRO.ORG
Registrant Name:Kevin Waterson
Blah. This
I work for a telephone internet company. Currently we have a tool that allows
us to track the allocation of IP's to customers. What I am looking for is a
tool that will allow me to track the allocation of phone numbers to our customers.
Building the tool for IP allocation management was
On Mon, 2008-03-31 at 17:05 -0700, mike wrote:
You are pathetic. Spamming your own fake digg article to your own fake
news story and didn't even take the effort to host it on another
domain?
BWHAHAHAHHAA
Thanks, nice reaction, made my day,
do you have more?
Kev
--
PHP General Mailing
On Tue, 2008-04-01 at 11:55 +1100, Kevin Waterson wrote:
On Mon, 2008-03-31 at 17:05 -0700, mike wrote:
You are pathetic. Spamming your own fake digg article to your own fake
news story and didn't even take the effort to host it on another
domain?
BWHAHAHAHHAA
Thanks, nice reaction,
On Mon, 2008-03-31 at 21:08 -0400, Robert Cummings wrote:
On Tue, 2008-04-01 at 11:55 +1100, Kevin Waterson wrote:
On Mon, 2008-03-31 at 17:05 -0700, mike wrote:
You are pathetic. Spamming your own fake digg article to your own fake
news story and didn't even take the effort to host it
On Monday 31 March 2008, Zoltán Németh wrote:
VamVan írta:
Hello All,
I have a date in 2008-03-29 12:15:00 format.
- How can I reduce one day from it?
- How can I reduce one hour from it?
- How can I add 1 hour to today's date?
Thanks
just convert it to a timestamp
You're the first fooled. I really pity what you said. :-(
It's 10:04 am, April 1st, China.
On Tue, Apr 1, 2008 at 9:21 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
On Mon, 2008-03-31 at 21:08 -0400, Robert Cummings wrote:
On Tue, 2008-04-01 at 11:55 +1100, Kevin Waterson wrote:
On Mon,
On Tue, 2008-04-01 at 10:06 +0800, Shelley wrote:
You're the first fooled. I really pity what you said. :-(
Sorry, it's not April 1st here... so that makes you and Kevin the
fools... my turn to laugh... *bahahahahaahha*.
Cheers,
Rob.
It's 10:04 am, April 1st, China.
On Tue, Apr 1, 2008
On Mar 30, 2008, at 227AM, Alain Roger wrote:
i want to implement on my web portal electronic invoicing system.
basically data will be stored into PostgreSQL DB.
If you're not set on building it yourself, you might take a look at
Bamboo Invoice - http://bambooinvoice.org/.
Brady
--
PHP
On Mon, 2008-03-31 at 17:05 -0700, mike wrote:
On Mon, 2008-03-31 at 21:08 -0400, Robert Cummings wrote:
On Tue, 2008-04-01 at 10:06 +0800, Shelley wrote:
:-(
On Tue, Apr 1, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
On Tue, 2008-04-01 at 10:06 +0800, Shelley wrote:
You're
48 matches
Mail list logo