php-general Digest 2 Jul 2006 08:05:05 -0000 Issue 4217

Topics (messages 239057 through 239066):

WebDav via PHP
        239057 by: Martin Staiger

Re: global class instance
        239058 by: Larry Garfield

Re: Sad PHP Poem
        239059 by: Martin Marques
        239060 by: Ryan A
        239063 by: Micky Hulse

Re: Recursing sessions?
        239061 by: Mark

IMAGECOPYRESIZED(); DOESN'T WORK...
        239062 by: BBC
        239064 by: tedd

Job Opportunities in Web Design company
        239065 by: Ahmed Abdel-Aliem
        239066 by: Kevin Waterson

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 ---
Dear group,

Apache's WebDav-features do not fulfill our requirements concerning 
file-management since we have to manage complex access-rights to files by 
our own logic. HOW can we create our own WebDav-Server with PHP ? Are there 
any alternatives? I couldn't find any examples so far ...

Thankful for any useful hint,
Marc 

--- End Message ---
--- Begin Message ---
You can simulate singletons in PHP 4 as well.  But you've just eliminated 
every option for accessing a non-local object inside a function.  You've got 
4 options.  Pick one, but I'm fairly certain there is no magical 5th. :-)

On Saturday 01 July 2006 13:02, sempsteen wrote:
> Thanks Larry but i'm working on PHP4. Also you don't use $a directly.
> Instead of writing
> $a =  A::instance();
> i can write:
> global $a
>
> both takes two steps which is not what i wanted.
>
> On 7/1/06, Larry Garfield <[EMAIL PROTECTED]> wrote:
> > It sounds like your only other option is a singleton, which works only if
> > you're comfortable having only one instance of a, ever.  The following
> > code also only works in PHP 5.
> >
> > class A {
> >   static obj;
> >
> >   static instance() {
> >     if (! self::obj instanceof A) {
> >       self::obj = new A();
> >     }
> >     return self::obj;
> >   }
> > }
> >
> > class B {
> >   function print() {
> >     $a =  A::instance();
> >     $a->print();
> >   }
> > }
> >
> > (Possibly a syntax error in the above, but hopefully you get the idea.)
> >
> > On Saturday 01 July 2006 04:56, sempsteen wrote:
> > > hi all,
> > > i wonder if there is a way of creating an instance of a class and
> > > reach it direcly from any scope in PHP4. basically what i want is:
> > >
> > > class a
> > > {
> > >    function print()
> > >    {
> > >       echo 'sth';
> > >    }
> > > }
> > >
> > > $a = new a();
> > >
> > > and use this "a" instance from anywhere ex, in a function that is a
> > > method of another class.
> > >
> > > class b
> > > {
> > >    function print()
> > >    {
> > >       $a->print();
> > >    }
> > > }
> > >
> > > i don't want to:
> > >    - declare global $foo,
> > >    - use pre-defined $GLOBALS variable,
> > >    - or use a::print
> > >
> > > thanks.
> >
> > --
> > Larry Garfield                  AIM: LOLG42
> > [EMAIL PROTECTED]          ICQ: 6817012
> >
> > "If nature has made any one thing less susceptible than all others of
> > exclusive property, it is the action of the thinking power called an
> > idea, which an individual may exclusively possess as long as he keeps it
> > to himself; but the moment it is divulged, it forces itself into the
> > possession of every one, and the receiver cannot dispossess himself of
> > it."  -- Thomas Jefferson
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Larry Garfield                  AIM: LOLG42
[EMAIL PROTECTED]               ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

--- End Message ---
--- Begin Message ---
On Sat, 1 Jul 2006 07:03:54 -0700 (PDT), Ryan A <[EMAIL PROTECTED]> wrote:
> 
>> Soccer... what's that?
>>
>> tedd
> 
> Its a mis-spelling of two words taken out of context,
> its actually "sock her" and meant for Hillary Clinton

Actually, Hillary wasn't the one "sucking". ;-)

