[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

Re: [PHP] php & html integration

2009-05-14 Thread Michael A. Peters
tedd wrote: 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 good and makes sense *to me* YM

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

[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 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 Jerry Zhao
On Thu, May 14, 2009 at 5:05 PM, Nathan Rixham 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( st

[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
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 wrote: > Jerry Zhao wrote: > >> Hi, >> >> I am having trouble connecting to http

[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 ope

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 /etc/in

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 t

[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 PH

[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 ge

[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

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 of

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 > > wrote: > > > On Thu, 2009-05-14 at 09:29 -0400, Mike Roberts wrote: > > >> Is there a moderator or some responsible

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 com

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 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 >> wrote: >> > On Thu, 2009-05-14 at 09:29 -0400, Mike Roberts wrote: >> >> Is there a moderator or some responsible party

Re: [PHP] php & html integration

2009-05-14 Thread Paul M Foster
On Thu, May 14, 2009 at 04:19:57PM -0400, tedd wrote: > > 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'

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 > 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 a

[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()

[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 understand

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 codi

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'

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 infor

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

2009-05-14 Thread Ashley Sheridan
On Thu, 2009-05-14 at 15:30 -0400, Andrew Ballard wrote: > On Thu, May 14, 2009 at 3:29 PM, Ashley Sheridan > 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

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 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 request. >> > As I and ma

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 o

Re: [PHP] Re: php & html integration

2009-05-14 Thread Tom Worster
On 5/14/09 2:52 PM, "Shawn McKenzie" wrote: > 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

[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 > t

[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 or be closed withing the > include file? Or can be started in the include file and closed in > the main-file? It doesn't really matter, however it may be easier to d

[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 befo

[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 or be closed withing the include file? Or can be started in the include file and closed in the main-file? Crossing the border, so-to-speak, doesn't seem to matter; but how does this

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 m

[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

[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 processi

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 char

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, S

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

2009-05-14 Thread Peter Ford
Stuart wrote: > 2009/5/14 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

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

2009-05-14 Thread Stuart
2009/5/14 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: > class __TFR > { >

[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: file = '/tmp/'.session_id().'.xml'; } public f

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 AT&T 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

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: 2009/5/14 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: >> >> > $alldata = file("result.txt"); >> echo ""; >>

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: > > $alldata = file("result.txt"); > echo ""; > foreach($alldata as $line_num => $line) { > echo $line.""; > } > echo""; > ?> > > I have attached the result.t

[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: "; foreach($alldata as $line_num => $line) { echo $line.""; } echo""; ?> I have attached the result.txt file. However the output of the script is as follows: Query: 1 atggcaatcgt

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