RE: [PHP] session_destroy problem

2003-01-10 Thread Larry Brown
You da man. Unload is perfect. If the problem he mentioned before prevents the browser from finishing its communication with the server you can always send a wait command with sufficient time for things to finish up. I'll start testing in a live environment with it now. Thank you for the help.

[PHP] Binary data confusion

2003-01-10 Thread Clay Loveless
Hi, I've got a problem to solve regarding binary data strings, which is an area I don't have a lot of experience in. If anyone can help, I would be grateful. Here's the problem in a nutshell: I am getting a binary string from a third-party server that I need to encode into a PNG image. The strin

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Gerald Timothy Quimpo
On Saturday 11 January 2003 12:12 am, Scott Fletcher wrote: > The only thing that is important to me is that the password get > encrypted before transmitting across the internet. from other posts further in the thread it looks like you aren't ready to use https. that's too bad. that would reall

Re: [PHP] Re: how to passing two dimension array

2003-01-10 Thread Rizki Salamun
its works!! thanks alot guys, i have tried with this codes: array1.php -- "> One Two Three Four Five array2.php -- "; } } ?> and the output are come out in the array2.php since the output can printed out, means that this page (array2.php) can receive these vari

[PHP] Re: Medium to Large PHP Application Design

2003-01-10 Thread Manuel Lemos
Hello, On 01/10/2003 01:51 AM, Nick Oostveen wrote: As PHP becomes more accepted in the corporate world, it is only logical that larger and more complex applications are going to be developed using it. While there is an abundance of information out there about making specific things work, the

Re: [PHP] Re: Source Guardian

2003-01-10 Thread michael kimsal
Sean Malloy wrote: Keep in mind the "Works out of the box with no changes to your server" requires the use of the function dl() Good point - had forgotten that may have issues for some people. However - in our case we've used 'protected' versions only for demos, which people generally aren't ru

RE: [PHP] Re: Source Guardian

2003-01-10 Thread Sean Malloy
Keep in mind the "Works out of the box with no changes to your server" requires the use of the function dl() according to the PHP docs; dl() is not supported in multithreaded Web servers. Use the extensions statement in your php.ini when operating under such an environment. However, the CGI and

Re: [PHP] Suggestions on FAQ application?

2003-01-10 Thread michael kimsal
Jeff Lewis wrote: Why re-invent what is already written? I'm well aware that it's easy to write but there may be something out there already that suits my needs and has some features that I hadn't thought of. If you don't have a suggestion on a package please spare me the rude replies which seem t

[PHP] Re: Source Guardian

