Re: [PHP] mail() question

2003-08-26 Thread Matthias Wulkow
Hallo Alister, am Montag, 25. August 2003 um 03:27 hast Du Folgendes gekritzelt: A Did you install postfix _after_ PHP? Did you have a sendmail binary in A place before you configured PHP? If it's not there are configure time, A it won't even compile the 'mail' function. Yes and there was no

[PHP] Re: Problem with date('w')

2003-08-26 Thread Danielle van Gladbach
Hi, Try: ? echo date (w); ? Danielle Beoi 7308 wrote: Hi I have a problem with the date function ? $theday = date(Y-m-d, time()); echo date((w), $theday); ? should print 1 if today is monday, 2 if today is tuesday ... though it's printing 4 and today is monday ! any idea ?

RE: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-26 Thread Wouter van Vliet
So, while overnight everybody has said something about this.. Let me add a few lines. Also because I just want to keep the discussion running, since I'm having pretty much the same kind of situation. First of all, what I get fro your description is that your friend wants to make changes to access

Re: [PHP] In need of a script

2003-08-26 Thread Jason Sheets
One thing to be aware of, Location: /newpage.php will probably work with most browsers (I know it works with IE, Mozilla and Opera) but the spec requires an absolute path to the file you are redirecting to including protocol, server, path and file. As Wouter demonstrated you should always

[PHP] PHP 4.3.3 released

2003-08-26 Thread Ilia Alshanetsky
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 After a lengthy QA process, PHP 4.3.3 is finally out! This maintenance release solves a fair number of bugs found in prior PHP versions and addresses several security issues. All users are *strongly* advised to upgrade to 4.3.3 as soon as possible.

[PHP] Cookie saving path on Clinet

2003-08-26 Thread Binay Agarwal
Hi Everybody I know this is vague but couldn't find the answer. Where (i mean system path) cookies are saved on Client's machine. I though it is in windows/temp or temporaray internet files (in win 2000) but it wasn't there. Please tell me. Thanks Binay

Re: [PHP] CMS question.

2003-08-26 Thread Edmond Baroud
On August 25, 2003 08:13 am, Jay Blanchard wrote: What makes you think that the developer did something unethical? It looks like you're familiar with this particular case and the developper happens to be your friend so you're defending him? Anyways, I believe I said to make a long stroy short.

Re: [PHP] How to open random Flash page with hyperlink?

2003-08-26 Thread Curt Zirzow
* Thus wrote Cody Phanekham ([EMAIL PROTECTED]): Murugesan, main.php: ? session_name(mysessionname); session_start(); if (!$s_authed) // check access { // user hasnt been authorised, therefore redirect to login page This is exactly why register globals is turned off by default now.

Re: [PHP] script not terminating on user abort

2003-08-26 Thread Dennis Jacobfeuerborn
On Mon, 2003-08-25 at 01:15, Curt Zirzow wrote: * Thus wrote Dennis Jacobfeuerborn ([EMAIL PROTECTED]): Hi! The connection_* function don't seem to work for me and I can no longer determine when the user has aborted the script. When I close the browser window the script just keeps

[PHP] Re: HTML form handling

2003-08-26 Thread sven
Chris Baxter wrote: Hi, I am trying to send the results of a form to my email account and am having difficulty carrying the form variable through if I use an html mime type. Basically, if I send the form using a plain text format, the form results are sucessfully copied to the email,

[PHP] Recursive Object Troubles

2003-08-26 Thread Joshua Groboski
I am building a recursive Menu object. Inside each menu item there is an array which should allow me to add submenu items and so on. I am having trouble, though, with getting the submenus to stay. They are disappearing as I go along. Here is the menu class: (part of it anyway) class Menu {

Re: [PHP] mail() question

2003-08-26 Thread Alister
On Mon, 25 Aug 2003 14:24:25 +0200 Matthias Wulkow [EMAIL PROTECTED] wrote: A Did you install postfix _after_ PHP? Did you have a sendmail A binary in place before you configured PHP? If it's not there are A configure time, it won't even compile the 'mail' function. Yes and there was no

[PHP] Session problem in back button

2003-08-26 Thread murugesan
Hello all, Now i have a problem in back button. After signing in when I click back button It goes to login page. But when I click the forward button it is going to the main page. How can I prevent this. -murugesan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] mysql or php timestamp arithmatic

