[PHP] Wysiwyg editors?

2006-01-31 Thread William Stokes
Hello, Once again no PHP question... If I want to allow users to design and create their own static pages and store them to a server as a part of larger site what ways I have to do this? I once tested htmlarea (http://www.htmlarea.com/) and I think thats something I'm looking for. I don't ha

Re: [PHP] Running snippets from within PHP

2006-01-31 Thread Chris
Hi, Not sure if this does what you want: http://pear.php.net/package/Inline_C/ Eli wrote: Hi, How can I run non-PHP code snippets from within PHP? For example: Is it possible to include a C++ code snippet within PHP and run it as it was a regular include? I know there's a solution using exec

RE: [PHP] image uploads

2006-01-31 Thread Albert
William Stokes wrote: > I somehow got it back working with Opera. Don't know how :) One question > still remains. How to make 100% sure that the image isn't re-loaded to > server if user hits "refresh"? And he will cause it can take long time to > upload 2.5Mb pics over a slow link. When you hi

Re: [PHP] image uploads

2006-01-31 Thread William Stokes
OK. I was a bit vague at the first posting... To DB a put the filepath to the two images i create. And some additional info like upload date, width, height etc. I like storing my files in filesystem... "You mean isset($image), right?..." Right ! "ENCTYPE="multipart/form-data" " It's there.

Re: [PHP] HTML Question?

2006-01-31 Thread William Stokes
"Those aren't tables" Doesn't matter... (to me:) ""Richard Lynch"" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > On Thu, January 26, 2006 11:35 am, William Stokes wrote: >> This is totally HTML question but I had to post cause I can't get this >> one >> to work myself >> >> Ho

[PHP] Running snippets from within PHP

2006-01-31 Thread Eli
Hi, How can I run non-PHP code snippets from within PHP? For example: Is it possible to include a C++ code snippet within PHP and run it as it was a regular include? I know there's a solution using exec() and such, but I want to run the snippets like inline code. -thanks, Eli -- PHP General

Re: [PHP] CR \ LFs being represented as ascii characters in output of mail()

2006-01-31 Thread Chris Shiflett
Murray @ PlanetThoughtful wrote: For some reason "\r\n" characters are coming through exactly like that in the email, and yet the same value being stored in the backend MySQL database seems to represent the carriage-return \ line-feed characters as it should. Sounds like you're using data that'

Re: [PHP] PHP5 Build - test.php not working

2006-01-31 Thread Richard Lynch
On Mon, January 30, 2006 8:08 pm, Tod Thomas wrote: > I just built phpV5.1.2 with the same options I used to build php4: > > ./configure --prefix=/opt/php5 > --with-apxs2=/opt/apache/bin/apxs > --with-mysql=/opt/mysql > --disable-cgi --with-zlib > > After make install I had libphp5.so in the ./apa

Re: [PHP] PHP session_id()

2006-01-31 Thread Richard Lynch
On Mon, January 30, 2006 11:54 pm, Jacques wrote: > Is it possible that the PHP engine can generate duplicate session id's > for > one application? Can one assume that the session id generated and > saved in a > database will always be unique (never to be repeated)? I think the odds are pretty goo

Re: [PHP] form variables issue

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 5:03 am, All U Want wrote: > I'm sure it is a very simple question for you but I'm getting almost > crazy. > > I've got a simple form with several form objects, one of them is a > text field. After submitting the form if one of the form objects > hasn't been modified I will

Re: [PHP] Class constructor

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 7:46 am, Georgi Ivanov wrote: > I'm writing a simple class. In order to be compatible with php4 and > php5 I've > done this : > > class test{ > function Test(){ > //This will be called in PHP4 > } > function __construct(){ > //T

Re: [PHP] Clean data / text for XML

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 10:21 am, Russell Jones wrote: > Any good classes or scripts out there to just clean data that will be > placed > into XML? I always have a problem with random "tokens" ruining XML and > I > would prefer if I could just find a way to clean all the junk out > before > puttin

Re: [PHP] SQL in XML [was PHP and DBase...]

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 1:49 pm, David BERCOT wrote: After reading more and more of this thread, I think you should also consider this option: http://www.php.net/sqllite It lets you use SQL, and it stores the data in a local file, and it's quite lightweight/cheap/easy. Personally, though, I'd

Re: [PHP] SQL in XML [was PHP and DBase...]

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 1:08 pm, David BERCOT wrote: >> > Hi, >> > >> > I'd like to connect to DBase files (.dbf) in order to do SQL >> requests. >> > Do you know if it is possible ? >> > If yes, do you have an example ? >> > I'm working on Debian with PHP5. >> > >> > Thank you very much. >> > >>

Re: [PHP] PHP and DBase...

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 7:04 am, David BERCOT wrote: > I'd like to connect to DBase files (.dbf) in order to do SQL requests. > Do you know if it is possible ? > If yes, do you have an example ? > I'm working on Debian with PHP5. http://www.php.net/dbase -- Like Music? http://l-i-e.com/artists.

Re: [PHP] Problems with GZIPped content in some cases?!?

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 8:15 am, Olaf Greve wrote: > header("Content-Encoding: ".$Encoding); > echo "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xFF"; I don't know diddly about gzip-encoding and browsers, but this line looks pretty hinky to me... > echo substr(

Re: [PHP] image uploads

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 4:43 pm, tedd wrote: >>Storing the image in the DB is probably not a Good Idea for a variety >>of reasons. > > And they are? ... in the archives. http://marc.theaimsgroup.com/?l=php-general -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http:

Re: [PHP] session loss

2006-01-31 Thread Ray Hauge
This behavior could happen if your team is using load-balancing on multiple T-1s instead of a bonded connection. That would cause them to use different IPs/connections, and would normally close the session. That's a remote possibility, but that actually happened to me on one of our projects.

Re: [PHP] session loss

2006-01-31 Thread Richard Correia
Which php version and platform? Thanks Rich On 2/1/06, Dave Goodchild <[EMAIL PROTECTED]> wrote: > > Hi all - does anyone know why, in certain cases, session variables are > lost > from the $_SESSION superglobal array? I am writing a session-driven app > and > for some reason the testing crew los

RE: [PHP] image uploads

2006-01-31 Thread Weber Sites LTD
The main reason I don't like storing the images in the DB is because File system is much more fast then DB. FS and the web server know How to cache images while using the DB makes you access the DB for each and every picture. It's also harder to maintain cause you don't have a physical file you c

Re: [PHP] image uploads

2006-01-31 Thread tedd
Richard said: Storing the image in the DB is probably not a Good Idea for a variety of reasons. And they are? tedd -- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] session loss

2006-01-31 Thread Dave Goodchild
Hi all - does anyone know why, in certain cases, session variables are lost from the $_SESSION superglobal array? I am writing a session-driven app and for some reason the testing crew lose a certain variable while traversing forms but I cannot replicate the situation myself. Any knowledge of this

Re: [PHP] Embed XHTML code using PHP's XSLT processor

2006-01-31 Thread Björn Bartels
Moin, moin... >Why doesn't 'xsl:element' indent the xml data according to the ident >switch >("yes"/"no") then? I expected that the complete resulting XHTML >(generated >by the XSLT processor) is either indented or it's completely not >indented. >Unfortunately this is not the case for the imported

[PHP] Re: CR \ LFs being represented as ascii characters in output of mail()

2006-01-31 Thread James Benson
Murray @ PlanetThoughtful wrote: > Hi All, > > I'm having an odd problem with formatting of line feeds in an email my > site automatically sends to me when someone comments on one of my blog > entries. > > For some reason "\r\n" characters are coming through exactly like that > in the email,

[PHP] CR \ LFs being represented as ascii characters in output of mail()

2006-01-31 Thread Murray @ PlanetThoughtful
Hi All, I'm having an odd problem with formatting of line feeds in an email my site automatically sends to me when someone comments on one of my blog entries. For some reason "\r\n" characters are coming through exactly like that in the email, and yet the same value being stored in the backe

Re: [PHP] Re: Question about C++ like macros on PHP

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 6:40 am, Andrei wrote: > Well I know, I wanted to know if any1 did find a workaround... To be more clear, since obviously several other posters aren't aware of it... http://php.net/set_error_handler allows you to write a function to be called when an error occurs and that

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 6:20 am, Andrei wrote: > For debugging purposes I want to send to a function the line and file > where it is called. The problem is that I want these parameters to be > added to function as default parameters (changing all function calls > would not be an option for m

Re: [PHP] image uploads

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 10:58 am, William Stokes wrote: > Is there something special about php and images that nobody told me... No. :-) > I'm writing a image gallery but I have run to serious trouble with > it. I > have one page with form in it. Form's action is $PHP_SELF. In the form > there

RE: [PHP] SQL in XML [was PHP and DBase...]

2006-01-31 Thread Daevid Vincent
> But, finally, I wonder if I shouldn't use XML files instead ? > Is it possible, directly, to make a SQL request on a XML file ? How much data are you storing and how fast do you need it? If you're doing heavy "database" type queries, then just use mySQL. XML is kind of a PITA to use IMHO. You

Re: [PHP] SQL in XML [was PHP and DBase...]

2006-01-31 Thread David BERCOT
> > > > Hi, > > > > > > > > I'd like to connect to DBase files (.dbf) in order to do SQL requests. > > > > Do you know if it is possible ? > > > > If yes, do you have an example ? > > > > I'm working on Debian with PHP5. > > > > > > > > Thank you very much. > > > > > > > > David. > > > Blind? > > >

Re: [PHP] SQL in XML [was PHP and DBase...]

2006-01-31 Thread Miles Thompson
At 03:08 PM 1/31/2006, David BERCOT wrote: > > Hi, > > > > I'd like to connect to DBase files (.dbf) in order to do SQL requests. > > Do you know if it is possible ? > > If yes, do you have an example ? > > I'm working on Debian with PHP5. > > > > Thank you very much. > > > > David. > Blind? > >

[PHP] SQL in XML [was PHP and DBase...]

2006-01-31 Thread David BERCOT
> > Hi, > > > > I'd like to connect to DBase files (.dbf) in order to do SQL requests. > > Do you know if it is possible ? > > If yes, do you have an example ? > > I'm working on Debian with PHP5. > > > > Thank you very much. > > > > David. > Blind? > > http://de.php.net/dbase OK. I should hav

RE: [PHP] image uploads

2006-01-31 Thread Weber Sites LTD
Check this out : http://www.weberdev.com/get_example-3938.html Image Upload And Resize Script Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP & MySQL Forums : http://www.weberforums.com Learn PHP & MySQL Playing Trivia : http://www.webertrivia.

Re: [PHP] Problems with realpath()

2006-01-31 Thread Richard Correia
I think the DOCUMENT_ROOT is changed for new php implementation. Thanks Rich On 1/31/06, Ron King <[EMAIL PROTECTED]> wrote: > > Hi, > > My hosting isp just upgraded from 4.3.1 to 4.4.1, and some of the > tools I use (from InterAKT) no longer work. > > After doing quite a bit of research, I've s

Re: [PHP] form variables issue

2006-01-31 Thread Richard Correia
Can you check the source code? are there values in source, but it is not displayed on the browser? check this code snippet Thanks Richard On 1/31/06, All U Want <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I'm sure it is a very simple question for you but I'm getting almost > crazy. > > I'v

RE: [PHP] form variables issue

2006-01-31 Thread Weber Sites LTD
I'm not sure I understand the problem. Can you send a link to the page and post some code? Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP code examples : http://www.weberdev.com Free Uptime Monitor : http://uptime.weberdev.com PHP content for y

RE: [PHP] html forms and php

2006-01-31 Thread Ford, Mike
On 31 January 2006 16:08, Philippe Reynolds wrote: > I added the square brakets to the name...now when I select > all the options > on the list I can read all values individually. > > Here is problem...my javascripts have stopped working, I > can't move options > from one list to the next. Here

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 15:41, Barry wrote: > Ford, Mike wrote: > > Yes, but 1 apple is 1 apple is 1 apple. > > > > 1 month can be 28 days, or 31 days, or anything in between. > 2 months can be anything from 59 to 62 days. > > > > A month is an imprecise measure, and adding them together > will get y

[PHP] image uploads

2006-01-31 Thread William Stokes
Hello, Is there something special about php and images that nobody told me... I'm writing a image gallery but I have run to serious trouble with it. I have one page with form in it. Form's action is $PHP_SELF. In the form there is just one file field called "image". I test if there's users im

Re: [PHP] html forms and php

2006-01-31 Thread Philippe Reynolds
Awesome...that solved it!! Thanks a bunch to everyone who contributed!! Cheers Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Clean data / text for XML

2006-01-31 Thread Russell Jones
Any good classes or scripts out there to just clean data that will be placed into XML? I always have a problem with random "tokens" ruining XML and I would prefer if I could just find a way to clean all the junk out before putting it into an xml file.

Re: [PHP] Re: Problems with GZIPped content in some cases?!?

2006-01-31 Thread Jochem Maas
Olaf Greve wrote: Hi Barry (and others), Thanks for your answer! This is surely a browser problem. I already feared as much... The nasty thing is that due to this some of the end users of our client are losing confidence in the way the application works. Disabling GZIP is not really what

Re: [PHP] html forms and php

2006-01-31 Thread Richard Davey
On 31 Jan 2006, at 16:07, Philippe Reynolds wrote: To resolve this we have to create an array out of our select name: I added the square brakets to the name...now when I select all the options on the list I can read all values individually. Here is problem...my javascripts have stopped wor

Re: [PHP] html forms and php

2006-01-31 Thread David Grant
Philippe, I recommend using an ID, instead of the NAME attribute to refer to the various elements. This ought to solve your problem. David Philippe Reynolds wrote: > > Greetings all, > > Currently I have a form that has two lists that contain . > I use javacript to dynamically move options fr

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread James Benson
cheers for the help :) Barry wrote: > Ford, Mike wrote: >> Yes, but 1 apple is 1 apple is 1 apple. >> >> 1 month can be 28 days, or 31 days, or anything in between. 2 months >> can be anything from 59 to 62 days. >> >> A month is an imprecise measure, and adding them together will get you >>

[PHP] html forms and php

2006-01-31 Thread Philippe Reynolds
Greetings all, Currently I have a form that has two lists that contain . I use javacript to dynamically move options from one select list to another. All this works fine... this is the : LT680 LT685 LT690 LT695 LT700 LT705 Now I wish to "post" all the options from one list to anothe

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Ford, Mike wrote: Yes, but 1 apple is 1 apple is 1 apple. 1 month can be 28 days, or 31 days, or anything in between. 2 months can be anything from 59 to 62 days. A month is an imprecise measure, and adding them together will get you an even more imprecise result. Deal with it -- that's just

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 14:52, Barry wrote: > Ford, Mike wrote: > > On 31 January 2006 14:12, Barry wrote: > > > > > > > Barry wrote: > > > Last try: > > > Edit: > > > > > also 31st January -> +2 Month -> is for me 3rd April > > > > > > > 31st March is not true because i miss "3" (!!) days. > >

Re: [PHP] Re: PHP and DBase...

2006-01-31 Thread Barry
Jochem Maas wrote: Barry wrote: David BERCOT wrote: Hi, I'd like to connect to DBase files (.dbf) in order to do SQL requests. Do you know if it is possible ? If yes, do you have an example ? I'm working on Debian with PHP5. Thank you very much. David. Blind? 'Blind' ... is that a ph

Re: [PHP] Re: Problems with GZIPped content in some cases?!?

2006-01-31 Thread Olaf Greve
Hi Barry (and others), Thanks for your answer! This is surely a browser problem. I already feared as much... The nasty thing is that due to this some of the end users of our client are losing confidence in the way the application works. Disabling GZIP is not really what I want to do either,

Re: [PHP] Other than default grey button

2006-01-31 Thread Jochem Maas
Lists wrote: On Jan 31, 2006, at 3:12 AM, Jochem Maas wrote: yes but your a 'philosopher' - so I don't give a monkey's about what you think. free hint: stop reading when it no longer interests you. It's unfortunate you feel this type of remark is necessary not only to unfortunate? you

Re: [PHP] Re: PHP and DBase...

2006-01-31 Thread Jochem Maas
Barry wrote: David BERCOT wrote: Hi, I'd like to connect to DBase files (.dbf) in order to do SQL requests. Do you know if it is possible ? If yes, do you have an example ? I'm working on Debian with PHP5. Thank you very much. David. Blind? 'Blind' ... is that a php framework? ;-) htt