2003-01-10 Thread michael kimsal
Christopher Ditty wrote: Does anyone here use Source Guardian? I am about to purchase it and thought I'd ask before I do. Any problems using it? Thanks CDitty Hello. We've used it to create demos. It does work, but is being surpassed by other options (at the time we purchased, it was the

RE: [PHP] Suggestions on FAQ application?

2003-01-10 Thread Sean Malloy
I would suggest you try one of the following; faqomatic http://faqomatic.sourceforge.net/, which is actually perl based or phpFAQ http://product.cybergl.co.id/dev/version.php?cmd=browse&product_id=15 or FAQbot http://mason.gmu.edu/~bhroleno/FB.html or knowhow^2 http://www.linuxclass.de/kh2/ or

Re: [PHP] Suggestions on FAQ application?

2003-01-10 Thread Jeff Lewis
Why re-invent what is already written? I'm well aware that it's easy to write but there may be something out there already that suits my needs and has some features that I hadn't thought of. If you don't have a suggestion on a package please spare me the rude replies which seem to run rampant on he

RE: [PHP] Suggestions on FAQ application?

2003-01-10 Thread Timothy Hitchens \(HiTCHO\)
It is a 30 minute write... not that hard!! Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Jeff Lewis [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 11 January 2003 12:37 PM > To: php-gen > Subject: [PHP] Suggestions on FAQ applica

[PHP] Suggestions on FAQ application?

2003-01-10 Thread Jeff Lewis
I've checked Hotscripts and I can't findanything relatively new or that suits my needs. I was wondering if anyone uses a FAQ program that they could suggest? Jeff

Re: [PHP] Make fil downloadable

2003-01-10 Thread Stephen
Eh, sorry. Didn't understand what you meant. Thanks for the code, it does do what I was asking. Thanks again! - Original Message - From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]> To: "'Stephen'" <[EMAIL PROTECTED]> Cc: "'PHP List'" <[EMAIL PROTECTED]> Sent: Friday, January 10, 2003

Re: [PHP] Make fil downloadable

2003-01-10 Thread Stephen
I wanted it so the user downloaded the file to their PC like when you're downloading a zip file or exe file from someplace like www.download.com... - Original Message - From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]> To: "'Stephen'" <[EMAIL PROTECTED]> Cc: "'PHP List'" <[EMAIL PROTE

RE: [PHP] Make fil downloadable

2003-01-10 Thread Timothy Hitchens \(HiTCHO\)
Correct!... yes the source not interpreted raw!! Isn't that what you wanted?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Stephen [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 11 January 2003 11:01 AM > To: Timothy Hitchens (

[PHP] Re: Source Guardian

2003-01-10 Thread UberGoober
What is the URL, is it like Zend encoder? "Christopher Ditty" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone here use Source Guardian? I am about to purchase it and > thought I'd ask before I do. Any problems using it? > > Thanks > > CDitty >

Re: [PHP] session_destroy problem

2003-01-10 Thread Tamás Árpád
> Yes, the JavaScript code can run before the browser is closed but it would > not be finish running because the browser closing had been executed. > Someone had tried it before and struggled with it. But that is a good > advice, thanks for jumping in. I really doubt that browsers doesn't run the

Re: [PHP] Make fil downloadable

2003-01-10 Thread Stephen
Would this print the contents or the actual file for download? - Original Message - From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]> To: "'Stephen'" <[EMAIL PROTECTED]> Cc: "'PHP List'" <[EMAIL PROTECTED]> Sent: Friday, January 10, 2003 7:47 PM Subject: RE: [PHP] Make fil downloadab

RE: [PHP] Make fil downloadable

2003-01-10 Thread Timothy Hitchens \(HiTCHO\)
eg: Download File Click Here Now in the file.php you have: This won't put the headers into the downloaded file and remember to change the xxx.php into the file to be delivered and the xxx.php in the header to the name you would like them to save as. * the file.php in the top is not the real f

[PHP] php with mime magic?

2003-01-10 Thread Rob Brandt
I'm trying to get php compiled with mime magic, and it doesn't appear to be working. Here's my phpinfo page, showing the parameters I've used to compile; it does show that I used '--enable-mime-magic' as instructed in the docs at php.net: http://horde.csd-bes.net/horde/test.php?mode=phpinfo (I ne

Re: [PHP] Make fil downloadable

2003-01-10 Thread Stephen
It's a dynamically created file the user downloads and uses later as a PHP script. If I put header() in it, that would make it downloadable again when the user uses it on his/her server, wouldn't it? - Original Message - From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]> To: "'Stephen'

RE: [PHP] Make fil downloadable

2003-01-10 Thread Timothy Hitchens \(HiTCHO\)
You need to send headers to tell the browser how to handle it see: header(); or.. if it is a php file and you want the visitor to see/download the source you would be better off giving it another extension eg .phps or .txt etc or have a handler file that did a readfile after sending headers. Timo

[PHP] Make fil downloadable

2003-01-10 Thread Stephen
I need to somehow make it so when a user clicks a link, then get displayed the download dialogue for the file. The file is a .php file so I'm not sure how this is done but I've seen it been done before. How can you do this? Thanks,Stephen Cratonhttp://www.melchior.us   "What's the point in ap

[PHP] Re: E-mail redirection....?

