php-general Digest 4 Jul 2006 00:54:28 -0000 Issue 4220

Topics (messages 239088 through 239104):

Drag 'n Drop - File Upload
        239088 by: Martin Staiger
        239089 by: Mariano Guadagnini
        239090 by: Jeffery Fernandez
        239093 by: Richard Lynch

Re: Templates, PHP Frameworks, and DB Abstraction?
        239091 by: Robert Cummings
        239092 by: Jens Kleikamp
        239100 by: Jay Paulson
        239101 by: Lester Caine

Re: Printing in php
        239094 by: Richard Lynch

Re: XUL and PHP - what's your opinion?
        239095 by: Daniel Orner

[Announcement] Sparse 1.05b Released
        239096 by: Daniel Orner

Re: Recursing sessions?
        239097 by: Richard Lynch
        239102 by: markw.mohawksoft.com

Re: WebDav via PHP
        239098 by: Richard Lynch

Re: global class instance
        239099 by: Richard Lynch

Re: Problems installing 5.1.4
        239103 by: Ashley M. Kirchner
        239104 by: Chris

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:
        php-general@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Dear group,

we would like to have the possibility to upload files not via HTML-form but 
via Drag 'n Drop of files. WebDav seem to offer potentials ... but HOW? Are 
there any examples existing? Are there alternatives existing?

Thanks,
Marc 

--- End Message ---
--- Begin Message --- I've seen some places using a java applet for this. A good example is the course uploading interface of Blackboard LMS.

Martin Staiger wrote:
Dear group,

we would like to have the possibility to upload files not via HTML-form but via Drag 'n Drop of files. WebDav seem to offer potentials ... but HOW? Are there any examples existing? Are there alternatives existing?

Thanks,
Marc



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.8/380 - Release Date: 30/06/2006

--- End Message ---
--- Begin Message ---
On Mon, 3 Jul 2006 11:09 pm, Mariano Guadagnini wrote:
> I've seen some places using a java applet for this. A good example is
> the course uploading interface of Blackboard LMS.
>
> Martin Staiger wrote:
> > Dear group,
> >
> > we would like to have the possibility to upload files not via HTML-form
> > but via Drag 'n Drop of files. WebDav seem to offer potentials ... but
> > HOW? Are there any examples existing? Are there alternatives existing?
> >
> > Thanks,
> > Marc
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.8/380 - Release Date: 30/06/2006


Its called RadUpload .. works like a charm with all the bells and whistles... 
but hey its Java 

cheers,
Jeffery

Attachment: pgpYBZPzO2c6j.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
On Mon, July 3, 2006 7:55 am, Martin Staiger wrote:
> we would like to have the possibility to upload files not via
> HTML-form but
> via Drag 'n Drop of files. WebDav seem to offer potentials ... but
> HOW? Are
> there any examples existing? Are there alternatives existing?

If you can install PHP on their desktop computer, you could easily
"watch" a folder for new/changed items and upload them at your
leisure...

But otherwise, PHP can't be the "answer" to your question because it's
not even in the picture frame.

A tie-in from WebDAV / Java/ Javascript or some custom windows
drag-n-drop application might be viable, but, really, you need to ask
about WebDAV in a WebDAV miliue.

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
On Mon, 2006-07-03 at 08:37, Jens Kleikamp wrote:
> Jay Paulson wrote:
> > I'd like to get some feedback on what the list thinks is a good template
> > engine other than smarty.
> > 
> 
> I like ezTemplate. (E_STRICT)

YOU DO?? I hope it's changed then from the one used on a site I'm now
maintaining. I find it to be a nightmare. You can't just move around
blocks of content because the template's block structure requires you
maintain the nesting association... thus you need to go back to the code
every time you move a block of content to synch up the block
declarations.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
On Mon, 2006-07-03 at 08:37, Jens Kleikamp wrote:
Jay Paulson wrote:
I'd like to get some feedback on what the list thinks is a good template
engine other than smarty.

I like ezTemplate. (E_STRICT)

YOU DO?? I hope it's changed then from the one used on a site I'm now
maintaining. I find it to be a nightmare. You can't just move around
blocks of content because the template's block structure requires you
maintain the nesting association... thus you need to go back to the code
every time you move a block of content to synch up the block
declarations.

Cheers,
Rob.
Hi Rob,

Sorry, typo, I meant ezcTemplate. Maybe ezTemplate is a package within ezPublish 3.x cms, which I don´t know. ( not 100% sure )

The lately released ezcTemplate does the job very well, I didn´t experienced the issue you described.

Cheers,
Jens

