Re: [PHP] time to seconds

2002-09-24 Thread mhafizm
select time_to_sec('00:12:30) ?? > > From: "adi" <[EMAIL PROTECTED]> > Date: 2002/09/18 Wed PM 04:54:31 CST > To: "PHP-General" <[EMAIL PROTECTED]> > Subject: [PHP] time to seconds > > Hi, I have a table table1, with a column "Duration" time type(ex 00:12:30) > I want to make in PHP a

[PHP] Re: problems with opendir()

2002-09-24 Thread Erwin
Man In The Box wrote: > hmm i seem to be having a problem with opendir(). perhaps one of you > could shed some light on the subject. > > here is the line of code (practically right out of the documentation) > > if ($handle = opendir('$_SERVER[DOCUMENT_ROOT]/files/$dir')) { > > blah blah blah; > }

[PHP] Re: PHP Installation under WinXP Apache 2.0.39

2002-09-24 Thread Erwin
Sascha Braun wrote: > I have a small problem I'm not able to solve. > > I wanted to install PHP 2.2.3 under WinXP together with an > Apache 2.0.39, but after installation and reconfiguration of > all Ini's and conf files the service did not start again. Isn't it PHP 4.2.3? ;-)) > After starting

Re: [PHP] for loop and array

2002-09-24 Thread Justin French
I think you add square brackets: so you'd have an array with a numeric key (0-n) and the value of the key would be the value of the input. or perhaps you'd prefer in this case the key of the array would be 'Hepb_ag', and the value would be true (1). In both cases, I don't think anything is

[PHP] for loop and array

2002-09-24 Thread Chris Grigor
Good Morning all I need some help as to how to print this array, its input name is labtype and they all have differnet values. Amylase Cholesterol CMV Ab IgM/G GLUCOSE - Fasting GLUCOSE - Random Hepatitus B S Ag On the page I created if the person selects any of these then it should submit it a

[PHP] Re: Error during complie of 4.2.3

2002-09-24 Thread Jason Morehouse
I had the same problem, but a `make clean` fixed things up. On Tue, 24 Sep 2002 15:54:55 +, David Busby wrote: > 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 fi

[PHP]dtabase problem

2002-09-24 Thread Thomas Edison Jr.
there is a problem in mysql database.there r two tables.one table is named as transactions and the other is named as the code.the transactions table has got the 12 fields which r the following 1.clientid int 2.date date 3.isinno text 4.debit int 5.credit int 6.desc text 7.dpid1 text

Re: [PHP] script to check for register_gloabs=off compatibility

2002-09-24 Thread Justin French
on 25/09/02 2:04 PM, Thom Porter ([EMAIL PROTECTED]) wrote: > The applications vary from site to site. Many of them use include files, > some of them don't. One thing that is nice is any apps that use cookies or > sessions go through the _COOKIE or _SESSION arrays already. nice. > I did thin

[PHP] MyPHPNuke1.8.8-1 *** Nuked ***

2002-09-24 Thread James Redfern
I used Update System on my E-smith server to install dmc-mitel-myphpnuke-1.8.8.-1.noarch.rpm without errors. Looked good but I thought I'd change the theme, so after having read the manual for 30 minutes, logged in as "God" and selected a yellow one. It started to load and then stopped with just

Re: [PHP] table-wide or database-wide search and replace?

2002-09-24 Thread Justin French
on 25/09/02 1:43 PM, John Holmes ([EMAIL PROTECTED]) wrote: > It really wouldn't be that difficult, would it? it would appear not :) > Give it a database name, the program find all the names of the tables, > then loops through them all. It find all the rows for each table (maybe > limit to just

[PHP] problems with opendir()

2002-09-24 Thread Man in the Box
hmm i seem to be having a problem with opendir(). perhaps one of you could shed some light on the subject. here is the line of code (practically right out of the documentation) if ($handle = opendir('$_SERVER[DOCUMENT_ROOT]/files/$dir')) { blah blah blah; } since that gives it the absolute pa

Re: [PHP] java script & session?

2002-09-24 Thread Jeff Bluemel
ok - I am calling these java script files, but I am calling them from a .phtml file. when the following like from the java script file is called, addMainItem("home.phtml","Home",120,"center",""); it does not pass the session ID number to the home.phtml "John Holmes" <[EMAIL PROTECTED]> wrote in

RE: [PHP] Ah ha ... confirm delete.

2002-09-24 Thread John Holmes
Huh? Are you talking about the result of the javascript confirm() function? Yes, it returns true or false. You can't pass that value anywhere (well, you could assign it to a form elements value). You generally use the result of the confirm() function to decide whether you submit the form or not. I

RE: [PHP] java script & session?

2002-09-24 Thread John Holmes
You aren't opening any PHP files, you are opening javascript files. Do you want the session info passed to the .js files? Is .js parsed as PHP on your server? Do you lose the session in your .phtml page after you call the given javascript? What is your question? ---John Holmes... > -Original

RE: [PHP] HT authentication question

2002-09-24 Thread John Holmes
> Is there a PHP function/method that destroys or expires a HT > authentication > session? So, for example, you're using a .htaccess file to control access > to a directory on a server, is there a way to destroy that session without > closing the browser window? Quote from manual: Both Netscape

Re: [PHP] java script & session?

2002-09-24 Thread Jeff Bluemel
what do you think the SESSIONS are??? possibly php session info ? ;) "John Holmes" <[EMAIL PROTECTED]> wrote in message 001401c2644d$8fb8d670$b402a8c0@mango">news:001401c2644d$8fb8d670$b402a8c0@mango... > And there is any reference to PHP in your question where > > > -Original Mess