2003-01-10 Thread David Chamberlin
You might see if your server is running procmail. If it is, then you can have your .procmailrc file auto-generated from PHP, and then procmail will do all the forwarding for you. The procmail recipe will be pretty simple for what you want (e.g.,) # user_id -> [EMAIL PROTECTED] :0 * ^TO([EMAIL

Re: [PHP] email/time question

2003-01-10 Thread Randy Johnson
hello, i am using php with mysql-innodb table support Is there a command to find out if a commit was successful? If not how do i go about it? Thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Are 2 mysql_query statements psble?

2003-01-10 Thread Tommy Jensehaugen
i don't know if this is the most efficient way, but it'll work: $query = "SELECT username FROM users WHERE username = > '{$_POST['strUserName']}'"; $query2 = "SELECT Ngfnummer FROM lid WHERE Ngfnummer = '{$_POST['strNgfnummer']}'"; if ( mysql_num_rows( mysql_query( $query ) ) == 0 && mysql_num_r

Re: [PHP] occasional mcrypt problems

2003-01-10 Thread Steve Yates
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try > $_POST['Credit_Card_Number']=stripslashes($_POST['Credit_Card_Number']); But if magic_quotes_gpc=on shouldn't that happen automatically? - Steve Yates - Brainstorm? No, but I had a b

[PHP] Are 2 mysql_query statements psble?

2003-01-10 Thread WMB
The code below returns : "Parse error: parse error, unexpected T_BOOLEAN_AND ". so must assume it's not possible, but anybody out there who's able to give me a suggestion how to get this going. 2 different tables have to be checked for correct input from form. (Would even want to do a third...

Re: [PHP] Converting Excel Spreadsheet to MySQL table ...

2003-01-10 Thread Gurvinder Singh
write a macro which will create a file with insert statments from the data in the excel sheet. run the macro get the file and run it on the linux box Gurvinder Singh www.gurvindersingh.com <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > If this is a one off ex

[PHP] Loading Information into an array.

2003-01-10 Thread Philip J. Newman
I have a table with images and comments. if i have $x amout of images that each have a comment. the comments are displayed in the center colum of the table with the images loading left and right of each comment. http://www.philipnz.com/example.jpg I can get the images to load in their left and

RE: [PHP] Deleting rows from a table with autoincrement. . .

2003-01-10 Thread David Freeman
> My question is this: is it possible to use > autoincrement to generate > the id's and still keep them sequential when I delete say, > item 3 of 5. Generally speaking, an auto-increment column will not fill gaps and keep sequential orders. Your choice, basically, is to write your code

Re: [PHP] occasional mcrypt problems

2003-01-10 Thread Marek Kilimajer
try $_POST['Credit_Card_Number']=stripslashes($_POST['Credit_Card_Number']); Steve Yates wrote: Hello, I recently implemented a database using MySQL that is storing selected fields encrypted. However on a very small number of records the decrypted result is not correct for some fields, for exa

[PHP] Re: Parsing a directory for specific files

2003-01-10 Thread Tommy Jensehaugen
one day) > increasing numbers, > e.g. 20030108-1.txt, 20030108-2.txt, 20030108-3.txt, 20030109-1.txt, > 20030110-1.txt, 20030110-2.txt > The script should parse the file names and get the most recent five ones! > > The text inside should be included in the page -> but this is not

[PHP] Here's the sample code for encrypting the login password....

2003-01-10 Thread Scott Fletcher
Here's the sample script that will let the user login then have Javascript encrypt the password and carry it over to PHP and have PHP encrypt the password and match the Javascript encrypted password. This script is pretty effective without the SSL. I got the script working so, I'm posting a scrip

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
I got the script working so, I'm posting a script that work for me. If you wanna try it out or use it then you'll need to get the MD5.js that come with the libPHP. Just download the libPHP and pull out only one file, MD5.js and then junk the libPHP. I found one thing interesting about this code

[PHP] Deleting rows from a table with autoincrement. . .

2003-01-10 Thread Harris, Alex (OCTO)
I'm writing a mailing list manager in an effort to learn mysql and php and I've run into a bit of a problem extremely early on. . . I'm trying to get the database to be updateable by the user so that the user can add and remove addresses as needed. In order to do this I'm using autoincremen

[PHP] Re: need some javascript code

2003-01-10 Thread Tommy Jensehaugen
This works with your first question. Might work for all. html: javascript: function validate() { form = document.name_of_form; if( form.name.value == '' ) { alert( "You forgot to write your name." ); document.forms[0].name.focus(); return false; } else { return true; } } tommy

[PHP] Re: Using strtotime on 'old' dates.

2003-01-10 Thread Nathan Fritz
We're running into the same problem. It was quite convenient to use date("Y-m-d",strtotime($dateField)) to process date data for MySQL. Worked fine for my news management system, since I work with current dates, but my colleague is using it for an application submission system, and needs birthdates

Re: [PHP] Is this possible with php?

2003-01-10 Thread try
On Fri, Jan 10, 2003 at 12:00:33PM -, Danny Shepherd wrote: > Hi, > > Where did he say he wanted to use Word to edit PHP files? AFAICT the idea > was to automatically upload Word files, presumably to make them available on > an Intranet for download etc. Yes, automatically upload word file af

[PHP] permissions

2003-01-10 Thread Edward Peloke
I have a script which uploads images from the user. My webhost recently moved things around and now I get permission errors when the file is uploaded. I am using the path from the apache root to my destination folder as the path to the image folder. My webhost told me that the folder has all per

[PHP] occasional mcrypt problems

2003-01-10 Thread Steve Yates
Hello, I recently implemented a database using MySQL that is storing selected fields encrypted. However on a very small number of records the decrypted result is not correct for some fields, for example for this credit card number: -99-ÏF¡hßxø It appears in fact the same way as the

[PHP] Why T_error?

2003-01-10 Thread Stephen
I, once I found out that register_globals isn't always one, have always done HTTP variables as like $_SESSION for session and $_POST for form vars through post. Why, if you have register_globals off does it return T_error? Should I jsut replace my old ways with $HTTP_SESSION_VARS for sessions

Re: [PHP] COM question

2003-01-10 Thread Marek Kilimajer
Sorry, either translates the error messages or post to a italian php mailing list [EMAIL PROTECTED] wrote: How I can manage Word through PHP? I have tried with the code indicated on PHP-guide (chm format) but it does not work. //test04.php $word = new COM("word.application") or die("Non

[PHP] Re: Template tutorials?

2003-01-10 Thread Bobby Patel
Hey, I have been using HTMLTMPL http://htmltmpl.sourceforge.net/ So far it works well, and emulates the more powerfull Perl Templating system. It seems alot of code, but whips up these templates in good response time (of course, it might be becuase I work on a unstressed server). "Chad Day"

[PHP] COM question

2003-01-10 Thread [EMAIL PROTECTED]
How I can manage Word through PHP? I have tried with the code indicated on PHP-guide (chm format) but it does not work. Visible = 1; $word->Documents->Add(); $word->Selection->TypeText("Questa è una prova..."); $word->Documents[1]->SaveAs("Prova inutile.doc"); $word->Quit(); $wor

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
Here's the message I got from someone. It is pretty cool! --clip-- if U want MD5 for Java Script try down load PHPLib and search in this package. and you will find MD5 script with Java Script. --clip-- "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECT

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
It would be nice if I can use the SSL but I don't want to spend a lot of time on it on IIS. Beside part of that website is only for internal part for my company. Beside the end user wouldn't know where hte login link is anyway. "Brent Baisley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTE

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Marek Kilimajer
Some people don't need it so sophisticated, besides you need your own IP to use SSL, and that's the problem with virtual hosts. Brent Baisley wrote: If you want to increase security then you really should use a secure connection, then everything is encrypted as well as other security measures.

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Marek Kilimajer
Really, pretty cool. I don't know why I was so sure there was a md5 function in javascript (propably because I thought is was everywhere - untill now). Thanks for the link. Scott Fletcher wrote: Hey! There's no MD5 in Javascript which is why I post hte question in the first place. Now I lost

Re: [PHP] debug_phpinfo.php

2003-01-10 Thread Marek Kilimajer
My guess it contains as you can see it calls an internal php function. BTW, did you restart apache after reinstalling php? christian stalberg wrote: what does debug_phpinfo.php read to get its information? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Brent Baisley
If you want to increase security then you really should use a secure connection, then everything is encrypted as well as other security measures. Even if you do encrypt the password you also need to establish and track a session to make sure it's the same computer you are communicating with, gu

Re: [PHP] Mysql/php database performance question

2003-01-10 Thread Brent Baisley
I'm coming in a little late on this thread, but I would suggest structuring you data differently. I would have two tables: words and meanings. Then you won't have any null fields and you won't limit yourself to just 5 definitions. It will also be a heck of a lot easier to setup a full text inde

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
Hey! There's no MD5 in Javascript which is why I post hte question in the first place. Now I lost 5 hours of my time working on writing this script. You're going to have to be careful because you had to make sure there is MD5 features in Javascript before posting a reply. I found a workaround to

[PHP] debug_phpinfo.php

2003-01-10 Thread christian stalberg
what does debug_phpinfo.php read to get its information? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] please help! version switching problem

