Re: [PHP] forms

2003-01-13 Thread Jason Wong
On Tuesday 14 January 2003 09:53, cj wrote: > Would you know of any tutorial web sites which would explain how to do > this? google knows. >As I have not done any java programing before. javascript != java -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems

[PHP] imap quota

2003-01-13 Thread Roger Thomas
i am referring to imap_get_quota manpages at http://www.php.net/manual/en/function.imap-get-quota.php it gave a short script (see bottom). question: in a qmail-ldap/courier-imap environment, who is that mailadmin ? -- script start -- $mbox = imap_open("{your.imap.host}","mailadmin","password",O

[PHP] forms

2003-01-13 Thread cj
Thanks everyone for your help. I got it to work yay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: occasional mcrypt problems

2003-01-13 Thread Steve Yates
"J Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Try using a different block cipher mode. When encrypting with ECB, as you > said, your plaintext must have a length that is a multiple of the blocksize Are you sure? I read the manual the other way..

Re: [PHP] increment numbers...

2003-01-13 Thread Senani
That also worked .. !! I tried this function .But used wrong arguments. Thanks a lot for the help. Rgds JanakaA At 11:25 PM 1/13/2003 -0600, you wrote: $num = sprintf("%05d",$num); - Original Message - From: "Senani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13,

Re: [PHP] occasional mcrypt problems

2003-01-13 Thread Steve Yates
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > As you have magic_quotes on, automatically happens *addslashes*, now you > need to reverse the proces I think I see where you're going, but I'm not sure that's the correct avenue here. If sla

Re: [PHP] increment numbers...

2003-01-13 Thread Rick Emery
$num = sprintf("%05d",$num); - Original Message - From: "Senani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 10:21 PM Subject: [PHP] increment numbers... HI all, I need help on incrementing numbers starting with a 0 or more on php-4.2.3.

RE: [PHP] increment numbers...

2003-01-13 Thread Senani
Hi, Great! I was searching for this days in PHP DOCS. I can proceed now. Thanks Again folk. JanakAA At 03:30 PM 1/14/2003 +1100, you wrote: for ($i = 1; $i <= 100; $i++) { echo str_pad($i, 6, '0', STR_PAD_LEFT) . ''; } is that the sort of effect you want? -Original Me

RE: [PHP] increment numbers...

