[PHP] Re: A follow up on my question about good coding practice [isset]

2004-06-07 Thread Ligaya Turmelle
how about: if (trim($foo) != '') Respectfully, Ligaya Turmelle Al [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I could use one additional clarification regarding good practice. As I understand the php manual the following is acceptable. $foo= TRUE; if($foo) do..

[PHP] PHP5-Perl extension

2004-06-07 Thread Umesh Deshmukh
Hi, We are using PHP5 on linux, basically we are interested in working with PHP5-perl extension. We are using Movable Type library for blog. We have problem in using object of Movable Type (perl library) in PHP. Can anybody guide me on how to use Perl Object in PHP5.

[PHP] PHP + Multiple MySQL-4.0.20

2004-06-07 Thread Minuk Choi
I have a RedHat9 machine. I needed to have multiple MySQL installations, so I removed the RPM installation and did a binary installation of MySQL-4.0.20. As it stands, I have the following installations /usr/local/mysql-4.0.20-webpage /usr/local/mysql-4.0.20-exp /usr/local/mysql-4.0.20-def

RE: [PHP] mkdir after mkdir

2004-06-07 Thread Uttam
guess it has something to do with default directory rights for newly created directories?? the directory 'x' gives your script permission to create directory under it. so you are able to create directory 'y' inside 'x'. but the newly created directory 'y' does not gives your script permission to

[PHP] GD error on 4.3.7: fatal libpng error

2004-06-07 Thread Alex
Hi! I'm not sure if this is the right place to post this, or if this is a bug or something I'm doing wrong. My host recently upgraded to 4.3.7, and since then, GD support for PNG's has been broken. Accessing GD PNG images directly shows the following error message: Fatal error: imagepng():

Re: [PHP] PHP + Multiple MySQL-4.0.20

2004-06-07 Thread Curt Zirzow
* Thus wrote Minuk Choi ([EMAIL PROTECTED]): I have a RedHat9 machine. I needed to have multiple MySQL installations, so I removed the RPM installation and did a binary installation of MySQL-4.0.20. As it stands, I have the following installations /usr/local/mysql-4.0.20-webpage

Re: [PHP] GD error on 4.3.7: fatal libpng error

2004-06-07 Thread Curt Zirzow
* Thus wrote Alex ([EMAIL PROTECTED]): Hi! I'm not sure if this is the right place to post this, or if this is a bug or something I'm doing wrong. My host recently upgraded to 4.3.7, and since then, GD support for PNG's has been broken. Accessing GD PNG images directly shows the following

RE: [PHP] ini_get

2004-06-07 Thread Ford, Mike [LSS]
On 06 June 2004 22:43, Dennis Gearon wrote: CC me please. Does anyone know if ini_get returns the values BEFORE or AFTER the .htaccess modifies them? i.e., does it return the server or local version? It gets the value the script is currently running with. This will be the local version,

[PHP] Best solution for creating variables from mysql statements

2004-06-07 Thread Nunners
I'm creating an application which has multiple users, with their own logins etc etc. From it, they have a number of links to external websites, to which I need to pass certain details, e.g. http://somewebsite.com/index.php?username=bob

[PHP] testing ip filtering

2004-06-07 Thread Merlin
Hi there, I am serving certain parts of my page only to specific countries (geotargeted advertisement). Now I am wondering how I could check how the page looks like from that country wihout traveling there :-) Is there a way to fool the system that one is in US instead of Germany? Thanx for

Re: [PHP] testing ip filtering

2004-06-07 Thread Marek Kilimajer
Merlin wrote: Hi there, I am serving certain parts of my page only to specific countries (geotargeted advertisement). Now I am wondering how I could check how the page looks like from that country wihout traveling there :-) Is there a way to fool the system that one is in US instead of Germany?