2003-01-10 Thread christian stalberg
I know that and it does correlate with the php 4.0.4pl1 install. BTW, I did compile and install PHP as a static binary (if that makes any difference) - Original Message - From: "christian stalberg" <[EMAIL PROTECTED]> To: "Marek Kilimajer" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent:

Re: [PHP] please help! version switching problem

2003-01-10 Thread Marek Kilimajer
For example ls -l will give you last modification time, from which you can find out when it was installed christian stalberg wrote: how do I check that? - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "christian stalberg" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]

Re: [PHP] please help! version switching problem

2003-01-10 Thread christian stalberg
how do I check that? - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "christian stalberg" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 10, 2003 2:08 PM Subject: Re: [PHP] please help! version switching problem > chech if libphp4.so in apache li

[PHP] php.ini, mysql, recompiled php

2003-01-10 Thread Richard Baskett
For some reason the php.ini file is not being compiled into php on runtime with Apache 2.. I tried to make a change within the php.ini mysql.default_socket or something similar to change where php looked for the mysql socket and it wouldn¹t show up on phpinfo.. so I changed it within the httpd.con

[PHP] Re: Template tutorials?

2003-01-10 Thread rush
"Chad Day" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm googling around for template tutorials and such after seeing a link to > the Smarty template engine .. can anyone point me to any particularly good > ones? I've always been going with the 'one-file'

