php-general Digest 8 Mar 2013 13:14:38 -0000 Issue 8152

Topics (messages 320420 through 320428):

PHP 5.4 Help
        320420 by: Great Recordings, LLC
        320421 by: Alessandro Pellizzari
        320424 by: Tom Rogers
        320427 by: tamouse mailing lists

Re: Open form in new window
        320422 by: Ray

Strange Error calling method of wsdl based SOAP client
        320423 by: Tobiah
        320426 by: tamouse mailing lists

Re: PHP Web Developer Opportunity
        320425 by: tamouse mailing lists

Generating CRUD code for normalized db
        320428 by: Gary

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


----------------------------------------------------------------------
--- Begin Message ---

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();
 
?>
---------------------------------------------------------------
 

--- End Message ---
--- Begin Message ---
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.



--- End Message ---
--- Begin Message ---
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,
 Tom                            mailto:trog...@kwikin.com


--- End Message ---
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
<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

--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
Does anyone know of any framework that can generate CRUD code for
normalized database tables? Preferably FOSS.

For example, if I have a table person and address, I would like to be
able to generate a Create form which will capture the data from the user
for *both* of those at the same time.

Don't bother pointing me at yii's gii (or giix extension). What works is
inadequte and what doesn't work seems to be rather a lot.

--
Gary        Please do NOT send me 'courtesy' replies off-list.


--- End Message ---

Reply via email to