--
---------------------------------------------------------
Lic. Martín Marqués         |   SELECT 'mmarques' || 
Centro de Telemática        |       '@' || 'unl.edu.ar';
Universidad Nacional        |   DBA, Programador, 
    del Litoral             |   Administrador
---------------------------------------------------------

--- End Message ---
--- Begin Message ---

--- Martin Marques <[email protected]> wrote:

> 
> On Sat, 1 Jul 2006 07:03:54 -0700 (PDT), Ryan A
> <[EMAIL PROTECTED]> wrote:
> > 
> >> Soccer... what's that?
> >>
> >> tedd
> > 
> > Its a mis-spelling of two words taken out of
> context,
> > its actually "sock her" and meant for Hillary
> Clinton
> 
> Actually, Hillary wasn't the one "sucking". ;-)


Which was the problem....
By the time Monica came in...Hillary should have
already been on her knees shouting...i got it, i got
it,you just go back to doing the paperwork 

:oD

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--- End Message ---
--- Begin Message ---
Ryan A wrote:
Its a mis-spelling of two words taken out of context,
its actually "sock her" and meant for Hillary Clinton

Hehehe, n1!  :)

--- End Message ---
--- Begin Message ---
Richard Lynch wrote:

> On Fri, June 30, 2006 11:11 am, Mark wrote:
>> Here is a problem I am seeing,
>>
>> A browser hits a site the uses frames, for the sake of argument, lets
>> call
>> this site a squirrelmail web mail server.
>>
>> The browser seems to spawn a number of requests at the same time (I
>> think
>> one for each content frame), I get  multiple PS_READ_FUNC calls, and
>> then
>> get multiple PS_WRITE_FUNC calls.
>>
>> Last PS_WRITE_FUNC call wins.
>>
>> Anyone else see this?
> 
> Of course.
> 
>> Anyone have a good fix?
> 
> As I recall, you HAVE to get the OUTER php page, with the FRAMESET in
> it, to start the session, and then in that page, all the FRAME page
> requests will be using the same session, because it has already been
> established.
> 
> I think I even went so far as embedding the session_id in the URLs for
> the FRAME SRC="...SID=SID" and then I made sure each frame page was
> using that ID.
> 

That doesn't fix the problem at all. The problem isn't the "creation" of the
session, it is the simultaneous access of the session data without
synchronization. When a browser a frame set, it will request all the frame
at once.

If the frames do any sort of processing on the session information, as is
the case with squirrelmail, the last session to exit will overwrite all the
changes made by prior frames. This can corrupt session information or lose
versions of information. 

It is a HUGE problem that I don't see ANYONE addressing.

--- End Message ---
--- Begin Message ---
I thought I have typed this function correctly, and I didn't know why my
browser couldn't run these script :
<?php
$filename = 'test.jpg';
$percent = 0.5;
header('Content-type: image/jpeg');
list($width, $height) = getimagesize($filename);
$newwidth = $width * $percent;
$newheight = $height * $percent;
$thumb = imagecreatetruecolor($newwidth, $newheight);  //1*ERROR
$source = imagecreatefromjpeg($filename);              //2*ERROR
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width,
$height); //3*ERROR
imagejpeg($thumb);
?>
and the error output is : "call to undefined function"
btw, I'm using PHP 4.1.1. Is there any possible that my PHP version can not
run those script?
So, what is the best solution for my problem..?

                        Best Regards
============BBC============
                     **o<0>o**

--- End Message ---
--- Begin Message ---
At 4:15 PM -0700 7/1/06, BBC wrote:
>I thought I have typed this function correctly, and I didn't know why my
>browser couldn't run these script :
><?php
>$filename = 'test.jpg';
>$percent = 0.5;
>header('Content-type: image/jpeg');
>list($width, $height) = getimagesize($filename);
>$newwidth = $width * $percent;
>$newheight = $height * $percent;
>$thumb = imagecreatetruecolor($newwidth, $newheight);  //1*ERROR
>$source = imagecreatefromjpeg($filename);              //2*ERROR
>imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width,
>$height); //3*ERROR
>imagejpeg($thumb);
>?>
>and the error output is : "call to undefined function"
>btw, I'm using PHP 4.1.1. Is there any possible that my PHP version can not
>run those script?
>So, what is the best solution for my problem..?
>
>                        Best Regards
>============BBC============
>                     **o<0>o**

