Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Just a comment... On Tuesday, September 24, 2002 1:39 PM Jaski wrote: snip I tried to copy this file using move_uploaded_file($userfile, "/place/to/put/uploaded/file"); and here a strange thing happened. The file was successfully copied BUT it had permissions like -rw-- which I interpret

[PHP] ADOdb

2002-09-24 Thread Brendon G
Just curious as to what the general consensus of opinion is on the following class. Do many of you use it?. http://php.weblogs.com/ADOdb Coming over to PHP from ASP (I'm not really interested in learning .Net at the moment) I like that I can switch databases allot faster if the need occurs by

Re: [PHP] SQL : left join from multiple tables

2002-09-24 Thread Marek Kilimajer
Well, this would work in MySQL, I have even more LEFT JOINs, so go find out if it is possible with Oracle. Faisal Abdullah wrote: Hi again people! How's it goin? Here's the question How do I do left joins from multiple tables? I want to do something like this: select a.name, b.department,

Re: Re: [PHP] file uploads problem

2002-09-24 Thread Jaski
No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. The server is managed by rackspace .. I doubt they would do some thing like running apache as root which I hear is a v foolish thing to do (frankly I don't know how to

Re: [PHP] in a logic loop!

2002-09-24 Thread Marek Kilimajer
Do it after the loop finishes while( ){ if( something ) { print out; reinicialize } } print out Naintara Jain wrote: I have a logic problem: I have a complicated query. The main thing is that I have an ID, and for a particular ID, I may have between 1 to 3 rows

[PHP] Create login procedure...

2002-09-24 Thread Christian Ista
Hello, I change the procedure to create an account for users. For the moment, the user (to create and log in), have to create an account with e-mail + password. I'd like to create a procedure to check the e-mail (login) validity. But I'd like to check if the e-mail used exist or not. The

Re: [PHP] in a logic loop!

2002-09-24 Thread Chris Hewitt
Naintara Jain wrote: What I am doing is: I maintain a set of details in say $prev_row (previous row) and another in cur_row (current row). The minute my cur_row detail (one unique id) doesn't match the prev_row detail, I print out all the previous row details, and reinitialize the various

Re: [PHP] right name for IfModule bla.c

2002-09-24 Thread Chris Hewitt
Andreas Hasenack wrote: What is the right name to use in apache's (2.0.41-dev) IfModule directive to test if the php4 module is loaded? I'm including the file below via httpd.conf's Include statement but the part between the IfModule is being completely ignored: Directory

Re: [PHP] file uploads problem

2002-09-24 Thread Marek Kilimajer
What I don't understand is how can your webserver create a file and then not to have permission to read it. What is your setup? Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. The server is managed by

[PHP] Warning: could not load/open font in php-4.1.2 and gd-1.8.4

2002-09-24 Thread Bobos, Mihai
hello, I installed Redhat 7.3 yesterday and now my php graphs are not working anymore... it says : Warning: could not load/open font in $filename line xxx...when I try to use any ttf text function, and that it has no support for freetype 2 when i try to use tf text functions... my config:

[PHP] why manual says 'don't use session_register'?

2002-09-24 Thread Giancarlo Pinerolo
The manual has many cautions that say 'do not use session_regiister,, session_is_registered, session_unregister, when the ini setting is register_globals=off. But they still do work, it seems. Or how exactly do these function work differently than with reg_globals On? Can I still continue to

Re: [PHP] Create login procedure...

2002-09-24 Thread Justin French
on 24/09/02 7:20 PM, Christian Ista ([EMAIL PROTECTED]) wrote: Hello, I change the procedure to create an account for users. For the moment, the user (to create and log in), have to create an account with e-mail + password. I'd like to create a procedure to check the e-mail (login)

Re: [PHP] why manual says 'don't use session_register'?

2002-09-24 Thread Justin French
if you have register globals off, then use the $_SESSION array. // set the value of a session var: $_SESSION['foo'] = bah; // test to see if a session var is set if(isset($_SESSION['foo'])) { ... } // unset / unregister a session var unset($_SESSION['foo']); The older functions still work,

[PHP] Re: why manual says 'don't use session_register'?

2002-09-24 Thread Erwin
Giancarlo Pinerolo wrote: The manual has many cautions that say 'do not use session_regiister,, session_is_registered, session_unregister, when the ini setting is register_globals=off. But they still do work, it seems. Or how exactly do these function work differently than with

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. I think you won't be able to do anything with the file IF you use your ftp client. The reason is because *you*

Re: [PHP] Create login procedure...

2002-09-24 Thread Marek Kilimajer
Christian Ista wrote: Hello, I change the procedure to create an account for users. For the moment, the user (to create and log in), have to create an account with e-mail + password. I'd like to create a procedure to check the e-mail (login) validity. But I'd like to check if the e-mail

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Oops, what I wanted to post was http://www.php.net/manual/en/function.chmod.php and not http://www.php.net/manual/en/function.chown.php - E On Tuesday, September 24, 2002 6:00 PM @ Edwin wrote: Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any

[PHP] error compiling apache2 on cobalt libgdbm error

2002-09-24 Thread electroteque
libtool: link: warning: library `/usr/lib/libgdbm.la' was moved. libtool: link: warning: library `/usr/lib/libgdbm.la' was moved. make[1]: Leaving directory `/home/src/httpd-2.0.40' what could be the problem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] domxml and setting the DOCTYPE