[PHP] Re: Problems with GZIPped content in some cases?!?

2006-01-31 Thread Barry
Olaf Greve wrote: Hi all, Firstly, I'm new to this list, so I'm hoping I'm not flogging a dead horse with this question, and I also hope I'm not inadvertently breaking any list etiquete in any way... Should this be the case, I apologise in advance. :P Alright, with that out of the way, I'll

[PHP] Problems with GZIPped content in some cases?!?

2006-01-31 Thread Olaf Greve
Hi all, Firstly, I'm new to this list, so I'm hoping I'm not flogging a dead horse with this question, and I also hope I'm not inadvertently breaking any list etiquete in any way... Should this be the case, I apologise in advance. :P Alright, with that out of the way, I'll post my actual que

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Ford, Mike wrote: On 31 January 2006 14:12, Barry wrote: Barry wrote: Last try: Edit: > > also 31st January -> +2 Month -> is for me 3rd April > > > > 31st March is not true because i miss "3" (!!) days. > Huh? Are you saying that, for you: strtotime("+2 months"); gives 3rd April

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 14:12, Barry wrote: > Barry wrote: > Last try: > Edit: > > > also 31st January -> +2 Month -> is for me 3rd April > > > > > 31st March is not true because i miss "3" (!!) days. > Huh? Are you saying that, for you: strtotime("+2 months"); gives 3rd April? If so, I