[PHP] Ah ha ... confirm delete.

2002-09-24 Thread Philip J. Newman
confirm() returns a true or fulse. what is confirm called as a veriable? --- Philip J. Newman. Head Developer. PhilipNZ.com New Zealand Ltd. http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (25) 6144012. Tele: +64 (9) 5769491. Family Site: Philip J. Newman Internet Developer http://www.n

[PHP] HT authentication question

2002-09-24 Thread Bob Irwin
G'day, Is there a PHP function/method that destroys or expires a HT authentication session? So, for example, you're using a .htaccess file to control access to a directory on a server, is there a way to destroy that session without closing the browser window? Best Regards Bob Irwin Server Admin

RE: [PHP] Installing php in windows 95

2002-09-24 Thread Martin Towell
I was running PHP on Win95 (for local stuff) and now Win98, using OmniHTTPd for the server. It works great. I've recently upgraded to XP Pro (I know - it's taken me ages, but what the heck) and it's still working great. -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]]

RE: [PHP] java script & session?

2002-09-24 Thread John Holmes
And there is any reference to PHP in your question where > -Original Message- > From: Jeff Bluemel [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 12:34 AM > To: [EMAIL PROTECTED] > Subject: [PHP] java script & session? > > I want drop down menu's in my setup tha

[PHP] java script & session?

2002-09-24 Thread Jeff Bluemel
I want drop down menu's in my setup that I am creating. however, when the java script opens the links then the session information is not passed. here's how the stuff is used in my .phtml files. addMainItem("home.phtml","Home",120,"center",""); -- Thanks, Jeff Bluemel -- PHP Gen

RE: [PHP] Installing php in windows 95

2002-09-24 Thread John Holmes
The .dll is there. Look in the dlls folder for where every you installed PHP. You downloaded the binary and not the source code, right? ---John Holmes... > -Original Message- > From: Uma Shankari T. [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 12:13 AM > To: PHP > Su

Re: [PHP] Installing php in windows 95

2002-09-24 Thread Philip J. Newman
windows 95 your jokeing right? - Original Message - From: "Uma Shankari T." <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 4:13 PM Subject: [PHP] Installing php in windows 95 > > Hello, > > I need to install php for windows under particular folde

[PHP] Installing php in windows 95

2002-09-24 Thread Uma Shankari T.
Hello, I need to install php for windows under particular folder namely under C:\web..In the installation manual it is mentioned that dll should be copied to c:\windows..but the dll is not available under c:\web...can any please telll me how to do this.. Regards, Uma -- PHP General Mail

RE: [PHP] script to check for register_gloabs=off compatibility

2002-09-24 Thread John Holmes
Kind of defeats the purpose. You could easily use extract() or the import_request_variables() function to do what you want. It would be the same as having register globals on, though... ---John Holmes... > -Original Message- > From: Thom Porter [mailto:[EMAIL PROTECTED]] > Sent: Wednesda

RE: [PHP] Getting at the variable name itself

2002-09-24 Thread John Holmes
> Hi. I'm putting together a form that needs to have multiple pairs of both > text inputs and checkboxes. On the submit page I need to be able to > associate one with the other, and the variable names themselves have other > identifying values embedded in their names. What I need to know is how

Re: [PHP] script to check for register_gloabs=off compatibility

2002-09-24 Thread Thom Porter
Justin, Thanks for the response. The applications vary from site to site. Many of them use include files, some of them don't. One thing that is nice is any apps that use cookies or sessions go through the _COOKIE or _SESSION arrays already. I did think of something that could be very useful,

RE: [PHP] RFE: Multiple auto_prepend_file statements to work in Apache

2002-09-24 Thread John Holmes
Even if it's only one file, have that file include the other necessary files... so two.php would include one.php, three.php, etc. You could even build the logic into two.php so it decides which other files to include based on any number of conditions. ---John Holmes... > -Original Message--

[PHP] RFE: Multiple auto_prepend_file statements to work in Apache

2002-09-24 Thread Alex Vincent
Dear Sirs, I'm wondering if it might be possible to prepend multiple files to PHP scripts using the .htaccess file. For instance, the following: php_value auto_prepend_file "two.php" php_value auto_prepend_file "../one.php" will produce a prepend from only ../one.php . This may be technicall

[PHP] Getting at the variable name itself

2002-09-24 Thread Mike Mannakee
Hi. I'm putting together a form that needs to have multiple pairs of both text inputs and checkboxes. On the submit page I need to be able to associate one with the other, and the variable names themselves have other identifying values embedded in their names. What I need to know is how do I ac

RE: [PHP] Showing online users!

2002-09-24 Thread John Holmes
How about: SELECT sUser FROM members WHERE sUpdated > NOW() - INTERVAL 10 MINUTE; as your query... I assume you are using a MySQL format date/datetime/timestamp column for sUpdated? ---John Holmes... > -Original Message- > From: Philip J. Newman [mailto:[EMAIL PROTECTED]] > Sent: Tuesd

[PHP] Showing online users!

2002-09-24 Thread Philip J. Newman
The best way to show online users ... every page that is loaded while a user is online the time stamp is updated in there profile from_unixtime(unix_timestamp(now())-(10*60))"; $sql_result = mysql_query($sql, $connection) or die (mysql_error()); while ($row = mysql_fetch_array($sql_result)) {

Re: [PHP] domxml and setting the DOCTYPE

2002-09-24 Thread Tom Rogers
Hi, Tuesday, September 24, 2002, 7:22:24 PM, you wrote: RB> Hi, RB> I'm generating XML files with the domxml functions. Everything works fine, RB> but I can't set the . RB> I tried to add a textnode, but <>" are translate in < > " :( RB> Thanks for your help. RB> Raph RB> PS:Having some

RE: [PHP] table-wide or database-wide search and replace?

2002-09-24 Thread John Holmes
It really wouldn't be that difficult, would it? Give it a database name, the program find all the names of the tables, then loops through them all. It find all the rows for each table (maybe limit to just text based ones, to be fancy), and makes an sql statement to call the ereg. To really be fea

[PHP] XSLT

2002-09-24 Thread ninti
I'm wondering if there is a way to include a query string parameter in an xsl stylesheet. I have a script that does this: xslt_process($xsltprocessor,$xml,$xsl); I'd like to include the value of a variable passed to this script via a query string (eg. xmlscript.php?p=3 ), whereby the value '3'

[PHP] table-wide or database-wide search and replace?

2002-09-24 Thread Justin French
Has anyone seen or built an existing chunk of code to assist with table-wide or database-wide search and replace in MySQL? For example a simple str_replace() style function that works on a whole MySQL table would be great, database-wide would be even better, ereg_replace would be even better agai

RE: [PHP] Re: html input and php (newbie), ask more

2002-09-24 Thread John Holmes
It's not a PHP issue, I'll tell you that. There is something that's not set up correctly in your apache configuration. Someone here should be able to give you the syntax, but you may find an answer on an Apache list or FAQ faster... ---John Holmes... > -Original Message- > From: Remon Re

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

2002-09-24 Thread Remon Redika
i have tried to change post file from input.php3 to input.php and it's done. i wanna ask more .., why if i used post var to input.php3 the script doesn't work. and i got message Method Not Allowed The requested method POST is not allowed for the URL /input.php3.

[PHP] zip/zziplib segfaults

2002-09-24 Thread Charles Galpin
Hi I've searched the archives but cannot find any answers to this problem. Red Hat 7.2 php-4.1.2-7.2.4 or php-4.1.2-7.3.4 zziplib-0.10.66 I rebuilt php with --with-zip. However a simple cli test program that does a zip_open then attempts a zip_read, gets a segmentation fault on the zip_read (o

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

2002-09-24 Thread Faisal Abdullah
Thanks for the help. I got it working. I used SQL92, instead of Oracle's sql standard. I just hate to recode when migrating to mysql or postgresql. Sincerely, Faisal -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 7:33 PM To: 'Faisal A

[PHP] PHP Installation under WinXP Apache 2.0.39

2002-09-24 Thread Sascha Braun
I have a small problem I'm not able to solve. I wanted to install PHP 2.2.3 under WinXP together with an Apache 2.0.39, but after installation and reconfiguration of all Ini's and conf files the service did not start again. After starting the Apache manually from command´line it stops with the f

Re: [PHP] script to check for register_gloabs=off compatibility

2002-09-24 Thread Justin French
I'm not aware of anything like that, apart from PHP itself :) Turn your error reporting to the strictest setting, and go through your applications, and it should complain whenever is has to echo/use a undefined variable. Although that sounds a little daunting with 8000 pages... are you using lot

Re: [PHP] Jpeg resize quality problem

2002-09-24 Thread Sascha Braun
Try to use Imagemagick for better quality, it's even easyer to use also. Ciao - Original Message - From: "Michael F." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 7:23 PM Subject: Re: [PHP] Jpeg resize quality problem > > But what is this "convert" func

Re: [PHP] Adding to a MySql Database

2002-09-24 Thread Justin French
on 25/09/02 3:05 AM, The New Source ([EMAIL PROTECTED]) 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 ha

[PHP] PHP error starting Apache 2.0.40

2002-09-24 Thread David Busby
List, Cannot load /opt/httpd/modules/libphp4.so into server: /opt/httpd/modules/libphp4.so: undefined symbol: mbstr_treat_data I'm getting this trying to start Apache 2.0.40 with PHP 4.2.3, can anyone point to where I should start looking? I looked at google but only found a few results. H

Re: [PHP] authenticating and redirecting with special access

2002-09-24 Thread Chris Shiflett
Bryan, A .htaccess file is a Web server configuration file. It cannot know what sort of PHP code you have in place to authenticate a user. :-) As has been suggested by someone else, you should place your restricted files outside of document root. In PHP, it is a simple matter of an include()

Re: [PHP] XSLT and PHP

2002-09-24 Thread Michael Sims
On 24 Sep 2002 10:22:41 -0500, you wrote: >What I am looking for is either a way to use includes in xsl stylesheets >or something like Fusebox layouts for xml/xsl. Thank you You may get better answers if you post this in comp.text.xml... -- PHP General Mailing List (http://www.php.net/) To unsu

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

2002-09-24 Thread Mark Charette
This comes up so very often ... The answer is - you may be able to get _an_ IP number for a machine that accesssed your site. It is meaningless as a means of identification: Proxies use 1 IP for a number of users. -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] hi, Can i

Re: [PHP] Re: session & cookies

2002-09-24 Thread Jeff Bluemel
I put this block of code in, and all of the array's they should send back are 100% blank. I will try the protoscope to see what I can turn up on this. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Jeff, > > One quick thought ... > > Is your

RE: [PHP] authenticating and redirecting with special access

2002-09-24 Thread Bryan Koschmann - GKT
On Tue, 24 Sep 2002, David Buerer wrote: |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 an

[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 truncated

Re: [PHP] right name for

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'

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 WhoAmI Utility This utility can help you identify your browser and your Internet provider. It uses all of the

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 tab

Re: [PHP] Variables and Forms

2002-09-24 Thread Joseph W. Goff
This should open up a new window for the new page 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 2:46 PM Subject: [PHP] Variables and Forms > >

[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 http-e

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): . Then in your search.php page, use this structure: # --- set $step to passed value, or else set to default --- if (isset($_GET["step"])) { $step=$_GET["step"]; } elseif (isset($_POST["step"])) { $st

Re: [PHP] right name for

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. C

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? So instead of doing a search.html that calls on do_search.php like most books teach. I am wanting to do a search.php. Just print the information on that page. Ch

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)

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: --jp At 21:31 24-09-2002 +0200, Anna Gyor wrote: >Hi, > >I just began to learn php and I have te following code. How can I get the >input field value in the p

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

2002-09-24 Thread Jesse Cablek
Anna Gyor 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. > > if ($submit == "click"){ > echo "Hello, $Use

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 Ku

[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. Enter Your Name -- PHP General Mailing List (http://www.php.net/) To unsubscrib

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

2002-09-24 Thread Jay Blanchard
[snip] So I if I create the form, is there way that I can have it echo on the same page if I am using a form? [/snip] Yes, using $PHP_SELF as your form action HTH Jay "Ever stop to think, and forget to start again?" * * Texas PHP Developers

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

2002-09-24 Thread Jesse Cablek
Anil Garg 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 unsubscri

[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

[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

[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 errors

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 Me

[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

[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.

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 Kilimaje

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! > > >"Mare

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] 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] 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 > ImageJP

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 exten

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 cu

[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] 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] 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] 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,

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 inform

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 qual

[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 require

[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 Gen

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

[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 s

[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: > > > # General setup for

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: > > > # General setup

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 th

[PHP] apache problem......

2002-09-24 Thread Anil Garg
hi in my httpd.conf i have added a virtual host as: # 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 "|/usr/local/sbin/rotatelogs /va

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 d

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. >

[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] 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 fi

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 f

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 fields, along with an 'include' > line for each one..

Re: [PHP] right name for

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 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 path, but

  1   2   >