php-general Digest 29 Dec 2006 10:55:24 -0000 Issue 4540

2006-12-29 Thread php-general-digest-help
php-general Digest 29 Dec 2006 10:55:24 - Issue 4540 Topics (messages 246262 through 246277): Re: reading MS Excel? 246262 by: Jiffy Slides Leonard Burton Chocked 246263 by: Peter Lauri 246264 by: Skip Evans 246265 by: Jürgen Wind 246266 by: Paul

RE: [PHP] Re: Chocked

2006-12-29 Thread Peter Lauri
Hi, I got it working before the post, but I was just curious if there were any change from php4 to php5 as I have been using that method for a while now. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free

[PHP] help with \n\r in strings

2006-12-29 Thread Angelo Zanetti
Hi all, I receive a text file with a whole bunch of strings. and each line is terminated by what I presume is \n\r however when I read the string into PHP, it seems that the last column of the row and the first column of the next row are connected but it appears as a space but I've done all

RE: [PHP] Re: Chocked

2006-12-29 Thread Robert Cummings
On Fri, 2006-12-29 at 09:48 +0100, Peter Lauri wrote: Hi, I got it working before the post, but I was just curious if there were any change from php4 to php5 as I have been using that method for a while now. Is the php.ini the same? Make sure it actually uses the php.ini that you think it

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Robert Cummings
On Fri, 2006-12-29 at 11:42 +0200, Angelo Zanetti wrote: Hi all, I receive a text file with a whole bunch of strings. and each line is terminated by what I presume is \n\r however when I read the string into PHP, it seems that the last column of the row and the first column of the next

RE: [PHP] help with \n\r in strings

2006-12-29 Thread Peter Lauri
Try: $string_as_array = explode(\n, $string); echo pre; print_r($string_as_array); echo /pre; The array that you get will contain segments of the string that is separated with \n. Let me know if that helps. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se -

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Frank Arensmeier
If you just want to test for \n\r - if ( substr ( -2, $my_string ) == \n\r ) { // substr with the negative value of 2 will give you the last two characters of your string // do some stuff } I think it would be a good idea to explain a little bit more what you are trying to

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Robert Cummings
On Fri, 2006-12-29 at 11:17 +0100, Frank Arensmeier wrote: If you just want to test for \n\r - if ( substr ( -2, $my_string ) == \n\r ) { // substr with the negative value of 2 will give you the last two characters of your string // do some stuff } You have your substr() parameters

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Arpad Ray
Angelo Zanetti wrote: So is there a way to test for \r\n? or what else can I use to delimit these two values (last column of row and first column of next row)? Since it's coming from a file, you might as well just read it with file(), which will split

Re: [PHP] 403 Forbidden

2006-12-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-29 12:17:12 +0530: When I try to run any php script on apache I get a error Authorization required 403 Forbidden. I don't get this error on IIS. I am using Windows XP professional please help. I am using Apache 2.2.1 That's a problem with your

Re: [PHP] Payflow and Php5 on FreeBSD

2006-12-29 Thread Dave
Hello, Thanks for your reply. Some additional information, I have not noticed a php5-pfpro extensions port, i did see one for php4, but i was informed that going back to php4 is not an option, programmers here use php5 specific functions. Judging from googling i'm sure i'm making this

Re: [PHP] Chocked

2006-12-29 Thread tedd
At 5:22 PM -0800 12/28/06, Paul Novitski wrote: At 12/28/2006 03:51 PM, Skip Evans wrote: chocked ? chocking ??? RTFM: http://php.net/chocked Warm regards, Paul Now (along with Skip), I'm really confused. First, Peter said he was chocked and I didn't know what to do -- should I call

Re: [PHP] Chocked

2006-12-29 Thread Skip Evans
tedd wrote: At 5:22 PM -0800 12/28/06, Paul Novitski wrote: At 12/28/2006 03:51 PM, Skip Evans wrote: chocked ? chocking ??? RTFM: http://php.net/chocked This link said that the function chocked could not be found. Is it anything like being stoked about something back in the

[PHP] Project php-mobile

2006-12-29 Thread Fernando chucre
Hello, I am a PHP-Developer, and for a long time I wait for um php binary for PDA's (mobiles devices). But this time not hapen. So I and my friend Lauro Salmito (C develeper) making the PHP-Mobile Project. (this still not created). We want create a small binary, Mobile Edition. Basically we

Re: [PHP] Payflow and Php5 on FreeBSD

2006-12-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-29 07:20:58 -0500: Thanks for your reply. Some additional information, I have not noticed a php5-pfpro extensions port, i did see one for php4, but i was informed that going back to php4 is not an option, programmers here use php5 specific functions.

[PHP] Project php-mobile

2006-12-29 Thread Fernando chucre
Hello, I am a PHP-Developer, and for a long time I wait for um php binary for PDA's (mobiles devices). But this time not hapen. So I and my friend Lauro Salmito (C develeper) making the PHP-Mobile Project. (this still not created). We want create a small binary, Mobile Edition. Basically we

[PHP] Only allow one vhost to use exec() ?

2006-12-29 Thread MIKE YRABEDRA
I want to be able to use the exec() function on my site, but do not want to allow all the other users that same ability. IS there a safe and secure way to limit the use of that function to a single virtualhost...maybe even a single page or directory? -- Mike B^) -- PHP General Mailing

RE: [PHP] Only allow one vhost to use exec() ?

2006-12-29 Thread Aras
Enable safe mode ON, and specify that specific directory in safe mode exec dir in php.ini. Alternatively, those settings can be set within Apache configuration (httpd.conf) per any Vhost directive. Virtualhost ... .. .. php_admin_flag safe_mode 1 ... /Virtualhost Aras Koktas [EMAIL

Re: [PHP] Chocked

2006-12-29 Thread Jim Lucas
Peter Lauri wrote: I was chocked when I got my additional dedicated server from my server provider. I assumed everyting would have been the same as I ordered the server with same package name etc. The chocking part was that the server had PHP5 and not PHP4. Ok, it is not a hard piece of

Re: [PHP] 403 Forbidden

2006-12-29 Thread Jim Lucas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-29 12:17:12 +0530: When I try to run any php script on apache I get a error Authorization required 403 Forbidden. I don't get this error on IIS. I am using Windows XP professional please help. I am using Apache 2.2.1

Re: [PHP] 403 Forbidden

2006-12-29 Thread Jim Lucas
Jim Lucas wrote: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-29 12:17:12 +0530: When I try to run any php script on apache I get a error Authorization required 403 Forbidden. I don't get this error on IIS. I am using Windows XP professional please help. I am using

[PHP] mime with php4.4.4 does not work anymore

2006-12-29 Thread Roger Thomas
I have been serving my community with Invision Power Board (IPB) v1.3.1 Final. Things are working well with PHP 4.3.8 and Apache 1.3.29. Yesterday I just upgraded to PHP4.4.4 and I have problems with Excel and Word attachments with IPB. Whenever I click on those attachments, I will get all

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Manolet Gmail
2006/12/29, Arpad Ray [EMAIL PROTECTED]: Angelo Zanetti wrote: So is there a way to test for \r\n? or what else can I use to delimit these two values (last column of row and first column of next row)? mmm what about open the file with and hex editor?.. or mmm notepad++ have a option to see

Re: [PHP] Chocked

2006-12-29 Thread Casey Chu
He probably meant shocked and shocking. On 12/29/06, Jim Lucas [EMAIL PROTECTED] wrote: Peter Lauri wrote: I was chocked when I got my additional dedicated server from my server provider. I assumed everyting would have been the same as I ordered the server with same package name etc. The