Re: [PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-07 Thread Robert Fitzpatrick
On Sun, 2004-06-06 at 17:48, Marek Kilimajer wrote: Robert Fitzpatrick wrote: On Sun, 2004-06-06 at 16:49, Marek Kilimajer wrote: Robert Fitzpatrick wrote: Trying to portupgrade my PHP 4.3.6 package with PostgreSQL 7.4.2 support and getting this error below. Trying to setup postgresql

[PHP] Newbie question about isset and binary conditionals

2004-06-07 Thread Al
I posted this previously; but the subject was misleading. I could use one additional clarification regarding good practice. As I understand the php manual the following is acceptable and I assume good practice. $foo= TRUE; if($foo) do.. ; where $foo is a binary; but not a variable.

[PHP] Newbie question about isset and binary conditionals

2004-06-07 Thread Al
I posted this previously; but the subject was misleading. I could use one additional clarification regarding good practice. As I understand the php manual the following is acceptable and I assume good practice. $foo= TRUE; if($foo) do.. ; where $foo is a binary; but not a variable.

RE: [PHP] Newbie question about isset and binary conditionals

2004-06-07 Thread Ford, Mike [LSS]
On 07 June 2004 14:04, Al wrote: I posted this previously; but the subject was misleading. You seem to have several possible misconceptions in your posting -- this may just be me misreading you, but anyway... I could use one additional clarification regarding good practice. As I understand

RE: [PHP] asp.net vs. php

2004-06-07 Thread Jay Blanchard
[snip] ..stuff.. [/snip] There is no comparison PHP is a language - asp.net is a set of methodologies applicable to several languages -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] source code display

2004-06-07 Thread Nguyen, Long P (Mission Systems)
Hi - When I try to bring up an index.php3 file on a browser, what display are source codes. And when I tried to bring up the same index.php file, I get the following: http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 / _ setCols(2); $loginBox-addRow('Username');

Re: [PHP] source code display

2004-06-07 Thread Matt Matijevich
[snip] When I try to bring up an index.php3 file on a browser, what display are source codes. [/snip] I dont see ? or ?php anywhere. Do you have that somewhere in your code? If you do, are you sure php is installed on the server? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Newbie question about isset and binary conditionals

2004-06-07 Thread Al
That's a big help Mike. My server has the error level set such that my incorrect use of if($var) did not show undefined variables. Though everything seemed to work OK. I'm going my code and using if( TRUE or FALSE) isset() and empty() as appropriate. Al.. Mike Ford wrote: On 07 June

Re: [PHP] source code display

2004-06-07 Thread John Nichel
Nguyen, Long P (Mission Systems) wrote: Hi - When I try to bring up an index.php3 file on a browser, what display are source codes. And when I tried to bring up the same index.php file, I get the following: Is your web server parsing *.php3 files as php? Apache: AddType application/x-httpd-php

Re: [PHP] Dynamic Function Call

2004-06-07 Thread Tom Rogers
Hi, Monday, June 7, 2004, 11:47:00 AM, you wrote: Hello everyone! I'm trying to call a class method dynamically, but keep getting a SYNTAX ERROR. Can anyone shed some light on this? Is this impossible? ==The Code function modCall($_class){ $this-LoadClass($_class); //LoadClass

RE: [PHP] source code display

2004-06-07 Thread Nguyen, Long P (Mission Systems)
Yes. AddType application/x-httpd-php php php3 -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Monday, June 07, 2004 9:49 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] source code display Nguyen, Long P (Mission Systems) wrote: Hi - When I try to bring up an

[PHP] Javascript Question

2004-06-07 Thread GodFoca
Hey! Sorry for the OT, but since there seems to be no js newsgroup in gmane, I thought maybe someone in here could answer this simple question. I am trying to use javascript's print() to print a frame FROM ANOTHER frame. This is the layout: frameset rows=*,40 frameborder=NO border=0

[PHP] Coding productivity benchmarks?

2004-06-07 Thread Derrick fogle
I've been searching around for productivity benchmarks for PHP programming. The only references I can find for it are in for-pay publications. I've ended up becoming a PHP developer more out of happenstance than anything. I've been doing it for a couple of years now, but... I don't really

Re: [PHP] Javascript Question

2004-06-07 Thread Gabino Travassos
I would do two things. 1. Test your print() function on the same frame. Create a div called printableText and see if you can print it. If that works, then your print() function is okay. 2. Test your targeting. Use a different function, such as trying to change the text or rollover an img in

Re: [PHP] Coding productivity benchmarks?

2004-06-07 Thread Richard Davey
Hello Derrick, Monday, June 7, 2004, 3:51:20 PM, you wrote: Df So, am I just a pretender? Are there people out there that can really Df bust out a basic DMS in 40 minutes? I would say that there probably are - but you'd have to question how robust and well designed their system would be after

[PHP] Dynamic Tables