Did you check if you had the required "gd" extension? I believe someone already 
told you and how to check.

tedd
-- 
------------------------------------------------------------------------------------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Safari Studio Inc. is looking for qualified
designers/developers for a full time/part time
position. This is position is available for
designers/developers that want to work in a company
that is growing.

click here to fill in the application form
http://www.safaristudio.net/hr/

Job Number 1 : PHP web developer
Job Type : Full Time

Job Description:

We need an experienced PHP/MySQL developer (based
anywhere) for long term work with our growing company.
The person hired will work for us Full time.

Qualifications
* Intermediate level PHP/MySQL programmer.
* Have experience in working with e-commerce.
* Fluent English is required.
* XHTML/CSS layout and design.
* Solid references and examples of previous work.
* Ability to come up with novel solutions.
* Fast learner. Fast worker.
* Dedicated.
* Easy to talk to, with a positive attitude.

Job Description

* Design and code a wide range of PHP and PHP/MySQL
applications.
* Modify a range of existing PHP and PHP/MySQL
applications.
* Full time commitment to our projects. Must be
reliable, trust-worthy and have a high level of
integrity.
* Must be available at all times during your shift on
Instant Messenger .
* Install/upgrade PHP applications.
* Must be able to multi-task, work independently, and
communicate.
We need an experienced PHP/MySQL developer (based
anywhere) for long term work with our growing company.
The person hired will work remotely for us on a
project basis. Hourly rate is nrgotiable.

click here to fill in the application form
http://www.safaristudio.net/hr/

Job Number 2 : Graphic/Web Designer
Job Type : Full Time

We want to hire multiple Designers who are experts
with the following:
Flash 8
Adobe Photoshop
Slicing Design in HTML

We are looking for someone that can prove themselves
through working project based. You will be graded on
being reliable, efficient and on time.

Multiple Designers will be selected. Pay will be great
as long as you can prove yourself to be the cream of
the crop. Individuals who demonstrate excellent
quality of work will be hired as full time.

Requirements:
- Expert level knowledge of the above mentioned
technologies
- Ability to develop an application based on a
functional description
- Available via an instant messenger MSN/Yahoo/etc.
- A reliable, high-speed DSL. internet connection
- Good English communication skills, both verbal and
grammar
- A telephone or Mobile
- Willingness to give frequent updates on work being
done and maintain a consistent work schedule
- Good organizational skills and work habits
- Resume and work samples.

click here to fill in the application form
http://www.safaristudio.net/hr/

Job Number 3: Marketing Representative
Job Type : Full Time

Requirements:
- fair level knowledge of the web design technologies
- Good Looking
- Negotiation Skills
- Good English communication skills, both verbal and
grammar
- A telephone or Mobile
- Good organizational skills and work habits

Please DO NOT apply if you:
- Do not meet any of the above requirements
- Are a company or group of individuals, we will only
hire individuals to perform contract work
- Are a recruiter, we will only hire individuals with
whom we can work with directly
click here to fill in the application form
http://www.safaristudio.net/hr/

SafariStudio Inc.
HR Department
http://www.safaristudio.net



--
Ahmed Abdel-Aliem
Web Developer
www.SafariStudio.net
+20101108551
registered Linux user number 382789

--- End Message ---
--- Begin Message ---
This one time, at band camp, "Ahmed Abdel-Aliem" <[EMAIL PROTECTED]> wrote:


> Requirements:
blah blah blah....

How much?

Kevin

-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

--- End Message ---

Reply via email to