Re: [PHP] phone number allocation manager

2008-03-31 Thread Per Jessen
Jim Lucas wrote: > 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. [snip] > Unfortunately the phone

Re: [PHP] MS purchase Yahoo

2008-03-31 Thread Shelley
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: > > Yo

Re: [PHP] auto generated PDF

2008-03-31 Thread Brady Mitchell
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 Gen

Re: [PHP] MS purchase Yahoo

2008-03-31 Thread Robert Cummings
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,

Re: [PHP] MS purchase Yahoo

2008-03-31 Thread Shelley
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: > > > O

Re: [PHP] Dates Again

2008-03-31 Thread Larry Garfield
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

Re: [PHP] MS purchase Yahoo

2008-03-31 Thread Robert Cummings
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 h

Re: [PHP] MS purchase Yahoo

2008-03-31 Thread Robert Cummings
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

Re: [PHP] MS purchase Yahoo

2008-03-31 Thread Kevin Waterson
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

[PHP] phone number allocation manager

2008-03-31 Thread Jim Lucas
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 p

Re: [PHP] MS purchase Yahoo

2008-03-31 Thread mike
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

[PHP] MS purchase Yahoo

2008-03-31 Thread Kevin Waterson
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

[PHP] Re: auto generated PDF

2008-03-31 Thread Colin Guthrie
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 al

Re: [PHP] Problem in a generate password function

2008-03-31 Thread tedd
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

Re: [PHP] Dates Again

2008-03-31 Thread Ray Hauge
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 manipulat

Re: [PHP] Dates Again

2008-03-31 Thread Zoltán Németh
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 adding/substra

[PHP] Dates Again

2008-03-31 Thread VamVan
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

Re: [PHP] Date Issue

2008-03-31 Thread Daniel Brown
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 -- Forensic Services, Senior U

Re: [PHP] Date Issue

2008-03-31 Thread Andrew Ballard
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

Re: [PHP] Date Issue

2008-03-31 Thread admin
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.

Re: [PHP] Date Issue

2008-03-31 Thread Andrew Ballard
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 (

Re: [PHP] Date Issue

2008-03-31 Thread Dan Joseph
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, da

Re: [PHP] Date Issue

2008-03-31 Thread Daniel Brown
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")

Re: [PHP] Date Issue

2008-03-31 Thread admin
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

Re: [PHP] Date Issue

2008-03-31 Thread Richard Lynch
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 error_r

Re: [PHP] Problem in a generate password function

2008-03-31 Thread Jim Lucas
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 appreciat

[PHP] Re: character encoding

2008-03-31 Thread Bill
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.c

Re: [PHP] Date Issue

2008-03-31 Thread Andrew Ballard
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 > >

[PHP] Date Issue

2008-03-31 Thread admin
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

Re: [PHP] Google Pagerank script

2008-03-31 Thread admin
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 <[EM

Re: [PHP] Reporting mail as spam

2008-03-31 Thread Daniel Brown
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 a

[PHP] Reporting mail as spam

2008-03-31 Thread HostWare Kft.
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 p

[PHP] Re: character encoding

2008-03-31 Thread Bill
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: http://www.php.net/unsu

Re: [PHP] auto generated PDF

2008-03-31 Thread Daniel Brown
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

Re: [PHP] Google Pagerank script

2008-03-31 Thread Daniel Brown
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 doe

Re: [PHP] new lines in textareas?

2008-03-31 Thread Daniel Brown
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 "" don't

Re: [PHP] PHP 5 file_get_contents() problems

2008-03-31 Thread Daniel Brown
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 functi

Re: [PHP] restricting filesystem access

2008-03-31 Thread Daniel Brown
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, cr

RE: [PHP] question about select tag in php

2008-03-31 Thread admin
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 ""; for($d=1; $d<=2; $d++) { if($city1 == "region$d"){ echo "region$d; }ELSE{echo "region$d;} } echo ""; for($d=1

Re: [PHP] restricting filesystem access

2008-03-31 Thread paragasu
> 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 s

Re: [PHP] LDAP in php

2008-03-31 Thread [EMAIL PROTECTED]
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, bu

Re: [PHP] restricting filesystem access

2008-03-31 Thread Hamar Gábor
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 p

Re: [PHP] Problem in a generate password function

2008-03-31 Thread Stut
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: http://dev.stu

[PHP] Problem in a generate password function

2008-03-31 Thread Mário Gamito
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ár

Re: [PHP] restricting filesystem access

2008-03-31 Thread paragasu
> 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 at

[PHP] restricting filesystem access

2008-03-31 Thread Hamar Gábor
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 nee

[PHP] question about select tag in php

2008-03-31 Thread Sudhakar
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 r