php-general Digest 6 Mar 2013 16:15:38 -0000 Issue 8151

2013-03-06 Thread php-general-digest-help

php-general Digest 6 Mar 2013 16:15:38 - Issue 8151

Topics (messages 320409 through 320419):

Re: Cold Intermediate Programmer trying to modularize website...
320409 by: tamouse mailing lists
320410 by: tamouse mailing lists

Re: Open form in new window
320411 by: Tedd Sperling
320414 by: Tedd Sperling
320418 by: Jim Giner
320419 by: Tedd Sperling

Re: PHP Web Developer Opportunity
320412 by: Tedd Sperling
320413 by: Matijn Woudt
320415 by: Tedd Sperling
320416 by: Matijn Woudt

Re: Not counting my own page visits
320417 by: Angela Barone

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---
On Tue, Mar 5, 2013 at 12:42 PM, Barry Smith scs.bns...@gmail.com wrote:
 I know less about WordPress than I do about Joomla, but I did notice a
 template site that I cannot find any support for (cool templates) which
 supports both Joomla and WordPress, as well as HTML/CSS.
 I know that there are lists of buttons which I was going to rely on PHP to
 handle.
 The problem with WordPress and Joomla is that the current webhost will allow
 PHP, but will not allow MySQL.

 :) I know... time to move the site to a FREE php/MySQL host.  I already have
 one in mind, but the throughput from the host at a major ISP (Charter) is
 hard to leave... since the client has been paying for that webhost for over
 20 years.  A GoDaddy hosted site I might be able to talk her into, in a
 pinch... but she is a firm believer in the idea that you pay for quality. It
 might be very hard convincing her to consider another webhost that isn't
 local, and Charter is a local (non-toll-free) phone call away.

 Thank you for the suggestion.  A WordPress site might actually be the
 solution... if she is willing to leave Charter.
 --
 Barry Smith
 c 704-497-4217
 e scs.bns...@gmail.com

 On Tue, Feb 26, 2013 at 11:22 PM, tamouse mailing lists
 tamouse.li...@gmail.com wrote:

 Have you considered setting this up in wordpress?




I'm not familiar with Charter as an ISP, or what they offer. I'm
guessing they are on a consumer web hosting plan? Something to look at
might be if there's a low-tier commercial hosting plan with Charter,
that might be better than moving off to GoDaddy (which I have very
personally strong averse feelings to, so take that into account).

Also, not trying to talk you out of a job or anything like that, but
there are also things like wordpress.com and other public blogging
platforms.

A completely left-field thing now is also github pages. You can't run
PHP, but wow can you make a great backbone.js app there.

Anyway, just tossing out ideas. They're free, so you can ignore them. :)
---End Message---
---BeginMessage---
On Tue, Mar 5, 2013 at 5:55 PM, tamouse mailing lists
tamouse.li...@gmail.com wrote:
 On Tue, Mar 5, 2013 at 12:42 PM, Barry Smith scs.bns...@gmail.com wrote:
 I know less about WordPress than I do about Joomla, but I did notice a
 template site that I cannot find any support for (cool templates) which
 supports both Joomla and WordPress, as well as HTML/CSS.
 I know that there are lists of buttons which I was going to rely on PHP to
 handle.
 The problem with WordPress and Joomla is that the current webhost will allow
 PHP, but will not allow MySQL.

 :) I know... time to move the site to a FREE php/MySQL host.  I already have
 one in mind, but the throughput from the host at a major ISP (Charter) is
 hard to leave... since the client has been paying for that webhost for over
 20 years.  A GoDaddy hosted site I might be able to talk her into, in a
 pinch... but she is a firm believer in the idea that you pay for quality. It
 might be very hard convincing her to consider another webhost that isn't
 local, and Charter is a local (non-toll-free) phone call away.

 Thank you for the suggestion.  A WordPress site might actually be the
 solution... if she is willing to leave Charter.
 --
 Barry Smith
 c 704-497-4217
 e scs.bns...@gmail.com

 On Tue, Feb 26, 2013 at 11:22 PM, tamouse mailing lists
 tamouse.li...@gmail.com wrote:

 Have you considered setting this up in wordpress?




 I'm not familiar with Charter as an ISP, or what they offer. I'm
 guessing they are on a consumer web hosting plan? Something to look at
 might be if there's a low-tier commercial hosting plan with Charter,
 that might be better than moving off to GoDaddy (which I have very
 personally strong averse feelings to, so take that into account).

 Also, not trying to talk you out of a job or anything like that, but
 there are also things like wordpress.com and other public blogging
 platforms.

 A completely left-field thing now is also github pages. You can't 