2002-09-24 Thread Raphael Bauduin
Hi, I'm generating XML files with the domxml functions. Everything works fine, but I can't set the !DOCTYPE blah SYSTEM my.dtd. I tried to add a textnode, but are translate in lt; gt; quot; :( Thanks for your help. Raph PS:Having some troubles to send on the ML, I send this through the

[PHP] Q: PHP and UTF-16 support?

2002-09-24 Thread Heiko Nardmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there any UTF-16 support out there for PHP? We need an XML parser which supports both UTF-8 and UTF-16. - -- Heiko Nardmann (Dipl.-Ing.), [EMAIL PROTECTED], Software Development secunet Security Networks AG - Sicherheit in Netzwerken

[PHP] freetype - could not open font problem

2002-09-24 Thread andy
Hi there, I am trying to use freetype, but do always get the message Warning: Could not find/open font in test.php on line 18 The font is available and ok. I double checked it. What could cause this error exept of the given reason? I am trapped ;-) Thanx for any help on that. Andy --

RE: [PHP] SQL : left join from multiple tables

2002-09-24 Thread Jay Blanchard
[snip] select a.name, b.department, c.position from emp a left join dept b on a.staffno = b.staffno left join position c on a.staffno = c.staffno where staffno = $staffno; I know the statement above is totally wrong. I'm just hoping u guys can understand what i'm trying to achieve from it.

RE: [PHP] SQL : left join from multiple tables

2002-09-24 Thread Jay Blanchard
[snip] [snip] select a.name, b.department, c.position from emp a left join dept b on a.staffno = b.staffno left join position c on a.staffno = c.staffno where staffno = $staffno; I know the statement above is totally wrong. I'm just hoping u guys can understand what i'm trying to achieve from

RE: [PHP] ADOdb