2003-08-26 Thread Christian Calloway
Hey everyone, I am writing an application to keep track of employee vacation leave. I have two timestamp(14) database fields, lets call them start and end, signifying when start and end of a vacation leave, respectively. What I am trying to do is get the number of hours between start and end, for

RE: [PHP] Use PHP or MySQL for MD5 function

2003-08-26 Thread Daevid Vincent
Well, IMHO it's better to use PHP. My reasoning is this: you want to hit the db and get out of there as quick as possible since you have limited threads. Plus, I try to keep my code as db agnostic as possible, so that it's portable. Having said that, if it's a quick project or something simple,

[PHP] querystring and frameset issue

2003-08-26 Thread Irvin Amoraal
Can somebody tell me how to pass a value between two php pages within a frameset. I have a simple two column framset: navbar on the left, content on the right. I have two pages that are displayed in the content area. Both are PHP pages. I would like to pass an ID value from the first page(a list

Re: [PHP] include () problems

2003-08-26 Thread Jim Lucas
If you are having a problem that tells you that output was displayed on a given line in a given file. And you found this because after the output you tried sending headers, then look in that file on that given line, and you will see the problem. It could be a simple as a ? ? type break in

[PHP] HIPAA EDI X12 stuff?

2003-08-26 Thread Richard Lynch
I don't suppose anybody has any HIPAA stuff implementing something like: ASC X12N 270/271 (004010X092) or its subsequent standards in PHP?... Email off-list if you have any idea what I'm talking about, since *I* don't even want to really do this, so I doubt too many others are interested... What

php-general Digest 25 Aug 2003 19:14:55 -0000 Issue 2258

2003-08-26 Thread php-general-digest-help
php-general Digest 25 Aug 2003 19:14:55 - Issue 2258 Topics (messages 160645 through 160677): Re: Unable to get the values in next page 160645 by: murugesan 160646 by: Cody Phanekham 160654 by: murugesan 160657 by: murugesan Use PHP or MySQL 160647

Re: [PHP] back works in opera but not in internet explorer

2003-08-26 Thread Eric Wood
To fix this, I put: session_cache_limiter ('private, must-revalidate'); at the beginning of all my pages. Seems to work. -eric wood anders thoresson wrote: When I push the back buttom in Opera, I get back to the previous (database/php-generated) page in my site, but when I'm using IE and

[PHP] how to keep decimals from rounding

2003-08-26 Thread Rob Yelvington
Is there a way to surpress round() or number_format() from rounding decimal places? I have a value of .253338 being returned via a calc function. I take that value and multiply by 100 because I want 25.333 to be displayed. I've used round(), sprintf(), and number_format() and each of them

[PHP] PHP permissions problem

2003-08-26 Thread Lowell Allen
My commercial host is set up with the public root directory, public_html, owned by user: userid, group: nobody. Directories I create within public_html are owned by user: userid, group: userid. As a result, PHP does not have permission to create files or write to files in public_html, but it does

[PHP] Uploading by email

2003-08-26 Thread Wouter van Vliet
Hi, I know it's slightly not totally about PHP.. but since I wanna do it with PHP, i'll post it here. I was wondering if anybody can help me to accomplish the following: - Somebody sends an email to, for example, [EMAIL PROTECTED] This email has some attachments, being photo's to be added to

[PHP] Displaying Multidimensional Arrays

2003-08-26 Thread Jason Williard
I am trying to create a function that will take a multidimensional array and turn it into a form based off the information in the array. I have run into a bit of a road block when it comes to displaying the array. Would anyone be able to offer some assistance on this front? - Jason -- PHP

[PHP] preg_match bug

2003-08-26 Thread Christian Calloway
Hey I wanted to see if anyone was getting the same problem. Using preg_match in the following pattern: /tr bgcolor=#FF(.|\n)+?\/tr/ PHP seems to be crashing. I get a Page cannot be displayed message from the browser. I've come across this before, and I just upgraded to 4.3.3, and no

[PHP] Re: how to keep decimals from rounding

2003-08-26 Thread DvDmanDT
use floor(), I think that rounds it down... ceil() rounds it up... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Rob Yelvington [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Is there a way to surpress round() or number_format() from rounding decimal places? I

[PHP] ob_start and transparent sessions 4.3.2

2003-08-26 Thread Miek Lohmann
Hi, I've got a strange problem with enabled transparent sessions for my scripts. Before upgrading to PHP 4.3.2 I could use output buffering (ob_start()) and sessions without problems. Meanwhile with this new version the PHPSESSID is NOT appended to any link like html - tag (a href or something

RE: [PHP] Window.status message

2003-08-26 Thread Chris W. Parker
murugesan mailto:[EMAIL PROTECTED] on Monday, August 25, 2003 1:51 AM said: echo a class=MEDIUMFONTB href='/list.php onmouseover=\javascript:window.status='hai'\ Click here /a; Google* is your friend http://hotwired.lycos.com/webmonkey/96/40/index3a.html?tw=programming Chris. *

RE: [PHP] ob_start and transparent sessions 4.3.2

2003-08-26 Thread Wouter van Vliet
Hi, I too am running PHP4.3.2 and never took any notice about the session id's being appended and stuff .. after reading your message I got a little alarmed, since I'm also using output buffering. So, I turned off my cookies, restarted my browser and saw that indeed no session id's were appended.

RE: [PHP] [Newbie Guide] For the benefit of new members

2003-08-26 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Monday, August 25, 2003 5:11 AM said: 5. Provide a clear descriptive subject line. Avoid general subjects like Help!!, A Question etc. Change to: 5. Provide a clear descriptive subject line. Avoid general subjects like Help!!, A Question, etc.

RE: [PHP] Problem with date('w')

2003-08-26 Thread Jennifer Goodie
I have a problem with the date function ? $theday = date(Y-m-d, time()); echo date((w), $theday); ? I'm pretty sure the optional second argument for date is a unix timestamp that you would generate by using either time or mktime or strtotime. You are passing it something in the form of

[PHP] verifying sql INSERTs

2003-08-26 Thread Chris W. Parker
Hi! (MySQL) What's the best way to determine a sql INSERT statement has executed successfully? What I've got is a function whose sole purpose is to add new staff members to an app. I've written. There's a basic form that the user fills out (first name, last name, email address) and submits.

RE: [PHP] Displaying Multidimensional Arrays

2003-08-26 Thread Chris W. Parker
Jason Williard mailto:[EMAIL PROTECTED] on Monday, August 25, 2003 2:00 PM said: Would anyone be able to offer some assistance on this front? Sure... if you give us more info. (i.e. maybe the array layout?) c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] CMS question.

2003-08-26 Thread Robert Cummings
On Mon, 2003-08-25 at 10:14, Edmond Baroud wrote: On August 25, 2003 08:13 am, Jay Blanchard wrote: What makes you think that the developer did something unethical? It looks like you're familiar with this particular case and the developper happens to be your friend so you're defending

RE: [PHP] Session problem in back button

2003-08-26 Thread Paul Fitzpatrick
Hi, This will stop them seeing the login once they are in a registered session Only diplay the login form if NOT a registered session variable 'sessionname' (or some other session variable) If (!isset($_SESSION['sessionname'])) { //Display login form code goes here } Cheers.

Re: [PHP] Recursive Object Troubles

2003-08-26 Thread Mike Migurski
I am building a recursive Menu object. Inside each menu item there is an array which should allow me to add submenu items and so on. I am having trouble, though, with getting the submenus to stay. They are disappearing as I go along. Without really going through your code (sorry) I would

Re: [PHP] CMS question.

2003-08-26 Thread [EMAIL PROTECTED]
exactly. The development company usualy has all the rights. That's why NDAs were invented :-) Robert Cummings wrote: On Mon, 2003-08-25 at 10:14, Edmond Baroud wrote: On August 25, 2003 08:13 am, Jay Blanchard wrote: What makes you think that the developer did something unethical?

Re: [PHP] verifying sql INSERTs

2003-08-26 Thread John W. Holmes
Chris W. Parker wrote: Hi! (MySQL) What's the best way to determine a sql INSERT statement has executed successfully? You should use mysql_error() to ensure your query did not fail for any reason. Assuming the query was successful, you can use mysql_affected_rows() to see if it actually had

Re: [PHP] querystring and frameset issue

2003-08-26 Thread [EMAIL PROTECTED]
frame set will need to be in php try something like this [code] frame src=page1.php?id=? echo $id; ? [/code] all the best Irvin Amoraal wrote: Can somebody tell me how to pass a value between two php pages within a frameset. I have a simple two column framset: navbar on the left, content on the

Re: [PHP] preg_match bug

2003-08-26 Thread John W. Holmes
Christian Calloway wrote: Hey I wanted to see if anyone was getting the same problem. Using preg_match in the following pattern: /tr bgcolor=#FF(.|\n)+?\/tr/ You need to escape the double quotes in your string at the very least. -- ---John Holmes... Amazon Wishlist:

[PHP] help with parse error

2003-08-26 Thread Stevie D Peele
I have a parse error on line 12 -- --- ?php include ('config.php'); $link = @mysql_pconnect($location, $username, $password) or die(Could not connect to the databaseserver. Please go back and try again or try again later.);

[PHP] Impossible error

2003-08-26 Thread Mjec
Hi, I have a 163 line file. I get a parse error on line 164. Ideas? Thanks, mjec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Impossible error

2003-08-26 Thread Ashley M. Kirchner
Mjec wrote: I have a 163 line file. I get a parse error on line 164. Ideas? That generally means you've forgotten a bracket somewhere. Check and correct the missing bracket and you should be good to go. -- H| I haven't lost my mind; it's backed up on tape somewhere.

RE: [PHP] Impossible error

2003-08-26 Thread Jennifer Goodie
I have a 163 line file. I get a parse error on line 164. Ideas? You're probably missing a } somewhere. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] help with parse error

2003-08-26 Thread Paul Fitzpatrick
Hi, Maybe.. $sql = SELECT Title, SubT, Author, Story FROM SiteNews; should be $sql = SELECT Title, SubT, Author, Story FROM SiteNews; -Original Message- From: Stevie D Peele [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 5:41 PM To: [EMAIL PROTECTED] Subject: [PHP] help

RE: [PHP] How to open random Flash page with hyperlink?

2003-08-26 Thread Cody Phanekham
Curt, Your absolutely right it is a security hole, however the response was a quick solution without much thought in regards to the security integrity of the script. -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Tuesday, 26 August 2003 01:04 To: [EMAIL

[PHP] if seat is sold

2003-08-26 Thread Jay Fitzgerald
1. here is my code: http://codedump.phpfreaks.com/viewcode.php?id=1162 2. here is a screenie of my seating chart: http://www.bayou.com/jay/chart.gif 3. what i am wanting to do is using CSS i want to strike-through the seats that are in the db - else, I want them to display normally note: the

[PHP] FTP hosting PHP releases?

2003-08-26 Thread Simon Fredriksson
Is there any official FTP server hosting the PHP tar balls? I've done a shell script that downloads, compiles and installs PHP. Problem is that it's kinda hard to fetch the tarballs since there are no good static links. They seem to change with every release. Trying to run wget

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
Obviously its an example, otherwise the script wouldn't have even parsed. $regularExpression = '/tr bgcolor=#FF(.|\n)+?\/tr/'; preg_match ($regularExpression, $fileString, $matches) This regular expression causes PHP to crash for me, not a parsing error. John W. Holmes [EMAIL PROTECTED]

[PHP] SMTP - Authorization?

2003-08-26 Thread Mathiau
Hey all! glad to bea here! got alot to learn! k, basically i am sending out a mailing list to customers, - using a PHP script, however the SMTP i am using needs to have Authorization to log into the outgoing SMTP - i HAVE to use this authentication no if's and ot butt's., otherwise i will be

Re: [PHP] FTP hosting PHP releases?

2003-08-26 Thread Sascha Schumann
On Tue, 26 Aug 2003, Simon Fredriksson wrote: Is there any official FTP server hosting the PHP tar balls? I've done a shell script that downloads, compiles and installs PHP. Problem is that it's kinda hard to fetch the tarballs since there are no good static links. They seem to change with

Re: [PHP] Unix end of line versus windows end of line

2003-08-26 Thread Curt Zirzow
* Thus wrote Bohdan Blaha ([EMAIL PROTECTED]): Hi, I use PHP with apache on two systems.. (linux and windows) when I use PHP on linux, it is ok.. I get Unix end of line, when I write to the file with fwrite function... when I run the same script on windows machine, I get Unix end of

Re: [PHP] preg_match bug

2003-08-26 Thread Curt Zirzow
* Thus wrote Christian Calloway ([EMAIL PROTECTED]): Hey I wanted to see if anyone was getting the same problem. Using preg_match in the following pattern: /tr bgcolor=#FF(.|\n)+?\/tr/ PHP seems to be crashing. I get a Page cannot be displayed message from the browser. I've come

Re: [PHP] preg_match bug

2003-08-26 Thread Curt Zirzow
* Thus wrote Christian Calloway ([EMAIL PROTECTED]): Obviously its an example, otherwise the script wouldn't have even parsed. You provided an example that he had to make certain guesses for why you think php is crashing. $regularExpression = '/tr bgcolor=#FF(.|\n)+?\/tr/'; This still

[PHP] mb_send_mail displays boundary marker

2003-08-26 Thread Martin Towell
I've written an email class that works fine when I use mail() But now I have added support for mb_send_mail() and the boundary marker is being displayed in the body of the email. Putting it back to mail() works fine... I'm doing all the header info myself (ie, mb_send_mail('', '', $body,

Re: [PHP] how to keep decimals from rounding

2003-08-26 Thread Curt Zirzow
* Thus wrote Rob Yelvington ([EMAIL PROTECTED]): Is there a way to surpress round() or number_format() from rounding decimal places? I have a value of .253338 being returned via a calc function. I take that value and multiply by 100 because I want 25.333 to be displayed. I've used

Re: [PHP] Use PHP or MySQL for MD5 function

2003-08-26 Thread Curt Zirzow
* Thus wrote Daevid Vincent ([EMAIL PROTECTED]): If you really care, just make a program like this and do some MD5() calls in both mysql and php to see which is faster. I'd be curious to know as well... You'll have to modify appropriately, and only do a single MD5 check because I think

Re: [PHP] PHP permissions problem

2003-08-26 Thread Curt Zirzow
* Thus wrote Lowell Allen ([EMAIL PROTECTED]): My commercial host is set up with the public root directory, public_html, owned by user: userid, group: nobody. Directories I create within public_html are owned by user: userid, group: userid. As a result, PHP does not have permission to create

Re: [PHP] Cookie saving path on Clinet

2003-08-26 Thread Tom Rogers
Hi, Monday, August 25, 2003, 12:01:53 PM, you wrote: BA Hi Everybody BA I know this is vague but couldn't find the answer. BA Where (i mean system path) cookies are saved on Client's machine. BA I though it is in windows/temp or temporaray internet files (in win 2000) but it wasn't there. BA

Re: [PHP] need help figuring out how to delete rows?

2003-08-26 Thread Deadsam
Cool thanks I'll try it out :) Deadsam Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Actualy, it will not. LIMIT can have only one argument with DELETE. This will ($count is the number of rows you need to get in a previous query): DELETE FROM table ORDER BY

[PHP] Re: Displaying Multidimensional Arrays

2003-08-26 Thread Jason Williard
I actually found a way of handling this on my own. Thanks. - Jason Jason Williard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to create a function that will take a multidimensional array and turn it into a form based off the information in the array. I have run into

Re: [PHP] Session problem in back button

2003-08-26 Thread murugesan
Seems confusing. - //include.php session_name(sessionname); session_start(); -- This was added in a separate file and included that file in all the files including index.php In index.php I registered a variable s_authed and initialised it to 0

[PHP] determine how many checkboxes are selected.

2003-08-26 Thread Angelo Zanetti
Hi I have a tabel that gets populated dynamically from a DB query. Each row is a seperate record and they all have a checkbox. I want to put a button/image @ after the table and when it is click ed to determine which checkboxes have beeen selected. I also name the checkboxes dynamically with chk

[PHP] php-cli stopping on exit.

2003-08-26 Thread Simon Fredriksson
Can someone explain why PHP freezes when I don't specify a file for it? Like when I run php -v it outputs: PHP 4.3.3 (cli) (built: Aug 24 2003 22:05:23) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies Then stops. It doesn't return to the

Re: [PHP] determine how many checkboxes are selected.

2003-08-26 Thread murugesan
First count the number of entries($count) to be displayed in the page. Accordingly assign the names for($i=0;$i $count;$i++) { $chkval=chkv.$i; $chkfun=chkf.$i; echo input type=hidden name=$chkval value=off; echo input type=checkbox name=chkname.$i onclick=$chkfun() ; //display record

[PHP] onchange = $_SESSION['Alarm'] = getelementbyid('alarmReport').value ;

2003-08-26 Thread Mrunal Wagh
hi, I have a SELECT in which I would like to store the variable value in the Session variable of onchange event of the SELECT. I am stuck up with the syntax could u please help. Select name=AlarmReport id = AlarmReport **I want to do this* onchange = $_SESSION['Alarm'] =

RE: [PHP] [Newbie Guide] For the benefit of new members

2003-08-26 Thread Burhan
Quoting Chris W. Parker [EMAIL PROTECTED]: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Monday, August 25, 2003 5:11 AM said: 5. Provide a clear descriptive subject line. Avoid general subjects like Help!!, A Question etc. Change to: 5. Provide a clear descriptive subject line.

[PHP] MD5 System Password check with PHP

2003-08-26 Thread Chinmoy Barua
Hello everybody, I want to authenticate my user from web with PHP script. The user's passwords are stored in System as MD5 format (in /etc/shadow). Can anybody help me? - Chinmoy __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: [PHP] SMTP - Authorization?

2003-08-26 Thread Manuel Lemos
Hello, On 08/25/2003 09:34 PM, Mathiau wrote: basically i am sending out a mailing list to customers, - using a PHP script, however the SMTP i am using needs to have Authorization to log into the outgoing SMTP - i HAVE to use this authentication no if's and ot butt's., otherwise i will be

Re: [PHP] MD5 System Password check with PHP

2003-08-26 Thread murugesan
First store the password in the DB as $passwd=md5($passwd) insert into table values( $passwd); get the user password and check by comparing if(md5($password)==$fetchedpasswdfromDB) { ... } -murugesan - Original Message - From: Chinmoy Barua [EMAIL PROTECTED] To: [EMAIL

[PHP] Re: Uploading by email

2003-08-26 Thread Manuel Lemos
Hello, On 08/25/2003 05:41 PM, Wouter Van Vliet wrote: I know it's slightly not totally about PHP.. but since I wanna do it with PHP, i'll post it here. I was wondering if anybody can help me to accomplish the following: - Somebody sends an email to, for example, [EMAIL PROTECTED] This email has

Re: [PHP] MD5 System Password check with PHP

2003-08-26 Thread Justin French
On Tuesday, August 26, 2003, at 04:04 PM, Chinmoy Barua wrote: Hello everybody, I want to authenticate my user from web with PHP script. The user's passwords are stored in System as MD5 format (in /etc/shadow). Can anybody help me? Which part do you want help with? The form? The SQl query? The

Re: [PHP] MD5 System Password check with PHP

2003-08-26 Thread Burhan
Quoting Justin French [EMAIL PROTECTED]: On Tuesday, August 26, 2003, at 04:04 PM, Chinmoy Barua wrote: Hello everybody, I want to authenticate my user from web with PHP script. The user's passwords are stored in System as MD5 format (in /etc/shadow). Can anybody help me? See

Re: [PHP] Problem with date('w')

2003-08-26 Thread BEOI 7308
i found out that using strtotime did the trick !! ? strtotime($theday); $theday = date(Y-m-d, time()); echo date((w), $theday); ? I have a problem with the date function ? $theday = date(Y-m-d, time()); echo date((w), $theday); ? I'm pretty sure the optional second argument for

RE: [PHP] determine how many checkboxes are selected.

2003-08-26 Thread Ralph Guzman
Change box names to chk[] and assign the id as the value, so for example: INPUT TYPE=checkbox NAME=chk[] VALUE=56 to check which boxes have been checked simply traverse through the chk[] array like this: $chk_array = $_POST['chk']; for($chk_array as $chk_key = $chk_value) { print 'Checkbox

[PHP] Problem with session_start after upgrading from 4.0.6 to 4.3.1

2003-08-26 Thread Richard NAGY
Hello, I'm using an apache server 1.3.28 on RedHat GNU/Linux 6.2 with php 4.3.1. Before, I was using apache 1.3.14 with php 4.0.6. Since I have upgraded, I have problems with session_start. I have tried to set register_globals either to on or to off but it has no effect on this problem. Example

php-general Digest 26 Aug 2003 07:35:50 -0000 Issue 2259

2003-08-26 Thread php-general-digest-help
php-general Digest 26 Aug 2003 07:35:50 - Issue 2259 Topics (messages 160678 through 160733): Re: back works in opera but not in internet explorer 160678 by: Eric Wood how to keep decimals from rounding 160679 by: Rob Yelvington 160684 by: DvDmanDT 160713

Re: [PHP] MD5 System Password check with PHP

2003-08-26 Thread Justin French
Burhan, Please try to quote the right person when replying to a thread -- your messages was, I assume, intended for Chinmoy Barua, not me. It saves confusion, and keeps the thread more useful and easier to follow. Thanks, Justin French On Tuesday, August 26, 2003, at 04:17 PM, Burhan wrote:

[PHP] weird output on my Apache2, PHP 4.2.3 Win2k box...

2003-08-26 Thread jsWalter
Can someone tell me why all mt PHP generated HTML has this pre-pended to it? And how can I turn it off? Thanks Walter script language=JavaScript !-- function SymError() { return true; } window.onerror = SymError; var SymRealWinOpen = window.open; function SymWinOpen(url, name,

Re: [PHP] weird output on my Apache2, PHP 4.2.3 Win2k box...

2003-08-26 Thread Adrian
this crap ist inserted by the norton firewall 2003. the SymWinOpen is there only if the ad blocker is turned on, the SymError cannot be turned of w/o turning off the firewall Can someone tell me why all mt PHP generated HTML has this pre-pended to it? And how can I

[PHP] Re: Uploading by email

2003-08-26 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi, I know it's slightly not totally about PHP.. but since I wanna do it with PHP, i'll post it here. I was wondering if anybody can help me to accomplish the following: - Somebody sends an email to, for example, [EMAIL PROTECTED]

Re: [PHP] php-cli stopping on exit.

2003-08-26 Thread Edin Kadribasic
It works fine here. Do you have any additional extensions enabled in php.ini? Edin - Original Message - From: Simon Fredriksson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 7:24 AM Subject: [PHP] php-cli stopping on exit. Can someone explain why PHP freezes

[PHP] Cannot pass values from one page to another

2003-08-26 Thread murugesan
Hello all, I have passed a value from index.php?uid=one I got this value in next page(main.php) But from there I am not able to pass it to next page I used session_register('uid'); in main.php but in next page $uid is returning null Any solutions? -murugesan -- PHP General Mailing List

[PHP] user verification with apache/php question

2003-08-26 Thread elja
I want to password protect a directory with a .htaccess file. But i don't want to use the (ugly) browser popup login window. Is there a way that php sends the password/login data to apache so that the browser popup won't show up? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Ingress II

2003-08-26 Thread Tommi Virtanen
Hi! I have following problem: An Ingress II ver. 2.0 DB. I should be read it data into MySql DB (Once a day). But first! How I can connect to Ingress DB? gustavus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if seat is sold

2003-08-26 Thread Marek Kilimajer
Make an array of sold seats and use in_array() to determine if the seat number should be strike-through (and combo box disabled). Jay Fitzgerald wrote: 1. here is my code: http://codedump.phpfreaks.com/viewcode.php?id=1162 2. here is a screenie of my seating chart:

Re: [PHP] onchange = $_SESSION['Alarm'] = getelementbyid('alarmReport').value;

2003-08-26 Thread Marek Kilimajer
getelementbyid('AlarmReport').value will not get the value of the selected option. Use this.options[this.selectedIndex].value Session var can be set only on the server, you must post the form to get the value or use some javascript to do it, eg: img = new Image();

Re: [PHP] verifying sql INSERTs

2003-08-26 Thread Marek Kilimajer
mysql_query() will return true for queries that don't return rows and were executed without error, so you can use return mysql_query(); You should also make a UNIQUE index on email column, then you can check the number returned by mysql_errno(), one number I don't remember signals duplicate

[PHP] Cron time to activate mail and error handling

2003-08-26 Thread Safal Solutions
Dear friend, Two questions: 1. We want to activate cron to wake up at certain time. We do not know how to configure the time for waking up? 2. We are sending mails using PHP program. PHP program is activated Cron. We want to know wheather the mail was sent successfully or not. How do we know

RE: [PHP] [Newbie Guide] For the benefit of new members

2003-08-26 Thread Jay Blanchard
[snip] .02 [/snip] A good .02 Chris. I'd add 9. Ask smart questions http://catb.org/~esr/faqs/smart-questions.html Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cannot pass values from one page to another

2003-08-26 Thread Jay Blanchard
[snip] I got this value in next page(main.php) But from there I am not able to pass it to next page I used session_register('uid'); in main.php but in next page $uid is returning null [/snip] First, look at the manual for sessions. You have posted many questions where the manual would have

Re: [PHP] PHP permissions problem

2003-08-26 Thread Lowell Allen
* Thus wrote Lowell Allen ([EMAIL PROTECTED]): My commercial host is set up with the public root directory, public_html, owned by user: userid, group: nobody. Directories I create within public_html are owned by user: userid, group: userid. As a result, PHP does not have permission to create

RE: [PHP] Cron time to activate mail and error handling

2003-08-26 Thread Jay Blanchard
[snip] 1. We want to activate cron to wake up at certain time. We do not know how to configure the time for waking up? [/snip] cron should be active all of the time. Type; ps aux | grep cron and you shold see cron running as a daemon [snip] 2. We are sending mails using PHP program. PHP

Re: [PHP] Cannot pass values from one page to another

2003-08-26 Thread murugesan
Thanks for the message. I looked into the manual. But it is not working. Ofcourse I used session_start in every pages. -murugesan - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: murugesan [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 5:23 PM Subject:

[PHP] php and var statics

2003-08-26 Thread Alvaro Martinez
I have written this code: class db{ var $_miInstancia; function db (){ // funcion que se conecta con la BBDD static $miInstancia; $this-_miInstancia=$miInstancia; $result = @mysql_pconnect(inforalv, discoteca, password);

[PHP] Checking for Javascript funcionality

2003-08-26 Thread hecchan
Hi people, I think is the PHP scripter needs to know in advance if he can count on Client-side scripting capability. I just start with PHP but wrote this chunk of code to check it. ?php if (isset($_REQUEST['UA_js'])) { session_start(); $_SESSION['UA_js'] = $_REQUEST['UA_js']; if

Re: [PHP] user verification with apache/php question

2003-08-26 Thread David Otton
On Tue, 26 Aug 2003 11:48:22 -0700, you wrote: I want to password protect a directory with a .htaccess file. But i don't want to use the (ugly) browser popup login window. Is there a way that php sends the password/login data to apache so that the browser popup won't show up? Chapter 16 in the

Re: [PHP] Cannot pass values from one page to another

2003-08-26 Thread [EMAIL PROTECTED]
what's your register globals settings? did you try to retrieve from HTTP_COOKIE_VARS ? murugesan wrote: Thanks for the message. I looked into the manual. But it is not working. Ofcourse I used session_start in every pages. -murugesan - Original Message - From: Jay Blanchard [EMAIL

[PHP] problem passing variable between forms.

2003-08-26 Thread Angelo Zanetti
HI all I have a form in which I have a table with dynamic checkboxes, they are in a checkbox array ( name = chk[]...), I pass this variable to the next page using POST I receive the variable and use it, no problem, but then when I try to pass it to the next form in the URL (using an A HREF: a

[PHP] Re: php and var statics

2003-08-26 Thread Greg Beaver
Alvaro Martinez wrote: I have written this code: class db{ var $_miInstancia; function db (){ // funcion que se conecta con la BBDD static $miInstancia; $this-_miInstancia=$miInstancia; $result = @mysql_pconnect(inforalv, discoteca,

  1   2   >