--- End Message ---
--- Begin Message ---
>>> I'd like to get some feedback on what the list thinks is a good template
>>> engine other than smarty.
>>> 
>>> I'd also like to do some quick prototyping using a PHP framework does anyone
>>> have any recommendations for one that is easy to pick up and run with?
>>> 
>>> Finally, does anyone have any suggestions for a good PHP database
>>> abstraction library?
>> 
>> You may want to take a look at this post for a few recommendations:
>> 
>> http://www.phpclasses.org/blog/post/52-Recommended-PHP-frameworks.html
> 
> That is a nice sales pitch Manuel but takes  bit of digesting.
> 
> Jay - This is a 'how long is a piece of string' type question. So there
> are as many answers as there are developers here ;)
> 
> I've only ever used Smarty - and not seen anything yet to replace it.
> 
> PDO is being pushed as a DB Abstraction library, but it only 'abstracts'
> the calls to PHP, it does nothing to abstract the SQL if you want a
> truly generic solution, if you need one, but if you don't then why
> bother with abstraction ;)

Thinking about this paragraph above makes me wonder if with that way of
looking at it would one need a template engine?  For example, why not just
separate the business logic and the HTML as much as possible and then only
imbed PHP in HTML to display the variables (<?= $var ?>)?? Then at the end
of your PHP code that does all the logic just have include() calls to the
.php files you want to parse and pass all the variables you got with your
business logic above the include calls? Hm.  Just a thought.
 
> I've been running with bitweaver now for some time, and things are
> starting to come together. It uses Smarty and ADOdb and can install
> itself on a range of database engines without any 'manual intervention'.
> So I am happy that it is a generic framework that is easy to run with.
> 
> www.bitweaver.org

--- End Message ---
--- Begin Message ---
Jay Paulson wrote:

Thinking about this paragraph above makes me wonder if with that way of
looking at it would one need a template engine?  For example, why not just
separate the business logic and the HTML as much as possible and then only
imbed PHP in HTML to display the variables (<?= $var ?>)?? Then at the end
of your PHP code that does all the logic just have include() calls to the
.php files you want to parse and pass all the variables you got with your
business logic above the include calls? Hm.  Just a thought.

When I look at the complexity of the installer and the user management system in bitweaver, then the answer is probably yes. But then I look at the code that provides the mapserver client and I'm glad that the rest of the 'variables' are taken care of :)

--
Lester Caine - G8HFL
-----------------------------
L.S.Caine Electronic Services - http://home.lsces.co.uk
Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php

--- End Message ---
--- Begin Message ---
On Mon, July 3, 2006 3:53 am, weetat wrote:
>   I am using PHP 4.3.2 and MYSQL .
>
>   I need to do printing function in php .
>   Basically , in my client web page , it will display the list of
> items
> on the html page. And i have a print button , so that the user can
> print
> the html page to their local printer.
>
> Any way how to do this in PHP ?

How many times on this very list have you been told that PHP runs on
the server?

Think about it.

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
Ray Hauge wrote:
I keep hearing about XUL, and I was wondering what the opinion of the masses was on this subject for an internal application where the browser is pre-determined.

From my point of view I, having only read about it and not used it, is that XUL would make your applications look more like a desktop application. Some of the widgets they provide come in handy, like tables that can sort themselves instead of using AJAX/another page hit. The down sides that I see is there would be a 99.999% chance of a learning curve for any new developers that come into the company. Also, I'm not sure if XUL would cause extra programming overhead than regular HTML/JS.

XUL definitely contains a huge learning overhead plus a lot of getting used to. In Firefox, at least, XUL is very difficult to debug and has given me a lot of headaches. On the other hand, you can do far, FAR more with it than with Javascript, including reading and writing to local files and altering the browser itself. If you want to release an extension for Firefox, you'll have a lot more freedom with XUL if you can get over the initial hump and your program won't necessarily be *too* big.

--Daniel

--
Sparse - a new way to write MySQL-based programs with little to no actual programming. Save yourself time and effort!
http://sparse-php.sourceforge.net/

--- End Message ---
--- Begin Message --- Yep, another beta release of Sparse, my framework for MySQL-based programs without the programming.

A significant new release, which introduces some changes that are not compatible with previous versions. Upgrading isn't hard, don't worry! New features include a support for sorting data and for printing out the number of results, further useful attributes for quick templates, and a "tag referencing" system which acts similar to CSS classes in that it allows you to reuse attributes from previous tags, or to import them entirely from a separate page. You can define default attributes for all tags as well as "classes" of attributes. As usual, testers are needed! Give it a whirl!

--Daniel