2002-09-24 Thread Steve Bradwell
One thing that has helped me was to write a db class and use it to connect to mysql, then all you have to do is change the class, and not all your code when you change the db. -Steve -Original Message- From: Brendon G [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 4:03 AM

[PHP] impossible in php?

2002-09-24 Thread andy
Hi there, I am trying to do something real dynamic. It looks like this is impossible in php because the parser would not work for the two cases. Following idea. - Create a dynamic image ( a card with a given text inside). I call it v-card.jpg and a .htaccess file takes care that the .jpg is

RE: [PHP] freetype - could not open font problem

2002-09-24 Thread Matt Schroebel
From: andy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 7:29 AM Subject: [PHP] freetype - could not open font problem I am trying to use freetype, but do always get the message Warning: Could not find/open font in test.php on line 18 The font is available and ok. I

RE: [PHP] impossible in php?

2002-09-24 Thread Jay Blanchard
[snip] Following idea. - Create a dynamic image ( a card with a given text inside). I call it v-card.jpg and a .htaccess file takes care that the .jpg is parsed via php So the v-card.jpg is a php file outputting a jpg. This workes pretty good. - Create a pdf with lots of this v-cards inside. The

Re: Re: Re: [PHP] file uploads problem

2002-09-24 Thread Jaski
Thanks Edwin .. this one was Bang On. It was exactly what you said .. and now it works .. thanks a lot. Jaski On Tue, 24 Sep 2002 Edwin wrote : Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client ..

Re: [PHP] SQL : left join from multiple tables

2002-09-24 Thread Chris Hewitt
Faisal, I'd check the documentation CDs for Oracle 9i. Oracle 8 does not use the join or left keywords but a plus sign in parenthesis (+) whose position determines whether it is a left or right join. It may not be SQL2 but its Oracle. HTH Chris Marek Kilimajer wrote: Well, this would work

RE: [PHP] in a logic loop!

2002-09-24 Thread Naintara Jain
Thank you Chris. I agree with you wholeheartedly that the SQL should be optimized. Now, I don't want to freeload on your time, but I have a very complex query, which I have been pondering over for the last many days. If anyone can tell me what query will return just one row for the problem I

Re: [PHP] in a logic loop!

2002-09-24 Thread Justin French
SELECT DISTINCT * FROM table WHERE . Check out the MySQL manual for more help, or post yout existing query for me to gawk at :) HTH Justin on 24/09/02 11:24 PM, Naintara Jain ([EMAIL PROTECTED]) wrote: Thank you Chris. I agree with you wholeheartedly that the SQL should be optimized.

[PHP] Re: domxml and setting the DOCTYPE

