php-general Digest 14 May 2009 09:19:17 -0000 Issue 6120

2009-05-14 Thread php-general-digest-help
php-general Digest 14 May 2009 09:19:17 - Issue 6120 Topics (messages 292558 through 292562): Re: how to enable ttf support in php 5.2.9 292558 by: Ross McKay Re: handling chunked input from php://stdin 292559 by: whisperstream Re: fileinfo on RHEL5 292560 by:

php-general Digest 14 May 2009 21:43:09 -0000 Issue 6121

2009-05-14 Thread php-general-digest-help
php-general Digest 14 May 2009 21:43:09 - Issue 6121 Topics (messages 292563 through 292593): Re: Cannot output the same data from text file in PHP 292563 by: Peter Ford 292564 by: Jan G.B. 292569 by: Mike Roberts 292570 by: Nathan Rixham 292579 by:

Re: [PHP] shell_exec problem with bsdtar

2009-05-14 Thread Lester Caine
Lester Caine wrote: I'm trying to emulate Linux facilities on the windows servers, and have found bsdtar can be renamed tar.exe so that it will work the same as a shell_exec( tar ) call in Linux. The full paths are used to the files and the command line returns the extracted file name when

[PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Moses
Hi Folks, I have a written a script in PHP which outputs the result from a text file. The PHP script is as follows: ?php $alldata = file(result.txt); echo tabletrtd; foreach($alldata as $line_num = $line) { echo $line.br; } echo/td/tr/table; ? I have attached the result.txt file. However the

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Peter Ford
Moses wrote: Hi Folks, I have a written a script in PHP which outputs the result from a text file. The PHP script is as follows: ?php $alldata = file(result.txt); echo tabletrtd; foreach($alldata as $line_num = $line) { echo $line.br; } echo/td/tr/table; ? I have attached the

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Jan G.B.
You could even make it shorter, if you don't need the line numbers anyway: pre ? echo nl2br(file_get_contents('file.txt')); ? /pre 2009/5/14 Peter Ford p...@justcroft.com: Moses wrote: Hi Folks, I have a written a script in PHP which outputs the result from a text file. The PHP script is

Re: [PHP] Sending SMS through website

2009-05-14 Thread Select Performers
Per Jessen wrote: kyle.smith wrote: Most carriers have email-to-sms bridges. For example, I use ATT Wireless and you can text me by sending an email to myphonenum...@txt.att.net. Do you end up paying for that then - or who pays for it? Besides, none of the carriers around here have

[PHP] When is __destruct called on an object in $_SESSION ?

2009-05-14 Thread Peter Ford
I'm sure I've seen something about this before, but I can't find it: I'm creating a file which needs to live for the duration of a session, and ONLY the duration of the session. I made a little call which holds the name of the file like this: ?php class __TFR { private $file; public

Re: [PHP] When is __destruct called on an object in $_SESSION ?

2009-05-14 Thread Stuart
2009/5/14 Peter Ford p...@justcroft.com: I'm sure I've seen something about this before, but I can't find it: I'm creating a file which needs to live for the duration of a session, and ONLY the duration of the session. I made a little call which holds the name of the file like this: ?php

Re: [PHP] When is __destruct called on an object in $_SESSION ?

2009-05-14 Thread Peter Ford
Stuart wrote: 2009/5/14 Peter Ford p...@justcroft.com: I'm sure I've seen something about this before, but I can't find it: I'm creating a file which needs to live for the duration of a session, and ONLY the duration of the session. I made a little call which holds the name of the file

RE: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Mike Roberts
Is there a moderator or some responsible party who is in charge of this list. Please delete my profile and stop sending messages. This is the 6th such request. Sincerely, Michael Roberts Civil Engineering Executive Recruiter Corporate Staffing Services 150 Monument Road,

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Nathan Rixham
as far as i know you just send an email to: php-general-unsubscr...@lists.php.net and then reply to the confirmation - its a standard mailing list which you subscribed to at some point, no profiles or such like. Mike Roberts wrote: Is there a moderator or some responsible party who is in

[PHP] suggestion required

2009-05-14 Thread Pravinc
Hey all, I have one flex+PHP application. Main purpose of the site is to sell T-shirts online. Flex is used for generating different designs on available tshirt. Something similar to Cafepress dot com. I want to generate 300 DPI tshirt image from flex and send it to PHP side for

[PHP] where what

2009-05-14 Thread PJ
Where and what do I look for to resolve this? My script is working fine on an active ISP web server. This morning, I crank up the local XP and the local FreeBSD 7.1 server. I start my editor, bring up Firefox, go to local server and everything works fine. I start to code and make a couple of minor

Re: [PHP] where what-SOLVED

2009-05-14 Thread PJ
PJ wrote: Where and what do I look for to resolve this? My script is working fine on an active ISP web server. This morning, I crank up the local XP and the local FreeBSD 7.1 server. I start my editor, bring up Firefox, go to local server and everything works fine. I start to code and make a

[PHP] include file syntax

2009-05-14 Thread PJ
How does one deal with tag completion from an include file to the main(source)-file? i.e. c should a tag, such as head or div be closed withing the include file? Or can body be started in the include file and closed in the main-file? Crossing the border, so-to-speak, doesn't seem to matter; but

[PHP] php html integration

2009-05-14 Thread PJ
I'm a bit fuzzy on the relationship between the ? ? and the HTML code. Where should the php code be placed in a page so that execution is carried out smoothly? So far, my coding has managed to avoid horrendous snags; but as I delve deeper into the quagmire of coding, I would like to clear the fog

[PHP] Re: include file syntax

2009-05-14 Thread Shawn McKenzie
PJ wrote: How does one deal with tag completion from an include file to the main(source)-file? i.e. c should a tag, such as head or div be closed withing the include file? Or can body be started in the include file and closed in the main-file? It doesn't really matter, however it may be

[PHP] Re: php html integration

2009-05-14 Thread Shawn McKenzie
PJ wrote: I'm a bit fuzzy on the relationship between the ? ? and the HTML code. Where should the php code be placed in a page so that execution is carried out smoothly? So far, my coding has managed to avoid horrendous snags; but as I delve deeper into the quagmire of coding, I would like to

RE: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Ashley Sheridan
On Thu, 2009-05-14 at 09:29 -0400, Mike Roberts wrote: Is there a moderator or some responsible party who is in charge of this list. Please delete my profile and stop sending messages. This is the 6th such request. As I and many others have said before, the unsubscribe email address is on

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Andrew Ballard
On Thu, May 14, 2009 at 3:29 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2009-05-14 at 09:29 -0400, Mike Roberts wrote: Is there a moderator or some responsible party who is in charge of this list. Please delete my profile and stop sending messages. This is the 6th such

RE: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Mike Roberts
Ok, I think we are almost there. First I was given php-general-unsubscr...@lists.php.net but that bounced back. Second, I use MS outlook ( 03 or 07) which does not accurately display headers, probably ( in my case at all) because it's audience is less savvy than this audience, and too much

RE: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Ashley Sheridan
On Thu, 2009-05-14 at 16:01 -0400, Mike Roberts wrote: Ok, I think we are almost there. First I was given php-general-unsubscr...@lists.php.net but that bounced back. Second, I use MS outlook ( 03 or 07) which does not accurately display headers, probably ( in my case at all) because it's

Re: [PHP] php html integration

2009-05-14 Thread tedd
At 2:35 PM -0400 5/14/09, PJ wrote: I'm a bit fuzzy on the relationship between the ? ? and the HTML code. Where should the php code be placed in a page so that execution is carried out smoothly? So far, my coding has managed to avoid horrendous snags; but as I delve deeper into the quagmire of

[PHP] Software to read/write Excel to CD?

2009-05-14 Thread Skip Evans
Hey all, I'm inheriting a project that was unsuccessfully off-shored and is now in such bad shape (I've seen the code. It's awful) that they are firing the off-shore company and starting over. One of the things the other company said was possible, and I'm not familiar with... if I

[PHP] php ssl connection timeout issue

2009-05-14 Thread Jerry Zhao
Hi, I am having trouble connecting to https sites using php's builtin ssl functions. I tried: file_get_contents('https://securesite') fsockopen('ssl://securesite', 443, $errno, $errstr,20) and same errors every time: SSL: connection timeout Failed to enable crypto Call to openssl_error_string()

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Paul M Foster
On Thu, May 14, 2009 at 03:30:44PM -0400, Andrew Ballard wrote: On Thu, May 14, 2009 at 3:29 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2009-05-14 at 09:29 -0400, Mike Roberts wrote: Is there a moderator or some responsible party who is in charge of this list. Please

Re: [PHP] php html integration

2009-05-14 Thread Paul M Foster
On Thu, May 14, 2009 at 04:19:57PM -0400, tedd wrote: snip Please note, the () seen in my use of echo is not necessary -- it's just another one of those things that I do that no one else does. Ohmygosh! I didn't realize Tedd was one of those using parentheses with an echo command guys. I'm

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Andrew Ballard
On Thu, May 14, 2009 at 4:33 PM, Paul M Foster pa...@quillandmouse.com wrote: On Thu, May 14, 2009 at 03:30:44PM -0400, Andrew Ballard wrote: On Thu, May 14, 2009 at 3:29 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2009-05-14 at 09:29 -0400, Mike Roberts wrote: Is there a

Re: [PHP] Software to read/write Excel to CD?

2009-05-14 Thread Paul M Foster
On Thu, May 14, 2009 at 03:22:12PM -0500, Skip Evans wrote: Hey all, I'm inheriting a project that was unsuccessfully off-shored and is now in such bad shape (I've seen the code. It's awful) that they are firing the off-shore company and starting over. One of the things the other company

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Ashley Sheridan
On Thu, 2009-05-14 at 16:33 -0400, Paul M Foster wrote: On Thu, May 14, 2009 at 03:30:44PM -0400, Andrew Ballard wrote: On Thu, May 14, 2009 at 3:29 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2009-05-14 at 09:29 -0400, Mike Roberts wrote: Is there a moderator or some

Re: [PHP] Software to read/write Excel to CD?

2009-05-14 Thread Ashley Sheridan
On Thu, 2009-05-14 at 16:50 -0400, Paul M Foster wrote: On Thu, May 14, 2009 at 03:22:12PM -0500, Skip Evans wrote: Hey all, I'm inheriting a project that was unsuccessfully off-shored and is now in such bad shape (I've seen the code. It's awful) that they are firing the off-shore

[PHP] Re: php ssl connection timeout issue

2009-05-14 Thread Shawn McKenzie
Jerry Zhao wrote: Hi, I am having trouble connecting to https sites using php's builtin ssl functions. I tried: file_get_contents('https://securesite') fsockopen('ssl://securesite', 443, $errno, $errstr,20) and same errors every time: SSL: connection timeout Failed to enable crypto

[PHP] PHP Email Setup problem

2009-05-14 Thread Moses
Hi Everyone I have tried to configure my php.in file so as allow me to send email in PHP from local server. I added the lines in php.ini file sendmail_path = /usr/sbin/sendmail -t sendmail_from = n...@localhost Therafter restarted my apache by: sudo /etc/init.d/apache2 restart However, I

[PHP] Re: suggestion required

2009-05-14 Thread Nathan Rixham
Pravinc wrote: Hey all, I have one flex+PHP application. Main purpose of the site is to sell T-shirts online. Flex is used for generating different designs on available tshirt. Something similar to Cafepress dot com. I want to generate 300 DPI tshirt image from flex and send it to

Re: [PHP] Software to read/write Excel to CD?

2009-05-14 Thread Nathan Rixham
Paul M Foster wrote: On Thu, May 14, 2009 at 03:22:12PM -0500, Skip Evans wrote: Hey all, I'm inheriting a project that was unsuccessfully off-shored and is now in such bad shape (I've seen the code. It's awful) that they are firing the off-shore company and starting over. One of the things

Re: [PHP] PHP Email Setup problem

2009-05-14 Thread Shawn McKenzie
Moses wrote: Hi Everyone I have tried to configure my php.in file so as allow me to send email in PHP from local server. I added the lines in php.ini file sendmail_path = /usr/sbin/sendmail -t sendmail_from = n...@localhost Therafter restarted my apache by: sudo

[PHP] Re: php ssl connection timeout issue

2009-05-14 Thread Nathan Rixham
Jerry Zhao wrote: Hi, I am having trouble connecting to https sites using php's builtin ssl functions. I tried: file_get_contents('https://securesite') fsockopen('ssl://securesite', 443, $errno, $errstr,20) and same errors every time: SSL: connection timeout Failed to enable crypto Call to

[PHP] Re: php ssl connection timeout issue

2009-05-14 Thread Jerry Zhao
I tried different combination of ssl clients and servers, it all points to problems on the client side of my new php build. The same code worked on an older php build. On Thu, May 14, 2009 at 4:57 PM, Nathan Rixham nrix...@gmail.com wrote: Jerry Zhao wrote: Hi, I am having trouble

[PHP] Re: php ssl connection timeout issue

2009-05-14 Thread Nathan Rixham
Jerry Zhao wrote: I tried different combination of ssl clients and servers, it all points to problems on the client side of my new php build. The same code worked on an older php build. checked the output of print_r( stream_get_wrappers() );? -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: php ssl connection timeout issue

2009-05-14 Thread Jerry Zhao
On Thu, May 14, 2009 at 5:05 PM, Nathan Rixham nrix...@gmail.com wrote: Jerry Zhao wrote: I tried different combination of ssl clients and servers, it all points to problems on the client side of my new php build. The same code worked on an older php build. checked the output of print_r(

[PHP] Re: php ssl connection timeout issue

2009-05-14 Thread Nathan Rixham
Jerry Zhao wrote: On Thu, May 14, 2009 at 5:05 PM, Nathan Rixham nrix...@gmail.com wrote: Jerry Zhao wrote: I tried different combination of ssl clients and servers, it all points to problems on the client side of my new php build. The same code worked on an older php build. checked the

Re: [PHP] Software to read/write Excel to CD?

2009-05-14 Thread Matt Graham
Ashley Sheridan wrote: Paul M Foster wrote: On Thu, May 14, 2009 at 03:22:12PM -0500, Skip Evans wrote: One of the things the other company said was possible, and I'm not familiar with... if I understand correctly, is to create a CD with not just an Excel spreadsheet, but software on that CD

Re: [PHP] php html integration

2009-05-14 Thread Michael A. Peters
tedd wrote: h1 ?php echo(Hello World); ? /h1 and Hello World will be show as a H1 headline. Please note, the () seen in my use of echo is not necessary -- it's just another one of those things that I do that no one else does. It's not wrong, but it serves no purpose other than it looks

[PHP] auto suggest alternate properties in class

2009-05-14 Thread Daevid Vincent
Here's a handy little routine I just wrote to suggest properties you're trying to erroneously set that don't exist in a class. For example: Attempted to __get() non-existant property/variable 'operator_id' in class 'User'. checking for operator and suggesting the following: * id_operator