2004-06-07 Thread Christopher J. Crane
What is the best way to produce a report listing the fieldname and then the data in that field. It is a report containing only one row from a table, but I don't want to hard code the fields since they change often. I can get the field names dynamically like this: $fields =

Re: [PHP] Coding productivity benchmarks?

2004-06-07 Thread Brent Baisley
Nothing in the specs you listed mentioned anything about a pretty, intuitive GUI interface. Drop a nice interface requirement and that cuts your time considerably. Forget trying to design an event driven interface and drop back on the old mainframe menu driven interface with one option per

[PHP] I'm Completely Confused

2004-06-07 Thread GodFoca
Ok, googling I found: http://www.codelifter.com/main/javascript/printframe.shtml The example in there works ok, so I copied the code into my docs and it didn't work. I'm confused (BTW, parent is all is needed apparently) Could this be happening because I'm using the extension .php instead of

[PHP] other browsers

2004-06-07 Thread Bob Lockie
I've got this psuedo code that works in the Mozilla browser but does not work in IE or Opera or Konqueror. The input type isn't passing a request name or value and I have a few buttons and I use the name passed to determine with button was pressed. The PHP related thing !DOCTYPE HTML PUBLIC

Re: [PHP] other browsers

2004-06-07 Thread Oliver Hankeln
Bob Lockie wrote: I've got this psuedo code that works in the Mozilla browser but does not work in IE or Opera or Konqueror. The input type isn't passing a request name or value and I have a few buttons and I use the name passed to determine with button was pressed. The PHP related thing !DOCTYPE

[PHP] Re: I'm Completely Confused

2004-06-07 Thread GodFoca
Sorry for the new post, this should have been a reply to Javascript Question ([EMAIL PROTECTED]) Greeting, Nicolas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Doh!

2004-06-07 Thread GodFoca
Well, I found out why it wasn't working The frameset had the frame named pritableFrame instead of printableFrame so the reference was erroneous. The following works ok: script function printFrame(f) { parent.f.focus(); parent.f.print(); } /script ... a

RE: [PHP] Re: if/elseif/else v. switch

2004-06-07 Thread Chris W. Parker
Aidan Lister mailto:[EMAIL PROTECTED] on Saturday, June 05, 2004 6:19 AM said: You'll note I did not criticise the poster, merely his seemingly stupid question. oh right and that makes everything better. you're a fantastic person! I suggest you practice what you preach. If you have a

Re: [PHP] source code display

2004-06-07 Thread John Nichel
Nguyen, Long P (Mission Systems) wrote: Yes. AddType application/x-httpd-php php php3 Don't know if it matters or not, but all the 'examples' I've seen have the dot before the extension, ie AddType application/x-httpd-php .php .php3 -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED]

Re: [PHP] other browsers

2004-06-07 Thread Ben Ramsey
OH a few weeks ago. But It's easy to check nevertheless. edit_ip_x and OH edit_ip_y are passed reliably. So just do OH if(is_set($_REQUEST[edit_ip_x])) OH //Do stuff Rather, do: if(isset($_REQUEST[edit_ip_x])) Don't use is_set(). You'll get: Fatal error: Call to undefined function: is_set() The

Re: [PHP] source code display

2004-06-07 Thread Ben Ramsey
JN Don't know if it matters or not, but all the 'examples' I've seen JN have the dot before the extension, ie JN JN AddType application/x-httpd-php .php .php3 I've never used the dot (.) before the extension in Apache, and all works well. -- Regards, Ben Ramsey http://benramsey.com

RE: [PHP] Coding productivity benchmarks?

2004-06-07 Thread Tyler Replogle
hey, I just did all of that and it took me 1 hour and 35 mins, but I edited the code that i had already made from site before. It didn't take my anywhere near 4 hours, but there is no way i could do it in 40 mins. From: Derrick fogle [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] source code display

2004-06-07 Thread Ben Ramsey
Oh, I also meant to mention this: Are you sure that Apache is loading in the correct PHP module? The following lines are in my httpd.conf file: LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php php Assuming you're using PHP 3 instead of PHP 4, I guess you would load

[PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
DG Does anyone know if ini_get returns the values BEFORE or AFTER the DG .htaccess modifies them? i.e., does it return the server or local DG version? Please clarify what you mean by .htaccess modifying the values of your php.ini file. Perhaps you're misunderstanding what ini_get() does?

Re: [PHP] Re: ini_get

2004-06-07 Thread Marek Kilimajer
Ben Ramsey wrote: DG Does anyone know if ini_get returns the values BEFORE or AFTER the DG .htaccess modifies them? i.e., does it return the server or local DG version? Please clarify what you mean by .htaccess modifying the values of your php.ini file. Perhaps you're misunderstanding what

Re: [PHP] Re: ini_get

2004-06-07 Thread John Nichel
Ben Ramsey wrote: DG Does anyone know if ini_get returns the values BEFORE or AFTER the DG .htaccess modifies them? i.e., does it return the server or local DG version? It will return the local value. Perhaps you're misunderstanding what ini_get() does? ini_get() only retrieves values from the

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
MK I'm pretty sure this is what OP meant. He did not mention php.ini MK being modified. Huh? Who's OP? And what is it that you're pretty sure he meant? -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open

Re[2]: [PHP] Re: ini_get

2004-06-07 Thread Richard Davey
Hello Ben, Monday, June 7, 2004, 6:12:26 PM, you wrote: MK I'm pretty sure this is what OP meant. He did not mention php.ini MK being modified. BR Huh? Who's OP? And what is it that you're pretty sure he meant? OP = Original Poster (i.e. not you :) Best regards, Richard Davey --

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
JN ini_get() will return the current value for the ini_setting... JN doesn't matter if it's from the php.ini, ini_set() or a JN .htaccess file. All right. Clue me in here. How can an .htaccess file set/modify the values of php.ini? I wasn't aware that you could do that. -- Regards, Ben

Re: [PHP] Re: ini_get

2004-06-07 Thread John Nichel
Ben Ramsey wrote: MK I'm pretty sure this is what OP meant. He did not mention php.ini MK being modified. Huh? Who's OP? And what is it that you're pretty sure he meant? OP = original poster I'm pretty sure that the previous poster means that the OP wasn't saying that an .htaccess file would

Re[2]: [PHP] Re: ini_get

2004-06-07 Thread Richard Davey
Hello Ben, Monday, June 7, 2004, 6:15:11 PM, you wrote: JN ini_get() will return the current value for the ini_setting... JN doesn't matter if it's from the php.ini, ini_set() or a JN .htaccess file. BR All right. Clue me in here. How can an .htaccess file set/modify the BR values of php.ini?

Re: [PHP] Re: ini_get

2004-06-07 Thread John Nichel
Ben Ramsey wrote: JN ini_get() will return the current value for the ini_setting... JN doesn't matter if it's from the php.ini, ini_set() or a JN .htaccess file. All right. Clue me in here. How can an .htaccess file set/modify the values of php.ini? I wasn't aware that you could do that. Say

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
That's pretty interesting there, and I'll definitely have to try it out. However, Chapter 4 mentions nothing about being able to set runtime values in an .htaccess file... unless I missed something: http://www.php.net/manual/en/configuration.php Richard Davey wrote: Hello Ben, Monday, June 7,

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
Disregard my incompetence... Chapter 4 does mention it on subsequent pages. Ben Ramsey wrote: That's pretty interesting there, and I'll definitely have to try it out. However, Chapter 4 mentions nothing about being able to set runtime values in an .htaccess file... unless I missed something:

Re: [PHP] Re: ini_get

2004-06-07 Thread John Nichel
Ben Ramsey wrote: That's pretty interesting there, and I'll definitely have to try it out. However, Chapter 4 mentions nothing about being able to set runtime values in an .htaccess file... unless I missed something: http://www.php.net/manual/en/configuration.php

Re: [PHP] Re: ini_get

2004-06-07 Thread Richard Davey
Hi, Monday, June 7, 2004, 5:49:30 PM, you wrote: DG Does anyone know if ini_get returns the values BEFORE or AFTER the DG .htaccess modifies them? i.e., does it return the server or local DG version? BR Perhaps you're misunderstanding what ini_get() does? ini_get() only BR retrieves values

Re: [PHP] Re: ini_get

2004-06-07 Thread Dennis Gearon
thank you very much. Richard Davey wrote: Hi, Monday, June 7, 2004, 5:49:30 PM, you wrote: DG Does anyone know if ini_get returns the values BEFORE or AFTER the DG .htaccess modifies them? i.e., does it return the server or local DG version? BR Perhaps you're misunderstanding what ini_get() does?

RE: [PHP] image resize looks horrible..

2004-06-07 Thread Edward Peloke
Any ideas as to how I can fix this function??? -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 4:18 PM To: Php-General Subject: [PHP] image resize looks horrible.. I am using the below function which does seem to resize the image yet the

[PHP] Re: A follow up on my question about good coding practice [isset]

2004-06-07 Thread Justin Patrin
Al wrote: I could use one additional clarification regarding good practice. As I understand the php manual the following is acceptable. $foo= TRUE; if($foo) do.. ; where $foo is a binary; but not a variable. $foo is a boolean in this case, but it is still a variable, just like any

[PHP] Re: Best solution for creating variables from mysql statements

2004-06-07 Thread Justin Patrin
Nunners wrote: I'm creating an application which has multiple users, with their own logins etc etc. From it, they have a number of links to external websites, to which I need to pass certain details, e.g. http://somewebsite.com/index.php?username=bob

Re: [PHP] image resize looks horrible..

2004-06-07 Thread Marek Kilimajer
Is $gd2 set right? Edward Peloke wrote: Any ideas as to how I can fix this function??? -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 4:18 PM To: Php-General Subject: [PHP] image resize looks horrible.. I am using the below function which

Re: [PHP] image resize looks horrible..

2004-06-07 Thread Justin Patrin
Are you using gd2 or not? If you're not, that's probably your problem. Edward Peloke wrote: Any ideas as to how I can fix this function??? -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 4:18 PM To: Php-General Subject: [PHP] image resize

Re: [PHP] getting the line number

2004-06-07 Thread Adam Bregenzer
On Mon, 2004-06-07 at 14:52, Tim Traver wrote: I have a script that includes a separate file for functions. In a particular function, if a query gets an error, write out a log file that explains the error. The thing I am trying to determine is from what line the call was made from the

RE: [PHP] getting the line number

2004-06-07 Thread Chris W. Parker
Tim Traver mailto:[EMAIL PROTECTED] on Monday, June 07, 2004 11:52 AM said: Is it possible to get the line number of the parent script of a subroutine ??? no, not like you want (afaik). i wanted this same thing too but ended up just doing a workaround. it's a little kludgy but it's not

RE: [PHP] getting the line number

2004-06-07 Thread Chris W. Parker
Adam Bregenzer mailto:[EMAIL PROTECTED] on Monday, June 07, 2004 12:04 PM said: debug_backtrace[1] should get you everything you want and then some. [1] http://www.php.net/debug_backtrace that's what i get for using an older version. trombonemwa mwa mwa/trombone chris. -- PHP

[PHP] getting the line number

2004-06-07 Thread Tim Traver
Hi all, Is it possible to get the line number of the parent script of a subroutine ??? ok, let me explain that a little better. I have a script that includes a separate file for functions. In a particular function, if a query gets an error, write out a log file that explains the error. The

[PHP] Adding Attaching to the mail function

2004-06-07 Thread Paul Brasseur
Hello: I am Virtual Volunteer developing a PHP Script that processes a Form for a Youth Charity. Can anyone tell me how to add an attachment to the mail function's fourth parameter or point me to a good tutorial on the subject ? Regards, Paul Brasseur (Victoria, B.C. Canada ) -- PHP

[PHP] Re: Adding Attaching to the mail function

2004-06-07 Thread Justin Patrin
Paul Brasseur wrote: Hello: I am Virtual Volunteer developing a PHP Script that processes a Form for a Youth Charity. Can anyone tell me how to add an attachment to the mail function's fourth parameter or point me to a good tutorial on the subject ? Regards, Paul Brasseur (Victoria,

[PHP] include_once changed behavior?

2004-06-07 Thread Mattias Thorslund
Hi, In order to keep configuration files outside the web root I use: include_once('../config.php'); This used to work also when running php scripts from the command line. Now I have a new server and I get no such file or directory when using this construct from the command line. I have worked

Re: [PHP] getting the line number

2004-06-07 Thread Tim Traver
That is exactly what I needed... Thanks ! Tim. At 12:04 PM 6/7/2004, Adam Bregenzer wrote: On Mon, 2004-06-07 at 14:52, Tim Traver wrote: I have a script that includes a separate file for functions. In a particular function, if a query gets an error, write out a log file that explains the

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Jason Wong
On Tuesday 08 June 2004 03:21, Mattias Thorslund wrote: In order to keep configuration files outside the web root I use: include_once('../config.php'); This used to work also when running php scripts from the command line. Now I have a new server and I get no such file or directory when

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Mattias Thorslund
Jason Wong wrote: On Tuesday 08 June 2004 03:21, Mattias Thorslund wrote: In order to keep configuration files outside the web root I use: include_once('../config.php'); This used to work also when running php scripts from the command line. Now I have a new server and I get no such file or

[PHP] Re: Adding Attaching to the mail function

2004-06-07 Thread Manuel Lemos
Hello, On 06/07/2004 04:18 PM, Paul Brasseur wrote: I am Virtual Volunteer developing a PHP Script that processes a Form for a Youth Charity. Can anyone tell me how to add an attachment to the mail function's fourth parameter or point me to a good tutorial on the subject ? You may want

[PHP] Update problem

2004-06-07 Thread Maldiv
Hello, I have a php update form which use $_POST and $_GET too. I call the update like this update.php?id=1 And after the user submit the form with new data I use command like this: UPDATE table SET id=$_POST['id'] WHERE $_GET['id']='1'; This code works on localhost with Apache 2, Win XP, and

Re: [PHP] Update problem

2004-06-07 Thread Blake Schroeder
The form that is being submitted can only be a POST or a GET not both example: form method=post action=foo.php input type=text name=foo1 input type=submit /form How can you do both? -Blake Maldiv wrote: Hello, I have a php update form which use $_POST and $_GET too. I call the update like this

[PHP] [OFF] - Transparency in DHTML layers?

2004-06-07 Thread Brian Dunning
Hi, Does anyone know if there is a spec that permits transparency of graphics in DHTML layers? I have a bottom layer which is a picture of fabric, and I have a grayscale image of wrinkles shadows that I'd like to overlay on top of the fabric, with a certain level of transparency so the fabric

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Marek Kilimajer
Mattias Thorslund wrote: Hi, In order to keep configuration files outside the web root I use: include_once('../config.php'); This used to work also when running php scripts from the command line. Now I have a new server and I get no such file or directory when using this construct from the

Re: [PHP] Update problem

2004-06-07 Thread Marek Kilimajer
Blake Schroeder wrote: The form that is being submitted can only be a POST or a GET not both example: form method=post action=foo.php input type=text name=foo1 input type=submit /form How can you do both? form method=post action=foo.php?id=1 input type=text name=foo1 input type=submit /form Hope

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Marek Kilimajer
Marek Kilimajer wrote: Mattias Thorslund wrote: Hi, In order to keep configuration files outside the web root I use: include_once('../config.php'); This used to work also when running php scripts from the command line. Now I have a new server and I get no such file or directory when using this

Re: [PHP] Update problem

2004-06-07 Thread Blake Schroeder
Put a hidden field in your form named id. -Blake Blake Schroeder wrote: The form that is being submitted can only be a POST or a GET not both example: form method=post action=foo.php input type=text name=foo1 input type=submit /form How can you do both? -Blake Maldiv wrote: Hello, I have a php

Re: [PHP] [OFF] - Transparency in DHTML layers?

2004-06-07 Thread Marek Kilimajer
Brian Dunning wrote: Hi, Does anyone know if there is a spec that permits transparency of graphics in DHTML layers? I have a bottom layer which is a picture of fabric, and I have a grayscale image of wrinkles shadows that I'd like to overlay on top of the fabric, with a certain level of

Re: [PHP] Update problem

2004-06-07 Thread Mattias Thorslund
That will work, but the below is really supposed to work. I use it in my apps. Blake Schroeder wrote: Put a hidden field in your form named id. -Blake Mattias Thorslund wrote: Probably with form method=post action=foo.php?id=123 Blake Schroeder wrote: The form that is being submitted can only

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Mattias Thorslund
Marek Kilimajer wrote: cli php uses path relative to your current directory, cgi php uses path relative to the executing script. That IS interesting. That would explain why: php /var/www/myproject/util/my-cli-script.php ... will break unless I execute it from that same directory. I used to be

Re: [PHP] Coding productivity benchmarks?

2004-06-07 Thread Derrick fogle
On Jun 7, 2004, at 11:39 AM, Tyler Replogle wrote: I just did all of that and it took me 1 hour and 35 mins Just for grins and giggles, why don't I post the exact assignment specs? FYI, I've never really had to deal with file uploads and downloads before. It probably took me to an hour to

Re: [PHP] [OFF] - Transparency in DHTML layers?

2004-06-07 Thread Jason Wong
On Tuesday 08 June 2004 05:51, Marek Kilimajer wrote: Semitransparent PNGs, but that does not work in IE http://www.petitiononline.com/msiepng/petition.html What's the point? MS has already killed Netscape, they aren't going to improve IE anymore than necessary. -- Jason Wong - Gremlins

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Jason Wong
On Tuesday 08 June 2004 04:14, Mattias Thorslund wrote: What could be the difference that caused this? As Marek had pointed out the behaviour was changed ... Possibly: manual Using PHP from the command line -c switch ...except I don't use the -c switch? ... IIRC just after the

Re: [PHP] Update problem

2004-06-07 Thread Mattias Thorslund
To reply to the original post (sorry for the confusion): Maldiv wrote: Hello, I have a php update form which use $_POST and $_GET too. I call the update like this update.php?id=1 And after the user submit the form with new data I use command like this: UPDATE table SET id=$_POST['id'] WHERE

[PHP] an easy (perhaps dumb) question about PHP

2004-06-07 Thread Cere Davis
I haven't been able to glean anything about this from the Oreilly books, php web site, or anywhere else so I am breaking down and asking on this list. In other scripting languages like Perl/Ruby/Python (that aren't meant to live in the web environment exclusively) there usually have a web

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Mattias Thorslund
Jason Wong wrote: Possibly: manual Using PHP from the command line -c switch From the manual: The CLI SAPI does not change the current directory to the directory of the executed script! Note: The CGI SAPI supports the CLI SAPI behaviour by means of the -C switch when run from the command