2003-01-13 Thread Sean Malloy
for ($i = 1; $i <= 100; $i++) { echo str_pad($i, 6, '0', STR_PAD_LEFT) . ''; } is that the sort of effect you want? -Original Message- From: Senani [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 3:22 PM To: [EMAIL PROTECTED] Subject: [PHP] increment numbers... HI all,

[PHP] increment numbers...

2003-01-13 Thread Senani
HI all, I need help on incrementing numbers starting with a 0 or more on php-4.2.3. When I increment a number like 2 (2++). Its out put is 3 ( not 3). But Its output had leading 0s on php-4.0.2. Does anybody know any function or any other simple way to do th

Re: [PHP] forms

2003-01-13 Thread Rick Emery
in HTML form: . . . in myscript.php: if(ISSET($HTTP_POST_VARS['submita'])) { } if ISSET(($HTTP_POST_VARS['submitb'])) { } - Original Message - From: "cj" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Php-List (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 9:30 PM Sub

RE: [PHP] forms

2003-01-13 Thread Chris Shiflett
--- cj <[EMAIL PROTECTED]> wrote: > The page that processes the form will have to work out > which button got pressed? Exactly. For starters, use this bit of HTML/PHP code to help you see what the browser sends you when the form is submitted (add this to the receiving page): Alternatively, y

Re: [PHP] Getting info with WHILE

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 1:09:10 PM, you wrote: ES> I have the following problem: ES> I have a DB named 'fotografias' with the following information: ES> ind indice_bio url ES> 1 2 ../images/agosti.jpg ES> 2 2 ../images/militar.jpg ES> 3 2 hgfhgfh ES> 4 2

RE: [PHP] forms

2003-01-13 Thread cj
So, if I am understanding correctly The page that processes the form will have to work out which button got pressed? That should be easy enough to work out, I hope :-) -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 2:21 PM To: [EMAIL PRO

[PHP] quota class?

2003-01-13 Thread UberGoober
Has anyone run across a php class for handling filesystem quotas? (Reporting) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forms

2003-01-13 Thread Chris Shiflett
--- cj <[EMAIL PROTECTED]> wrote: > Is it possible to have two buttons and have different > actions for each button in the same form? No, because the action belongs to the form, not the submit buttons (which is why action is an attribute of form). However, you can use different names and values f

[PHP] Getting info with WHILE

2003-01-13 Thread Ezequiel Sapoznik
I have the following problem: I have a DB named 'fotografias' with the following information: ind indice_bio url 1 2 ../images/agosti.jpg 2 2 ../images/militar.jpg 3 2 hgfhgfh 4 2 eze 5 5 ezequi ind, indice_bio and url are fields names. I wrote the fol

[PHP] cprelogin cookie data

2003-01-13 Thread Robert Samuel White
Hello. I have set up my website to log all cookie data that it encounters. I have session management support built in without using cookies. And my website does not use any cookies independently whatsoever. For some reason, it logs a cookie with the following data: cprelogin = no I searche

RE: [PHP] forms

2003-01-13 Thread David Freeman
G'day CJ > This is really a html more than a php question. Yep, it probably is... > Is it possible to have two buttons and have different > actions for each button in the same form? Yep, you can. When you process your form in php you'll find that you have either $first_submit_act

Re[2]: [PHP] pass by reference

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 11:01:33 AM, you wrote: P> -BEGIN PGP SIGNED MESSAGE- P> Hash: SHA1 P> On Monday 13 January 2003 20:01, Tom Rogers wrote: >> Hi, >> >> Tuesday, January 14, 2003, 9:36:57 AM, you wrote: >> P> -BEGIN PGP SIGNED MESSAGE- >> P> Hash: SHA1 >> >> P> I did

RE: [PHP] forms

2003-01-13 Thread cj
Would you know of any tutorial web sites which would explain how to do this? As I have not done any java programing before. -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 12:43 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] form

RE: [PHP] forms

2003-01-13 Thread Cal Evans
yes but it's more of an HTML/JavaScript thing. use INPUT Type='BUTTON' to put a second button on your form. Then use the onClick method to assign an action to it. If you want it to submit your form then call document.formName.submit(); =C= * * Cal Evans * The Virtual CIO * http://www.calevans.

Re: [PHP] forms

2003-01-13 Thread Rick Emery
Do you mean like two SUBMIT buttons? Yes. - Original Message - From: "cj" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 7:32 PM Subject: [PHP] forms G'day All Just a quick question This is really a html more than a php question. Is it possible to have two b

[PHP] forms

2003-01-13 Thread cj
G'day All Just a quick question This is really a html more than a php question. Is it possible to have two buttons and have different actions for each button in the same form? Thanks CJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error in variable when looping

2003-01-13 Thread Rick Emery
so where is $rowe set? Show us code that calls this page - Original Message - From: "menezesd" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 6:21 PM Subject: [PHP] Error in variable when looping Hello friends, I have made the following table of data and a bu

Re: [PHP] pass by reference

2003-01-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 13 January 2003 20:01, Tom Rogers wrote: > Hi, > > Tuesday, January 14, 2003, 9:36:57 AM, you wrote: > P> -BEGIN PGP SIGNED MESSAGE- > P> Hash: SHA1 > > P> I did a complex class that works with XML parsing and complex structured > whe

Re: [PHP] pass by reference

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 9:36:57 AM, you wrote: P> -BEGIN PGP SIGNED MESSAGE- P> Hash: SHA1 P> I did a complex class that works with XML parsing and complex structured where P> I used references extensivly and now I'm surprised with: P> Warning: Call-time pass-by-reference has been

[PHP] Re: Trapping PHP Errors

2003-01-13 Thread Robert Samuel White
Use the error_reporting function to define which errors you would like PHP to report to the error handler. If you want everything to be mailed to you, including warnings, use the E_ALL setting, though you may get a lot more "warnings" than you expect this way: error_reporting(E_ALL); function

Re: [PHP] Trapping PHP errors

2003-01-13 Thread Michael Sims
On Tue, 14 Jan 2003 23:38:11 +0100, you wrote: >Hi all, > >is there a way to execute a custom function as soon as an error happens in >PHP? I looked at the set_error_handler function, but it doesn't seem to trap >all the errors. What I want to achieve is to execute a function that mails >me the er

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
> I'm using I.E. 6. I noticed that register_globals was set ON in my > php.ini file so I changed it to OFF in as per the security warning. > I've noticed a side effect. When I submit a form via POST and then go > back from the results page, my form has been cleared, i.e.., as if the > page has

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
> >Thanks for your response but I don't think this is what I was asking; could > >be wrong though. > > > I re-read your post and, of course, you are right. I mis-read it! I have > heard of this Back button and data missing and I'm sure its come up > before, but I don't remember the answer. I can

[PHP] Error in variable when looping

2003-01-13 Thread menezesd
Hello friends, I have made the following table of data and a button on every row to view the details. The code is working fine and the table is displayed with the buttons. The problem I have is that the $SelectedItemNumber posted to the next page remains the same number no matter which row but

[PHP] Weird Errors

2003-01-13 Thread Mike Bowers
The errors aren't actually generadted inside the PHP but the problem im having makes no sense to me. The pages validate.php feed out: Please veify below that all your details are correct. If there are any errors, they will be lsited first. Error 1: Primary e-mail address was left blank. Error 2: Pl

Re: [PHP] Looking for advice on a non-profit site development

2003-01-13 Thread Michael Sweeney
Check out phpnuke.org - content management system that seems to answer most of the criteria you've set out here. ..michael.. On Mon, 2003-01-13 at 13:46, White Wolf wrote: > Hi All, > > I am a C++ guy, who plans to do a site about C++ Idioms. I would like to > make it into a community site with

[PHP] permission denied

2003-01-13 Thread Anthony Ritter
Using MS Win98 / php 4: Any ideas on how I can change my permssion settings on a file called data.txt so it can be read to and written to or do I have to take that up with my ISP. I get the following after I submit a form: Warning: fopen("data.txt", "a+") - Permission denied

[PHP] pass by reference

2003-01-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I did a complex class that works with XML parsing and complex structured where I used references extensivly and now I'm surprised with: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it b

Re: [PHP] attachment problem

2003-01-13 Thread Lars Olsson
Well, I'll be damned...don't know why, but suddenly everything seems to work! Guess some little gnome inside my computer finally decided it was time for me to get some sleep... Many thanx for for your help, Timothy! /Lars ([EMAIL PROTECTED]) Lars Olsson wrote: It doesn't matter whether I cho

Re: [PHP] attachment problem

2003-01-13 Thread Lars Olsson
It doesn't matter whether I choose 'inline' or 'attachment', browser doesn't seem to care...but at least I found out why wget -S got me text/html instead of image/bmp. I had some session variables that messed things up, but I hacked it a bit and now wget -S is giving me the following headers:

[PHP] Trapping PHP errors

2003-01-13 Thread Pieter Claerhout
Hi all, is there a way to execute a custom function as soon as an error happens in PHP? I looked at the set_error_handler function, but it doesn't seem to trap all the errors. What I want to achieve is to execute a function that mails me the error everytime an error happens. Cheers, Pieter

Re: [PHP] dumb time question

2003-01-13 Thread Tim Ward
use the date() function, in this case date("i") and date("h") or date("H") Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Pag <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 10:25 PM Subject: [PHP] dumb time question > > Ok

[PHP] dumb time question

2003-01-13 Thread Pag
Ok, this is going to be laughable, but here goes. I am looking at code too much to get this one: Have 2 text fields on a database called "hours" and "minutes". How can i get the current time (hour-minutes) in two digit format and apply it to the two variables? Everything i do only gets one d

RE: [PHP] Write Image to Cache

2003-01-13 Thread Timothy Hitchens \(HiTCHO\)
Use the correct headers for no-cache see manual for starters: http://www.php.net/manual/en/function.header.php Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Tues

RE: [PHP] attachment problem

2003-01-13 Thread Timothy Hitchens \(HiTCHO\)
What happens when you change the "inline" to attachment?? Also does this page have any errors in it... eg parsing ones that are causing PHP to take over the headers and error out?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From:

[PHP] Looking for advice on a non-profit site development

2003-01-13 Thread White Wolf
Hi All, I am a C++ guy, who plans to do a site about C++ Idioms. I would like to make it into a community site with interactivity. I have concluded that PHP would be the right way to go. However I am "lazy". I would like first to be able to start doing the site using some sort of visual enviro

Re: [PHP] question on Header(location

2003-01-13 Thread Joseph W. Goff
No, I am afraid not. It will only send a redirection header to the same page that you are on. - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 1:33 PM Subject: [PHP] question on Header(location > When I use ---> header

Re: [PHP] attachment problem

2003-01-13 Thread Lars Olsson
Yes, I've tried using the Content-Disposition header. It doesn't seem to work...here are the relevant parts of my code: // Change Content-Type so that it matches the MIME-type of the part header('Content-Type: ' . $type . '/' . $subtype); // Check if there is a name for the part if (isset($na

[PHP] Small Business Suggestion ???

2003-01-13 Thread Daniel Negron/KBE
Does anyone have any good suggestions for small business software (PHP/MySQL) based ? basically what I need to do is: contact management work order forms invoicing TIA **DAN** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Does PHP's imap_utf7_en/decode compatible with Microsoft Outlook Express?

2003-01-13 Thread Jesse Cablek
Hunte Swee [mailto:[EMAIL PROTECTED]] scribbled; > Hi all, > > It seems true that php's imap_utf7_en/decode does not compatible with > microsoft outlook express. We create imap folder(include chinese > chars) using IMP, all it ok in IMP problem, but when use OE > to connect to imap server, the fo

[PHP] Write Image to Cache

2003-01-13 Thread Stephen
I have a chat script that refreshes the chat thing about every 5 seconds. The problem with it is emoticons. Each refresh, it makes the images reload aswell which makes it do sort of a flicker. How could I write the image to cache to make this stop happening or is there another method that wor

[PHP] GD help

2003-01-13 Thread RClark
Does anyone know if there is a newsgroup for help with GD commands? Thanks, RC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Permission Denied

2003-01-13 Thread Stephen
Ok, I finally just right clicked on my wwwroot folder and went to security. I allowed control to everyone on the network (just me and my brothers) and it works. Just one last question! What should the CHMOD settings be for when it goes online? - Original Message - From: "Sean Malloy" <[E

[PHP] problems to get image informations form local harddrive using "getimagesize"

2003-01-13 Thread harald.mohring
isn't it possible to get image informations from the local harddrive? $fotoinfo=getimagesize("C:\\Files\\Temp\\Image.jpg"); if i use that code, the errormessage is always Unable to access c:\Files\Temp\Image.jpg getimagesize: unable to open file for reading got anybody a solution? -- PHP Gen

Re: [PHP] "document contained no data"

2003-01-13 Thread Chris Shiflett
--- Justin French <[EMAIL PROTECTED]> wrote: > In NN7 Mac, the error is "the page contained no data". > In IE5.x Mac, the error is along the lines of "host > not found" or "could not access URL ...". This is a bit off-topic, but I would suggest ignoring any error messages from IE. It will generall

[PHP] portabily including files

2003-01-13 Thread Tyler BIRD
I'm trying to include 'http://www.myserver.com/conted/me.inc'; portably on several mirrored servers like include '/conted/me.inc' , I was wondering if there was someway I could include files and have the implicity connect and down the load me.inc from the local server whatever server it happens to

Re: [PHP] question on Header(location

2003-01-13 Thread Jason Wong
On Tuesday 14 January 2003 03:33, Don wrote: > When I use ---> header("Location: http://www.somepage.com), it redirects to > my page no problem. My question is, is there a PHP trick I can use to make > it open in a new browser window? No. > I'm adverse to using JavaScript as some users may not h

[PHP] question on Header(location

2003-01-13 Thread Don
When I use ---> header("Location: http://www.somepage.com), it redirects to my page no problem. My question is, is there a PHP trick I can use to make it open in a new browser window? I'm adverse to using JavaScript as some users may not have it turned on (odd I know but a reality still). Thanks

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Chris Hewitt
Don wrote: Thanks for your response but I don't think this is what I was asking; could be wrong though. I re-read your post and, of course, you are right. I mis-read it! I have heard of this Back button and data missing and I'm sure its come up before, but I don't remember the answer. I can

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Don
> Don wrote: > > > > >I'm using I.E. 6. > > > Its not a browser thing, but a PHP thing. > > > I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the r

Re: [PHP] form box question

2003-01-13 Thread Chris Hewitt
Anthony Ritter wrote: Any ideas after looking at the code why I'm having difficulty publishing the file to a MS IIS server with undeclared indexes and variables if it works on Apache server? It will be the error reporting level being set differently between the two servers. The IIS one sounds

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Chris Hewitt
Don wrote: I'm using I.E. 6. Its not a browser thing, but a PHP thing. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my

[PHP] benchmarking used memory

2003-01-13 Thread peio popov
Hi, I would like to know if there is way to measure how much memory a script uses during execution. Althought threre is no such function in the manual, in my opinion there must be some indication how much memory is used because of the memory_limit directive in the php.ini file. So if php is able

[PHP] include_files message question

2003-01-13 Thread Allen Byington
All I've been trying to compile php4 to run under HP-UX 11 64 bit and I get errors on documents when trying to include files. As far as I can tell everything else works. The message only appears when I do an include with a soft path suh as: require('includes/config.inc.php' ); I do not however

[PHP] [Call for Papers] Int'l PHP Conference 2003 Spring Edition, Amsterdam

2003-01-13 Thread Björn Schotte
Dear Sirs/ Madams, dear friends, we are very pleased to announce the International PHP Conference 2003 - Spring Edition - in Amsterdam. The date for this event for PHP enthusiasts from all over the world will be May 8 and 9, 2003. The conference venue is the RAI conference center in Amsterdam.

[PHP] Re: occasional mcrypt problems

2003-01-13 Thread J Smith
Try using a different block cipher mode. When encrypting with ECB, as you said, your plaintext must have a length that is a multiple of the blocksize for the cipher. If it's anything less, you're going to get some garbage at the end of the decrypted ciphertext. I believe that mcrypt uses zeroes

Re: [PHP] form box question

2003-01-13 Thread Anthony Ritter
Thanks. Any ideas after looking at the code why I'm having difficulty publishing the file to a MS IIS server with undeclared indexes and variables if it works on Apache server? TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] form box question

2003-01-13 Thread chip . wiegand
Just a suggestion - you might want to disable the ability to input html code in the messages, as a precautionary messure. I tested the script and was able to make a mess of the page after submitting. -- Chip "Anthony Ritter" <[EMAIL PROTECTED]> 01/13/2003 09:07 AM To [EMAIL PROTECTED] cc

[PHP] question about 'register_globals' setting

2003-01-13 Thread Don
Hi, I'm using I.E. 6. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my form has been cleared, i.e.., as if the page has bee

[PHP] imap_open failure

2003-01-13 Thread Jeff Schwartz
I'm using imap_open in PHP 4.3.0 to successfully access every pop server I've tried - except 1: "mail.fea.net". I know the mail server, port, login, and password are correct because I can successfully log into the pop server with both telnet and Outlook. Here's the code: if ($pop_inbox = ima

RE: [PHP] form box question

2003-01-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Anthony Ritter [mailto:[EMAIL PROTECTED]] > Sent: 13 January 2003 17:07 > I'm testing the following form on: > > MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine. > > However...when I publish the > > .php file > > and the > > data.txt file > > on the

Re: [PHP] Permission Denied

2003-01-13 Thread Stephen
My Full system settings are IIS 6.1, Windows XP Professional, etc. I'll be publishing the script later and most will have CHMOD settings. Now I guess I need to know how to fix it on my test server and then what the CHMOD settings should be... As for Sean's email, I just did those settings and I'll

Re: [PHP] Change Date

2003-01-13 Thread Tom Rogers
Hi, Sunday, January 11, 2004, 10:42:01 PM, you wrote: NS> Hi, NS> How can I find time stamp for example 125 next days. or 03:30 hours next? NS> Regards, NS> S. Naqashzade NS> PS: Sorry for my bad english :-( The simplest way is with strtotime() for example $stamp = strtotime("+ 125 days"); --

Re: [PHP] session_destroy problem

2003-01-13 Thread Scott Fletcher
It's no problem. We're all very interesting in finding out what can work. Maybe I can help with one of this problem. The Gecko browser does have the option of blocking the opening of hte unrequest window which is maybe why yours doesn't work in Mozilla. Just wondeirng... "Tamas Arpad" <[EMAIL

[PHP] form box question

2003-01-13 Thread Anthony Ritter
Hi, I'm testing the following form on: MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine. However...when I publish the .php file and the data.txt file on the ISP's MS IIS server, I get undeclared variables and indexes when the form page loads. The script follows. Any help would be grea

Re: [PHP] session_destroy problem

2003-01-13 Thread Tamas Arpad
On Monday 13 January 2003 15:14, Scott Fletcher wrote: > Let us know how it goes... The unload event had been tried also. The > javascript have been running for a while but the network communication is a > bit tricky, it haven't worked well. Sorry, maybe I missed or forgot the original problem. I

Re: [PHP] Re: Change Date

2003-01-13 Thread Jan Mikes
hope it'll help .mtg. - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> To: "Naqashzade, Sadeq" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 3:59 PM Subject: Re: [PHP] Re: Change Date > > How can I find time stamp for example 125

Re: [PHP] session storage

2003-01-13 Thread 1LT John W. Holmes
> i am writing a shopping site for training (just out of interest). > > When a user clicks "add to basket" i want to check whether an item with > that id is already in my session ($ALCOHOLE["items"]), if so, redirect > them the the view_cart page, if not then append it to the > $ALCOHOLE["items"] a

Re: [PHP] Windows - PHP.INI

2003-01-13 Thread John Nichel
.htaccess isn't a Linux only thing...it's an Apache thing. Just put a file named .htaccess in the document root of the site you want to prepend the file too. Inside the file, put this php_value auto_prepend_file "/path/to/included/file.php" Naqashzade, Sadeq wrote: Hi, I'm using Win2K Pro

[PHP] session storage

2003-01-13 Thread Mat Harris
i am writing a shopping site for training (just out of interest). When a user clicks "add to basket" i want to check whether an item with that id is already in my session ($ALCOHOLE["items"]), if so, redirect them the the view_cart page, if not then append it to the $ALCOHOLE["items"] array as

Re: [PHP] Sessions 'funny' and Zone Alarm Pro 3

2003-01-13 Thread Mike Mannakee
It does sound like you're right. Like ZA is perhaps allowing the user's request to go twice. This is akin to people who double click on links because that's what they're used to doing on windows icons. However, it seems a bit odd how it selects to do it. It seems that if it did it twice on ever

Re: [PHP] Re: Change Date

2003-01-13 Thread Chris Boget
> How can I find time stamp for example 125 next days. $oneDay = ( 60 * 60 * 24 ); $timeStamp = date( "U" ) + ( $oneDay * 125 ); > or 03:30 hours next? $oneHour = ( 60 * 60 ); $timeStamp = date( "U" ) + ( $oneHour * 3.5 ); This is just one of the many different ways it can be done. Chris --

Re: [PHP] Re: Pre-built CMS - Anyone recommend one?

2003-01-13 Thread Kevin Myrick
I would recommend phpWebSite @ http://phpwebsite.appstate.edu . The newest version coming out is very promising, and uses the PEAR libraries. It is XML compliant. Better than the NUKE clones, etc. Kevin Myrick www.ultimatealchemy.com <- about to be phpWebSite based. www.techrebels.com <- phpWebS

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

2003-01-13 Thread Scott Fletcher
Yea, the hacker would guess a random number in html & javascript but the hacker have no way of putting it into php on the server-side. So, we get two different random number and a invalid match. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

[PHP] Re: Pre-built CMS - Anyone recommend one?

2003-01-13 Thread Tros
I use Ovidentia ( http://www.ovidentia.org ). You can test it ( and others ) here: http://www.opensourcecms.com/index.php Tros "Nick Wilson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I'm looking for a *free*, pre-built CMS with PHP/MySQL. > >

RE: [PHP] SESSION variable to pass login ID

2003-01-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Nova [mailto:[EMAIL PROTECTED]] > Sent: 12 January 2003 20:04 > > This statement doesnt look right to me. > > if(isset($_POST['userid']) && isset($_POST['pword'])){ > $_SESSION['user'] = $_POST['userid']; > $_SESSION['password'] = $_POST['pword']; > } Nowt wo

RE: [PHP] Why T_error?

2003-01-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Stephen [mailto:[EMAIL PROTECTED]] > Sent: 10 January 2003 21:04 > > 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 > regis

Re: [PHP] session_destroy problem

2003-01-13 Thread Scott Fletcher
Let us know how it goes... The unload event had been tried also. The javascript have been running for a while but the network communication is a bit tricky, it haven't worked well. "Víã Ãðã " <[EMAIL PROTECTED]> wrote in message 004701c2b90d$5de0c440$0700a8c0@sp">news:004701c2b90d$5de0c440$0

Re: [PHP] stupid question (Back Function)

2003-01-13 Thread David T-G
Remon, et al -- ...and then Remon Redika said... % % hi everyone, Hi! % % It's Possible We used Php Scripting to Back the client Browser Well, yes and no. There was just a new 'crumb' class released (see http://www.phpclasses.org/browse.html/package/934.html for more) which will let y

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Alex Ciurea
Oh, I get it Jason, it's okay the idea of mysqldump Now i see it's more efficient mysqldump rather than my stupid thought. 10x alot, Alexoiul - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 3:27 PM Subject: Re: [PHP]

RE: [PHP] Problem with Search Engine Friendly URLs under PHP & Windows XP

2003-01-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Gerard Samuel [mailto:[EMAIL PROTECTED]] > Sent: 11 January 2003 15:48 > > Jonathan Chum wrote: > > >I'm following various tutorials online that uses the > PATH_INFO to do this, > > As far as I know, this technique doesn't work under windows... As far as I

php-general Digest 13 Jan 2003 13:27:33 -0000 Issue 1820

2003-01-13 Thread php-general-digest-help
php-general Digest 13 Jan 2003 13:27:33 - Issue 1820 Topics (messages 131382 through 131431): Free web-hosting 131382 by: Rambler Does PHP's imap_utf7_en/decode compatible with Microsoft Outlook Express? 131383 by: Hunte Swee php_network_getaddresses() 131384 by: St

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Jason Wong
On Monday 13 January 2003 21:13, Alex Ciurea wrote: > Hi, > > I think I've solved the problem > > group owner of the dest_dir must be apache !!! NB if mysql is running whilst you're copying the files then you could end up with incorrect backups. -- Jason Wong -> Gremlins Associates -> www.greml

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Alex Ciurea
:( Yes I've realised that. It seemed to me that is more efficient to make a copy of that files, rather than a mysqldump. but Yes, in order to access files of the mysql directory, I have to give to the webserver all the rights, solution that I don't aproove, for security reasons. - Origin

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Alex Ciurea
Hi, I think I've solved the problem group owner of the dest_dir must be apache !!! - Original Message - From: "Alex Ciurea" <[EMAIL PROTECTED]> To: "php mailing" <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 1:53 PM Subject: [PHP] Need some help in "exec"-attack > Hi all, > >

RE: [PHP] attachment problem

2003-01-13 Thread Timothy Hitchens \(HiTCHO\)
So you have tried as per the manual: header("Content-Disposition: attachment; filename=downloaded.pdf"); I use this all the time without issue.. do you have a shell that you can use to "wget -S" and see if the correct headers are coming out?? Timothy Hitchens (HiTCHO) Open Platform Consulting

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Jason Wong
On Monday 13 January 2003 19:53, Alex Ciurea wrote: > Hi all, > > this is my situation: > I want to execute some comands using 'shell_exec': > > $command=shell_exec("ls -la /usr/dest_dir;cp -R /usr/source_dir/1.php > /usr/dest_dir;cd /usr/dest_dir;ls -la"); > echo "$command"; > > Actually, these co

[PHP] attachment problem

2003-01-13 Thread Lars Olsson
Hi all! I'm writing a webmail application in PHP and most basic things are working now. However, I've recently run into a problem concerning mail attachments. This is the situation right now: When the user opens a letter there are links to all attachments. The links looks like this: http://www

RE: [PHP] class inside class

2003-01-13 Thread Michael Hall
Thankyou Nilaab and Hatem for the replies. I can see that extending classes is probably the way to go. I was kind of aware of how it works, but didn't see it as an obvious solution. But looking at it more closely, I think I should be able to put most common stuff in a basic class. Different kin

Re: [PHP] "document contained no data"

2003-01-13 Thread Marek Kilimajer
perhaps I could log page,date,time,IP address for a few days, then I could at least find my IP in the log, and the rough time of the error... Or log only requests from your IP. Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] "document contained no data"

2003-01-13 Thread Justin French
on 13/01/03 10:05 PM, Jason Wong ([EMAIL PROTECTED]) wrote: > On Monday 13 January 2003 17:46, Justin French wrote: >> Hi gang, >> >> I'm encountering a strange, random, sporadic error on a new server. >> Basically, sometimes, in a non-repeatable fashion, a page will not load. >> >> In NN7 Mac,

Re: [PHP] pls help with session

2003-01-13 Thread Jason k Larson
It looks to me like you are losing the session id. Try something along the lines of this for the redirect: header("location: main.php?PHPSESSID=".Session_Id()); This could/should be being pushed via cookies, but it appears as though it is not. The best way to troubleshoot is to print the before

  1   2   >