Re: [PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-28 Thread Jason Wong
On Wednesday 29 January 2003 12:48, Webapprentice wrote: > I have a SELECT on a web form. > > > Friday August 22, > 04:00 PM - 06:00 PM Friday August 22, 06:00 PM - 08:00 PM value="Friday August 22, 08:00 PM - 10:00 PM">Friday August 22, 08:00 PM - > 10:00 PM Friday August 22, 10:00 PM - 12:00 A

Re: [PHP] content type header for downloading files

2003-01-28 Thread Dara Dowd
No, that doesn't change anything with Mozilla, and as for IE the file is automatically displayed in the browser. I actually want the Dialog Box to appear. I think Mozilla doesn't know what to do with 'application/octet.' Dara - Original Message - From: Evan Nemerson <[EMAIL PROTECTED]> D

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Hugh Danaher
You could use the mail() function to automatically send an email to your user. In the email could be an html page with the same form they'd filled out plus some hidden input fields which would tell you that they are updating their stored information. With this, your user gets confirmation of what

Re: [PHP] best way to pass variables to

2003-01-28 Thread Justin French
on 29/01/03 4:35 PM, Mantas Kriauciunas ([EMAIL PROTECTED]) wrote: > I believe there was question like this, but I was wondering if someone > could point me with useful information about passing variables to > . To point out the obvious, you can pass variables to any URL by using GET: iframes c

Re: [PHP] Functions and arguments

2003-01-28 Thread Jason Wong
On Wednesday 29 January 2003 13:31, Blaine von Roeder wrote: > I'm working on the part of the site to parse your session for student id, > check the students table for your class listing(named period1, period2, > period3, etc), and then check the classes table based on the id numbers in > your stu

[PHP] Functions and arguments

2003-01-28 Thread Blaine von Roeder
Greetings, I'm working on a system to track homework and assignments for teachers/students. I'm in high school, and I decided I was sick of writing down the homework for the day, so I'm building a site that will allow teachers to post assignments/homework for each of their classes. Students can the

[PHP] best way to pass variables to

2003-01-28 Thread Mantas Kriauciunas
Hey! I believe there was question like this, but I was wondering if someone could point me with useful information about passing variables to . Is there some tutorials about that? Or some help files about that, ways to do it. Thanks! -mNTKz

Re: [PHP] content type header for downloading files

2003-01-28 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Change header("Content-Disposition: attachment; filename=".basename($fname).";"); to header("Content-Disposition: inline; filename=".basename($fname).";"); On Tuesday 28 January 2003 06:27 pm, Dara Dowd wrote: > I have the following headers in downlo

[PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-28 Thread Webapprentice
Hi, I have a SELECT on a web form. Friday August 22, 04:00 PM - 06:00 PM Friday August 22, 06:00 PM - 08:00 PM Friday August 22, 08:00 PM - 10:00 PM Friday August 22, 10:00 PM - 12:00 AM Saturday August 23, 12:00 AM - 02:00 AM Saturday August 23, 12:00 PM - 02:00 PM Saturday August 23, 02:00 PM -

[PHP] php and sql problem with mysql_query and insert

2003-01-28 Thread Sunfire
hi ... im having a little problem with mysql_query("insert into members ('$company', '$name1', '$name2', '$address1', '$address2', ''$ac1', '$ext2', '$num1', '$ac2', '$ext2', '$num2', '$city', '$state', '$zip', '$desc', '$flags')"); for some reason those variables are empty by the time they get i

[PHP] content type header for downloading files

2003-01-28 Thread Dara Dowd
I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header("Content-type: application/octet"); header("Content-Length: $filelength"); header("Content-Disposition: attachment; filename=".basename($fname).";"); This w

Re: [PHP] Advice on uploaded files

2003-01-28 Thread Justin French
on 29/01/03 11:16 AM, Manuel Ochoa ([EMAIL PROTECTED]) wrote: > I writting a php program for a small insurance company and they want to > receive uploaded digital photos. > > Should I store the photos in a mysql database or in a directory on the hard > drive? > > If you have experience with this

[PHP] Advice on uploaded files

2003-01-28 Thread Manuel Ochoa
I writting a php program for a small insurance company and they want to receive uploaded digital photos. Should I store the photos in a mysql database or in a directory on the hard drive? If you have experience with this any advice would be appreciated.

Re: [PHP] register_globals

2003-01-28 Thread Justin French
on 29/01/03 6:41 AM, Kiswa ([EMAIL PROTECTED]) wrote: change If($id==1){ to If($_GET['id']==1){ or put this line near the top of your script: $id = $_GET['id']; or, a little more anal: if(isset($_GET['id'])) { $id = $_GET['id']; } Justin > Finansiering > If($id==1){ > echo " color=\"#0

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Justin French
on 29/01/03 6:35 AM, Petre Agenbag ([EMAIL PROTECTED]) wrote: > Hi > I have a rather annoying problem regarding forms. > I have built an app that allows the users to fill in a rather large form > (much like a claim form) and then have the data pumped into a mysql db. > The problem is: the users wa

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Mike . Kent
I agree on leveraging your position to guide this thing. Here you've added the requirement of being able to revisit the data in a year. Why not simply have them fill out the form, put it in the database and then use another page with queries to draw the data into a similar template and change it

[PHP] Re: Good XML/XSLT mailing list?

2003-01-28 Thread Jeff Warrington
On Wed, 22 Jan 2003 10:21:36 -0600, Chris Boget wrote: This is a good Q&A site: http://www.dpawson.co.uk/xsl/sect2/sect21.html and XSLT-list here: http://www.dpawson.co.uk/xsl/list.html Jeff > Sorry for the OT post but I know many of you use the above. I subscribed > the the PHP-XML mailing

Re: [PHP] Get command line output

2003-01-28 Thread Jeff Warrington
On Thu, 23 Jan 2003 00:14:07 +0800, Jason Wong wrote: either use PHP to parse out the entirety of the output or make your command pipe its output to other commands such as sed & awk before it gets to PHP. > w | tail +3 | awk '{print $1,$3,$5}' Jeff > On Thursday 23 January 2003 00:10, Greg Ch

Re: [PHP] Allowing . in $_POST variable

2003-01-28 Thread Philip Olson
Regarding keeping . as . and not _ in variables: This isn't going to happen as it seriously breaks BC. This also would affect functions such as import_request_variables() and extract(). There is no worthy benefit here, this will never happen. Regards, Philip -- PHP General Mailing L

[PHP] ayuda help

2003-01-28 Thread Rot Alvarez
Tengo este herros y no se de q esWarning: MySQL Connection Failed: Access denied for user: 'fullweb@localhost' (Using password: YES) in /home/sites/site22/web/45/connect_database.php on line 8 Error in connecting to MySQL. _ Registra

Re: [PHP] Getting a value back from POST (not the built-in return)

2003-01-28 Thread Chris Shiflett
--- Paul <[EMAIL PROTECTED]> wrote: > Can you fill me in on the syntax here? How would you > write the fgets statement and how would you define > and populate the return value on the other end? Maybe this example will help. This searches PHP's site for curl, outputting the HTTP content to the scre

Re: [PHP] Good way to organize code using classes???

2003-01-28 Thread Greg Beaver
Be careful with aggregation, it is REALLY unstable in PHP 4.3.0. I get crashes of PHP left and right, when changing the most random things (like adding a comment in another part of the code separate from aggregation!!) Greg -- phpDocumentor http://www.phpdoc.org "Jeff Warrington" <[EMAIL PROTECT

[PHP] radius auth and sockets

2003-01-28 Thread Bryan Koschmann - GKT
Hello, I'm wondering if anyone has a php script that can authenticate to a radius server? I've found one, but it seems to only check for a return code of 1 or 2, and I need to to get the whole port message. Also, it keeps giving me this: [28-Jan-2003 12:00:44] PHP Fatal error: Call to undefined

Re: [PHP] Getting a value back from POST (not the built-in return)

2003-01-28 Thread Paul
Okay, some clarification. I do indeed want to read what I get back from the socket. Using fgets($fp, 1024) on the sending side (where the socket is opened and the data sent) and return = $variable on the other end (oh yes, the variable has a value as of the return), all I ever get back is 'HTTP

Re: [PHP] set_error_handler inside a class

2003-01-28 Thread 1LT John W. Holmes
> sorry is there a way to do this in php3 ? my work currently only has php3 , > where i am upgrading it for them soon, this is a bummer, i soughta wanna > catch errors and show the line and file in the error too Nope... it's 4.0.1 and higher only. UPGRADE!! :) ---John Holmes... -- PHP General

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Jason Wong
On Wednesday 29 January 2003 04:17, Petre Agenbag wrote: > > > "save" their forms on their systems as a) > > > backup/proof that they have filled it in and b) > > > for their records for future use and c) the hope > > > is that it would also allow for a reliable method > > > to complete the form o

RE: [PHP] best way to save form data on user side

2003-01-28 Thread Adam White
Hi Why don't you take the form in many smaller parts, save them away as each part is completed, allowing the user to go back and forth between the parts. This would give the advantage of securing the data which as already been submitted. You can then give other functions to review in one page (for

Re: [PHP] best way to save form data on user side

2003-01-28 Thread 1LT John W. Holmes
> On Tue, 2003-01-28 at 22:09, Chris Shiflett wrote: > > --- Petre Agenbag <[EMAIL PROTECTED]> wrote: > > > I have a rather annoying problem regarding forms. > > > I have built an app that allows the users to fill > > > in a rather large form (much like a claim form) > > > and then have the data pu

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Chris Shiflett
--- Petre Agenbag <[EMAIL PROTECTED]> wrote: > This is exactly what I'm looking to do; but my problem > remains: I don't know what the best solution is. The > problem is clear: the users actually need an electronic > copy of the data they submit; they must revisit certain > issues annually, and wou

RE: [PHP] set_error_handler inside a class

2003-01-28 Thread Dan Rossi
sorry is there a way to do this in php3 ? my work currently only has php3 , where i am upgrading it for them soon, this is a bummer, i soughta wanna catch errors and show the line and file in the error too -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Re: [PHP] Good way to organize code using classes???

2003-01-28 Thread Jeff Warrington
On Tue, 28 Jan 2003 16:20:20 +0100, Maxim Maletsky wrote: > I use PHP classes extensively and very often use classes within other classes. First off, I would make sure to take advantage of inheritence as much as possible. I have heirarchies up to 4 deep for some of my classes depending on how m

[PHP] PHP Displays File Header

2003-01-28 Thread [-^-!-%-
Hello everyone, I've upradated to php 4.03, Apache 2, and Zend Server Center 2.5, but now I am getting these strange errors. For some reason, PHP shows the page's (php script only) header content. Ex. a page with phpinfo() will display: Content-type: text/html If I click on any link on that pa

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Petre Agenbag
Hi Chris On Tue, 2003-01-28 at 22:09, Chris Shiflett wrote: > --- Petre Agenbag <[EMAIL PROTECTED]> wrote: > > I have a rather annoying problem regarding forms. > > I have built an app that allows the users to fill > > in a rather large form (much like a claim form) > > and then have the data pum

Re: [PHP] Re: Need help.

2003-01-28 Thread 1LT John W. Holmes
> - Original Message - Thkiat wrote: > > Can someone tell me what should I do to solve this problem? Of course... > > Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result > > resource in /home/epcc/public_html/exoops/class/database/mysql.php on line > > 134 Fix your

[PHP] radius auth and sockets

2003-01-28 Thread Bryan Koschmann - GKT
Hello, I'm wondering if anyone has a php script that can authenticate to a radius server? I've found one, but it seems to only check for a return code of 1 or 2, and I need to to get the whole port message. Also, it keeps giving me this: [28-Jan-2003 12:00:44] PHP Fatal error: Call to undefined

Re: [PHP] Re: Need help.

2003-01-28 Thread Rick Emery
Show us your code...we can't read your mind. - Original Message - Thkiat wrote: > Can someone tell me what should I do to solve this problem? > > Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result > resource in /home/epcc/public_html/exoops/class/database/mysql.php on

Re: [PHP] Allowing . in $_POST variable

2003-01-28 Thread 1LT John W. Holmes
> > > > Basically, what I'd like is to be able to post a form element with > > > > id="myvariable.whatever" and access it on the next page with > > > > $_POST["myvariable.whatever"]. > > > > > > // obviously this is some busted garbage > > > $name.Array["first"]="Chris"; > > > $name.Array["last"]

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Chris Shiflett
--- Petre Agenbag <[EMAIL PROTECTED]> wrote: > I have a rather annoying problem regarding forms. > I have built an app that allows the users to fill > in a rather large form (much like a claim form) > and then have the data pumped into a mysql db. > The problem is: the users want to be able to > "

Re: [PHP] best way to save form data on user side

2003-01-28 Thread 1LT John W. Holmes
> I have a rather annoying problem regarding forms. > I have built an app that allows the users to fill in a rather large form > (much like a claim form) and then have the data pumped into a mysql db. > The problem is: the users want to be able to "save" their forms on their > systems as a) backup/

Re: [PHP] Allowing . in $_POST variable

2003-01-28 Thread Chris Wesley
On Tue, 28 Jan 2003, 1LT John W. Holmes wrote: > > > Basically, what I'd like is to be able to post a form element with > > > id="myvariable.whatever" and access it on the next page with > > > $_POST["myvariable.whatever"]. > > > > // obviously this is some busted garbage > > $name.Array["first"

[PHP] getting the size of a quicktime movie or other media files

2003-01-28 Thread Daniel Leighton
Hi, I'm writing a php based fileserver/ftp app and I need to be able to display quicktime (and eventually other media) files via the object/embed tags. I've got everything working except for the sizing. I'd like to avoid asking users to specify the size of the file upon upload, if possible.

Re: [PHP] MS Access

2003-01-28 Thread Todd Barr
I was just checking to see if the connection was working This one lacked a sql statment - Original Message - From: "Paul Roberts" <[EMAIL PROTECTED]> To: "Todd Barr" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 28, 2003 11:57 AM Subject: Re: [PHP] MS Access that means

RE: [PHP] best way to save form data on user side

2003-01-28 Thread Petre Agenbag
Hi Bryan Thanks for the suggestions. Can you elaborate on the pdf option? Wouldn't that mean the users would need a copy of adobe acrobat writer? On Tue, 2003-01-28 at 21:53, Bryan Brannigan wrote: > 3 choices as I see it.. > > a) create a PDF for download > b) let the users create the form in

Re: [PHP] MS Access

2003-01-28 Thread Paul Roberts
that means there's an error in your sql, what's the sql your using. Best Wishes Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Johannes Schlueter" <[EMAIL PROTECTED]> To: "Todd Barr" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 28,

[PHP] Re: Need help.

2003-01-28 Thread cybot
check your sql-statement! Thkiat wrote: Can someone tell me what should I do to solve this problem? Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/epcc/public_html/exoops/class/database/mysql.php on line 134 Warning: mysql_fetch_row(): supplied argum

[PHP] best way to save form data on user side

2003-01-28 Thread Petre Agenbag
Hi I have a rather annoying problem regarding forms. I have built an app that allows the users to fill in a rather large form (much like a claim form) and then have the data pumped into a mysql db. The problem is: the users want to be able to "save" their forms on their systems as a) backup/proof

Re: [PHP] Allowing . in $_POST variable

2003-01-28 Thread 1LT John W. Holmes
> > sense to me that this "feature" get another look. I can see no logical > > reason to not allow . in the global $_POST variable... > > Basically, what I'd like is to be able to post a form element with > > id="myvariable.whatever" and access it on the next page with > > $_POST["myvariable.wha

[PHP] Re: [PHP-WIN] htpasswd question

2003-01-28 Thread Dash McElroy
I would try something like this instead: $params = escapeshellarg($params); $output = system(c:\path\to\htpasswd $params); //check for output errors or what not There very well could be a better solution (especially since I have not tried the above code...). I remember seeing somewhere that the

[PHP] register_globals

2003-01-28 Thread Kiswa
I know its stupid but i´ve been writing a site for a register_globals = on enviroment now i need to convert all the code to an off setting the page is built by sending a whole lot off vars to diferent pages. as you can see below the hyperlink sends the id var to the same page and then echos the co

Re: [PHP] MS Access

2003-01-28 Thread Johannes Schlueter
On Tuesday 28 January 2003 23:11, Todd Barr wrote: > I have it connected, now I am getting the following error > > Warning: SQL error: , SQL state 0 in SQLConnect in c:\program > files\apache group\apache\htdocs\test.php on line 7 What are you doing on line 7? What did you do on the lines 1-6?

[PHP] htpasswd question

2003-01-28 Thread Dominik Wittenbeck
I am currently trying to create a .htpasswd file for apache using PHP and the crypt() on Win2k. I can generate the file alright but it does not work. I have looked into some classes as well and all use the crypt() function. The reason for this not working is probably the algorithm used because the

Re: [PHP] Allowing . in $_POST variable

2003-01-28 Thread Chris Wesley
On Tue, 28 Jan 2003, Mike Potter wrote: > sense to me that this "feature" get another look. I can see no logical > reason to not allow . in the global $_POST variable... > Basically, what I'd like is to be able to post a form element with > id="myvariable.whatever" and access it on the next pag

[PHP] MS Access

2003-01-28 Thread Todd Barr
I have it connected, now I am getting the following error Warning: SQL error: , SQL state 0 in SQLConnect in c:\program files\apache group\apache\htdocs\test.php on line 7 Any ideas?

[PHP] Access difficulties

2003-01-28 Thread Todd Barr
Hello, I have figured out how to connect it, I think But now I get this error

Re: [PHP] Allowing . in $_POST variable

2003-01-28 Thread Adam Voigt
Well I think using periods in variable names in general is a no-no, but other then being a little out-of-the-norm I see no reason why you shouldn't be allowed to. P.S. OEOne is swet software, good job. On Tue, 2003-01-28 at 13:50, Mike Potter wrote: Hi all: I fil

[PHP] Allowing . in $_POST variable

2003-01-28 Thread Mike Potter
Hi all: I filled a bug today that quickly got resolved invalid, but I think it deserves another look. I had a bit of a problem today with "." getting converted to "_" for my variable names automatically. I have been told that this was because if you have register_globals on, then you can't ha

Re: [PHP] regexps

2003-01-28 Thread ng
>using any of the string functions on the output would ofcourse > cause a performance drawback (do you agree with me?), i had > used a combination of string functions to do instead of regexps, > which one will be faster as you think ? Hi, i made some basic bench and see that it really depends...

RE: [PHP] regexps

2003-01-28 Thread John W. Holmes
> using any of the string functions on the output would ofcourse cause a > performance drawback (do you agree with me?), i had used a combination of > string functions to do instead of regexps, which one will be faster as you > think ? It depends on exactly what your doing, how much text you have,

RE: [PHP] set_error_handler inside a class

2003-01-28 Thread John W. Holmes
> hi guys how is ti possible to do a set_error_handler within a class so it > will trigger the callback function and so will be able to return the line > and file in the message ? You'd set it just like you would anywhere else in your code. If you want the callback function to be a method in you

Re: [PHP] regexps

2003-01-28 Thread Khalid El-Kary
using any of the string functions on the output would ofcourse cause a performance drawback (do you agree with me?), i had used a combination of string functions to do instead of regexps, which one will be faster as you think ? where can i suggest such a function on the current regexps API ? T

[PHP] Problems with php.net

2003-01-28 Thread Darren Gamble
Good day, This is a bit off-topic for the list, but, I'm not sure where else I can send this. The "search" function on php.net appears to be broken. One can search through the function list, but any query via "whole site" or "online documentation" returns no results. I tried to send a message t

Re: [PHP] Getting a value back from POST (not the built-in return)

2003-01-28 Thread Chris Shiflett
--- Paul <[EMAIL PROTECTED]> wrote: > Using a fairly simple fsockopen and POST I'm sending > form data to a script which populates fields in a > database. Everything works fine, however I've been > trying to figure out how to send a value set on the > other machine (database) back through the open

Re: [PHP] ftp_ssl_connect

2003-01-28 Thread Jason Wong
On Tuesday 28 January 2003 20:19, Markus Boettger wrote: > Hello, > I try it again ... > is anybody here who can tell me how to use the ftp_ssl_connect function > in 4.3? > Has anybody a sample code in which the use uf the openSSL functions are > declared? > rtfm does not help here, because I do re

Re: [PHP] problem installing php

2003-01-28 Thread Anton Grafström
Thanks. That solved the problem "John W. Holmes" <[EMAIL PROTECTED]> skrev i meddelandet 005e01c2c6ba$975f3110$7c02a8c0@coconut">news:005e01c2c6ba$975f3110$7c02a8c0@coconut... > > Hi I am trying to install php with PHP 4.3.0 installer on windows98. I > > have > > the Xitami server. When I try to

Re: [PHP] help needed with session variables

2003-01-28 Thread 1LT John W. Holmes
> Isnt it better to do it in this way? Better than what? > session_start(); > session_register('USER'); > > $USER['valid'] = true; > $USER['firstname'] = $first_name; > $USER['lastname'] = $last_name; > > Then I really know what I am doing! It's personal preference... whatever you understand. I

Re: [PHP] parsing ini files

2003-01-28 Thread 1LT John W. Holmes
> I have a file which contains the following syntax: > > ; Events listings > [event] > month = january > day = 23 > year = 2003 > venue = some club > description = this is an event > > [event] > month = january > day = 12 > year = 2003 > venue = another club > description = this is another event >

Re: [PHP] regexps

2003-01-28 Thread 1LT John W. Holmes
> I need to use regular expressions, but i found that the current > Perl-compaitable API unuseful in my case, infact i need to get the positions > of every match to the pattern and i found nothing in the Manual that does > so, does any one know a way to do this (the only one i found is specific to

[PHP] regexps

2003-01-28 Thread Khalid El-Kary
I need to use regular expressions, but i found that the current Perl-compaitable API unuseful in my case, infact i need to get the positions of every match to the pattern and i found nothing in the Manual that does so, does any one know a way to do this (the only one i found is specific to PHP

Re: [PHP] question about GD and colors

2003-01-28 Thread Philipp
Hi, question was answered yesterday on the list. there is a new function imagecreatetruecolor(). use this instead of imagecreate(). Regard, Philipp - Original Message - From: "nospam" <[EMAIL PROTECTED]> To: "'Jean-François Marseaut'" <[EMAIL PROTECTED]> Cc: "'Php-General" <[EMAIL PRO

Re: [PHP] phpMyAdmin for Microsoft SQL

2003-01-28 Thread Joshua E Minnie
I might just have to do that, thanks. "Maxim Maletsky" wrote: > There is nothing for MS SQL that I know. phpMyAdmin was used for mySQL > initially and then some volunteers like you made postreSQL and Oracle > versions of it. So, you might want to try one on your own on SourceForge > :) > > > -- >

Re: [PHP] Getting a value back from POST (not the built-in return)

2003-01-28 Thread Chris Hayes
At 01:38 29-1-03, you wrote: Using a fairly simple fsockopen and POST I'm sending form data to a script which populates fields in a database. Everything works fine, however I've been trying to figure out how to send a value set on the other machine (database) back through the open socket (note:

Re: [PHP] php conditional formatting question

2003-01-28 Thread Guru Geek
I'm new to PHP but I had a similar problem. I was comparing information in a flat text file with a variable in my php code. They never matched according to the php. I echo'd both values to the screen and they matched. So then I echo'd them to the screen with three 'a' in front and three 'a' in

[PHP] Re: Too many 'linespaces'

2003-01-28 Thread Lars Espelid
Thanks, problem solved! I moved the hidden-vars inside a td-tag and the problem was no more. Lars "Lars Espelid" <[EMAIL PROTECTED]> skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I present some content of a mysql-table in an html-table. When the query > which collec

[PHP] Getting a value back from POST (not the built-in return)

2003-01-28 Thread Paul
Using a fairly simple fsockopen and POST I'm sending form data to a script which populates fields in a database. Everything works fine, however I've been trying to figure out how to send a value set on the other machine (database) back through the open socket (note: not the return value usually

Re: [PHP] parsing ini files

2003-01-28 Thread Chris Hayes
I have a file which contains the following syntax: ; Events listings [event] month = january day = 23 year = 2003 venue = some club description = this is an event [event] month = january day = 12 interesting function, i had not seen it yet. You could have a look at the alternative function m

Re: [PHP] Access

2003-01-28 Thread Maxim Maletsky
with ODBC www.php.net/odbc -- Maxim Maletsky [EMAIL PROTECTED] "Todd Barr" <[EMAIL PROTECTED]> wrote... : > Access > > Does anyone here have any idea how to connect access to PHP? > > Thanks > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.p

Re: [PHP] parsing ini files

2003-01-28 Thread Maxim Maletsky
there is a bunch of examples to parse the ini files in PHP. You can even do one on your own: 1. loop every line 2. if format is [**] then this is the key 3. everything till the empty line is a key = value pair P.S: please, when replying click on "new email" and cut&paste the email address. If you

Re: [PHP] problem with copy()

2003-01-28 Thread Maxim Maletsky
you need to escape the windows backslash: $file = "c:\pic.jpg"; should be $file = "c:\\pic.jpg"; or $file = "c:/pic.jpg"; which will work the same -- Maxim Maletsky [EMAIL PROTECTED] "Bartosz Matosiuk" <[EMAIL PROTECTED]> wrote... : > hi > > can the string source in copy () looks

Re: [PHP] Thread safety

2003-01-28 Thread Maxim Maletsky
Don't the current PHP extensions have a good example there? It's pretty much easy to understand reading the code. -- Maxim Maletsky [EMAIL PROTECTED] "Olga Tonkonog" <[EMAIL PROTECTED]> wrote... : > Hello ! > > I write extension for PHP. I create bibliothek for Windows and for Linux. > I se

Re: [PHP] printing

2003-01-28 Thread Maxim Maletsky
It's easy to do with JavaScript. Client will only have to confirm. Sometimes, in PDF nor even confirming is necessary. Not sure if what I said makes sense. -- Maxim Maletsky [EMAIL PROTECTED] "Shaun van den Berg" <[EMAIL PROTECTED]> wrote... : > Hey, > > Is there a way in php to print to a

Re: [PHP] Need Guru's Help

2003-01-28 Thread Maxim Maletsky
What about looking for something like that written in C that would convert your HTML into XML and then use PEAR's XMLParser to get it into a PHP structure? -- Maxim Maletsky [EMAIL PROTECTED] Tariq Murtaza <[EMAIL PROTECTED]> wrote... : > Hi All Guru's here, > > I need your help regarding c

Re: [PHP] Good way to organize code using classes???

2003-01-28 Thread Maxim Maletsky
"@ Nilaab" <[EMAIL PROTECTED]> wrote... : > Hello everyone, > > I want to be able to use objects to create my future pages. My goal is to > use methods of classes to make the original front-line script easier to > read, while all the processing is done with a simple call to the different > class

Re: [PHP] PHP Page Refresh on Redirection

2003-01-28 Thread Maxim Maletsky
make sure that new page's headers do not cache. See www.php.net/header for examples. -- Maxim Maletsky [EMAIL PROTECTED] "Phil" <[EMAIL PROTECTED]> wrote... : > I have a PHP page with a form that submits to another PHP processing page. > On completion of the PHP actions on the processing pag

Re: [PHP] Access to Pear

2003-01-28 Thread Maxim Maletsky
It is a bad idea to "hijack" someone's thread. In other words, when posting a new question, do not reply to an existing post changing its subject and content. Mail headers still reference to the old one and we all see it just being another post of a thread. -- Maxim Maletsky [EMAIL PROTECTED]

Re: [PHP] PHP vs Perl for system scripts (non-web)

2003-01-28 Thread Maxim Maletsky
Paul Chvostek <[EMAIL PROTECTED]> wrote... : > > I have to write a swath of code to manage system-related stuff based on > database content. Scripts will be run as root by cron, and determine > what they have to do via user interaction and SQL lookups. Functions > will include manipulation of

Re: [PHP] HELP session cache limiters

2003-01-28 Thread Maxim Maletsky
this means that somewhere (on line 19 of /home/sisource/public_html/stage/administration/config.php) there is an output. For sessions to work, session_start() should be *before* any output was created. Even a new line or a whitespace would break it. -- Maxim Maletsky [EMAIL PROTECTED] "Didie

Re: [PHP] multiple entry forms !!

2003-01-28 Thread Maxim Maletsky
Create the 7 steps, or 7 pages. Create a session to contain all the answers you need from the user Submit a form on each step and register each data-set into the session respectively to the their locations. Fill up the whole session this way and proceed on the 7th step to the actual injection into

Re: [PHP] help needed with session variables

2003-01-28 Thread Maxim Maletsky
pass it one value at the time: session_register("valid_user"); session_register("firstname"); session_register("lastname"); Another recommended method is to use superglobal variable $_SESSION. You can then simply do: $_SESSION['valid_user'] = $login; $_SESSION['firstname'] = $first_name; $_SESS

Re: [PHP] Help with Filesize

2003-01-28 Thread Maxim Maletsky
Try fstat() function on the file pointer - it will return you the various results, including its size. -- Maxim Maletsky [EMAIL PROTECTED] Rodrigo Corrêa <[EMAIL PROTECTED]> wrote... : > > How do i use the function filesize, because i´m using like: > > I just want associate the variable $b

Re: [PHP] phpMyAdmin for Microsoft SQL

2003-01-28 Thread Maxim Maletsky
There is nothing for MS SQL that I know. phpMyAdmin was used for mySQL initially and then some volunteers like you made postreSQL and Oracle versions of it. So, you might want to try one on your own on SourceForge :) -- Maxim Maletsky [EMAIL PROTECTED] "Joshua E Minnie" <[EMAIL PROTECTED]> wro

Re: [PHP] Do php extension need to be thread-safe?

2003-01-28 Thread Maxim Maletsky
Absolutely yes. Take a look at the current extensions there to see how it can be controlled. -- Maxim Maletsky [EMAIL PROTECTED] Joshua Moore-Oliva <[EMAIL PROTECTED]> wrote... : > Do php extension need to be thread-safe? I am running php on apache2. I > would guess that since it's compile

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-28 Thread Maxim Maletsky
Your bug is this: inconsistency of types. You split a formatted string into smaller strings and compare the integers to it. In order to do this correctly, you will need to take your integers and convert them into the strings, format of which you already know and used for deformatting the origina

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-28 Thread Maxim Maletsky
just try doing it with === (three equal signs) and you'll see what is where -- Maxim Maletsky [EMAIL PROTECTED] "Cal Evans" <[EMAIL PROTECTED]> wrote... : > John. > > > Actually, "08" is equal to 8 in PHP. PHP will convert the string to an > >integer and the two will compare as equal. > > N

[PHP] Access

2003-01-28 Thread Todd Barr
Access Does anyone here have any idea how to connect access to PHP? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] parsing ini files

2003-01-28 Thread Erich C. Beyrent
Hey everybody, I'm new the list and to PHP, so I thought I'd launch right in with a question. I have a file which contains the following syntax: ; Events listings [event] month = january day = 23 year = 2003 venue = some club description = this is an event [event] month = january day = 12 year

Re: [PHP] Transition Page?

2003-01-28 Thread Sascha Braun
If there is really need for such a page, my first guess was, as i thought about it, to enter the content, which is responsible for the upload in a invisible frame. For an invisible Frame you just have to make a frameset, where you only can see one part of the frame

[PHP] php conditional formatting question

2003-01-28 Thread WMB
I know it's possible, but I just can't get it working. In an old file I have a straight php coding doc where it's used and am now trying to mimic the resulting output. I'm trying to get a result from a query in a specific color when it fits the bill ( if ($teamcaptain == $deelnemer) //if yes,

Fw: [PHP] help needed with session variables

2003-01-28 Thread Sascha Braun
Isnt it better to do it in this way? session_start(); session_register('USER'); $USER['valid'] = true; $USER['firstname'] = $first_name; $USER['lastname'] = $last_name; Then I really know what I am doing! Good luck Sascha - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTEC

RE: [PHP] question about GD and colors

2003-01-28 Thread nospam
Hi I have the same Problem with the bundeled libary. I hade no time to fill in a bug report at bugs.php.net. Probably you could? regards Sebastian > -Original Message- > From: Jean-François Marseaut [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 27, 2003 5:16 PM > To: [EMAIL PROTE

[PHP] problem with copy()

2003-01-28 Thread Bartosz Matosiuk
hi can the string source in copy () looks like that: "c:\pic.jpg". If not than how should it look like. I'm not sure becouse script gives me "Unable to open c:\pic.jpg for reading: No such file or directory" but the file is there. and when i'm using $HTTP_POST_FILES['file']['tmp_name

  1   2   >