Re: [PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread David Harkness
All of the above with a clarification: they are instance methods which you are calling statically. The object is not instantiated in this case. PHP allows this but will issue an E_STRICT warning. To remove the warning just add "static" before each of them, assuming they are only ever called statica

Re: [PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread Paul M Foster
On Thu, Jun 09, 2011 at 03:42:49PM -0600, George Langley wrote: > Hi all. Am fixing some inherited code, and the previous coder created a > class, ie: > > class myClass { > function &doThis($passedVar) { > doSomething; > } > > function &doThat($anotherVar)

Re: [PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread Richard Quadling
On 9 June 2011 22:42, George Langley wrote: >        Hi all. Am fixing some inherited code, and the previous coder created > a class, ie: > > class myClass { >        function &doThis($passedVar) { >                doSomething; >        } > >        function &doThat($anotherVar) { >              

[PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread George Langley
Hi all. Am fixing some inherited code, and the previous coder created a class, ie: class myClass { function &doThis($passedVar) { doSomething; } function &doThat($anotherVar) { doSomethingElse; } } BUT, I don't see anywhere

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Alex Nikitin
Actually if you want a very simple way, with a little JS, you can b64 encode the file and fill in the file field in the form with it (you can hide it or dynamically tack it on or something), so that you get everything when you submit the form including the file (you just gotta make a file back out

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread matty jones
I believe this is it. It is part of the mediawiki extension that I used as a starting point for what I need it to do. I am slowly getting better at PHP, this was dropped into my lap and I don't have much experience yet with PHP, I come from bash/sed/awk land. This file is structuredinput.php, th

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Jim Lucas
On 6/9/2011 8:07 AM, matty jones wrote: > The two forms work fine by themselves, my issue is getting to two of them to > work with together, I don't even care if you need to upload the image > seperately from submitting the text data as long as it is all on the same > page. Thanks for the thoughts

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread matty jones
The two forms work fine by themselves, my issue is getting to two of them to work with together, I don't even care if you need to upload the image seperately from submitting the text data as long as it is all on the same page. Thanks for the thoughts on jQuerry, I will look into it. On Thu, Jun 9

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Jim Lucas
On 6/9/2011 5:37 AM, matty jones wrote: > formEl.action += '&title=' + formEl['_title'].value; The only thing I see inconsistent is the above line. But then again, it could be right. You might be looking for $_GET['title'] in your processing page instead of $_GET['_title'] -- PHP Gener

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Alex Nikitin
On Thu, Jun 9, 2011 at 8:37 AM, matty jones wrote: > I have a mediawiki extension that allows me to design a form in the wiki to > facilitate data entry into the wiki and it works good except that I also > want to be able to up load images and take the file location/name and enter > that into the

[PHP] trying to combine two forms into a single form

2011-06-09 Thread matty jones
I have a mediawiki extension that allows me to design a form in the wiki to facilitate data entry into the wiki and it works good except that I also want to be able to up load images and take the file location/name and enter that into the wiki so that the image displays on the page as well. I foun

RE: [PHP] Can't use class "'DOMDocument"

2011-06-09 Thread admin
http://www.php.net/manual/en/dom.requirements.php They usually post the requirements or dependencies if there are any. Richard L. Buskirk -Original Message- From: Adam Tong [mailto:adam.to...@gmail.com] Sent: Wednesday, June 08, 2011 10:30 PM To: ad...@buskirkgraphics.com Cc: php-gen