[PHP] Source Guardian

2003-01-10 Thread Christopher Ditty
Does anyone here use Source Guardian? I am about to purchase it and thought I'd ask before I do. Any problems using it? Thanks CDitty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] please help! version switching problem

2003-01-10 Thread Marek Kilimajer
chech if libphp4.so in apache lib directory (usualy /usr/lib/apache/) is the right version christian stalberg wrote: redhat linux 7.3 apache 1.3.27 mysql 3.23.49 php 4.0.4pl1 (static install) mod_ssl-2.8.12 the box had php 4.2.3 installed on it originally. we had a mysql application that would

[PHP] Template tutorials?

2003-01-10 Thread Chad Day
I'm googling around for template tutorials and such after seeing a link to the Smarty template engine .. can anyone point me to any particularly good ones? I've always been going with the 'one-file' approach .. which I think it's time I changed. Thanks, Chad -- PHP General Mailing List (http:/

[PHP] please help! version switching problem

2003-01-10 Thread christian stalberg
redhat linux 7.3 apache 1.3.27 mysql 3.23.49 php 4.0.4pl1 (static install) mod_ssl-2.8.12 the box had php 4.2.3 installed on it originally. we had a mysql application that would only run with php version 4.0.4pl1 so we installed the old version of php and everything worked. then we ran autorpm wi

Re: [PHP] E-mail redirection....?

2003-01-10 Thread Marek Kilimajer
Your php scripts (or something else that will be called by your php script) needs to modify your smtp server (sendmail, qmail ...) configuration files. What needs to be actually done depends on the server used, and you should ask at the apropriate mailing list. If you are on a shared host, I dou

Re: [PHP] Re: HEEELP...please

2003-01-10 Thread pippo
At 03:14 AM 1/11/2003 +0900, you wrote: [EMAIL PROTECTED] wrote: [snip] > Problem is - the only php.ini file is in a work directory for mod_php4 > installation. As far as I know, this file would not be read by apache > or the php module. [/snip] Run phpinfo() and see whether there's a referen

RE: [PHP] checking status of a HTML checkbox

2003-01-10 Thread Larry Brown
My apologies for deficient terminology. I define a "regular post" as the original with globals on and the somewebpage.php using the variable sent without using $_POST. But I bet you already knew that :) You asked for the code... My first page has ... ... echo ""; echo ""; ?> - - ... my

[PHP] Installing php4.3.0 on hpux11.00

2003-01-10 Thread Taylor Lewick
Hi all. I have apache 1.3.27 and php4.3.0 installed on my HP-UX machine. Now I want to load php into apache. So I ran the ./configure-status --activate-module=src/modules/php4/libmodphp4.a This worked fine. Then I ran gmake, and it works until the following... gcc -c ... mod_php4.c php_apach

Re: [PHP] Re: HEEELP...please

2003-01-10 Thread - Edwin
[EMAIL PROTECTED] wrote: [snip] > Problem is - the only php.ini file is in a work directory for mod_php4 > installation. As far as I know, this file would not be read by apache > or the php module. [/snip] Run phpinfo() and see whether there's a reference to where the php.ini being used res

Re: [PHP] HEEELP...please

2003-01-10 Thread Marek Kilimajer
register_globals = on somewhere in php.ini [EMAIL PROTECTED] wrote: At 12:01 PM 1/10/2003 +, you wrote: > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 10 January 2003 01:00 > > All of a sudden, I get the message: > Warning: Failed opening '/../li

RE: [PHP] Re: how to passing two dimension array

2003-01-10 Thread - Edwin
"Larry Brown" <[EMAIL PROTECTED]> wrote: > For some reason I was not able to find the original question here. Well, you can always check the archives/thread... > The original question is about inserting the value from a two > dimensional array into a form not passing a two dimensional array fro

Re: [PHP] Re: HEEELP...please

2003-01-10 Thread pippo
At 06:39 PM 1/10/2003 +0100, you wrote: Problem is - the only php.ini file is in a work directory for mod_php4 installation. As far as I know, this file would not be read by apache or the php module. I do get the feeling that the only way to turn the globals on is to reinstall the php module...

RE: [PHP] checking status of a HTML checkbox

2003-01-10 Thread - Edwin
"Larry Brown" <[EMAIL PROTECTED]> wrote: > Also look at empty(). I don't know if the $_POST array will send the > key if it as no variable. I know on a regular post it does send the > variable, but it has no value. What's a "regular post" anyway? Well, the key is passed even when there's even

[PHP] Re: Medium to Large PHP Application Design

2003-01-10 Thread David Eisenhart
> I'm looking for online > references, personal experience and opinion and even examples of open > source code which you think demonstrate the above criteria on this one. I have found the Smarty template engine (http://smarty.php.net/) to be a most excellent tool for separating business logic and

RE: [PHP] HEEELP...please

2003-01-10 Thread pippo
At 12:01 PM 1/10/2003 +, you wrote: > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 10 January 2003 01:00 > > All of a sudden, I get the message: > Warning: Failed opening '/../lib/somefile.conf' for inclusion > (include_path='.:/usr/local/lib/php') in

Re: [PHP] Session Expiration?

