[PHP] secure access

2002-10-09 Thread Roman Duriancik
If I want to secure the access to the database by asking for passwd, what should I do ? I suppose I need a secure connection to transfer the username and passwd between HTML form and the script - how do I make that ? How do I secure the database file with passwords and user names so that it cannot

Re: [PHP] This fact ruins my understanding of php :( please explain!

2002-10-09 Thread Markas
Thnaks for an explanation. Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This has been explained a few times. PHP does shallow copies, or > copy-on-write which means that the data is not actually copied until you > change it. That is: > > $

[PHP] Re: :( This fact ruins my understanding of php :( please explain!

2002-10-09 Thread Markas
Thanks for ur interest. Seairth Jacobs <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a couple thoughts... > > 1) In some other languages, passing an array by value only passes the first > element value, not the whole array. This may be happening here,

[PHP] Mail

2002-10-09 Thread Steel
Hi group, I have a problem. There is no sendmail on the hoster's computer. (OS Unix-like) Can I send mail in any other way? Please help! -- The Same, Steel mailto:[EMAIL PROTECTED] http://www.none.ru -- PHP General Mailing List (

RE: [PHP] Mail

2002-10-09 Thread Timothy J Hitchens
Get a SMTP sender class.. have a look at www.zend.com Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Steel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 9 October 2002 7:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Mail Hi group, I have a p

[PHP] Session and URL

2002-10-09 Thread Max Buvry
I meet a probleme with the session. My example considers 2 scripts : - the first script (test_session_url.php) opens a session (session.auto_start=1 in php.ini), defines a counter, prints some information and an hypertext to execute the second script which has session id as parameter ---

[PHP] how to create files??

2002-10-09 Thread Aidal
Hi NG. I'm having problems creating files at a certain location. If I attemt to create a file it gets created in the rootdir (htdocs) even though I add a path infront of the file name. I've tried severel ways of adding a path (with "/" and "\\") but nothing works. eksample: "/nef/articles/54.txt

RE: [PHP] how to create files??

2002-10-09 Thread Timothy J Hitchens
If the script is in the same directory just try either "{file}" nothing in front or "./{file}" What function are you using to create files? Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Aidal [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

[PHP] POST method not allowed

2002-10-09 Thread Muhammad Khairuzzaman
Hi, I'm having problem with processing my form file. It seems that everytime I use the Post method to process the for the browser return : Method Not Allowed The requested method POST is not allowed for the URL /quote.php3. And if i use a GET method, all the variables are returned as 0 (null ,

[PHP] POST method not allowed

2002-10-09 Thread Muhammad Khairuzzaman
Hi, I'm having problem with processing my form file. It seems that everytime I use the Post method to process the for the browser return : Method Not Allowed The requested method POST is not allowed for the URL /quote.php3. And if i use a GET method, all the variables are returned as 0 (null ,

RE: [PHP] POST method not allowed

2002-10-09 Thread Timothy J Hitchens
Are you sure that .php3 files are being processed by PHP ??? Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Muhammad Khairuzzaman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 9 October 2002 12:54 PM To: [EMAIL PROTECTED] Subject: [PHP] POST

Re: [PHP] POST method not allowed

2002-10-09 Thread Muhammad Khairuzzaman
"Timothy J Hitchens" <[EMAIL PROTECTED]> wrote in message 006c01c26f7b$529a7530$0500a8c0@BAMBINO">news:006c01c26f7b$529a7530$0500a8c0@BAMBINO... > Are you sure that .php3 files are being processed by PHP ??? > > > Timothy Hitchens (HITCHO) > [EMAIL PROTECTED] > > HITCHO has Spoken! Yes, i've tri

RE: [PHP] POST method not allowed

2002-10-09 Thread Timothy J Hitchens
Have you confirmed that they are php processed... eg made a phpinfo() page and run it? Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Muhammad Khairuzzaman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 9 October 2002 8:14 PM To: [EMAIL PROTE

Re: [PHP] POST method not allowed

2002-10-09 Thread Muhammad Khairuzzaman
"Timothy J Hitchens" <[EMAIL PROTECTED]> wrote in message 006d01c26f7d$236b39a0$0500a8c0@BAMBINO">news:006d01c26f7d$236b39a0$0500a8c0@BAMBINO... > Have you confirmed that they are php processed... eg made a phpinfo() > page and run it? > > > Timothy Hitchens (HITCHO) > [EMAIL PROTECTED] > > HITCH

Re: [PHP] POST method not allowed

2002-10-09 Thread Stuart Dallas
Muhammad Khairuzzaman wrote: > Yes, done that too. Have you checked that you don't have method limits in your httpd.conf? That would be my first guess re: the POST issue. Have you checked your register_globals setting in php.ini? That would be my first guess re: the GET variables issue. -- S

RE: [PHP] Speeding up a Mysql Select

2002-10-09 Thread John W. Holmes
> I'm doing a select on a database that has about 45000 records and growing > and its a bit SLOW. > > Its using a unix timestand to mark the beginning of a call and the end of > a > call. This is also used so I know what date the call was received. > > When I do a > > select * from support whe

Re: [PHP] Speeding up a Mysql Select

2002-10-09 Thread Maurits Lawende
You should include a LIMIT to the sql-query or mysql parses the whole database example: SELECT * FROM `support` WHERE `begintime` > 'timestamp1' AND `begintime` < 'timestamp2' LIMIT 0,1'; John W. Holmes wrote: >>I'm doing a select on a database that has about 45000 records and >> >> >gr

[PHP] Re: MySQL back up

2002-10-09 Thread Ken
Here is the code I tired to use: $backupdir/$nam.sql"); passthru("gzip $backupdir/$nam.sql"); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Speeding up a Mysql Select

2002-10-09 Thread Marco Tabini
Also, probably a stupid question, but, is the `begintime` column indexed? If it isn't, no matter what you do, the whole thing will keep getting slower at an alarmingly fast pace :) Marco On Wed, 2002-10-09 at 07:14, Maurits Lawende wrote: > You should include a LIMIT to the sql-query or mysql

[PHP] Seek for a value in a html file ...

2002-10-09 Thread Bård Tommy Nilsen
I want to read the contents from a html file to a pointer, and seek for A value, and return it The text under is an example, and I want to get the 2505 value to be returned. Eks. $id = '2505' ( Regards Bård Tommy Nilsen

[PHP] Re: Seek for a value in a html file ...

2002-10-09 Thread Erwin
Bård tommy nilsen wrote: > I want to read the contents from a html file to a pointer, and seek > for > A value, and return it > > The text under is an example, and I want to get the 2505 value to be > returned. > Eks. $id = '2505' > > ( href="javascript:get(2505);"> Try something like this:

RE: [PHP] Re: MySQL back up

2002-10-09 Thread John W. Holmes
> -Original Message- > From: Ken [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 7:25 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: MySQL back up > > Here is the code I tired to use: > > > session_start(); You don't need to start a session... > require("./config.ph

[PHP] Re: POST method not allowed

2002-10-09 Thread Muhammad Khairuzzaman
Ok, my bad, firstup i didnot set in httpd.conf to process *.php3 files. But i already fix that. So, now all I'm getting is that when I I try to process the data from a form whether I'm using GET or POST method, the value that i get processed form is still null. I check in the error log file and

[PHP] Undefined variable

2002-10-09 Thread Muhammad Khairuzzaman
I'm trying to process data from a form, regardless whether I'm using GET or POST method, the value that i get in the processed form is still null. I check in the error log file and this is what it say: [Wed Oct 09 20:18:47 2002] [error] PHP Notice: Undefined variable: name in e:\program files\

RE: [PHP] Undefined variable

2002-10-09 Thread Daniel Kushner
Try using $_POST['name'] or $_GET['name']. E.g.: Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Muhammad Khairuzzaman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 8:22 AM To: [EM

[PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Verdon Vaillancourt
Hi, I hope this question isn't too basic... I have a flat file (CSV) that I want to import into a mySQL db via phpMyAdmin. The file has about 1200 rows and is in a format like: "value","value","password","value","value","etc" The passwords are in clear text. I need them to be encrypted in md5.

[PHP] Re: Undefined variable

2002-10-09 Thread Muhammad Khairuzzaman
Hi, thanks for the help! I worked, but i dont get it, why use $_POST['name'] or $_GET['name'] when the text from the internet and books I've read says just put a dollar sign before the variable's name. If it wouldn't be a burden can u pls xplain? -- PHP General Mailing List (http://www.php.n

RE: [PHP] Re: MySQL back up

2002-10-09 Thread Daniel Masson
I agree everything, but Im not very sure if this is going to work: > $backup=@passthru("mysqldump --opt \"$sqldatabase\" > > $backupdir/$nam.sql"); You need to send mysqldump the username and password. Syntax is Mysqldump -uuser -ppassword databasename > fi

[PHP] Reversing the Colour.

2002-10-09 Thread Alexis Antonakis
Hi, I have a site whereby the user can select the colour of links for their individual sections. What I would like to do is to get the exact opposite colour of the one that they choose and use that in the 'hover over' option of the tag. The value for the colour is stored in hex. To add to thi

[PHP] Re: Undefined variable

2002-10-09 Thread Johannes Janson
Hi, Muhammad Khairuzzaman wrote: > Hi, thanks for the help! > > I worked, but i dont get it, why use $_POST['name'] or $_GET['name'] when > the text from the internet and books I've read says just put a dollar sign > before the variable's name. from php version 4.?.x on register_globals is turn

[PHP] Different Content-types

2002-10-09 Thread Archibald Zimonyi
Hi everyone, I'm trying to write a PHP script that is meant to conjure up some string context and force the browser to download this context into a file. For this I have used the following header code: header("Cache-control: private"); header("Content-Type: application/octet-stream");

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Adam Voigt
Off the top of my head I would use: $f = fopen("filename.csv","r"); $data = fread($f,filesize("filename.csv")); fclose($f); $split = explode("\n",$data); $counter = 0; foreach($split AS $row) { $myarray = explode(",",$row); $myarray[2] = md5($myarray[2]); $split[$counter

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Adam Voigt
Oh, and if you wanted to do it after you inserted, you could just do: mysql_query("UPDATE tablename SET pwfieldname = md5(pwfieldname);"); On Wed, 2002-10-09 at 08:39, Verdon Vaillancourt wrote: > Hi, > > I hope this question isn't too basic... > > I have a flat file (CSV) that I want to impor

Re: [PHP] Reversing the Colour.

2002-10-09 Thread Pekka Saarinen
At 10/9/2002, you wrote: >Hi, > >I have a site whereby the user can select the colour of links for their >individual sections. > >What I would like to do is to get the exact opposite colour of the one that >they choose and use that in the 'hover over' option of the tag. > >The value for the colou

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Marek Kilimajer
If you don't need the file to be changed to contain md5 encrypted passwords use *fgetcsv() *to read the contenta, then use *md5()* on the password and insert it into database using mysql_query. No need to write a new file. Verdon Vaillancourt wrote: >Hi, > >I hope this question isn't too basic

[PHP] Object methods - memory usage?

2002-10-09 Thread Bogdan Stancescu
Hello! Ok, this is probably a very stupid question for someone who knows how these things work internally - but I don't, therefore I ask. :) When I instantiate an object, do the methods get instantiated as well? The question is asked memory-wise, not functionality-wise. More to the point, if

[PHP] Re: PHP to Excel (csv)

2002-10-09 Thread Ivo Stoykov
Thank you for your help. Ivo "Ivo Stoykov" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > I have following problem. > > Some data retreived from mysql db I need to send to the user as a *.csv > file. Usually I separate fields (usually double quoted) wi

[PHP] parts of sentences

2002-10-09 Thread Oliver Witt
Hi, I have a problem that I don't know how to solve within php. I have the variable $x = "How are you today" and the variable $y. Now, I want the variable to be $y = "are you today" or $y = "you today". How do I do that? Thanks, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Reversing the Colour.

2002-10-09 Thread ::[ Julien Bonastre ]::
Assumptions: - background colour is stored in $bgcol (ie 4592FF) - chosen link colour is stored in $lncol (ie *same as above*) - Finds "half-way" colour between $bgcol and $lncol (returns a RRGGBB in hex as above) Notes: This is actually fairly simple Alexis.. Simply convert your hex vals to some

[PHP] Re: parts of sentences

2002-10-09 Thread Bogdan Stancescu
You might want to take a look at explode() and array functions - I don't understand exactly what you want ("I want this -- or that"), but those will probably solve the problem, whatever that is specifically. Bogdan Oliver Witt wrote: > Hi, > I have a problem that I don't know how to solve with

Re: [PHP] parts of sentences

2002-10-09 Thread Robert Cummings
Oliver Witt wrote: > > Hi, > I have a problem that I don't know how to solve within php. > I have the variable $x = "How are you today" and the variable $y. Now, I > want the variable to be $y = "are you today" or $y = "you today". How do > I do that? $y = ereg_replace( '^[[:space:]]*[[:alpha:]]

[PHP] Re: parts of sentences

2002-10-09 Thread Oliver Witt
Bogdan Stancescu schrieb: > You might want to take a look at explode() and array functions - I don't > understand exactly what you want ("I want this -- or that"), but those > will probably solve the problem, whatever that is specifically. > > Bogdan > > Oliver Witt wrote: > > Hi, > > I have a pr

[PHP] Re: parts of sentences

2002-10-09 Thread Bogdan Stancescu
Glad it helps - be sure to also check implode() for the reverse action! Bogdan Oliver Witt wrote: > Bogdan Stancescu schrieb: > > >>You might want to take a look at explode() and array functions - I don't >>understand exactly what you want ("I want this -- or that"), but those >>will probably

Re: [PHP] Reversing the Colour.

2002-10-09 Thread ::[ Julien Bonastre ]::
Ok below is the fully tested and working code: NOTE: . I have attached it too so wordwrapping email clients don't stuff the lines up .. ;-) This script will take in two 6character HTML hex colours (ie 44F0DD) and return the "midway" colour between them (in Hex also).. -- he

Re: [PHP] Reversing the Colour

2002-10-09 Thread ::[ Julien Bonastre ]::
Hang on.. Yep I just tested it. Make sure you incldue the forward slash REGEX seperators in those preg functions.. Ie.. my lines in previous email have: $bgcol_arr=split(",",preg_replace("([\d]{2})([\d]{2})([\d]{2})","$1,$2,$3",$ bgcol)); Which should be: $bgcol_arr=split(",",preg_replace("/([

Re: [PHP] confirm box

2002-10-09 Thread Holger Heinze, Portalmeister GmbH
hi there youre missing a return. here is the code i use in order to supress the submission of the form in case the field validation (or the "are you sure... ?" confirm()) returns false: < form onSubmit="return validateForm(this)"> Have fun, Holger - Original Message - From: "Davy Obdam

Re: [PHP] Installing both static and dynamic modules

2002-10-09 Thread Jonathan Duncan
Ah, that makes sense. Thanks Tom and David. Jonathan "Tom Rogers" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Wednesday, October 9, 2002, 1:24:31 AM, you wrote: > JD> In the INSTALL file notes for PHP is says: > > JD> "1: Only install either the

[PHP] confirm box

2002-10-09 Thread Davy Obdam
Hi people, Maybe a bit off-topic, but i thought lets ask anyway. I have a guestbook admin page were i can delete multiple items from the database using checkboxes. So when i click on the Submit button i would like a javascript confirm box coming up. I have done that, but it deletes the item(s) an

Re: [PHP] confirm box

2002-10-09 Thread Archibald Zimonyi
Hi there, > echo " > "; > //The rest of my form > I am not exactly sure about this but I think you have to define the onSubmit with a return, otherwise it will always fall through, onSubmit only fails the submission if it returns a false value, otherwise it will always continue. Add the follow

[PHP] Re: confirm box

2002-10-09 Thread Craig Donnelly
On your submit button put the following: Hope that helps, Craig "Davy Obdam" <[EMAIL PROTECTED]> wrote in message 001a01c26f9e$a1c78a80$960a@davy">news:001a01c26f9e$a1c78a80$960a@davy... > Hi people, > > Maybe a bit off-topic, but i thought lets ask anyway. I have a guestbook > ad

Re: [PHP] confirm box -----> Resolved by E M I N

2002-10-09 Thread EMIN CALIKLI
Hi , Change "OnSubmit=return ConfirmDelete();". Add your code "return" Like this :) "; // <--- -=-=-=- THIS LINE -=-=-=- //The rest of my form echo " "; ?> Have a nice day.

Re: [PHP] confirm box -----> Resolved by E M I N

2002-10-09 Thread EMIN CALIKLI
Hi , Change "OnSubmit=return ConfirmDelete();". Add your code "return" Like this :) "; // <--- -=-=-=- THIS LINE -=-=-=- //The rest of my form echo " "; ?> Have a nice day.

[PHP] RE: [PHP-WIN] Re: [PHP] confirm box

2002-10-09 Thread Davy Obdam
Hi Archie, Thanks it works. Great i knew i was forgetting something. Best regards, Davy Obdam, mailto:[EMAIL PROTECTED] -Original Message- From: Archibald Zimonyi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 4:44 PM To: Davy Obdam Cc: PHP Mailinglist; PHP-WIN Mailing

[PHP] site path

2002-10-09 Thread Wilmar Perez
Hello guys I'm just looking for some advise: I've got a variable which I use to store my site's main path. Is it better to have it like this: $site_path = "/my/web/path/" or like this: $site_path = "http://my_url.com/"; ? What about the trailing slash?, should I use it or not? I know the

RE: [PHP] site path

2002-10-09 Thread Jon Haworth
Hi Wilmar, > I'm just looking for some advise: I've got a variable > which I use to store my site's main path. Is it better > to have it like this: > > $site_path = "/my/web/path/" > > or like this: > > $site_path = "http://my_url.com/"; Depends what you're using it for :-) You could: -

[PHP] Image problem

2002-10-09 Thread Donahue Ben
I upload an image. Once I upload this image using the is_uploaded_file function, then writing this image file using the copy function. Everything seems to work fine. When i try to update (that is uploading a new file and saving it with the same name as the first file created) it shows the first

[PHP] Re: secure access

2002-10-09 Thread Anup
I belive you can have the file atleast one directory below your root web folder (so web surfers have no access, just your script). Also since the HTML->PHP is unsecure over HTTP, look into HTTPS , I believe this is related to SSL (Secure Socket Layer). Without SSL, you will be POSTing your user/pa

Re: [PHP] Re: secure access

2002-10-09 Thread Chris Hewitt
If you use a .htaccess file in the directory (assuming Apache), a popup box asks for username/password. The password is MD5 encrypted. I think the downside is php getting access to these, or maybe I'm wrong in this. HTH Chris Anup wrote: >I belive you can have the file atleast one directory b

Re: [PHP] Re: secure access

2002-10-09 Thread Vidyut Luther
1. SSL will encrypt the data sent between the browser and the server, 2. Depending on the database, it should have it's own authentication mechanism which the PHP script needs to pass before the database will allow access. 3. Depending on what you need to do, you can limit the use of system us

[PHP] Spiders, Sessions, trans SID, and mod_rewrite

2002-10-09 Thread Tech Support
Hello I'm preparing to start an ecommerce project that will require the use of sessions throughout the entire site for referrer and affiliate tracking purposes. I also plan to use mod_rewrite to make links to dynamic content search spider friendly. example: instead of /somescript.php?var1=valu

RE: [PHP] Spiders, Sessions, trans SID, and mod_rewrite

2002-10-09 Thread Timothy J Hitchens
I would suggest that you look at php as the total solution not mod_rewrite that way you have access to include the PHPSESS information into the URL directly eg: http://www.yourhost.com/application/first_name/john/sess_id/99f9f99f9f9f 9ijfjf9f/cart_full/yes You can achieve this by reading the fol

[PHP] Found the problem with the libmcrypt.....

2002-10-09 Thread Scott Fletcher
Found the problem with libmcrypt-2.5.3. When I configured PHP using the --with-mcrypt option and the PHP configuration found libmcrypt without a problem. After compiling and installing it. Once I fired up Apache. I checked the PHP Info using phpinfo() function. The mcrypt showed up but there i

Re: [PHP] Image problem

2002-10-09 Thread David Erickson
I had a similar problem and I just put this in front of my php so everytime my scripts are called they always tell the browser and any proxy servers not to cache anything from me. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in the past header("Last-Modified: " . gmdate("D, d M Y

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Scott Fletcher
Can it be de-encrypt??? I don't see how since you just use the function md5(). "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If you don't need the file to be changed to contain md5 encrypted > passwords use *fgetcsv() *to read the contenta,

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Marco Tabini
I think that generally you do not want passwords to be decryptable. What I normally do is try to encrypt whatever the user enters as a password and compare the resulting encrypted string with what's in the database to make sure they correspond. If the encrypting function is univocal (and md5 is) t

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Scott Fletcher
I was comparing it to what I was thinking about. Like if the field in the table (database) have a username and password. Then you encrypt it with features like this, then how can it be de-crypt if I had like a thousand users account. It was just a thought in my mind. Now based on your responses

[PHP] Re: Object methods - memory usage?

2002-10-09 Thread Bogdan Stancescu
Well, I guess my questions are just too stupid to deserve an answer anyway. Sorry for spamming you guys with my retarded questions! I'll refrain from asking any more questions on this list in the future, since I always seem to ask the wrong ones. Humbly yours, Bogdan Bogdan Stancescu wrote: >

RE: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Scott Fletcher
Hi! I don't see yours in the PHP newsgroup. I understand what you meant and I don't have a problem with it. Problem is the password had to be changed at every 5th login. We have SSL features for the duration of the login period. So, the encrypt and decrypt will do fine and only the server w

RE: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread SHEETS,JASON (HP-Boise,ex1)
The potential problem with a firewall is your web server must be able to connect to the database, that means if someone gets sloppy in the PHP code or just doesn't realize something is a security issue OR there is an exploit found for apache or PHP the attacker can get access to your server withou

RE: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread SHEETS,JASON (HP-Boise,ex1)
Storing passwords in MD5 or another hash is an excellent idea because it is generally not possible to decrypt them (if the user uses a bad password they can be brute forced but you can only do so much). By storing passwords in MD5 you protect your users passwords, if your database gets cracked th

[PHP] My boss wants to know...

2002-10-09 Thread Randum Ian
Hi guys, got a tricky question here and I know I will probably get flamed for asking it here but here goes! My boss wants me to put a large Access database onto the net so that people can query it both from the company and from the outside and he wants to be able to have the database up to date a

RE: [PHP] My boss wants to know...

2002-10-09 Thread Timothy J Hitchens
Look at the odbc access using php: http://www.php.net/manual/en/ref.odbc.php You will still need to have a windows box with odbc to your webserver.. pref unixish.. Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Randum Ian [mailto:[EMAIL

Re: [PHP] 4.2.2 > 4.2.3 - Incompatibility

2002-10-09 Thread Liam MacKenzie
Well, just in case anyone's interested... My problem was fixed by just compiling PHP as a standard module, not APXS. - Original Message - From: "Liam MacKenzie" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Tuesday, October 08, 2002 10:37 PM Subject: Re: [PHP] 4.2.2 > 4.2.3 -

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Brad Bonkoski
Or if you use md5() which encrypts the same way every time you could just get a CD-ROM with a trillion different character combinations that could be valid passwords and encrypt them, then compare the encrypted strings With the current hardware available that might take..oh a half a second ro

[PHP] ASP Option Explicit equivalent in PHP

2002-10-09 Thread R . Z .
I'm on a roll with the ASP questions these days, since I picked up the Chiliasp. Here's one: ASP has the function Option Explicit build in, it yells when you use variables without prior declaration, couldn't find anything like that in PHP documentation. Thanks in advance. R> -- PHP General

RE: [PHP] My boss wants to know...

2002-10-09 Thread John W. Holmes
> Hi guys, got a tricky question here and I know I will probably get > flamed for asking it here but here goes! > > My boss wants me to put a large Access database onto the net so that > people can query it both from the company and from the outside and he > wants to be able to have the database

RE: [PHP] Re: Object methods - memory usage?

2002-10-09 Thread John W. Holmes
OK. > -Original Message- > From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 4:30 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Object methods - memory usage? > > Well, I guess my questions are just too stupid to deserve an answer > anyway. Sorry for

RE: [PHP] ASP Option Explicit equivalent in PHP

2002-10-09 Thread John W. Holmes
> I'm on a roll with the ASP questions these days, since I picked up the > Chiliasp. > > Here's one: > > ASP has the function Option Explicit build in, it yells when you use > variables without prior declaration, couldn't find anything like that in > PHP documentation. > Thanks in advance. If y

Re: [PHP] ASP Option Explicit equivalent in PHP

2002-10-09 Thread Marco Tabini
Well, you can set error_reporting to E_ALL, which will cause PHP to complain if you use a variable without having it initialized. There is no exact equivalent to Option Explicit--and there still isn't any need to declare the variables, just to initialize them before use. Marco On Wed, 2002-10-0

[PHP] Re: ASP Option Explicit equivalent in PHP

2002-10-09 Thread Nick Eby
There's 2 ways to get that: use the php.ini setting ERROR_REPORTING, or the function error_reporting(). to see undeclared variable use, call error_reporting(E_NOTICE) at the top of your script. http://www.php.net/manual/en/function.error-reporting.php /nick "R . Z ." <[EMAIL PROTECTED]> wrote

[PHP] Re: ASP Option Explicit equivalent in PHP

2002-10-09 Thread Nick Eby
wait, I take that back... I meant "to see uninitialized variable use", since there's really no such thing as "declaring" a variable in PHP unless it's a class member. "Nick Eby" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > There's 2 ways to get that: use the

Re: [PHP] Image problem

2002-10-09 Thread Owen Prime
If the browser still doesn't listen, you can always put a time() arg in you img src. ie. "" David Erickson wrote: > I had a similar problem and I just put this in front of my php so > everytime my scripts are called they always tell the browser and any proxy > servers not to cache anything from

[PHP] problem with SUM and Postgres

2002-10-09 Thread webmaster
I can't figure out why the following code is not returning a column total: $sql1 = "SELECT SUM(hostingcost) FROM $tablename WHERE webserver = '$webserver'"; $hosting = pg_exec($connect, $sql1); echo $hosting; This returns: Resource ID #3 The only thing I can think of is that the hostingcost col

Re: [PHP] problem with SUM and Postgres

2002-10-09 Thread Marco Tabini
Because pg_exec only executes the query and returns the resource that's associated with the returns. If you want to read the results, you should use pg_fetch_result(): $sql1 = "SELECT SUM(hostingcost) FROM $tablename WHERE webserver = '$webserver'"; $hosting_rs = pg_exec($connect, $sql1); $hostin

Re: [PHP] problem with SUM and Postgres

2002-10-09 Thread Marco Tabini
Sorry, folks... I meant "result" and not "returns" below. End of day = brain fried. :) Marco On Wed, 2002-10-09 at 19:32, Marco Tabini wrote: > Because pg_exec only executes the query and returns the resource that's > associated with the returns. If you want to read the results, you should > us

[PHP] CC Processing Merchants

2002-10-09 Thread Andrew Brampton
Sorry for this slightly off topic question, but I beleive many of you will have delt with this kind of thing before. My client is asking for a Online Merchant that will allow him to validate and charge credit cards. He orginally suggested Pay Pals but after I read their docs I found that the Cust

RE: [PHP] CC Processing Merchants

2002-10-09 Thread Jarrad Kabral
Most of our local banks here in Australia offer merchant facilities. Judging by your email address your from the UK but I cant see any reason why it should be different. Why dont you find out who your boss his/her banking with and contact them regarding a merchant service...? Regards Jarrad Kab

Re: [PHP] Found the problem with the libmcrypt.....

2002-10-09 Thread Tom Rogers
Hi, Thursday, October 10, 2002, 5:35:12 AM, you wrote: SF> Found the problem with libmcrypt-2.5.3. When I configured PHP using SF> the --with-mcrypt option and the PHP configuration found libmcrypt without a SF> problem. After compiling and installing it. SF> Once I fired up Apache. I checked

[PHP] PHP problem

2002-10-09 Thread Miguel Brás
Hi there, I need some help here: 1 - I have a table created on a DB where I insert the data that I want. 2 - I have a submit page to submit the info I want to the DB 3 - I have a page that displays the info from the DB (choosed by id) 4 - I have a page where I have a text box field and a button.

RE: [PHP] PHP problem

2002-10-09 Thread John W. Holmes
SELECT * FROM yourtable WHERE id = $_REQUEST['id'] And show the results... All you have to do is make a page that receives the ID you typed in, uses it in a query, and then shows the result of the query. ---John Holmes... > -Original Message- > From: Miguel Brás [mailto:[EMAIL PROTECTE

Re: [PHP] Re: POST method not allowed

2002-10-09 Thread Tom Rogers
Hi, Wednesday, October 9, 2002, 10:19:30 PM, you wrote: MK> Ok, my bad, firstup i didnot set in httpd.conf to process *.php3 files. But MK> i already fix that. So, now all I'm getting is that when I I try to process MK> the data from a form whether I'm using GET or POST method, the value that i

[PHP] displaying a select number of rows from a sql query

2002-10-09 Thread Keith Posehn
Ok, here is the question: I have a sql query, nothing special. It has 3 variables. I have created the php code to display the variables in context with the html code. I need it to loop a select number of times, most likely twice, and therefore display the first two rows of the query. In other wo

[PHP] Re: displaying a select number of rows from a sql query

2002-10-09 Thread Owen Prime
With the line: while (list($link, $title, $content) = mysql_fetch_array($result)) { The php docs don't actually say what the list() function returns, but since your getting an infinite loop i would say that it probably evaluates to true no matter whats on the right hand side of the assignment.

[PHP] Extract HTML tags

2002-10-09 Thread Shawn McKenzie
I've loaded an html file into a string. What I'd like to do is create two new strings: first new string with the original string but remove all content from the beginning of the file up to and including , and then remove from the end of file up to and including second new string only containin

RE: [PHP] Extract HTML tags

2002-10-09 Thread Smith, Benjamin
There are a couple of ways you could do it, the proper way with a regular expression, or you could just kludge it using explode() and chucking out the stuff you did not need. -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED]] Sent: Thursday, 10 October 2002 7:43 AM To: [

[PHP] Re: Extract HTML tags

2002-10-09 Thread Owen Prime
If you can guarantee that your body tags are lowercase and have no args, then I would check out strtok() in the string functions. If your body tags are not that easy to match then I suggest you use either a regex or write a state machine to parse the string. A good html parsing state machine is

[PHP] Multi-Dimensional Arrays

2002-10-09 Thread Jonathan Duncan
I am trying to create an array to hold shopping cart information. The array I am using is called "cartArray". What I want to do is to define a sub-array of cartArray with the information from one product. Then the next time a product is added it appends then new information as a second sub-arra

Re: [PHP] Extract HTML tags

2002-10-09 Thread Jonathan
try something along the lines of: preg_match('/]*>([.]*)/im', $string, $foo); $foo[1] = 'your body string'; preg_match('/([.]*) I've loaded an html file into a string. What I'd like to do is create two > new strings: > > first new string with the original string but remove all content from th

Re: [PHP] CC Processing Merchants

2002-10-09 Thread Peter J. Schoenster
On 10 Oct 2002 at 0:48, Andrew Brampton wrote: > Sorry for this slightly off topic question, but I beleive many of you > will have delt with this kind of thing before. Yeah off-topic but I was wondering the same thing myself as I have not done many carts in awhile. > So can anyone recommend a

Re: [PHP] Re: MySQL back up

2002-10-09 Thread Ken
Okay here is the new code and this is still not working. $backupdir/$nam.sql"); exec("gzip $backupdir/$nam.sql"); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >