php-general Digest 8 Jun 2008 00:21:34 -0000 Issue 5502

Topics (messages 275112 through 275116):

Re: WSDL/SOAP/PHP5
        275112 by: Dan Joseph

Re: Dynamic form changes without refresh
        275113 by: Nitsan Bin-Nun

Re: spaces - not sure if this is a preg_match issue or a regexp issue
        275114 by: Bastien Koert

Imagick installation issue
        275115 by: BornPlayDie
        275116 by: Bastien Koert

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On Fri, Jun 6, 2008 at 6:33 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:

> On Fri, Jun 6, 2008 at 2:53 PM, Dan Joseph <[EMAIL PROTECTED]> wrote:
>
>> Hi Everyone,
>>
>> I'm struggling with a WSDL trying to make it work right.  I don't even
>> know
>> what to really ask.
>>
>> Basically I've created a WSDL and made a web service in PHP5.  It doesn't
>> seem to validate properly when a .NET client tries to hit
>
>
> have you tried hitting it w/ soapUi ?  thats a great tool for development.
>
> Is there something that can be used to generate the WSDL?
>
>
> there are some things, but they are all independent projects, heres one for
> example,
> http://www.jool.nl/new/index.php?file_id=1
>
> if you just google around a while for things like "php wsdl generator" you
> can find some.  i found something that looked good a few weeks back, but
> having no immediate need for it, ive not used it, and dont recall where to
> find it =/
>
>
>> Should I just abandon PHP5's SOAP and use NuSOAP?
>
>
> obviously nusoap will be slower, but ive found the integrated php soap
> stuff to be a little lean on the feature side.  for example, when someone
> was trying to work w/ soap attachments recently (client side issue
> [obviously]) it appears there is no such support in the c code.  i did find
> some xml in the .phpt files that had the attachments, but there were no unit
> tests that used them.
>
> i found some stuff in one of the soap packages in pear that did handle soap
> attachments, but again, this code is php, not c.  to summarize, the
> integrated support for soap in php is great because its fast and you dont
> have to do anything but include it in the php installation to use it.  the
> lacking features can be a bit painful tho.  SoapClient is great, but server
> side, if i ever have a need in my personal stuff for soap web services, ill
> probly use java as its way more mature in this arena (and fast :D).
>
> -nathan
>

Thanks for the reply.  I hadn't heard of soapUi until you mentioned it, I'll
check it out.  I had thought about using c# to re-create the web service,
but I'm nearing a deadline and don't have time to venture into that.  I
agree with you that php5's soap is lacking.  I'll look this over, thanks for
your help.

-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

--- End Message ---
--- Begin Message ---
Try to pull this algorithm into a function, then add it to the onLoad
attribute of your body element, so on the each load it call the function
which calls it self each X seconds interval (use the functions mentioned by
Todd)

On 05/06/2008, Mayer, Jonathan <[EMAIL PROTECTED]> wrote:
>
> Hiya all,
>
> I have a PHP page with a form holding a large number of textarea boxes.
>
> These text boxes are individually set as enabled or disabled based on a
> flag
> held in a MySQL database.
>
> I want to be able to dynamically enable or disable a specific box without
> the page being recalled (potentially loosing the parameters passed, and
> having to rebuild a large complex table).
>
> Using some basic javascript/AJAX, I have set up a link next to each text
> box, which calls code that updates the database in the background without
> refreshing the page. If I manually refresh the page, the textarea box in
> question updates correctly, proving that the database update has worked.
> However, I cannot work out how to get the textarea boxes to toggle the
> disable on/off "on the fly". I assume they would need to continually check
> the database and adjust as required.
>
> I realise there may not be too much PHP involved here, but I was wondering
> whether anyone could assist or point me in the right direction.
>
> Thanks,
> Jon.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On 6/7/08, Runar Olsen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>> I'm working on a script to look for a UUEncoded attachment in an NNTP
>> message. I'm running into problems with spaces in the filename of the
>> attachment.
>> UUEncoded files in the body of a message will start with the word "begin",
>> then the size of the file, then the name of the file. Then the encoded
>> file, finaly then a newline with only the word "end" like so:
>>
>> begin 644 photo.jpg
>> -encoded image-
>> end
>>
>> The script looks for that first line in that order so as not to confuse it
>> with the word "begin" showing up somewhere else in the message. Here is
>> the particular line of code that searches for that:
>>
>> if (preg_match("/^begin\s+[0-9][0-9][0-9]\s+(.+?)\s*\r?\n/m", $body))
>>
>>
> The part where you fetch the file name (.+?)\s* is what is causing the
> problem as when the file name is "a something.jpg" then (.+?) matches a then
> \s matches the space and the rest is skipped.
>
>>
>> The problem I'm running into is with spaces in the file name. For example,
>> if it starts with this:
>>
>> begin 644 a_nice_photo.jpg
>>
>>
>> it works just fine, decodes the image and places it below the text of the
>> message. But if the line looks like this:
>>
>> begin 644 a nice photo.jpg
>>
>> with spaces in the filename, the script seems to stop looking after the
>> "a", thinks this is just normal text in the message and doesn't decode the
>> image. This results in the raw UUEncoded text showing up where the image
>> should.
>>
>> I'm stumped. Any ideas?
>>
>> -Allen
>>
>>
>>
>> --
>>
>>
>
>
what about just writing a utility to manipulate the files names to remove
spaces?

-- 

Bastien

Cat, the other other white meat

--- End Message ---
--- Begin Message ---
 I am trying to install ImageMagick and Imagick on my server. I am running the 
following...

Apache version
                1.3.37 (Unix)
PHP version
                5.2.1

I have installed the following...

ImageMagick 6.4.1
Imagick 2.1.1

I ran the convert logo test for ImageMagick and it works fine. However 
imagick.so will not load. I confirmed the so file is in the correct extensions 
dir specified by extension_dir in php.ini. I also confirmed this is the correct 
php.ini file. 

My php test file looks like this...

  if (!extension_loaded('imagick')) {
    dl("imagick.so");
    if (!extension_loaded('imagick')) {
      echo "PHP IMagick will not load!";
      exit;
    }
  }
  $image = new Imagick('test.jpg');
  $image->thumbnailImage(100, 0);
  $image->writeImage('test-thumb.jpg');
  header("Location: test.html");  /*  display the thumbnail */

But I get the following error...

Warning: dl() [function.dl <http://pimpmysnaps.com/function.dl>]: 
Unable to load dynamic library 
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so' - 
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so: 
undefined symbol: zend_ce_iterator in /home/pimpms/public_html/test.php 
on line 4


PHP IMagick will not load!




This is the output for ldd -r for imagick.so. There are a number of 
dependencies that I don't recognize 
and I think there may be other packages that need to be installed.



undefined symbol: zend_ce_iterator      
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)

undefined symbol: core_globals  
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)

undefined symbol: executor_globals      
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)

undefined symbol: zval_add_ref  
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)

undefined symbol: OnUpdateBool  
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)

undefined symbol: zend_hash_internal_pointer_reset_ex   

... (and the list goes on)

Any help would be appreciated.

Thanks,
Mark


_________________________________________________________________
It’s easy to add contacts from Facebook and other social sites through Windows 
Live™ Messenger. Learn how.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow

--- End Message ---
--- Begin Message ---
On 6/7/08, BornPlayDie <[EMAIL PROTECTED]> wrote:
>
>
> I am trying to install ImageMagick and Imagick on my server. I am running
> the following...
>
> Apache version
>                1.3.37 (Unix)
> PHP version
>                5.2.1
>
> I have installed the following...
>
> ImageMagick 6.4.1
> Imagick 2.1.1
>
> I ran the convert logo test for ImageMagick and it works fine. However
> imagick.so will not load. I confirmed the so file is in the correct
> extensions dir specified by extension_dir in php.ini. I also confirmed this
> is the correct php.ini file.
>
> My php test file looks like this...
>
> if (!extension_loaded('imagick')) {
>    dl("imagick.so");
>    if (!extension_loaded('imagick')) {
>      echo "PHP IMagick will not load!";
>      exit;
>    }
> }
> $image = new Imagick('test.jpg');
> $image->thumbnailImage(100, 0);
> $image->writeImage('test-thumb.jpg');
> header("Location: test.html");  /*  display the thumbnail */
>
> But I get the following error...
>
> Warning: dl() [function.dl <http://pimpmysnaps.com/function.dl>]:
> Unable to load dynamic library
> '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so' -
> /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so:
> undefined symbol: zend_ce_iterator in /home/pimpms/public_html/test.php
> on line 4
>
>
> PHP IMagick will not load!
>
>
>
>
> This is the output for ldd -r for imagick.so. There are a number of
> dependencies that I don't recognize
> and I think there may be other packages that need to be installed.
>
>
>
> undefined symbol: zend_ce_iterator
> (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
>
> undefined symbol: core_globals
> (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
>
> undefined symbol: executor_globals
> (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
>
> undefined symbol: zval_add_ref
> (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
>
> undefined symbol: OnUpdateBool
> (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
>
> undefined symbol: zend_hash_internal_pointer_reset_ex
>
> ... (and the list goes on)
>
> Any help would be appreciated.
>
> Thanks,
> Mark
>
>
> _________________________________________________________________
> It's easy to add contacts from Facebook and other social sites through
> Windows Live™ Messenger. Learn how.
> https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow



Have you tried restarting apache? its usually required if you've made
changes
-- 

Bastien

Cat, the other other white meat

--- End Message ---

Reply via email to