2003-01-10 Thread Matt Silva
Ok I think I understand this better, my garbage collection is working but I just didn't see it before. Until I check to see if the data was actually being deleted from the /tmp directory (der!). I was using just one browser to test this. So when I navigated through some test pages passing the

[PHP] Re: Converting Excel Spreadsheet to MySQL table ...

2003-01-10 Thread David Eisenhart
as a 'one off' exercise I recently did something similar except the data was from Access, but would work the same from an excel file:- saved as a CSV file and then used phpMyAdmin to import the CSV file data into a MySQL table (of course, didn't have to use phpMyAdmin for this but it did make the i

Re: [PHP] Re: HEEELP...please

2003-01-10 Thread Marek Kilimajer
only modify php.ini and restart the server (apache, not the computer), run as root: /etc/init.d/httpd restart [EMAIL PROTECTED] wrote: I want to thank all those who made suggestions. All were helpful. Question: As my server is on LAN only, I could turn on the register_globals for debugging pur

RE: [PHP] session_destroy problem

2003-01-10 Thread Larry Brown
It helps for me being able to re-login as a different user. It's a good idea but it still leaves a bit to be desired for security. I'm going to also post this to the js list and see if they've worked with it before. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message---

Re: [PHP] Re: HEEELP...please

2003-01-10 Thread pippo
I want to thank all those who made suggestions. All were helpful. Question: As my server is on LAN only, I could turn on the register_globals for debugging purposes etc. But, is the only way to turn register_globals on to uninstall and then reinstall mod_php4 with a modified php.ini file? Or is t

Re: [PHP] session_destroy problem

2003-01-10 Thread Scott Fletcher
You meant the tab browers. Like 2 tabs... I haven't tried it but now that you mentioned it, I'm going to have to look at it soon. I do noticed one thing, the status bar, if it have comments, it will show up on other tabs even though it is a completely a different website. I get the impression t

[PHP] E-mail redirection....?

2003-01-10 Thread Michal Stankoviansky
Hi I'm totally confused. What I need is the following: User registers and I need to create an e-mail alias for him, something like [EMAIL PROTECTED] If someone sends an e-mail to the above address, I need to redirect it to the user's real e-mail address. I'm totally lost...can this be done in

Re: [PHP] Sessions and Frames...

2003-01-10 Thread Dale Schell
Thanks, that helped out a lot. One of those RTFM times. Dale On 1/10/03 10:24, "Marek Kilimajer" <[EMAIL PROTECTED]> wrote: > Dale Schell wrote: > >> List, >>I have a website that uses (too) many frames. At its most ugly, it will >> load 8 frames at once. All of the pages in these frames ac

Re: [PHP] Mysql/php database performance question

2003-01-10 Thread Khalid El-Kary
Oh, sorry, i should have remarked that all of the columns should be fixed width (CHAR) for this optimization to take effect, since if even one of the columns is variable width (VARCHAR) the whole row will be variable width, and it will be no use to change to CHAR. Regards, Khalid seems to be

Re: [PHP] Mysql/php database performance question

2003-01-10 Thread Marek Kilimajer
seems to be a little bit more complicated: CREATE TABLE `aa` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `aaa` CHAR( 50 ) NOT NULL , `bbb` CHAR( 50 ) NOT NULL ); both aaa and bbb are char now CREATE TABLE `aaa` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `aaa` CHAR( 50 ) NOT NULL , `b

RE: [PHP] session_destroy problem

2003-01-10 Thread Larry Brown
Question...Do you know if Mozilla runs a browser instance that might handle the process after one of the browser windows is closed? Right now the situation is that IE closes the session when the window that opened it closes. I have a site that is authenticated and then runs sessions on the authen

[PHP] PhP 4.3.0 Relative includes and Apache Alias problems.

2003-01-10 Thread quak
Greetings, Why is that, that when we try to issue a include statement, which has any kind of "Relative" path in it, it will fail if the php script is mapped into apache web tree by "Alias" Statement ? An example: We have: /a/b/one.php /a/c/two.php /a/three.php Apache Alias stament is: Alias

RE: [PHP] Mysql/php database performance question

2003-01-10 Thread Matt Schroebel
> -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 11:45 AM > To: Matt Schroebel > Cc: Simon Dedeyne; [EMAIL PROTECTED] > Subject: Re: [PHP] Mysql/php database performance question > > > Sure, just tried it (32-bit platform, might be

Re: [PHP] session_destroy problem

2003-01-10 Thread Scott Fletcher
Yes, the JavaScript code can run before the browser is closed but it would not be finish running because the browser closing had been executed. Someone had tried it before and struggled with it. But that is a good advice, thanks for jumping in. "Tamas Arpad" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] session_destroy problem

2003-01-10 Thread Tamas Arpad
On Friday 10 January 2003 17:39, Scott Fletcher wrote: > > Javascript has a function for performing actions on window close > That would work only if the webserver IP address is '127.0.0.1' (local > machine), but not any other IP address. Because of the ACK synchrious > communication that get

Re: [PHP] Mysql/php database performance question

2003-01-10 Thread Marek Kilimajer
Sure, just tried it (32-bit platform, might be >7 for 64-bits). I have a feeling it is somewhere in the manual. Matt Schroebel wrote: -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 11:04 AM To: Matt Schroebel Cc: Simon Dedeyne; [EMAIL

Re: [PHP] Header information ...

2003-01-10 Thread Marek Kilimajer
Should look like this: Anders Mellström wrote: Hello. I can't get this code to work. The error message I get is that the header could be added, cause it has allready been sent. What shalll I do to get it to work? //Anders exit; } else { //print("Byt w

RE: [PHP] checking status of a HTML checkbox

2003-01-10 Thread Larry Brown
Also look at empty(). I don't know if the $_POST array will send the key if it as no variable. I know on a regular post it does send the variable, but it has no value. I have used isset with just receiving post data and got strange results. On one I had an isset statement that ran a result that

Re: [PHP] session_destroy problem

2003-01-10 Thread Scott Fletcher
That would work only if the webserver IP address is '127.0.0.1' (local machine), but not any other IP address. Because of the ACK synchrious communication that get interrupted as result of the browser closing. "Larry Brown" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTE

RE: [PHP] Mysql/php database performance question

2003-01-10 Thread Matt Schroebel
> -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 11:04 AM > To: Matt Schroebel > Cc: Simon Dedeyne; [EMAIL PROTECTED] > Subject: Re: [PHP] Mysql/php database performance question > > > char of greater size than 3 is converted to v

[PHP] Re: Header information ...

2003-01-10 Thread Philippe Saladin
>"Anders mellström" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] >Hello. I can't get this code to work. The error message I get is that the header could be added, cause it has allready >been sent. What shalll I do to get it to work? Please have a look at http://www.php.net/ma

Re: [PHP] Sessions and Frames...

2003-01-10 Thread Marek Kilimajer
Dale Schell wrote: List, I have a website that uses (too) many frames. At its most ugly, it will load 8 frames at once. All of the pages in these frames activate the session, and some of them modify session variables. Can this cause the pages to load slowly? Can a page have the session file

RE: [PHP] Header information ...

2003-01-10 Thread Daniel Kushner
Hi Anders, You can't send a header to the browser once output has been sent. The header() function should be before any other output on your script. Further more, because the script isn't terminated after the header() function, and you usually do not want to continue running it, an exit() should d

RE: [PHP] session_destroy problem

2003-01-10 Thread Larry Brown
Javascript has a function for performing actions on window close. You could have a submit action on the page that is sent when the window closes. I've not used it yet but it should work I would think. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Scott

[PHP] need some javascript code

2003-01-10 Thread Denis L. Menezes
Hello friends, Can someone please redirect me to some source with javascript for following? 1. Checking if a text box is populated before going to the next page. 2. To check if any item is selected in a listbox before posting data to the next page. 3. to check if a radio button is selected before

  1   2   >