Re: [PHP] Open form in new window

2013-03-06 Thread Tedd Sperling
On Mar 5, 2013, at 10:12 PM, Jim Giner jim.gi...@albanyhandball.com wrote
 On 3/5/2013 7:32 PM, Tedd Sperling wrote:
 On Mar 4, 2013, at 12:54 PM, John Taylor-Johnston 
 john.taylor-johns...@cegepsherbrooke.qc.ca wrote:
 
 If you want to open a new page in response to a submit button press (using 
 PHP) you may be out of luck. I don't know of a way to do it without 
 involving another language. Opening a different page in the *same* window, 
 yes. Otherwise, no. But watch the other replies. Maybe someone knows 
 something I don't. Paul
 Nope. Out of luck.
 
 You mean opening a new page while keeping the current page open?
 
 Because clicking a form submit *can* open a new page as per the form's 
 action= attribute.
 
 If you want the current page to remain open while another page opens, then 
 you'll need a javascript routine to do it.
 
 Cheers,
 
 tedd
 
 _
 t...@sperling.com
 http://sperling.com
 
 
 No - you meant to say per the form's TARGET attribute


No, I meant to say exactly what I said, namely ACTION.

The Target attribute deals with frames -- I have not done frames since 1995.

For a more in-depth Target explanation, please review:

http://www.htmlcodetutorial.com/forms/_FORM_TARGET.html

However, I do not think that is what is being discussed here -- at least it is 
not what I was talking about.

Cheers,

tedd

_
t...@sperling.com
http://sperling.com





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP 5.4 Help

2013-03-06 Thread Great Recordings, LLC


I need help from someone knowledgeable about PHP and I hope I am seeking it in 
the right place.  I beg your forgiveness if this is not the right place.
 
I purchased a software (1-2-3 Music) a few years ago and have used parts of it 
on my website so people can buy and download MP3 songs. I have tried to contact 
the company I purchased the program from but they seem to be out of business.  
Have also tried contacting the main developer but am not able to make 
contact…my emails to him are rejected by his mail box).
 
Beginning on April 1, 2013 my Web Hosting company will no longer support PHP 
programs less than Version 5.4...Register_Globals will be turned off.  I have 
tested my software with the new upcoming restrictions and find none of my song 
downloads will function with the PHP 5.4 version.
 
Will someone tell me if the small module included on the bottom of this note 
will function properly under PHP 5.4? (Register_Globals turned off).  If it 
does not function properly with Register_Globals turned off, is there a way to 
make changes  to the module so it does function properly with Register-Globals 
turned off?
 
Thank you very much
Floyd J. Badeaux   
-
Module:
?php
define (DOCMA_HOME, 
/homepages/37/d48651986/htdocs/htdocs/1-2-3-music-store/docma_08306s);
ini_set(display_errors, 0);
require_once (DOCMA_HOME./system/prepend.inc);
 
define (DOCUMENT_ROOT, preg_replace(/()+/, /, realpath(.))); 
session_start();
 
$processName = $_REQUEST[pname];
$process = process_get_process($processName);
$process-execute();
 
?
---
 

[PHP] Re: PHP 5.4 Help

2013-03-06 Thread Alessandro Pellizzari
Il Wed, 06 Mar 2013 08:41:43 -0800, Great Recordings, LLC ha scritto:

 Will someone tell me if the small module included on the bottom of this
 note will function properly under PHP 5.4? (Register_Globals turned
 off).  If it does not function properly with Register_Globals turned
 off, is there a way to make changes  to the module so it does function
 properly with Register-Globals turned off?

