Re: [PHP] How to work with Webservices (.asmx) server

2009-03-11 Thread Thijs Lensselink
Hoi Anton, Great job on the Dutch part :) But please keep the thread on list. You have set the server location when you create a SOAP client instance. Take a look at : http://php.net/manual/en/soapclient.soapclient.php So when instantiating the SOAP client object you pass as a second parameter.

RE: [PHP] More PHP Includes

2009-03-11 Thread Mayer, Jonathan
-Original Message- From: Gary [mailto:gwp...@ptd.net] Sent: 11 March 2009 00:17 To: php-general@lists.php.net Subject: Re: [PHP] More PHP Includes >Jochem > >Thanks for your reply, the project seven and DW was just for a point of >information, same as if you have an issue with a comput

Re: [PHP] More PHP Includes

2009-03-11 Thread 9el
On Wed, Mar 11, 2009 at 6:16 AM, Gary wrote: > Jochem > > Thanks for your reply, the project seven and DW was just for a point of > information, same as if you have an issue with a computer you generally > find > it a good idea to list your operating system and other pertinent facts. What Joche

Re: [PHP] How to work with Webservices (.asmx) server

2009-03-11 Thread Anton Heuschen
Thanks Thijs. My Father is from the Netherlands, but I wont try it all in Dutch myself... Ok slowly but surely and with your advice I start making sense of this, I am still playing around with some tests and reading up. It should be real clear and obvious once you get a working example I guess.

Re: [PHP] Spam on the list?

2009-03-11 Thread Stuart
2009/3/10 9el > > 2009/3/11 דניאל דנון > > > From time to time, I usually get a message of "earn money from home" or > > things like that, and in the bottom, it says, > > > > "This email has been written and proved to be in compliance with the > > recently established can-spam act law in US. We

Re: [PHP] Opendir on site root directory?

2009-03-11 Thread Stuart
2009/3/11 Clancy > On Tue, 10 Mar 2009 15:12:57 +, stut...@gmail.com (Stuart) wrote: > > >Please keep the discussion on-list. > > > >2009/3/10 Clancy > > > >> Hi, > >> > >> After I posted my message to the group today I realised that my program > >> achieves its > >> almost infinite flexibil

Re: [PHP] Handling (very) large files with PHP

2009-03-11 Thread Stuart
2009/3/11 דניאל דנון > *Handling (very) large files with PHP* > > Hello, I am planning a project in PHP, and I have few unsolved issues that > I'd like you to help me... > > The project will start by loading a file of about 50GB. > The file has a many objects with a pattern, for example, > > > Na

Re: [PHP] How to work with Webservices (.asmx) server

2009-03-11 Thread Thijs Lensselink
Anton Heuschen wrote: > Thanks Thijs. > > My Father is from the Netherlands, but I wont try it all in Dutch myself... > > Ok slowly but surely and with your advice I start making sense of this, I am > still playing around with some tests and reading up. It should be real clear > and obvious once

Re: [PHP] Handling (very) large files with PHP

2009-03-11 Thread דניאל דנון
Hello all and thank for the answers. Just to clarify I don't know C yet, so I hope I wont have to learn C to do it. But about the insertions - Yes, I'll probably use Perl if you say its fastest. Since the insertion will probably happen once or once a month, I don't mind if it will take even a week

[PHP] numerically named member variables and objects

2009-03-11 Thread Dan Field
As far as I was aware, member variable and object names had to start with a non integer chracter, however I am utilising a JSON lib which is providing me with the following resultset. As you can see a member class member is numerically named and I am unable to address it in the usual way. I

Re: [PHP] How to work with Webservices (.asmx) server

2009-03-11 Thread Phpster
If you're not Dutch you're not much! Holland rocks! From a fellow dutchie, Bastien Sent from my iPod On Mar 11, 2009, at 4:47, Anton Heuschen wrote: Thanks Thijs. My Father is from the Netherlands, but I wont try it all in Dutch myself... Ok slowly but surely and with your advice I sta

