RE: [PHP] Very Basic question: What IDE/tools I need to begin using PHP?

2005-07-27 Thread Shaw, Chris - Accenture
PHP Designer 2005 http://www.mpsoftware.dk/ -Original Message- From: Taksam [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 18:29 To: php-general@lists.php.net Subject: [PHP] Very Basic question: What IDE/tools I need to begin using PHP? * This

RE: [PHP] php mySql question

2005-07-27 Thread Shaw, Chris - Accenture
Have you tried doing a search for the text php5 in the php.ini file that sits in your c:\windows folder? C. -Original Message- From: Ned Kotter [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 04:03 To: php-general@lists.php.net Subject: [PHP] php mySql question I have installed php 5.0.4

Re: [PHP] Object Inheritance, get_class() and a static function call

2005-07-27 Thread Jochem Maas
axel wrote: Hello Jochem, Axel lets start again. you seem to want to write a method in 1 base class that will give you the correct classname when you call the method statically on the/a subclass) ... In all cases It _seems_ to me that you must already know the name of the class in order to

Re: [PHP] install or interference problem

2005-07-27 Thread Jochem Maas
Fam Ruijters-Verberne wrote: Hello, this is not a php question. and you problem is that Apache cannot _bind_ itself to the port that you specified in the apache.conf file (more likely XAMMP install did it for you). specifically Apache appears to be trying to bind itself to port 443 (which is

Re: [PHP] Very Basic question: What IDE/tools I need to begin using PHP?

2005-07-27 Thread Jochem Maas
Taksam wrote: Hi everybody, I am learning PHP, and have this very basic question: What software/tools I need to begin? What is the best IDE I can use? (in windows) Please tell me about FULL-IDEs, not just super text editors that can syntax-highlight PHP code. I want to debug, deploy... ALL!

Re: [PHP] php mySql question

2005-07-27 Thread Mark Rees
Yes, it is quite possible that you have more than one php.ini file. Check this and delete as appropriate. Shaw, Chris - Accenture [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ... Have you tried doing a search for the text php5 in the php.ini file that sits in your c:\windows folder?

Re: [PHP] Object Inheritance, get_class() and a static function call

2005-07-27 Thread axel
Hello Jochem, Axel lets start again. Okay. SO: explain, please, why and what you are trying to do (DETAILS!). don't dumb it down because that just makes the problem look moot. I need the classname to register variables in the session. It's complicated. There are a lot of inheritences.

Re: [PHP] Setting clock backwards hangs webserver (PHP+THTTPD)

2005-07-27 Thread Alan Milnes
Vinoo S Warrier wrote: Hi all, Iam running PHP on THTTPD 2.21b I have a simple php script that sets the system clock (using exec(date -s MMDDhhmm.ss) and returns a page showing the system time when i use it to set the time forwards, it works fine but if i use it and set the time

[PHP] Re: php mySql question

2005-07-27 Thread axel
Sure that your php.ini is located correctly? I have installed php 5.0.4 on my windows 2000, IIS 6.0 server. PHP works but when I try to connect to MySQL I get the Fatal error: Call to undefined function mysql_connect(). I have uncommented the line in the php.ini file that says

[PHP] Multipage form redux

2005-07-27 Thread Jack Jackson
Hi, I have searched the archives and seen links to tutorials at phpclasses (which seem to be down) and not found an answer to my question: I have a long form I want to break into seven pages. Rather than pass values from page to page as hidden, I'd rather write the results to the db after each

[PHP] Re: Apache 2.0.52 + PHP 4.3.9 configuration problem, for Linux Fedora 3.

2005-07-27 Thread David Robley
[EMAIL PROTECTED] wrote: Hi, I have Apache 2.0.52 with PHP 4.3.9, running on a Linux Fedora 3, and cannot write through PHP on any folder, except for /tmp. No matter which permissions, owner or group are set for the folders or files, they never become writable. When I execute the

Re: [PHP] Multipage form redux

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 07:51 -0400, Jack Jackson wrote: Hi, I have searched the archives and seen links to tutorials at phpclasses (which seem to be down) and not found an answer to my question: I have a long form I want to break into seven pages. Rather than pass values from page to page as

Re: [PHP] Multipage form redux

2005-07-27 Thread Mark Rees
André Medeiros [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 2005-07-27 at 07:51 -0400, Jack Jackson wrote: Hi, I have searched the archives and seen links to tutorials at phpclasses (which seem to be down) and not found an answer to my question: I have a long form I

Re[2]: [PHP] Multipage form redux

2005-07-27 Thread Richard Davey
Hello André, Wednesday, July 27, 2005, 2:22:30 PM, you wrote: AM That's not a very good idea. Imagine the user gets to the fourth AM form and gets a cup of coffee, or goes out to lunch. By the time AM he gets to the computer he might have lost the session, thus AM having data on your DB that is

Re: [PHP] Multipage form redux

2005-07-27 Thread Jack Jackson
Thanks everyone. I take the point of Andre, but believe that the depth and sensitivity of the data require it be stored server side. I think that Richard and Mark have put their fingers on it - it's gotta be cookie based. Someone on the IRC suggested sessions and I think that it the way it

Re: [PHP] Object Inheritance, get_class() and a static function call

2005-07-27 Thread Jochem Maas
axel wrote: Hello Jochem, Axel lets start again. Okay. SO: explain, please, why and what you are trying to do (DETAILS!). don't dumb it down because that just makes the problem look moot. I need the classname to register variables in the session. It's complicated. There are a lot

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-27 Thread Jochem Maas
Dotan Cohen wrote: On 7/26/05, Jochem Maas [EMAIL PROTECTED] wrote: ...somebody beat me with a virtual stick if I am wrong! Why? I'd rather just throw the php.net/manual at you! harddrive or memory stick? just /home/dotan/myfiles/docs/php-manual/ but seriously did I err? Not that I

[PHP] how to know referral function

2005-07-27 Thread Daniele Palumbo
hi. i have a p_debug(), that print out some useful information (for me). it is called by a lot of my functions, and i want to know which one is generating the error. the referral function :) no, i don't want to write in all call to p_debug some information on running function... thanks

Re: [PHP] php mySql question

2005-07-27 Thread John Nichel
Ned Kotter wrote: I have installed php 5.0.4 on my windows 2000, IIS 6.0 server. PHP works but when I try to connect to MySQL I get the Fatal error: Call to undefined function mysql_connect(). I have uncommented the line in the php.ini file that says 'extension=php_mysql.dll'. I have path

Re: [PHP] how to know referral function

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 15:14 +0200, Daniele Palumbo wrote: hi. i have a p_debug(), that print out some useful information (for me). it is called by a lot of my functions, and i want to know which one is generating the error. the referral function :) no, i don't want to write in all

[PHP] Question on exec() to call a php script from a php script

2005-07-27 Thread Liang ZHONG
If my php is configured as ( http://liang.ns2user.info/php/info-train06.htm) an apache 2.0 filter module. The php is invoked by apache on request of http client. Can I do an exec() to call another php script to run in the background? If yes, how? Highly appreciate if somebody helps. Thank

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-27 Thread Dotan Cohen
On 7/27/05, Jochem Maas [EMAIL PROTECTED] wrote: Dotan Cohen wrote: On 7/26/05, Jochem Maas [EMAIL PROTECTED] wrote: ...somebody beat me with a virtual stick if I am wrong! Why? I'd rather just throw the php.net/manual at you! harddrive or memory stick? just

[PHP] preg_match - help please

2005-07-27 Thread Steve Turnbull
Hi I want to see that a user is submiting a form field in the correct manner. So I decided to use preg_match to verify their input. The pattern I am trying to match is; Firstname Secondname I am not bothered about character length just yet (but advise on this would be appreciated if it can be

Re: [PHP] preg_match - help please

2005-07-27 Thread John Nichel
Steve Turnbull wrote: Hi I want to see that a user is submiting a form field in the correct manner. So I decided to use preg_match to verify their input. The pattern I am trying to match is; Firstname Secondname I am not bothered about character length just yet (but advise on this would be

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 15:27 +0100, Steve Turnbull wrote: Hi I want to see that a user is submiting a form field in the correct manner. So I decided to use preg_match to verify their input. The pattern I am trying to match is; Firstname Secondname I am not bothered about character

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 15:27 +0100, Steve Turnbull wrote: Hi I want to see that a user is submiting a form field in the correct manner. So I decided to use preg_match to verify their input. The pattern I am trying to match is; Firstname Secondname I am not bothered about character

Re: [PHP] becoming root user within php

2005-07-27 Thread Tom Cruickshank
Hello, Thanks for all the info guys! I successfully made php use root user to preform a few commands. I restricted root access to allow only a few commands which were needed. I'm doing my best to keep this thing as secure as possible which still preforming the tasks that need to be done. Tom

Re: [PHP] preg_match - help please

2005-07-27 Thread Mark Rees
André Medeiros [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 2005-07-27 at 15:27 +0100, Steve Turnbull wrote: Hi I want to see that a user is submiting a form field in the correct manner. So I decided to use preg_match to verify their input. The pattern I am trying

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 16:16 +0100, Mark Rees wrote: André Medeiros [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 2005-07-27 at 15:27 +0100, Steve Turnbull wrote: Hi I want to see that a user is submiting a form field in the correct manner. So I decided to use

RE: [PHP] preg_match - help please

2005-07-27 Thread Mike Johnson
From: André Medeiros [mailto:[EMAIL PROTECTED] On Wed, 2005-07-27 at 16:16 +0100, Mark Rees wrote: Or even four - like Rafael van der Vaart for example - so make sure that the surname box matches spaces as well, and special characters like the ê, as well as ' as in John O'Kane

RE: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 11:41 -0400, Mike Johnson wrote: From: André Medeiros [mailto:[EMAIL PROTECTED] On Wed, 2005-07-27 at 16:16 +0100, Mark Rees wrote: Or even four - like Rafael van der Vaart for example - so make sure that the surname box matches spaces as well, and special

Re: [PHP] preg_match - help please

2005-07-27 Thread John Nichel
André Medeiros wrote: That's not very nice of you, saying that to people who try to help ;) if( strpos( $_POST['frmName'], ' ' ) === false ) { // Do error handling here } else { // All is OK :) } How does that match Firstname Lastname better than a regex? That will return true as

[PHP] Calling methods in returned SOAP objects

2005-07-27 Thread Marcus Bointon
I'm successfully calling SOAP functions via a WSDL interface using PHP5, but sometimes the functions return things that are complex objects with methods as well as attributes. For example, the interface I'm using has a query function which returns an array, but it also has a function

RE: [PHP] preg_match - help please

2005-07-27 Thread Mike Johnson
From: André Medeiros [mailto:[EMAIL PROTECTED] On Wed, 2005-07-27 at 11:41 -0400, Mike Johnson wrote: From: André Medeiros [mailto:[EMAIL PROTECTED] On Wed, 2005-07-27 at 16:16 +0100, Mark Rees wrote: Or even four - like Rafael van der Vaart for example - so make sure that

[PHP] which is the correct method for select statement for oci8 functions

2005-07-27 Thread babu
Hi all, which is the correct method to get a value from the database table into a php variable using the select statement for both oracle and mssql databases. for example if i have a query like SELECT email_address FROM users_activation WHERE username='$username';. how to get the email

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 11:55 -0400, John Nichel wrote: André Medeiros wrote: That's not very nice of you, saying that to people who try to help ;) if( strpos( $_POST['frmName'], ' ' ) === false ) { // Do error handling here } else { // All is OK :) } How does that

Re: [PHP] preg_match - help please

2005-07-27 Thread John Nichel
André Medeiros wrote: On Wed, 2005-07-27 at 11:55 -0400, John Nichel wrote: André Medeiros wrote: That's not very nice of you, saying that to people who try to help ;) if( strpos( $_POST['frmName'], ' ' ) === false ) { // Do error handling here } else { // All is OK :) } How does

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 12:30 -0400, John Nichel wrote: André Medeiros wrote: On Wed, 2005-07-27 at 11:55 -0400, John Nichel wrote: André Medeiros wrote: That's not very nice of you, saying that to people who try to help ;) if( strpos( $_POST['frmName'], ' ' ) === false ) { // Do

Re: [PHP] Playing Audio

2005-07-27 Thread Joe Wollard
More specifically, I'd have two frames, one of which is hidden using css and the other that would display the content of the website. The user would never know that there were frames on the page by looking at it. Just as a warning most people will tell you that putting background music

Re: [PHP] preg_match - help please

2005-07-27 Thread John Nichel
André Medeiros wrote: On Wed, 2005-07-27 at 12:30 -0400, John Nichel wrote: André Medeiros wrote: On Wed, 2005-07-27 at 11:55 -0400, John Nichel wrote: André Medeiros wrote: That's not very nice of you, saying that to people who try to help ;) if( strpos( $_POST['frmName'], ' ' ) ===

[PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread Chris W. Parker
(It's been a while and I haven't seen this message yet. Are we back to rediculous message delays?? Forgive the repost if it be such.) Hello, I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive

Re: [PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread John Nichel
Chris W. Parker wrote: (It's been a while and I haven't seen this message yet. Are we back to rediculous message delays?? Forgive the repost if it be such.) Hello, I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with

[PHP] can I use Apache v 2 with PHP?

2005-07-27 Thread Taksam
Hello everybody: I finally installed Apache 1.3.3 and PHP 5.0.4 engine and made my first PHP page and it works! thanks for your help! And didn't use an IDE, just UltraEdit :) but, I WILL use and IDE someday anyway. Now, my question is: can I use Apache version 2 with PHP? And, even if I

[PHP] Has anybody used amfphp? (open flash remoting + php)

2005-07-27 Thread Taksam
Anybody used OpenAMF+PHP? ( http://www.amfphp.org/ ) It is an open-source Flash Remoting gateway. I already used it with Java and works OK. Just wanted to know if somebody here used it with PHP and would like to know if they recommend it or not. Tak

Re: [PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread Philip Hallstrom
I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive interface? What's wrong with diff -r --brief dir1 dir2 That's about as intuitive as you can get, no? -- PHP General Mailing List

Re: [PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread Philip Hallstrom
I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive interface? The problem I want to avoid is a basic one. Which file did I update last week that I forgot to publish to the live site? It would be

Re: [PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread John Nichel
Philip Hallstrom wrote: I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive interface? The problem I want to avoid is a basic one. Which file did I update last week that I forgot to publish to the

[PHP] snapshot

2005-07-27 Thread Andy Pieters
Hi all We just bought ourselfs a very basic windows station so that we can test our php and html applications on windows as well. For the html applications, a simple screen shot of how it looks in internet explorer is sufficient. I know how to handle http authentication, file uploads,

RE: [PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread Chris W. Parker
Philip Hallstrom mailto:[EMAIL PROTECTED] on Wednesday, July 27, 2005 11:09 AM said: I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive interface? What's wrong with diff -r --brief dir1 dir2

RE: [PHP] looking for program/script to diff directories and showdates

2005-07-27 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED] on Wednesday, July 27, 2005 10:56 AM said: What about just checking the modified times of the two files with filemtime()? You could have it grab the timestamp of both files, compare them, and see if it's outside a set parameter (like 24 hours, 7 days,

Re: [PHP] snapshot

2005-07-27 Thread tg-php
Launching a brower shouldn't be difficult.. there's a few ways to do that. Taking the screenshot might be trickier though. I don't know of any function in IE that'll take a screenshot so don't know if you could do it through a COM interface to IE. My first impulse was to maybe check out the

[PHP] Re: can I use Apache v 2 with PHP?

2005-07-27 Thread Matthew Weier O'Phinney
* Taksam [EMAIL PROTECTED]: I finally installed Apache 1.3.3 and PHP 5.0.4 engine and made my first PHP page and it works! thanks for your help! And didn't use an IDE, just UltraEdit :) but, I WILL use and IDE someday anyway. The beauty of PHP (and most scripting languages) is that you don't

[PHP] Event-Driven Programing

2005-07-27 Thread cron
Hello, Anyone willing to share knowledge or points to articles that try to implement event-driven programming in PHP. And yes, I know php is not event driven language but I like the approach when working with 3 layers patterns. Regards, Angelo

Re: [PHP] Multipage form redux

2005-07-27 Thread Jack Jackson
hi, my first attempt at a sessions-based form is starting at http://pastebin.com/322696 and I have a question. What I want to do is, after the user answers the questions in section one and they are error checked, I want to write the answers to $_SESSION() and then continue down the script to

Re: [PHP] Event-Driven Programing

2005-07-27 Thread Marco Tabini
There you go: http://beeblex.com/search.php?s=eventd=phpa_articles The first three articles are all about event-driven programming with PHP using various frameworks. Cheers, Marco On 7/27/05 3:31 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Anyone willing to share

RE: [PHP] Multipage form redux

2005-07-27 Thread Jim Moseby
-Original Message- From: Jack Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 3:47 PM To: php [php] PHP General List Subject: Re: [PHP] Multipage form redux hi, my first attempt at a sessions-based form is starting at http://pastebin.com/322696 and I have

Re: [PHP] Multipage form redux

2005-07-27 Thread Jack Jackson
Jim Moseby wrote: -Original Message- From: Jack Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 3:47 PM To: php [php] PHP General List Subject: Re: [PHP] Multipage form redux hi, my first attempt at a sessions-based form is starting at http://pastebin.com/322696 and

Re: [PHP] Using PHP to get user input via checkbox through a data base

2005-07-27 Thread Wil Hitchman
Thank you Jim...this is helpful. I will try this when I get home. Wil - Original Message - From: Jim Moseby [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, July 26, 2005 4:03 PM Subject: RE: [PHP] Using PHP to get user input via checkbox through a data base Hello

RE: [PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread Philip Hallstrom
I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive interface? What's wrong with diff -r --brief dir1 dir2 That's about as intuitive as you can get, no? Well to answer your question, no. It could

Re: [PHP] snapshot

2005-07-27 Thread Philip Hallstrom
We just bought ourselfs a very basic windows station so that we can test our php and html applications on windows as well. For the html applications, a simple screen shot of how it looks in internet explorer is sufficient. I know how to handle http authentication, file uploads, streaming files

RE: [PHP] Multipage form redux

2005-07-27 Thread Jim Moseby
Jim Moseby wrote: -Original Message- From: Jack Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 3:47 PM To: php [php] PHP General List Subject: Re: [PHP] Multipage form redux hi, my first attempt at a sessions-based form is starting at

[PHP] define (true/false)

2005-07-27 Thread Sebastian
i never really used constants before so this may sound stupid.. when you define a constant using define() and want to return true/false is this logical: if($bars == 3) { define('BAR', 1); } then: if(BAR) { // bars is true } or should i need to do an else statement as well: if($bars

Re: [PHP] define (true/false)

2005-07-27 Thread comex
i never really used constants before so this may sound stupid.. when you define a constant using define() and want to return true/false is this logical: http://us2.php.net/defined -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] application-wide shared data/object

2005-07-27 Thread Aiguo Fei
In ASP.Net there is the concept of application which is a virtual directory on a Web server. An application can have application-wide shared data/objects, which can be accessed by any script of that application (i.e., scripts under the virtual directory). I have gone through several PHP books,

[PHP] Re: application-wide shared data/object

2005-07-27 Thread Aaron Greenspan
Hi, Not sure if everyone would agree, but I think the best way to go about doing this is just to make a table in a relational database. You can restrict access permissions using MySQL if that's something you're really concerned about, but there's basically no disadvantage to just storing

[PHP] Date confusion

2005-07-27 Thread Linda H
Hi, I must admit I am surprised at the paucity of date and time functions in PHP. I have a date stored in a MySQL database in field of datatype date. PHP doesn't seem to have a function I can use to format it for print. I tried the following but regardless of the value in the date field, it

Re: [PHP] Date confusion

2005-07-27 Thread Rasmus Lerdorf
Linda H wrote: Hi, I must admit I am surprised at the paucity of date and time functions in PHP. I have a date stored in a MySQL database in field of datatype date. PHP doesn't seem to have a function I can use to format it for print. I tried the following but regardless of the value in

RE: [PHP] Date confusion

2005-07-27 Thread Rob Agar
hi Linda I must admit I am surprised at the paucity of date and time functions in PHP. You may want to check out the PEAR Date class: http://pear.php.net/package/Date Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] application-wide shared data/object

2005-07-27 Thread Joe Wollard
Aiguo, To achieve good performance, I want to load the whole dictionary into memory when the application starts (e.g., when the web server starts... I'm not sure how ASP works, but in PHP you can't load something into memory when the web server starts and keep it there. PHP 'compiles'