It is impossible to answer without knowing what is in prepend.inc (and in 
all the files included o required by it.
It is also impossible to know what is in the process identified by 
$processName (it is an external executable).

Per se, this small script doesn't need register_globals, but it calls 
external resources that could require it.

Your best bet is to find a relly good developer who can try to adapt the 
software to PHP 5.4.

IF the software is open source (or at least you have the sources).

I suppose he will not be able to do it in less than 20 days, so you 
should find a new hosting company that will allow you to keep 
register_globals on until the conversion (or the complete rewrite) is 
finished.

Bye.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Open form in new window

2013-03-06 Thread Ray
snip

  
  No - you meant to say per the form's TARGET attribute
 
 No, I meant to say exactly what I said, namely ACTION.
 
 The Target attribute deals with frames -- I have not done frames since 1995.
 
 For a more in-depth Target explanation, please review:
 
 http://www.htmlcodetutorial.com/forms/_FORM_TARGET.html
 

If you read your own link you will see a reference to target=_blank this 
opens the document in a new tab/window. 

If there is a way to open a new window/tab with the action attribute I would 
love to be educated.
sibling page of your link
http://www.htmlcodetutorial.com/forms/_FORM_ACTION.html
 


 However, I do not think that is what is being discussed here -- at least it
 is not what I was talking about.

agreed

 
 Cheers,
 
 tedd
 
snip

Ray

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Strange Error calling method of wsdl based SOAP client

2013-03-06 Thread Tobiah

I'm talking to the Membersuite SOAP api.  They have a Get() method
and a Save() method for objects.  I call Get(), and get an object
back representing an individual.  I pass it back to Save() and I
get this:

Fatal error: Uncaught SoapFault exception: [a:DeserializationFailed]
The formatter threw an exception while trying to deserialize the message:
There was an error while trying to deserialize parameter 
http://membersuite.com/contracts:objectToSave.

The InnerException message was
'Element Value from namespace 
http://schemas.datacontract.org/2004/07/MemberSuite.SDK.Types
cannot have child contents to be deserialized as an object. Please use 
XmlNode[] to deserialize this pattern of XML.'.
Please see InnerException for more details. in 
/home/toby/public_html/membersuite/-:115
Stack trace:
#0 /home/toby/public_html/membersuite/-(115): 
SoapClient-__soapCall('Save', Array, NULL, Array, Array)
#1 /home/toby/public_html/membersuite/-(18): Membersuite-call('Save', 
Array)
#2 {main}
  thrown in /home/toby/public_html/membersuite/- on line 115


The whole store with source code is here:

http://register.rcsreg.com/r2/membersuite

Thanks for any help.  I've been working on this
for over a month now.

Tobiah

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP 5.4 Help

2013-03-06 Thread Tom Rogers
Hello LLC,

Thursday, March 7, 2013, 2:41:43 AM, you wrote:



 I need help from someone knowledgeable about PHP and I hope I am
 seeking it in the right place.  I beg your forgiveness if this is not the 
 right place.
  
 I purchased a software (1-2-3 Music) a few years ago and have used
 parts of it on my website so people can buy and download MP3 songs.
 I have tried to contact the company I purchased the program from but
 they seem to be out of business.  Have also tried contacting the
 main developer but am not able to make contact…my emails to him are rejected 
 by his mail box).
  
 Beginning on April 1, 2013 my Web Hosting company will no longer
 support PHP programs less than Version 5.4...Register_Globals will
 be turned off.  I have tested my software with the new upcoming
 restrictions and find none of my song downloads will function with the PHP 
 5.4 version.
  
 Will someone tell me if the small module included on the bottom of
 this note will function properly under PHP 5.4? (Register_Globals
 turned off).  If it does not function properly with Register_Globals
 turned off, is there a way to make changes  to the module so it does
 function properly with Register-Globals turned off?
  
 Thank you very much
 Floyd J. Badeaux   
 -
 Module:
 ?php
 define (DOCMA_HOME,
 /homepages/37/d48651986/htdocs/htdocs/1-2-3-music-store/docma_08306s);
 ini_set(display_errors, 0);
 require_once (DOCMA_HOME./system/prepend.inc);
  
 define (DOCUMENT_ROOT, preg_replace(/()+/, /, realpath(.)));
 session_start();
  
 $processName = $_REQUEST[pname];
 $process = process_get_process($processName);
$process-execute();
  
?
 ---
  

You will probably need to remove the '' from this line:
$process = process_get_process($processName);

All  objects  are  passed  around as a reference now so the '' is not
needed and may cause troubles.

Tom

-- 
Best regards,
 Tommailto:trog...@kwikin.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Web Developer Opportunity