2002-09-24 Thread Raphael Bauduin
Please, don't tell me I can't set the doctype with php!? Will I have to user a 3 liner in perl to set the doctype? :( Raph Raphael Bauduin wrote: Hi, I'm generating XML files with the domxml functions. Everything works fine, but I can't set the !DOCTYPE blah SYSTEM my.dtd. I tried to

RE: [PHP] in a logic loop!

2002-09-24 Thread Naintara Jain
sweet solution. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] t]On Behalf Of Marek Kilimajer Sent: Tuesday, September 24, 2002 1:44 PM To: PHP Subject: Re: [PHP] in a logic loop! Do it after the loop finishes while( ){ if( something ) { print

[PHP] RE: Maybe a stupid question but can it be done?

2002-09-24 Thread Tim Ward
the ID field in the first table can be an auto-increment field and the second table needs to have an ID INT field that is not auto increment. Insert into the first table, use mysql_insert_id() (or whatever it is) to get the auto incremented value and then do your second insert using that value

[PHP] Q: how to parse HTTP POST best?

2002-09-24 Thread Heiko Nardmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I know that PHP just sets variables according to the FORM that then can be accessed easily. But what to do if I receive a POST request like the following: - --- POST HTTP/1.0 Content-Type: application/ocsp-request Content-Length: 120

[PHP] PEAR or not PEAR

2002-09-24 Thread Joshua E Minnie
Hey all, I was reading an article at PHPBuilder.com (not very recent, 01/15/2001) about PEAR DB, and was wondering if anyone had any experience using PEAR rather than the functions dedicated specifically to each type of DB (i.e. mysql_, mssql_, pg_, msql_, etc.). Also, if anyone has any reasons

[PHP] Resource for locating user-written functions?

2002-09-24 Thread paul wilczynski
Does anyone know of a net resource which lists user-written PHP functions available for download? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Warning: could not load/open font in php-4.1.2 and gd-1.8.4

2002-09-24 Thread Bobos, Mihai
kinda strange... Mine is like this GD Support enabled GD Version 1.6.2 or higher FreeType Supportenabled FreeType Linkagewith freetype JPG Support enabled PNG Support enabled WBMP Supportenabled I have gd-1.8.4 and

[PHP] Re: Resource for locating user-written functions?

2002-09-24 Thread Joshua E Minnie
You might check out http://wildelement.users.phpclasses.org/ -- Joshua E Minnie Advantage Computer Services, LLC Senior Project Manager [EMAIL PROTECTED] Phone: 269.276.9690 Fax: 269.342.8750 Don't work for recognition, but always do work worthy of recognition. Paul Wilczynski [EMAIL PROTECTED]

Re: [PHP] Re: domxml and setting the DOCTYPE

2002-09-24 Thread Marek Kilimajer
Don't know much about DOM, but it seems you can use dump_mem() to dump the xml into a string, and then replace your first line Raphael Bauduin wrote: Please, don't tell me I can't set the doctype with php!? Will I have to user a 3 liner in perl to set the doctype? :( Raph Raphael Bauduin

Re: [PHP] right name for IfModule bla.c

2002-09-24 Thread Andreas Hasenack
Em Tue, Sep 24, 2002 at 08:59:54AM +0100, Chris Hewitt escreveu: It looks fine to me (I'm no expert), but maybe its case sensitive? You have /Ifmodule rather than /IfModule. Otherwise perhaps remove the IfModule completely for a test to see if it is the /IfModule causing the problem. It's

Re: [PHP] Re: domxml and setting the DOCTYPE

2002-09-24 Thread Raphael Bauduin
thanks for your answer. I hoped there was a function to specify the doctype of the document generated. Apparently there isn't. It's as sad thing as I have to create another script just to add the doctype. Can someone just confirm me it's not possible with php to do what I want? I find it

RE: [PHP] error compiling apache2 on cobalt libgdbm error

2002-09-24 Thread Jesse Cablek
electroteque mailto:[EMAIL PROTECTED] scribbled; libtool: link: warning: library `/usr/lib/libgdbm.la' was moved. libtool: link: warning: library `/usr/lib/libgdbm.la' was moved. make[1]: Leaving directory `/home/src/httpd-2.0.40' what could be the problem It looks like a gdb issue. It

[PHP] Problems with variables and PHP/HTML

2002-09-24 Thread Ed Curtis
I am currently using Apache 1.3.26 and PHP 4.2.3 on a Linux box running Kernel 2.0.36 My trouble is in passing variable from within a form submission or within a URL. I can get a From submission to work if I declare the variable and resubmit it to another variable name. I.E. form field name =

Re: [PHP] error compiling apache2 on cobalt libgdbm error

2002-09-24 Thread Rasmus Lerdorf
Note that gdbm is not threadsafe, so you should only run Apache2 in prefork mode (or simply stick with Apache 1.3). But what does this have to do with PHP? On Tue, 24 Sep 2002, electroteque wrote: libtool: link: warning: library `/usr/lib/libgdbm.la' was moved. libtool: link: warning:

RE: [PHP] Crypt() =or= md5()

2002-09-24 Thread Jesse Cablek
Anthony Ritter mailto:[EMAIL PROTECTED] scribbled; I get the following line when trying to use the crypt() function in php .. Fatal error: Call to undefined function: crypt() in c:\program files\apache group\apache\htdocs\handleform1.php on line 16

Re: [PHP] Problems with variables and PHP/HTML

2002-09-24 Thread Justin French
set register globals to ON in your PHP.ini for this to work, although I'd highly recommend doing what you already are doing... $username = $_POST['username']; It's a LOT more secure. Justin on 25/09/02 12:50 AM, Ed Curtis ([EMAIL PROTECTED]) wrote: I am currently using Apache 1.3.26 and

Re: [PHP] error compiling apache2 on cobalt libgdbm error

2002-09-24 Thread electroteque
excuse me sorry wrong list i have many open i havent even begun with the php install yet Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Note that gdbm is not threadsafe, so you should only run Apache2 in prefork mode (or simply stick with Apache

Re: [PHP] right name for IfModule bla.c

2002-09-24 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Try this: Directory /srv/www/default/html/acid AllowOverride None order deny,allow Deny from all Allow from 127.0.0.1 IfModule mod_php4.c php_flag engine on php_value include_path

Re: [PHP] MySQL vs. basic text file

2002-09-24 Thread drparker
ok - thanks for all the replies. it looks like there are no real drawbacks and plently of advantages in using MySQL instead of text files, so i'll do the next project with it. one more question - is there a concrete file that has the database in mySQL? like a file that I could download and

Re: [PHP] right name for IfModule bla.c

2002-09-24 Thread Andreas Hasenack
Em Tue, Sep 24, 2002 at 11:08:06AM -0400, Paul Nicholson escreveu: What exactly is not working? The directives inside the IfModule branches are being ignored. Thus the include path is not being modified and my application doesn't work. I know, I can change the application to include the right

Re: [PHP] Error with file upload: No file uploaded in Unknown online 0

2002-09-24 Thread Marek Kilimajer
Turn off notice logging in your php.ini, just keep warnings and errors. Jason Young wrote: I have some code that a user can set a description about an item to be posted, and then add some image files of the item. Its a 3x3 frame of input type=file fields, along with an 'include' line for

Re: [PHP] passing by reference via the variable arg list

2002-09-24 Thread Marek Kilimajer
Not possible, but workaround is to pass the variable name and use it as a variable variable, but for this the variable needs to be global. Trevor Dowling wrote: Can anyone help with this? I am relativly new to PHP and am trying to use variable numbers of parameters to functions using the

[PHP] XSLT and PHP

2002-09-24 Thread Geoff
I have been impressed with using the xslt functions in php in that it gives you the ability to separate content from presentation. Now I am looking to streamline this technique. Typically I either take xml that is in a file or generated by a class from a sql query and transform it with an xsl

[PHP] problems with phpPgAdmin

2002-09-24 Thread javier
Hi, I've just installed phpPgAdmin. When it comes to configuration it seems that everything is ok *but* the program doesn't work. I read some files and I found this: if (file_exists(config.inc.php)) { include(config.inc.php); } else { echo Configuration Error: You must

Re: [PHP] passing by reference via the variable arg list

2002-09-24 Thread Trevor Dowling
Thought as much after some head scratching, Thanks Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Not possible, but workaround is to pass the variable name and use it as a variable variable, but for this the variable needs to be global.

RE: [PHP] problems with phpPgAdmin

2002-09-24 Thread Jay Blanchard
[snip] I read some files and I found this: if (file_exists(config.inc.php)) { include(config.inc.php); } else { echo Configuration Error: You must rename/copy config.inc.php-dist to config.inc.php and set your appropriate settings; exit; } The file exists but I don't

[PHP] apache problem......

2002-09-24 Thread Anil Garg
hi in my httpd.conf i have added a virtual host as: VirtualHost 10.70.0.215:90 # General setup for the virtual host DocumentRoot /netvcr/www/niksun ServerName niksun.com #ServerAdmin [EMAIL PROTECTED] ErrorLog |/usr/local/sbin/rotatelogs /var/log/httpd-error.log 172800 10 TransferLog

Re: [PHP] Error with file upload: No file uploaded in Unknown on

2002-09-24 Thread Jason Young
Thanks for your reply... However, is that the ONLY way? Shouldn't this be something that is not reported as an error to begin with? But even so, what about the other Notices I might receive in regards to other debugging.. I have to get rid of all that, too? Basically I'm asking if this is

Re: [PHP] apache problem......

2002-09-24 Thread Adam Williams
If you areusing IE you have to pu tin the http:// infront of it, its one of those quirky IE only things. Don't have to do that in Mozilla/Netscape. Adam On Tue, 24 Sep 2002, Anil Garg wrote: hi in my httpd.conf i have added a virtual host as: VirtualHost

[PHP] Re: apache problem......

2002-09-24 Thread Jason Young
This seems to be a browser problem, as I often get similar errors when trying to access sites with port numbers. That looks like an IE error.. and I know I have the same problem with Mozilla. Anil Garg wrote: hi in my httpd.conf i have added a virtual host as: VirtualHost 10.70.0.215:90

[PHP] Experiences with Zend Safe Guard?

2002-09-24 Thread J Smith
The suits at work are looking at the Zend Safe Guard and I'm just wondering if anybody had any experience with this new tool. Is it worth the purchase, and has it been worth the price? We already have a Zend Encoder license, so we're getting a bit of price break for the Safe Guard, but it's

Re: [PHP] Error with file upload: No file uploaded in Unknown on

2002-09-24 Thread Marek Kilimajer
Basically yes, unless you want to patch php sources and recompile. You could use error_reporting(), but the notice is issued befor you script gets to run, so that would not help. Jason Young wrote: Thanks for your reply... However, is that the ONLY way? Shouldn't this be something that is

[PHP] Jpeg resize quality problem

2002-09-24 Thread Michael F.
Hello, I have a php script which resizes a jpeg file. I use ImageCopyResized and ImageJPEG function. But the result picture quality is not enough good. I use ImageJPEG with quality = 90 but the picture is not as nice as a picture I made with AcdSee and 65%. Is it normal? Thanks! -- PHP

[PHP] Scripthash PHP security module updated

2002-09-24 Thread Tom Oram
Hi, I would just like to announce an update of our scripthash library. There was problems running the previous version on system with recent versions glibc. For everyone who doesn't already know, scriphash is only relevent for people running PHP as an Apache module on a *nix system. It allows

[PHP] PHP Form and Arrays help

2002-09-24 Thread Tom Ray
I'm having a small problem with a form I'm designing and I hope someone can point me in the right direction here. The form's function is rather simple actaully. It's supposed to take the information, run through it to make sure all the required fields have data in them, if there is a blank

Re: [PHP] Jpeg resize quality problem

2002-09-24 Thread Marek Kilimajer
The algoritm gdlib uses is fast but worst. Use either exec(convert ...) or imlib extension Michael F. wrote: Hello, I have a php script which resizes a jpeg file. I use ImageCopyResized and ImageJPEG function. But the result picture quality is not enough good. I use ImageJPEG with quality =

Re: [PHP] PHP Form and Arrays help

2002-09-24 Thread Marek Kilimajer
Use either session to remember the checkboxes' name/value pairs or hidden fields. Tom Ray wrote: I'm having a small problem with a form I'm designing and I hope someone can point me in the right direction here. The form's function is rather simple actaully. It's supposed to take the

Re: [PHP] PHP Form and Arrays help

2002-09-24 Thread Geoff
If I remember correctly checkboxes literally do not exist on the posted pages if they don't get checked on the form page. So maybe you can use isset or something like that to see if the checkbox exists if so make it checked if not show it unchecked. Hope that helps. On Tue, 2002-09-24 at 11:24,

[PHP] Creating/displaying page content and downloading a file at the same time

2002-09-24 Thread Merritt, Dave
All, I'm trying to write a script that will allow the user to download/save a file but I also want to be able to display a web page in the browser window as well. If a user runs the following code from an empty browser window, then the contents of the browser window will remain empty. How do I

Re: [PHP] Creating/displaying page content and downloading a fileat the sa me time

2002-09-24 Thread Marek Kilimajer
Display a page first, then use the redirect header to redirect the browser to the actual file. Merritt, Dave wrote: All, I'm trying to write a script that will allow the user to download/save a file but I also want to be able to display a web page in the browser window as well. If a user

[PHP] Adding to a MySql Database

2002-09-24 Thread The New Source
I have a field on a MySql database that is started with a 0, and I want to add 1 to this field every time a button is pressed on a form. So it should add one every time, like if there is 5 and you press it one time it would have 6.

RE: [PHP] Adding to a MySql Database

2002-09-24 Thread Jay Blanchard
[snip] I have a field on a MySql database that is started with a 0, and I want to add 1 to this field every time a button is pressed on a form. So it should add one every time, like if there is 5 and you press it one time it would have 6. [/snip] 1. SELECT for the current value 2. add 1 to the

Re: [PHP] Jpeg resize quality problem

2002-09-24 Thread Michael F.
But what is this convert function? (I use WinXP) Or how can I install the imlib extension? Thanks! Marek Kilimajer [EMAIL PROTECTED] az alábbiakat írta a következo hírüzenetben: [EMAIL PROTECTED] The algoritm gdlib uses is fast but worst. Use either exec(convert ...) or imlib extension

RE: [PHP] Jpeg resize quality problem

2002-09-24 Thread Matt Schroebel
-Original Message- From: Michael F. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Jpeg resize quality problem Hello, I have a php script which resizes a jpeg file. I use ImageCopyResized and ImageJPEG

Re: [PHP] Adding to a MySql Database

2002-09-24 Thread Marek Kilimajer
Or better UPDATE table SET col = col +1 Jay Blanchard wrote: [snip] I have a field on a MySql database that is started with a 0, and I want to add 1 to this field every time a button is pressed on a form. So it should add one every time, like if there is 5 and you press it one time it would

Re: [PHP] Adding to a MySql Database

2002-09-24 Thread Miles Thompson
Marek's a bit more elegant, but I'm wondering when twelve of us press the button and the database is hit bang, bang, bang. Mightn't a MySQL autoincrement field be better, and let MySQL do the work? mt At 07:32 PM 9/24/2002 +0200, Marek Kilimajer wrote: Or better UPDATE table SET col = col +1

Re: [PHP] Jpeg resize quality problem

2002-09-24 Thread Marek Kilimajer
convert is a command common on unix platforms, might be available even for windows. Imlib ext. is not available for Windows. ( check http://mmcc.cx/php_imlib/ ) Michael F. wrote: But what is this convert function? (I use WinXP) Or how can I install the imlib extension? Thanks! Marek

Re: [PHP] Adding to a MySql Database

2002-09-24 Thread Daniel Masson
I agree mt, LET MYSQL DO THE JOB !! Marek's a bit more elegant, but I'm wondering when twelve of us press the button and the database is hit bang, bang, bang. Mightn't a MySQL autoincrement field be better, and let MySQL do the work? mt At 07:32 PM 9/24/2002 +0200, Marek Kilimajer

[PHP] authenticating and redirecting with special access

2002-09-24 Thread Bryan Koschmann - GKT
Hello, I'm fairly new to PHP, but I am studying (ORA's Programming PHP). I am trying to do something but can't quite figure out how. Here is what I need to do: User goes to an address. They login with say jsmith and their password. the PHP script gets authenticates against a MySQL database. I

[PHP] script to check for register_gloabs=off compatibility

2002-09-24 Thread Thomas Porter
I currently maintain about 100 sites that use PHP. Many of them were programmed pre 4.2, and are not compatible with the register_globals=off setting. Since we use virtual hosts in apache I have been able to modify that one ini setting for the sites that need it, but now my job is to modify all

RE: [PHP] authenticating and redirecting with special access

2002-09-24 Thread David Buerer
make the directory outside of the web server root path and create some PHP routines to display the directory data as you see fit. PHP can see the entire file store, whereas the webserver can only see data below it's root. That way you keep security and can also display the data. -Original

[PHP] Thoughts on a simple search engine...

2002-09-24 Thread Chuck Payne
Ok for a simple search I should be able to create a form page and Enter the value and select the feild that Ron want to search. Example $sql = SELECT * FROM \$table\ WHERE \$field\ LIKE \'%$value%'\ ORDER BY \$input\; $table = Of course the table they want to search $field = Field that want to

[PHP] Errr... problem uploading files

2002-09-24 Thread Jose Fandos
Hi, Under PHP 4.2.3 and 4.2.2 with Apache 1.3.6, all under Windows XP, when a form has a file input field, if I browse and upload, all the information going with the post to the server gets lost!!! There is no trace of it (and this is what's really frustating me, no trace in any log of any

[PHP] getting ip address of the user.

2002-09-24 Thread Anil Garg
hi, Can i get the ip-address of the machines who accessed my website?? Plz give the pointer that on what lines shall i start for doing so. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] getting ip address of the user.

2002-09-24 Thread Jesse Cablek
Anil Garg mailto:[EMAIL PROTECTED] scribbled; Can i get the ip-address of the machines who accessed my website?? Plz give the pointer that on what lines shall i start for doing so. print $_SERVER['REMOTE_ADDR']; -jesse -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] html input and php (newbie)

2002-09-24 Thread Anna Gyor
Hi, I just began to learn php and I have te following code. How can I get the input field value in the php script? Because my script doesn't work. $UserName is always an empty string. ?php if ($submit == click){ echo Hello, $UserName; } else{ ? htmlbody form method=post action=input.php3

RE: [PHP] html input and php (newbie)

2002-09-24 Thread Daniel Kushner
Hi Anna, Your REGISTER_GLOBALS is most probably set to OFF (see php.ini file). Try using the special $_POST array created by PHP: if ($_POST['submit'] == click){ echo Hello, $_POST[UserName]; } If your form was using the GET method you would need the $_GET array. Regards, Daniel

RE: [PHP] html input and php (newbie)

2002-09-24 Thread Jesse Cablek
Anna Gyor mailto:[EMAIL PROTECTED] scribbled; Hi, I just began to learn php and I have te following code. How can I get the input field value in the php script? Because my script doesn't work. $UserName is always an empty string. ?php if ($submit == click){ echo Hello, $UserName;

Re: [PHP] html input and php (newbie)

2002-09-24 Thread Juan Pablo Aqueveque
What is of your PHP version? I guess of your directive register_globals = off in your php.ini, so your code would be run OK like this: ?php if ($_POST['submit'] ) { echo 'Hello'.$_POST['UserName']; } ? --jp At 21:31 24-09-2002 +0200, Anna Gyor wrote: Hi, I just began to learn php

RE: [PHP] getting ip address of the user.

2002-09-24 Thread Bill Farrell
Hi, Y'all, Here's another suggestion FWIW. I prep a few variables in the htmlhead.php routine, $RemoteHost being one of them. Having some simple names for associated values is kinda handy. One of the biggest strengths of PHP is that there's more than one way to go about solving problems. Here

RE: [PHP] html input and php (newbie) -- What I was asking with my thoughts on Search Engine

2002-09-24 Thread Chuck Payne
This what I was asking, I want someone to press submit then have the returns print out in one are of the table. So could I do this? ?php if ($submit == click){ echo $sql_result; } ? So instead of doing a search.html that calls on do_search.php like most books teach. I am wanting to do a

Re: [PHP] right name for IfModule bla.c

2002-09-24 Thread Chris Hewitt
Andreas Hasenack wrote: Someone at the apache list told me that the name would be sapi_apache2.c, because that's where the STANDARD20_MODULE_STUFF define is used. But sapi_apache2.c didn't work either. Ah, I didn't know you meant Apache 2 and windows? I'm going on Apache 1.3.x and linux.

RE: [PHP] Thoughts on a simple search engine...

2002-09-24 Thread Support @ Fourthrealm.com
Chuck, Setup your form like this (assuming search.php is the name of your page): FORM ACTION=search.php METHOD=post INPUT TYPE=hidden NAME=step VALUE=2 . /FORM Then in your search.php page, use this structure: # --- set $step to passed value, or else set to default --- if

[PHP] Variables and Forms

2002-09-24 Thread ed
I'm trying to pass variables from one page to the next but don't want to use a hidden input type=text box. I need to break from frames and I don't know a way to pass that to the action tag in the form. If there's a way to do that then great but I haven't found it. I've also tried the meta

Re: [PHP] Variables and Forms

2002-09-24 Thread Joseph W. Goff
This should open up a new window for the new page form action=your_new_page.php method=post target=_new As far as passing variables from page to page, have you ever considered sessions? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002

Re: [PHP] Adding to a MySql Database

2002-09-24 Thread John S. Huggins
On Tue, 24 Sep 2002, The New Source wrote: -I have a field on a MySql database that is started with a 0, and I want -to add 1 to this field every time a button is pressed on a form. So it -should add one every time, like if there is 5 and you press it one time -it would have 6. - UPDATE table

Re: [PHP] getting ip address of the user.

2002-09-24 Thread Bill Farrell
Hi, Tony... Here's a script I pilfered from online a coupla years back and have modified (over and over). The code would be online, except my ISP is having heartburns lately... Bill ?php $MetaTitle = WhoAmI; $MetaDescription = Utility to demonstrate PHP; include( style/htmlhead.php ); $OnLoad

Re: [PHP] right name for IfModule bla.c

2002-09-24 Thread Andreas Hasenack
Em Tue, Sep 24, 2002 at 08:53:16PM +0100, Chris Hewitt escreveu: Andreas Hasenack wrote: Someone at the apache list told me that the name would be sapi_apache2.c, because that's where the STANDARD20_MODULE_STUFF define is used. But sapi_apache2.c didn't work either. Ah, I didn't know you

[PHP] Error during complie of 4.2.3

2002-09-24 Thread David Busby
List, I'm trying to insstall PHP 4.2.3 on my RH73 box with Apache 2.0.40. My Configure script and my results are posted below, the error I'm getting that I can't figure out is: libtool: link: warning: library `/usr/lib/libxml2.la' was moved. stub.lo: file not recognized: File

  1   2   >