Re: [PHP] Working directory of PHP pages?

2009-03-11 Thread Per Jessen
Clancy wrote: > It is my understanding that when you open a page the PHP server looks > for index.php in the site root directory, and loads it. A typical Apache configuration will have 'DirectoryIndex index' and will look for 'index' when there is no specific file given. It looks in whichever d

Re: [PHP] numerically named member variables and objects

2009-03-11 Thread Dan Field
On 11 Mar 2009, at 11:42, Dan Field wrote: As far as I was aware, member variable and object names had to start with a non integer chracter, however I am utilising a JSON lib which is providing me with the following resultset. As you can see a member class member is numerically named and I

RE: [PHP] Include File Errors with Comments

2009-03-11 Thread Bob McConnell
From: Patrick Moloney > > I have a simple web site with a simple page that all works well, > although I have had a similar problem a couple of times that seems to be > caused by Comment Lines in the included files. I wonder if I have it > entirely right. > All my files are .php files, but almos

[PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
Hi, I wondering what is the difference between include(), and eval(' ?>'.file_get_content().'

Re: [PHP] How to work with Webservices (.asmx) server

2009-03-11 Thread Anton Heuschen
Who else eat Chocolate or (sugar even) on bread and eat liquorice sweets full of salt ... having Dutch family and living with the culture gets lots of frowns from South Africans here ...when you sit down and start sprinkling sugar on your bread (if the budget is tight and you cant afford the good s

[PHP] This code using _GET exploitable

2009-03-11 Thread filtered
Hi, we have script containing and http://example.com""; />'; } ?> Is this code prone to XSS attacks or for attacking the local webserver and if so, how? $cam isn't used anywhere else. -a -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 13:07 +0100, Sándor Tamás (HostWare Kft.) wrote: > Hi, > > I wondering what is the difference between include(), and eval(' > ?>'.file_get_content().' > If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator or

Re: [PHP] Handling (very) large files with PHP

2009-03-11 Thread Virgilio Quilario
> *Handling (very) large files with PHP* > > Hello, I am planning a project in PHP, and I have few unsolved issues that > I'd like you to help me... > > The project will start by loading a file of about 50GB. > The file has a many objects with a pattern, for example, > > > Name: Joe > Joe likes to

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread Stuart
2009/3/11 filtered > Hi, > > we have script containing > > > > and > >$cam = $_GET['cam']; > >if ($cam == '1') { >echo 'http://example.com""; />'; >} > ?> > > Is this code prone to XSS attacks or for attacking the local webserver > and if so, how? > >

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread Jochem Maas
filtered schreef: > Hi, > > we have script containing > > let say I do: example.com/yourscript.php?studio=alert('I am an evil haxor'); excusing the fact that the query is not urlencoded, what happens on your site (replace domain and script name to match your site/script) > > and > >

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 08:33 -0400, Robert Cummings wrote: > On Wed, 2009-03-11 at 13:07 +0100, Sándor Tamás (HostWare Kft.) wrote: > > Hi, > > > > I wondering what is the difference between include(), and eval(' > > ?>'.file_get_content().' > > > If there is something I should be aware, please,

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread Michael A. Peters
filtered wrote: Hi, we have script containing and http://example.com""; />'; } ?> Is this code prone to XSS attacks or for attacking the local webserver and if so, how? $cam isn't used anywhere else. -a It certainly is XSS vulnerable through a reflective XSS attack. cl

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread filtered
On Wed, Mar 11, 2009 at 13:44, Jochem Maas wrote: > filtered schreef: >> Hi, >> >> we have script containing >> >>   > > let say I do: > > example.com/yourscript.php?studio=alert('I am > an evil haxor'); > > excusing the fact that the query is not urlencoded, what happens on your site > (replace

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Virgilio Quilario
>> Hi, >> >> I wondering what is the difference between include(), and eval(' >> ?>'.file_get_content().' > >> If there is something I should be aware, please, let me know. > > Use include since it allows a cache like eAccelerator or APC to work. > Eval never gets cached. Also, include let's the e

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread Michael A. Peters
filtered wrote: Hi, we have script containing http://www.yourwebsite.org/yourpage.php?studio=alert('xss'); and http://example.com""; />'; } ?> That I don't think is exploitable since you are not doing anything with cam directly but are only acting if it is a string ma

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread Stuart
Please include the list when replying unless you're looking to hire me! 2009/3/11 filtered > On Wed, Mar 11, 2009 at 13:41, Stuart wrote: > > 2009/3/11 filtered > > > > > $_GET['cam'] looks fine. $_GET['studio'] is not. > > I could build a URL that would output a javascript tag to do anything

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 20:49 +0800, Virgilio Quilario wrote: > >> Hi, > >> > >> I wondering what is the difference between include(), and eval(' > >> ?>'.file_get_content().' >> > >> If there is something I should be aware, please, let me know. > > > > Use include since it allows a cache like eAcc

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread Virgilio Quilario
> filtered schreef: >> Hi, >> >> we have script containing >> >>   > > let say I do: > > example.com/yourscript.php?studio=alert('I am > an evil haxor'); > > excusing the fact that the query is not urlencoded, what happens on your site > (replace domain and script name to match your site/script) >

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread Michael A. Peters
filtered wrote: On Wed, Mar 11, 2009 at 13:44, Jochem Maas wrote: filtered schreef: Hi, we have script containing let say I do: example.com/yourscript.php?studio=alert('I am an evil haxor'); excusing the fact that the query is not urlencoded, what happens on your site (replace domain a

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are the same. But! If the included pages contain functions, classes, etc. With eval(), can I use them? W

Re: [PHP] PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Virgilio Quilario
> Hi all, > > I wrote a PHP script running in Apache which takes more than 30 seconds to > complete. It uses set_time_limit() to extend the time it is allowed to run. > The script generates thumbnails from a list of images. Upon completion, the > script redirects the browser to another page using H

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 14:03 +0100, Sándor Tamás (HostWare Kft.) wrote: > Yes, Rob is right. My original question is about the difference between the > processing of a file-based site with include() OR eval(). In that case, if I > understood it correctly, the results are the same. > > But! If the

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread haliphax
On Wed, Mar 11, 2009 at 7:56 AM, Michael A. Peters wrote: > filtered wrote: >> >> On Wed, Mar 11, 2009 at 13:44, Jochem Maas wrote: >>> >>> filtered schreef: Hi, we have script containing   >>> >>> let say I do: >>> >>> example.com/yourscript.php?studio=alert('I >>>

[PHP] non static function called as static one

2009-03-11 Thread Olivier Doucet
Hello everyone, I'm wondering if the following behaviour is a bug or a feature. The case is quite complex, so let me explain my point of view. here is the source : test(); //output: "MySecondTest" ?> Let me explain : In this case, $this is MySecondTest, which is relevant as it is the last object

Re: [PHP] More PHP Includes

2009-03-11 Thread tedd
At 9:59 AM -0400 3/10/09, Gary wrote: Thanks again for all the help. I created a simple page of all includes (header, menu, 3 columns). I mixed the file types up. The menu (projectseven PMM) I saved as a library item, works fine. Had an HTML file in there, but I am guessing that having 2 page

Re: [PHP] non static function called as static one

2009-03-11 Thread Jochem Maas
Olivier Doucet schreef: > Hello everyone, > I'm wondering if the following behaviour is a bug or a feature. The case is > quite complex, so let me explain my point of view. > here is the source : > > > class MyTest { > public function myfunc() { > echo get_class($this); > } > } >

Re: [PHP] PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Marc Venturini
Thanks for your contribution Virgil. Unfortunately my file is not index.php (nor anything else declared in a DirectoryIndex directive). I'm planning to fix the issue using a lock to test that the script is not already running before starting it again, but I would like to find out the explanation f

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread Jochem Maas
Stuart schreef: > Please include the list when replying unless you're looking to hire me! > > 2009/3/11 filtered > >> On Wed, Mar 11, 2009 at 13:41, Stuart wrote: >>> 2009/3/11 filtered >>> $_GET['cam'] looks fine. $_GET['studio'] is not. >>> I could build a URL that would output a javascript

Re: [PHP] non static function called as static one

2009-03-11 Thread Olivier Doucet
Hi Jochem, > > 2/ (or/and) Raise a warning or an error if a non static function is > called > > as a static one > > develop with error_reporting set to E_ALL | E_STRICT, then you'll get a big > fat > warning about it Yes, that's what I'm using right now. Although, that's not the highlighted pro

[PHP] Re: Include File Errors with Comments

2009-03-11 Thread Patrick Moloney
Thanks for all the replies. As I said in my original post the comments are on the first lines of the included file and are HTML comments. I'll have to look closer at comment syntax - I see there are "empty comments" and issues with pairs of double hyphens. My overall code worked well with 2 c

Re: [PHP] non static function called as static one

2009-03-11 Thread Jochem Maas
Olivier Doucet schreef: > Hi Jochem, > > >>> 2/ (or/and) Raise a warning or an error if a non static function is >> called >>> as a static one >> develop with error_reporting set to E_ALL | E_STRICT, then you'll get a big >> fat >> warning about it > > > Yes, that's what I'm using right now. Al

[PHP] Re: PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Martin Zvarík
Marc Venturini napsal(a): Hi all, I wrote a PHP script running in Apache which takes more than 30 seconds to complete. It uses set_time_limit() to extend the time it is allowed to run. The script generates thumbnails from a list of images. Upon completion, the script redirects the browser to ano

[PHP] built-in objects APC or serialization‏

2009-03-11 Thread Andrea Giammarchi
Hi everybody, I am a Certified Zend Engineer with almost 10 years of PHP development experience but for some reason I've never asked question to this ML. As subject says, I would like to know if there a generic extension/3rd parts/solution to save the state of a built-in PHP object. I per

[PHP] DOM - change a tag name ??

2009-03-11 Thread Michael A. Peters
If I'm manipulating a dom object, is there a way to change the tag name? I know you manipulate just about everything else in a node - but is the tagName really off limits? from the documentation for DOMElement - /* Properties */ readonly public bool $schemaTypeInfo ; readonly public string $ta

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Jan G.B.
Hi Dave (?) 2009/3/11 revDAVE : > Hi Bastien - Stuart & Daniel > > Thanks for your help! > > > On 3/10/2009 12:16 PM, "Bastien Koert" wrote: > >> Are you getting an error? What does 'not working' mean? > > No errors the page just stayed on the > header('Location: show.php'); page - never went to:

Re: [PHP] Re: PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread haliphax
On Wed, Mar 11, 2009 at 10:30 AM, Martin Zvarík wrote: > Marc Venturini napsal(a): >> >> Hi all, >> >> I wrote a PHP script running in Apache which takes more than 30 seconds to >> complete. It uses set_time_limit() to extend the time it is allowed to >> run. >> The script generates thumbnails fro

Re: [PHP] php fop (XSLFO)

2009-03-11 Thread Jan G.B.
2009/3/9 Tom Sparks : > > is there a php Fop (XSLFO)? > if not are there any that are not java based and can be run o a website that > has php support only? > > > tom_a_sparks Hi tom, I do it the easy way: system(sprintf('/usr/local/bin/fop -bleh %s', $param)); be sure to escape any shell op

Re: [PHP] This code using _GET exploitable

2009-03-11 Thread Stuart
2009/3/11 Jochem Maas > Stuart schreef: > > Escape stuff coming in and escape stuff going out. There are no > exceptions. > > > actually that should be: filter stuff coming in, escape stuff going out. > Good schreef! Erm, I mean, quite right to. Top o' the morning. Etc. -Stuart -- http://stu

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Sándor Tamás (HostWare Kft . ) wrote: > Yes, Rob is right. My original question is about the difference between > the processing of a file-based site with include() OR eval(). In that > case, if I understood it correctly, the results are the same. > > But! If the included pages contain functions,

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Daniel Brown
On Wed, Mar 11, 2009 at 12:38, Jan G.B. wrote: > > One more thing to mention: The HTTP Protocoll requires you to give a > full URL on "Location" Headers. That means that this is wrong: > "Location: file.txt" > and this is correct > "Location: http://www.x.x/file.txt"; > > Not all clients behave li

Re: [PHP] DOM - change a tag name ??

2009-03-11 Thread Michael A. Peters
Michael A. Peters wrote: If I'm manipulating a dom object, is there a way to change the tag name? I know you manipulate just about everything else in a node - but is the tagName really off limits? from the documentation for DOMElement - /* Properties */ readonly public bool $schemaTypeInfo ;

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Kyle Terry
On Wed, Mar 11, 2009 at 10:19 AM, Shawn McKenzie wrote: > Sándor Tamás (HostWare Kft . ) wrote: > > Yes, Rob is right. My original question is about the difference between > > the processing of a file-based site with include() OR eval(). In that > > case, if I understood it correctly, the results

[PHP] Re: Working directory of PHP pages?

2009-03-11 Thread Shawn McKenzie
Clancy wrote: > It is my understanding that when you open a page the PHP server looks for > index.php in the > site root directory, and loads it. As a result the working directory of the > page will be > the root directory of the site. I have always worked on this assumption, and > it has > alw

[PHP] Re: Include File Errors with Comments

2009-03-11 Thread Shawn McKenzie
Patrick Moloney wrote: > Thanks for all the replies. > As I said in my original post the comments are on the first lines of the > included file and are HTML comments. I'll have to look closer at comment > syntax - I see there are "empty comments" and issues with pairs of > double hyphens. > > My o

Re: [PHP] RE: non-auto increment question

2009-03-11 Thread PJ
Ashley Sheridan wrote: > On Thu, 2009-02-26 at 11:27 -0500, PJ wrote: >> Jerry Schwartz wrote: >> Being rather new to all this, I understood from the MySql manual that the auto_increment is to b e used immediately after an insertion not intermittently. My application is for administr

Re: [PHP] Re: Working directory of PHP pages?

2009-03-11 Thread haliphax
On Wed, Mar 11, 2009 at 12:44 PM, Shawn McKenzie wrote: > Clancy wrote: >> It is my understanding that when you open a page the PHP server looks for >> index.php in the >> site root directory, and loads it. As a result the working directory of the >> page will be >> the root directory of the sit

Re: [PHP] Handling (very) large files with PHP

2009-03-11 Thread Mattias Thorslund
דניאל דנון wrote: And you got a point - I don't know all the queries I'll run yet, but I'll probably do them with Perl. From what you described, it doesn't sound overly complicated to do in PHP either. If you are more familiar with PHP, it will probably take you less time to code it that w

RE: [PHP] DOM - change a tag name ??

2009-03-11 Thread Marc Christopher Hall
but am I just missing something obvious? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Information from ESET Smart Security, version of virus signature database 3927 (20090311) __ The message was checked by ESET Smart Sec

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: > Sándor Tamás (HostWare Kft . ) wrote: > > Yes, Rob is right. My original question is about the difference between > > the processing of a file-based site with include() OR eval(). In that > > case, if I understood it correctly, the results

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Shawn McKenzie
Daniel Brown wrote: > On Wed, Mar 11, 2009 at 12:38, Jan G.B. wrote: >> One more thing to mention: The HTTP Protocoll requires you to give a >> full URL on "Location" Headers. That means that this is wrong: >> "Location: file.txt" >> and this is correct >> "Location: http://www.x.x/file.txt"; >> >

Re: [PHP] validation & inserts not working

2009-03-11 Thread PJ
Lex Braun wrote: > PJ, > > On Tue, Mar 10, 2009 at 3:46 PM, PJ > wrote: > > > $sql1 = "INSERT INTO book ( title, sub_title, descr, >comment, bk_cover, copyright, ISBN, language, sellers ) > VALUES ('$titleIN', '$sub_titleIN', '$d

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Daniel Brown
On Wed, Mar 11, 2009 at 14:12, Shawn McKenzie wrote: > > Though the w3c HTML/XHTML standards do show the META tag inside the > head, hence the validation errors > (http://validator.w3.org/#validate_by_input): Right, which should be no surprise. Validation follows the recommended guidelines (

Re: [PHP] RE: non-auto increment question

2009-03-11 Thread PJ
am resending as this was erroneously ccd to mysql. sorry! Ashley Sheridan wrote: > On Thu, 2009-02-26 at 11:27 -0500, PJ wrote: >> Jerry Schwartz wrote: >> Being rather new to all this, I understood from the MySql manual that the auto_increment is to b e used immediately after an inserti

Re: [PHP] DOM - change a tag name ??

2009-03-11 Thread Andrew Ballard
On Wed, Mar 11, 2009 at 11:52 AM, Michael A. Peters wrote: > If I'm manipulating a dom object, is there a way to change the tag name? > I know you manipulate just about everything else in a node - but is the > tagName really off limits? > > from the documentation for DOMElement - > > /* Properties

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: > On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: >> Sándor Tamás (HostWare Kft . ) wrote: >>> Yes, Rob is right. My original question is about the difference between >>> the processing of a file-based site with include() OR eval(). In that >>> case, if I understood

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: > Robert Cummings wrote: > > On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: > >> Sándor Tamás (HostWare Kft . ) wrote: > >>> Yes, Rob is right. My original question is about the difference between > >>> the processing of a file-base

Re: [PHP] DOM - change a tag name ??

2009-03-11 Thread Michael A. Peters
Andrew Ballard wrote: On Wed, Mar 11, 2009 at 11:52 AM, Michael A. Peters wrote: If I'm manipulating a dom object, is there a way to change the tag name? I know you manipulate just about everything else in a node - but is the tagName really off limits? from the documentation for DOMElement -

[PHP] ltrim behavior.

2009-03-11 Thread Peter van der Does
This might be old for some of you but I never encountered it until today and I would like to know why this is happening. Here's the situation: php > $a='data[options][name]'; php > echo ltrim($a,'data['); options][name] Just as I expected. Next one: php > $a='options[options][name]'; php > echo

Re: [PHP] DOM - change a tag name ??

2009-03-11 Thread Andrew Ballard
On Wed, Mar 11, 2009 at 3:06 PM, Michael A. Peters wrote: > Andrew Ballard wrote: >> >> On Wed, Mar 11, 2009 at 11:52 AM, Michael A. Peters >> wrote: >>> >>> If I'm manipulating a dom object, is there a way to change the tag name? >>> I know you manipulate just about everything else in a node - b

Re: [PHP] ltrim behavior.

2009-03-11 Thread Paul M Foster
On Wed, Mar 11, 2009 at 03:07:18PM -0400, Peter van der Does wrote: > This might be old for some of you but I never encountered it until > today and I would like to know why this is happening. > > Here's the situation: > php > $a='data[options][name]'; > php > echo ltrim($a,'data['); > options][n

Re: [PHP] validation & inserts not working

2009-03-11 Thread Lex Braun
PJ, > > > $sql1 = "INSERT INTO book ( title, sub_title, descr, > >comment, bk_cover, copyright, ISBN, language, sellers ) > > VALUES ('$titleIN', '$sub_titleIN', '$descrIN', '$commentIN', > >'$bk_coverIN', '$copyrightIN', '$ISBNIN', '$languageIN

Re: [PHP] ltrim behavior.

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 15:07 -0400, Peter van der Does wrote: > php > $a='data[options][name]'; > php > echo ltrim($a,'data['); > options][name] > > Just as I expected. > > Next one: > php > $a='options[options][name]'; > php > echo ltrim($a,'options['); > ][name] > > UH, what? > Not exactly what

Re: [PHP] ltrim behavior.

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 15:34 -0400, Robert Cummings wrote: > On Wed, 2009-03-11 at 15:07 -0400, Peter van der Does wrote: > > php > $a='data[options][name]'; > > php > echo ltrim($a,'data['); > > options][name] > > > > Just as I expected. > > > > Next one: > > php > $a='options[options][name]'; >

Re: [PHP] DOM - change a tag name ??

2009-03-11 Thread Michael A. Peters
Andrew Ballard wrote: On Wed, Mar 11, 2009 at 3:06 PM, Michael A. Peters wrote: Andrew Ballard wrote: On Wed, Mar 11, 2009 at 11:52 AM, Michael A. Peters wrote: If I'm manipulating a dom object, is there a way to change the tag name? I know you manipulate just about everything else in a node

Re: [PHP] validation & inserts not working

2009-03-11 Thread PJ
Lex Braun wrote: > PJ, > > >> >> >>> $sql1 = "INSERT INTO book ( title, sub_title, descr, >>>comment, bk_cover, copyright, ISBN, language, sellers ) >>> VALUES ('$titleIN', '$sub_titleIN', '$descrIN', '$commentIN', >>>'$bk_coverIN', '$cop

Re: [PHP] validation & inserts not working

2009-03-11 Thread haliphax
On Wed, Mar 11, 2009 at 4:29 PM, PJ wrote: > Lex Braun wrote: >> PJ, >> >> >>>     >>>     $sql1 = "INSERT INTO book ( title, sub_title, descr,                comment, bk_cover, copyright, ISBN, language, sellers )             VALUES ('$titleIN', '$sub_titleIN', '$descrIN', '$comme

Re: [PHP] validation & inserts not working

2009-03-11 Thread PJ
haliphax wrote: > On Wed, Mar 11, 2009 at 4:29 PM, PJ wrote: > >> Lex Braun wrote: >> >>> PJ, >>> >>> >>> Â Â > Â Â $sql1 = "INSERT INTO book ( title, sub_title, descr, > Â Â Â Â Â Â Â Â comment, bk_cover, copyright, ISBN, language, >

Re: [PHP] validation & inserts not working

2009-03-11 Thread Lex Braun
On Wed, Mar 11, 2009 at 5:44 PM, PJ wrote: > haliphax wrote: > > On Wed, Mar 11, 2009 at 4:29 PM, PJ wrote: > > > >> Lex Braun wrote: > >> > >>> PJ, > >>> > >>> > >>> > Â Â > > > > Â Â $sql1 = "INSERT INTO book ( title, sub_title, descr, > > Â Â Â Â Â Â Â Â com

Re: [PHP] ltrim behavior.

2009-03-11 Thread Peter van der Does
On Wed, 11 Mar 2009 15:28:04 -0400 Paul M Foster wrote: > On Wed, Mar 11, 2009 at 03:07:18PM -0400, Peter van der Does wrote: > > > This might be old for some of you but I never encountered it until > > today and I would like to know why this is happening. > > > > Here's the situation: > > php

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: > On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: >> Robert Cummings wrote: >>> On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: > Yes, Rob is right. My original question is about the difference between > the

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Shawn McKenzie wrote: > Robert Cummings wrote: >> On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: >>> Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: > Sándor Tamás (HostWare Kft . ) wrote: >> Yes, Rob is right. My original question is about the

Re: [PHP] validation & inserts not working

2009-03-11 Thread Michael A. Peters
PJ wrote: Lex Braun wrote: PJ, $sql1 = "INSERT INTO book ( title, sub_title, descr, comment, bk_cover, copyright, ISBN, language, sellers ) VALUES ('$titleIN', '$sub_titleIN', '$descrIN', '$commentIN', '$bk_coverIN', '$copyrightIN', '

Re: [PHP] non static function called as static one

2009-03-11 Thread Nathan Rixham
Jochem Maas wrote: Olivier Doucet schreef: Hi Jochem, 2/ (or/and) Raise a warning or an error if a non static function is called as a static one develop with error_reporting set to E_ALL | E_STRICT, then you'll get a big fat warning about it Yes, that's what I'm using right now. Although

Re: [PHP] non static function called as static one

2009-03-11 Thread Nathan Rixham
Nathan Rixham wrote: Jochem Maas wrote: Olivier Doucet schreef: mental though, part of me wishes they'd forked php at 4 to save all the lame syntax and weirdness. after thought.. I wish they'd forked it to OO and procedural, then us OO guys could have phpoo and be happy, and the procedur

Re: [PHP] non static function called as static one

2009-03-11 Thread Jochem Maas
Nathan Rixham schreef: > Nathan Rixham wrote: >> Jochem Maas wrote: >>> Olivier Doucet schreef: > >> mental though, part of me wishes they'd forked php at 4 to save all >> the lame syntax and weirdness. >> > > after thought.. I wish they'd forked it to OO and procedural, then us OO > guys could h

[PHP] Re: Include File Errors with Comments

2009-03-11 Thread Patrick Moloney
OK, I think I've got the problem. I had to go back further than where the problem appeared to be. The 1st error was the comment code on the div line before the menu is Included. It had the "--" in the comment. Oddly, it interacts with the same error in the comment in the mainmenu file. I saw som

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: > Shawn McKenzie wrote: > > Robert Cummings wrote: > >> On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: > >>> Robert Cummings wrote: > On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: > > Sándor Tamás (HostWare Kft .

Re: [PHP] Re: Setting Up A Web Subscription Service

2009-03-11 Thread revDAVE
Thanks HallMarc & Nathan for the recommendations! -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: > On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: >> Shawn McKenzie wrote: >>> Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: > Robert Cummings wrote: >> On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: >>> Sá

Re: [PHP] Re: PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Marc Venturini
Hi all, Thank you all very much for your contributions. I tried to monitor the network with Wireshark: there is only one request from my browser to the server, and not any answer (redirect or otherwise). This means the problem is definitely not with unexpected browser requests. Calling die() at

Re: [PHP] Re: PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Nathan Rixham
Marc Venturini wrote: Hi all, Thank you all very much for your contributions. I tried to monitor the network with Wireshark: there is only one request from my browser to the server, and not any answer (redirect or otherwise). This means the problem is definitely not with unexpected browser requ

Re: [PHP] Re: PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Michael A. Peters
Nathan Rixham wrote: Marc Venturini wrote: Hi all, Thank you all very much for your contributions. I tried to monitor the network with Wireshark: there is only one request from my browser to the server, and not any answer (redirect or otherwise). This means the problem is definitely not with

Re: [PHP] Re: Working directory of PHP pages?

2009-03-11 Thread Clancy
On Wed, 11 Mar 2009 13:03:19 -0500, halip...@gmail.com (haliphax) wrote: >On Wed, Mar 11, 2009 at 12:44 PM, Shawn McKenzie wrote: >> Clancy wrote: >>> It is my understanding that when you open a page the PHP server looks for >>> index.php in the >>> site root directory, and loads it. As a result

Re: [PHP] Re: Working directory of PHP pages?

2009-03-11 Thread 9el
On Thu, Mar 12, 2009 at 11:47 AM, Clancy wrote: > > Something Stewart said the other day made me realise that there was a > fundamental error in > the way I was thinking about this question. I had been thinking that > opendir (.) opened > the root directory, and that paths such as Joe/Nurg.com we