2013-03-06 Thread tamouse mailing lists
On Tue, Mar 5, 2013 at 6:42 PM, Matijn Woudt tijn...@gmail.com wrote:
 On Wed, Mar 6, 2013 at 1:34 AM, Tedd Sperling t...@sperling.com wrote:


 On Mar 5, 2013, at 7:18 PM, Matijn Woudt tijn...@gmail.com wrote:
 On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling t...@sperling.com wrote:
  On Mar 4, 2013, at 3:10 PM, Allison Garcia agar...@smallworldlabs.com
 wrote:
  -snip-
  What are you offering?
 
  $2/hr.
 
  Oh, It's not Friday..

 Is it more on Friday?

 Friday is the time for jokes on this list, right?

For you, one dollar on Friday.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Strange Error calling method of wsdl based SOAP client

2013-03-06 Thread tamouse mailing lists
On Wed, Mar 6, 2013 at 1:36 PM, Tobiah tshep...@rcsreg.com wrote:
 I'm talking to the Membersuite SOAP api.  They have a Get() method
 and a Save() method for objects.  I call Get(), and get an object
 back representing an individual.  I pass it back to Save() and I
 get this:

 Fatal error: Uncaught SoapFault exception: [a:DeserializationFailed]
 The formatter threw an exception while trying to deserialize the message:
 There was an error while trying to deserialize parameter
 http://membersuite.com/contracts:objectToSave.

 The InnerException message was
 'Element Value from namespace
 http://schemas.datacontract.org/2004/07/MemberSuite.SDK.Types
 cannot have child contents to be deserialized as an object. Please use
 XmlNode[] to deserialize this pattern of XML.'.
 Please see InnerException for more details. in
 /home/toby/public_html/membersuite/-:115
 Stack trace:
 #0 /home/toby/public_html/membersuite/-(115):
 SoapClient-__soapCall('Save', Array, NULL, Array, Array)
 #1 /home/toby/public_html/membersuite/-(18): Membersuite-call('Save',
 Array)
 #2 {main}
   thrown in /home/toby/public_html/membersuite/- on line 115


 The whole store with source code is here:

 http://register.rcsreg.com/r2/membersuite

 Thanks for any help.  I've been working on this
 for over a month now.

 Tobiah

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


I would mock the SOAP save call in your tests and inspect it to see
that it is indeed what should be being sent.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP 5.4 Help

2013-03-06 Thread tamouse mailing lists
On Wed, Mar 6, 2013 at 10:41 AM, Great Recordings, LLC
mu...@great-recordings.com wrote:


 I need help from someone knowledgeable about PHP and I hope I am seeking it 
 in the right place.  I beg your forgiveness if this is not the right place.

 I purchased a software (1-2-3 Music) a few years ago and have used parts of 
 it on my website so people can buy and download MP3 songs. I have tried to 
 contact the company I purchased the program from but they seem to be out of 
 business.  Have also tried contacting the main developer but am not able to 
 make contact…my emails to him are rejected by his mail box).

 Beginning on April 1, 2013 my Web Hosting company will no longer support PHP 
 programs less than Version 5.4...Register_Globals will be turned off.  I have 
 tested my software with the new upcoming restrictions and find none of my 
 song downloads will function with the PHP 5.4 version.

 Will someone tell me if the small module included on the bottom of this note 
 will function properly under PHP 5.4? (Register_Globals turned off).  If it 
 does not function properly with Register_Globals turned off, is there a way 
 to make changes  to the module so it does function properly with 
 Register-Globals turned off?

 Thank you very much
 Floyd J. Badeaux
 -
 Module:
 ?php
 define (DOCMA_HOME, 
 /homepages/37/d48651986/htdocs/htdocs/1-2-3-music-store/docma_08306s);
 ini_set(display_errors, 0);
 require_once (DOCMA_HOME./system/prepend.inc);

 define (DOCUMENT_ROOT, preg_replace(/()+/, /, realpath(.)));
 session_start();

 $processName = $_REQUEST[pname];
 $process = process_get_process($processName);
 $process-execute();

 ?
 ---


Suggestion: change this line:

 ini_set(display_errors, 0);

to this:

error_reporting(-1);
ini_set('display_errors', true);
ini_set('display_startup_errors', true);


as a start to see what the failures actually are. If there are syntax
errors in the PHP, they will still not be shown, you should vet the
source by running it through php -l (lint) to ensure no syntax errors.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php