--
Sparse - a new way to write MySQL-based programs with little to no actual programming. Save yourself time and effort!
http://sparse-php.sourceforge.net/

--- End Message ---
--- Begin Message ---
On Sat, July 1, 2006 5:30 pm, Mark wrote:
> 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.

Ah.

Now I know which question you are asking...

The built-in PHP session handler handles this by LOCKING the session
for writing until it is closed and done for each request.

The simplistic example for user-defined handling sessions in the
manual does not, in fact, address this directly.

The User Contributed Notes, last I checked, did have some rather sarky
comments about this issue, and some suggestions for how to fix it.

If you are using a database, for example, locking via some mechanism
in the DB is probably a viable solution.  Wrapping it all in a
Transaction is probably overkill, for example, but would work.

Of course, the simplest solution remains:  Don't use frames.

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
> On Sat, July 1, 2006 5:30 pm, Mark wrote:
>> 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.
>
> Ah.
>
> Now I know which question you are asking...
>
> The built-in PHP session handler handles this by LOCKING the session
> for writing until it is closed and done for each request.
>
> The simplistic example for user-defined handling sessions in the
> manual does not, in fact, address this directly.
>
> The User Contributed Notes, last I checked, did have some rather sarky
> comments about this issue, and some suggestions for how to fix it.
>
> If you are using a database, for example, locking via some mechanism
> in the DB is probably a viable solution.  Wrapping it all in a
> Transaction is probably overkill, for example, but would work.
>
> Of course, the simplest solution remains:  Don't use frames.

In the world of <sarcasm>"Web 2.0"</sarcasm> This problem is only going to
get worse.

I think I have a solution, MCache, which is based on MSession, but I don't
see the core PHP group liking it too much.

--- End Message ---
--- Begin Message ---
Did you search on php.net using "online documentation" in the popup menu?

Did you find "WebDAV" in this page:

http://us3.php.net/manual/en/ini.core.php

You now know as much about this PHP/WebDAV thingie a I do... :-)

On Sat, July 1, 2006 1:10 pm, Martin Staiger wrote:
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
On Sat, July 1, 2006 4:56 am, sempsteen wrote:
> 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

No.

Well, okay, maybe if you installed Runkit and declared your own
variable as a SUPERGLOBAL.  Maybe.

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
Richard Lynch wrote:
Looks to me like PEAR is trying to phone home to download more PEAR
stuff to install PEAR stuff...

Are you connected to the internet?
   Yep, 24/7.

--- End Message ---
--- Begin Message ---
Ashley M. Kirchner wrote:

I'm trying to get v5.1.4 installed on my server and running into something of a mystery. I can configure and run make with no problem. When I run 'make install' however, it starts the process, installing the dynamic modules, PHP SAPI module, make the necessary changes in httpd.conf and moves on to installing the other pieces:

--------------------
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/share/man/man1/
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20050922/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
 program: phpize
 program: php-config
Installing man pages:             /usr/share/man/man1/
 page: phpize.1
 page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
--------------------

That's where it just dies. Dies in the sense that, it just sits there. Doesn't seem to be doing anything at all. My only recourse at that point is to hit CTRL-C.

   Now, looking in /usr/local/lib/php I see the following:

--------------------
[200] 19:41:56 <[EMAIL PROTECTED]:/usr/local/lib/php> ls -al
total 20
drwxr-xr-x  4 root root 4096 Jul  2 18:59 ./
drwxr-xr-x  5 root root 4096 Jul  2 18:59 ../
drwxr-xr-x  2 root root 4096 Jul  2 18:59 build/
drwxr-xr-x  3 root root 4096 Jul  2 18:59 extensions/
[201] 19:41:58 <[EMAIL PROTECTED]:/usr/local/lib/php>
--------------------

   Looking at running processes (related to this install) I get this:

--------------------
17828 pts/2    S+     0:00 make install
25312 pts/2 S+ 0:00 /bin/sh -c if test -f pear/install-pear-nozlib.phar && /usr/local/src/apache/php-5.1.4/build/shtool mkdir -p /usr/local/lib/php; then make -s install-pear-installer; else cat /usr/local/src/apache/php-5.1.4/pear/install-pear.txt; fi
25329 pts/2    S+     0:00 make -s install-pear-installer
25330 pts/2 S+ 0:00 /usr/local/src/apache/php-5.1.4/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 -derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
--------------------

   It's just sitting there, doing nothing.

What's going on here? How do I even start figuring out why it won't finish the install?

The install list might be a better place to ask, they will have a much better idea of where to start working out what's going wrong.

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---

Reply via email to