RE: [PHP] printing

2003-01-28 Thread John W. Holmes
Is there a way in php to print to a printer? say i have a order from , when someone clicks the submit button - then print the form plus the entered details to a page ? No, that's handled client side. PHP is server side. Use Javascript or the like... ---John W. Holmes... PHP Architect - A

Re: [PHP] printing

2003-01-28 Thread Leif K-Brooks
Yes. You'd better hope your server has a printer, though! :-) Seriousley though, PHP runs on the server. By the time the viewer sees it, it's already executed. Which means it can't do anything to the client's machine. Look into some client-side scripting. Shaun van den Berg wrote: Hey,

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

2003-01-28 Thread Chris Hayes
I'm more comfortable writing stuff in PHP. I use PHP alot more, and I find the resultant code more readable and easier to maintain. Aside from Perl's ubiquity and the dubious advantage of future flexibility by using Perl's DBI interface to talk to different SQL servers (I'm using MySQL at the

[PHP] Thread safety

2003-01-28 Thread Olga Tonkonog
Hello ! I write extension for PHP. I create bibliothek for Windows and for Linux. I set switch ZTS for thread-safety in Windows and use project php4ts. How can I set thread-safety for Linux? Help!! Thank you at advance Olga -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Need Guru's Help

2003-01-28 Thread Chris Hayes
At 07:52 28-1-03, you wrote: Hi All Guru's here, Sorry, i am not a guru. I do have visions to become the enigmatic leader of a sekte but i think that's slightly out of scope here. (Actually i have 500 html files containing this table struction,and need to read all 500 files and convert

[PHP] Re: printing

2003-01-28 Thread Paul Chvostek
On Tue, Jan 28, 2003 at 09:38:09AM +0200, Shaun van den Berg wrote: Is there a way in php to print to a printer? say i have a order from , when someone clicks the submit button - then print the form plus the entered details to a page ? Are you talking about having a submit button that

[PHP] problem installing php

2003-01-28 Thread Anton Grafström
Hi I am trying to install php with PHP 4.3.0 installer on windows98. I have the Xitami server. When I try to run a php-file in the webbpages folder I get the following meaasge Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect

RE: [PHP] problem installing php

2003-01-28 Thread John W. Holmes
Hi I am trying to install php with PHP 4.3.0 installer on windows98. I have the Xitami server. When I try to run a php-file in the webbpages folder I get the following meaasge Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect

[PHP] set_error_handler inside a class

2003-01-28 Thread electroteque
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 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need Guru's Help

2003-01-28 Thread David T-G
Tariq -- ...and then Tariq Murtaza said... % % Hi All Guru's here, Hi! [Hey, does that make me a guru now? ;-] % % I need your help regarding converting HTML Table structure to DB schema % or XML format. I am not a Regular expression expert. While I realize that this is a php list, I

Re: [PHP] Need Guru's Help

2003-01-28 Thread Tariq Murtaza
Thanks David, I want it in php instead of perl anyway thanks for your help Regards, Tariq David T-G wrote: Tariq -- ...and then Tariq Murtaza said... % % Hi All Guru's here, Hi! [Hey, does that make me a guru now? ;-] % % I need your help regarding converting HTML Table structure to

[PHP] ftp_ssl_connect

2003-01-28 Thread Markus Boettger
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 read for days now. Thanks, Markus -- PHP General Mailing List

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

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

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

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

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 frameset rows=*,1 or some like

[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

[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

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. No they are

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

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 compiled

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]

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 $body

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;

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

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]

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 system

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 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 page, I

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 classes from 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

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

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 like that:

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 cutpaste the email address. If you

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:

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

[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

[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 collects the

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

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

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 :) -- Maxim

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

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

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 Each one of

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'd

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 run a

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 read for

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 socket

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

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 ?

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 your

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

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

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

[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

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

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 page with

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

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

[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

[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

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, 2003 7:25

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 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 there's

[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] 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]=Chris;

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/proof

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 save

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]=Wesley;

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

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

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 pumped into a

[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

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

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

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 pumped into a

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

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 off-line and then

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

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

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

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

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

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

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 want

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 font size=2a href=left.php?id=1

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

[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

[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

  1   2   >