Re: [PHP] Class constructor

2006-01-31 Thread Georgi Ivanov
Yes, I noticed that PHP5 call the old way constructor, but what if in future version they drop this feature ? I think this is workaround for the problem . Or not ? On Tuesday January 31 2006 15:52, David Grant wrote: > Georgi, > > Drop __construct, PHP5 will call Test() anyway. > > >From http://u

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 13:04, James Benson wrote: > "Because 1 month from 31-Jan is 31-Feb -- which is taken to > mean 02-Mar, > hence the output of date("M" ...)." > > > > why though, one month from now is 31 Feb, why would it take it as > something else? > > That does not make sense to me! Wel

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread James Benson
> try that: > echo "strtotime1:".strtotime ("next Month")."\n"; > echo "strtotime2:".strtotime ("next month")."\n"; > echo "time:".time()."\n"; > echo "time1:".strftime("%d %m %Y",strtotime("next Month"))." | > time2:".strftime("%d %m %Y",time()); > > (probably causing error because of "m"onth /

[PHP] PHP and DBase...

2006-01-31 Thread David BERCOT
Hi, I'd like to connect to DBase files (.dbf) in order to do SQL requests. Do you know if it is possible ? If yes, do you have an example ? I'm working on Debian with PHP5. Thank you very much. David. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 13:50, James Benson wrote: > Barry wrote: > > Ford, Mike wrote: > > > > > > > > Because 1 month from 31-Jan is 31-Feb -- which is taken to mean > > > 02-Mar, hence the output of date("M" ...). > > > > > > 2 months from now is 31-Mar, which is ok; 3 months from now would > > >

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Barry wrote: Barry wrote: Ford, Mike wrote: Uhm -- my mistake, sorry -- 31st Feb equates to 3rd March, not 2nd, so 3rd April here is correct. The basic thing is that strtotime() just uses the same day-of-the-month when calculating in months -- so, on the 31st January, it reckons thus:

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Barry wrote: Ford, Mike wrote: Uhm -- my mistake, sorry -- 31st Feb equates to 3rd March, not 2nd, so 3rd April here is correct. The basic thing is that strtotime() just uses the same day-of-the-month when calculating in months -- so, on the 31st January, it reckons thus: +1 month: 31s

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Ford, Mike wrote: Uhm -- my mistake, sorry -- 31st Feb equates to 3rd March, not 2nd, so 3rd April here is correct. The basic thing is that strtotime() just uses the same day-of-the-month when calculating in months -- so, on the 31st January, it reckons thus: +1 month: 31st February -- *doe

RE: [PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 13:29, Barry wrote: > James Benson wrote: > > The case makes no difference, because... > > > > > > echo date('r', strtotime ("next Month"))."\n"; > > echo date('r', strtotime ("next month"))."\n"; > > > I was referring here to a note on php.net -> > For those upgrading from P

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 13:13, Barry Krein wrote: > Ford, Mike wrote: > > > > > Because 1 month from 31-Jan is 31-Feb -- which is taken to > mean 02-Mar, hence the output of date("M" ...). > > > > 2 months from now is 31-Mar, which is ok; 3 months from now > would be 31-Apr, which would likewise be

Re: [PHP] Class constructor

2006-01-31 Thread David Grant
Georgi, Drop __construct, PHP5 will call Test() anyway. >From http://uk.php.net/manual/en/language.oop5.decon.php: "For backwards compatibility, if PHP 5 cannot find a __construct() function for a given class, it will search for the old-style constructor function, by the name of the class." Dav

Re: [PHP] Class constructor

2006-01-31 Thread Andrei
You could try with phpversion(). Georgi Ivanov wrote: Hi, I'm writing a simple class. In order to be compatible with php4 and php5 I've done this : class test{ function Test(){ //This will be called in PHP4 } function __construct(){ //Th

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread James Benson
Barry wrote: > Ford, Mike wrote: > >> >> Because 1 month from 31-Jan is 31-Feb -- which is taken to mean >> 02-Mar, hence the output of date("M" ...). >> >> 2 months from now is 31-Mar, which is ok; 3 months from now would be >> 31-Apr, which would likewise be taken to mean 01-May. >> >> This is

[PHP] Class constructor

2006-01-31 Thread Georgi Ivanov
Hi, I'm writing a simple class. In order to be compatible with php4 and php5 I've done this : class test{ function Test(){ //This will be called in PHP4 } function __construct(){ //This will be called in PHP5 $this->Test();

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Thank you very much David Andrei David Grant wrote: Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be add

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Barry
James Benson wrote: The case makes no difference, because... echo date('r', strtotime ("next Month"))."\n"; echo date('r', strtotime ("next month"))."\n"; I was referring here to a note on php.net -> For those upgrading from PHP 4 to PHP 5 there are a number of things that are different abou

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread David Grant
Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: > > Hi list, > > For debugging purposes I want to send to a function the line and > file where it is called. The problem is that I want these parameters to > be added to function as default parameters (changi

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread James Benson
The case makes no difference, because... echo date('r', strtotime ("next Month"))."\n"; echo date('r', strtotime ("next month"))."\n"; gives... Fri, 03 Mar 2006 12:52:54 + Fri, 03 Mar 2006 12:52:54 + BTW, Im using Debian, PHP 4.4.2 and my machines time zone is Europe/London Few mor

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Ford, Mike wrote: Because 1 month from 31-Jan is 31-Feb -- which is taken to mean 02-Mar, hence the output of date("M" ...). 2 months from now is 31-Mar, which is ok; 3 months from now would be 31-Apr, which would likewise be taken to mean 01-May. This is all as expected -- no bug here. Ch

Re: [PHP] Embed XHTML code using PHP's XSLT processor

2006-01-31 Thread Markus Fuchs
Thanks for your response, Björn. "Björn Bartels" wrote: > Hi , > > this happens because a xml-parser (your browser,...) has to remove all > spaces, etc.which are not nessesary. Why doesn't 'xsl:element' indent the xml data according to the ident switch ("yes"/"no") then? I expected that the compl

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry Krein
Ford, Mike wrote: Because 1 month from 31-Jan is 31-Feb -- which is taken to mean 02-Mar, hence the output of date("M" ...). 2 months from now is 31-Mar, which is ok; 3 months from now would be 31-Apr, which would likewise be taken to mean 01-May. This is all as expected -- no bug here. Ch

[PHP] Re: PHP and DBase...

2006-01-31 Thread Barry
David BERCOT wrote: Hi, I'd like to connect to DBase files (.dbf) in order to do SQL requests. Do you know if it is possible ? If yes, do you have an example ? I'm working on Debian with PHP5. Thank you very much. David. Blind? http://de.php.net/dbase -- Smileys rule (cX.x)C --o(^_^o) -- P

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread James Benson
"Because 1 month from 31-Jan is 31-Feb -- which is taken to mean 02-Mar, hence the output of date("M" ...)." why though, one month from now is 31 Feb, why would it take it as something else? That does not make sense to me! James -

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 11:24, James Benson wrote: > Im encountering some very weird behaviour when using the following:- > > > echo date("M", strtotime("next month")); > > > outputs: Mar > > > > while > > > echo date("r",time()); > > outputs: Tue, 31 Jan 2006 11:21:47 + > > > > anyone

Re: [PHP] Re: Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Well I know, I wanted to know if any1 did find a workaround... Barry wrote: Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changin

[PHP] Re: Question about C++ like macros on PHP

2006-01-31 Thread Barry
Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me) function my_func( $para

[PHP] Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me) function my_func( $param, $line = __LINE_

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Barry
Barry wrote: James Benson wrote: Im encountering some very weird behaviour when using the following:- echo date("M", strtotime("next month")); outputs: Mar while echo date("r",time()); outputs: Tue, 31 Jan 2006 11:21:47 + anyone know why? ---

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Barry
James Benson wrote: Im encountering some very weird behaviour when using the following:- echo date("M", strtotime("next month")); outputs: Mar while echo date("r",time()); outputs: Tue, 31 Jan 2006 11:21:47 + anyone know why? --

[PHP] Re: Problems with realpath()

2006-01-31 Thread Barry
Ron King wrote: Hi, My hosting isp just upgraded from 4.3.1 to 4.4.1, and some of the tools I use (from InterAKT) no longer work. After doing quite a bit of research, I've seen a few bugs regarding realpath(), but none related to 4.4.1. When I try the following: With version 4.4.0, I ge

[PHP] Re: form variables issue

2006-01-31 Thread Barry
All U Want wrote: Hi folks, I'm sure it is a very simple question for you but I'm getting almost crazy. I've got a simple form with several form objects, one of them is a text field. After submitting the form if one of the form objects hasn't been modified I will show the same form but k

[PHP] strange behaviour with strtotime()

2006-01-31 Thread James Benson
Im encountering some very weird behaviour when using the following:- echo date("M", strtotime("next month")); outputs: Mar while echo date("r",time()); outputs: Tue, 31 Jan 2006 11:21:47 + anyone know why? - Master CIW D

[PHP] form variables issue

2006-01-31 Thread All U Want
Hi folks, I'm sure it is a very simple question for you but I'm getting almost crazy. I've got a simple form with several form objects, one of them is a text field. After submitting the form if one of the form objects hasn't been modified I will show the same form but keeping the data p

[PHP] Problems with realpath()

2006-01-31 Thread Ron King
Hi, My hosting isp just upgraded from 4.3.1 to 4.4.1, and some of the tools I use (from InterAKT) no longer work. After doing quite a bit of research, I've seen a few bugs regarding realpath(), but none related to 4.4.1. When I try the following: With version 4.4.0, I get the following a

Re: [PHP] PHP session_id()

2006-01-31 Thread Jochem Maas
Jacques wrote: Hi all Is it possible that the PHP engine can generate duplicate session id's for one application? Can one assume that the session id generated and saved in a database will always be unique (never to be repeated)? there is no garantee stated anywhere that I have read but the f

Re: [PHP] Other than default grey button

2006-01-31 Thread Jochem Maas
Lists wrote: On Jan 30, 2006, at 9:25 AM, Jochem Maas wrote: in future remember that it pays to give the people on the/a list all of the context you mention above - it shows people you are trying, have searched for information and that your question is relevant as far as you have been able

Re: [PHP] Passing Credentials

2006-01-31 Thread Barry
David Tulloh wrote: You want to use sessions, they allow you to store information such as login details between requests. Have a look at a simple tutorial, like this Zend one. http://www.zend.com/php/beginners/php101-10.php News1 wrote: Rory, Thanks for the feedback -- I will try to be clea