RE: [PHP] an easy (perhaps dumb) question about PHP

2004-06-07 Thread Chris W. Parker
Cere Davis mailto:[EMAIL PROTECTED] on Monday, June 07, 2004 3:28 PM said: [snip] ...have a web library that writes basic html form input html types for like radio_button(name,val) and checkbox(name,val) type functions. I can't see that php has this type of feature. i'm pretty sure that

Re: [PHP] [OFF] - Transparency in DHTML layers?

2004-06-07 Thread Knightking
On Tue, 8 Jun 2004 06:17:34 +0800, Jason Wong [EMAIL PROTECTED] wrote: On Tuesday 08 June 2004 05:51, Marek Kilimajer wrote: Semitransparent PNGs, but that does not work in IE http://www.petitiononline.com/msiepng/petition.html What's the point? MS has already killed Netscape, they aren't going

[PHP] Re: an easy (perhaps dumb) question about PHP

2004-06-07 Thread Justin Patrin
Cere Davis wrote: I haven't been able to glean anything about this from the Oreilly books, php web site, or anywhere else so I am breaking down and asking on this list. In other scripting languages like Perl/Ruby/Python (that aren't meant to live in the web environment exclusively) there

[PHP] Squirrelmail Plug

2004-06-07 Thread Steve Douville
Kudos, kudos, kudos to the people who developed this webmail application and kudos to people who contributed plugins. Truly an easy program to install. The plugins are endless and also simple to install and configure. An excellent PHP application, highly recommended for anyone that needs a

[PHP] imagemagick

2004-06-07 Thread John
this might be a small bit o f f t o p i c but im trying to install imagemagick and running into a problem. im trying to crop JPEGs but imagemagick says it has no 'image decode' for that file type! upon closer inspection, it looks like youve to enable jpeg while configuring an install. but could

RE: [PHP] an easy (perhaps dumb) question about PHP

2004-06-07 Thread Michael Sims
Cere Davis wrote: In other scripting languages like Perl/Ruby/Python (that aren't meant to live in the web environment exclusively) there usually have a web library that writes basic html form input html types for like radio_button(name,val) and checkbox(name,val) type functions. I can't see

Re: [PHP] [OFF] - Transparency in DHTML layers?

2004-06-07 Thread Evan Nemerson
On Monday 07 June 2004 02:51 pm, Marek Kilimajer wrote: Brian Dunning wrote: Hi, Does anyone know if there is a spec that permits transparency of graphics in DHTML layers? I have a bottom layer which is a picture of fabric, and I have a grayscale image of wrinkles shadows that I'd like