[PHP] setcookie

2005-03-04 Thread Randy Johnson
setcookie( sess_key,$key,0,/,. . str_replace( www,,$_SERVER[SERVER_NAME] ),0 ); Does that look right? Thanks! Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setcookie

2005-03-04 Thread Randy Johnson
of IE 4. this is also by going to domain.com or www.domain.com, neither work any ideas? Randy Marek Kilimajer wrote: Randy Johnson wrote: setcookie( sess_key,$key,0,/,. . str_replace( www,,$_SERVER[SERVER_NAME] ),0 ); Does that look right? No. if $_SERVER[SERVER_NAME] == 'www.domain.com

Re: [PHP] setcookie

2005-03-04 Thread Randy Johnson
The period was the issue all together, i took the extra out and it worked. Thanks for your help Randy Randy Johnson wrote: ok I see how that could be an issue. Here is my big problem that I have not been able to figure out. I have a client website that I am trying to fix 1. it has sessions

Re: [PHP] PHP slowness

2005-02-26 Thread Randy Johnson
Did you try rotating your logs so your logs are fresh? Randy Gerard wrote: --snip-- I'm no expert on this stuff, but I'd be checking my swap space usage and RAM usage with 'top' or any other tools available... I suppose you probably already did that, but... Top shows that there's still normal

Re: [PHP] Identifying a user who previously created a profile

2005-02-25 Thread Randy Johnson
You could do a few things here. I would not banned people from signing up again if the ipaddress is in the database. You could make it so no email could be in the database more than once. What I did before was: if a user's ipaddress matches an ipaddress in the database I have the script email

Re: [PHP] Capturing user's IP Address

2005-02-25 Thread Randy Johnson
I use: $ipaddress = getenv(REMOTE_ADDR); Jacques wrote: Which function can I use to capture a user's IP Address when he registers on my site. I would like to store this value in a database. Regards Jacques -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP slowness

2005-02-25 Thread Randy Johnson
I think I have heard that your system can get really bogged down if your log files are HUGE. So you probably are right. I dread the size of the log files if he has a rather busy site and is logging everything... Randy Brent Baisley wrote: I noticed you have your error_reporting level set

[PHP] PHP Wiki

2005-02-25 Thread Randy Johnson
Is there a Wiki site for PHP? Is there a need for one? -Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with adding

2005-02-25 Thread Randy Johnson
Try this: $num=0; for ($i = 1; $i = $sendnum; $i++) { $qty = $_POST['qty'.$i]; $num=$num+ $qty ; } echo $num; Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty

Re: [PHP] PHP Wiki

2005-02-25 Thread Randy Johnson
Nope I had not been there. Thanks for the link Randy Chris W. Parker wrote: Randy Johnson mailto:[EMAIL PROTECTED] on Thursday, February 24, 2005 2:50 PM said: Is there a Wiki site for PHP? Is there a need for one? Been to http://phpcommunity.org/wiki/? Chris. -- PHP General Mailing List

Re: [PHP] PHP Wiki

2005-02-25 Thread Randy Johnson
yea I just thought maybe a php-wiki would be neat, not one programmed in php but a wiki for everything php :-) Randy Robby Russell wrote: On Thu, 2005-02-24 at 17:49 -0500, Randy Johnson wrote: Is there a Wiki site for PHP? Is there a need for one? -Randy The php.net site doesn't really need

Re: [PHP] weird mail function problem

2005-02-21 Thread Randy Johnson
You should have this at the top of your for loop $body=; Ahmed Abdel-Aliem wrote: hi i use this code to send email from mysite but when it sends to some accounts it repeats the body part twice in the same email while to other accounts it sends the body one time only can anyone help in that plz ?

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread Randy Johnson
try $HTTP_POST_VARS maybe it is an older version of PHP Randy eatc7402 wrote: Thanks for the input. However it does no good if the variables are empty, which is my problem. The darn $_POST thing does not work at all for me, and I am trying to find out why. -Original Message- From: b1nary

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-20 Thread Randy Johnson
it goes On Sun, 20 Feb 2005 17:52:26 -0500, Randy Johnson [EMAIL PROTECTED] wrote: try $HTTP_POST_VARS maybe it is an older version of PHP Randy eatc7402 wrote: Thanks for the input. However it does no good if the variables are empty, which is my problem. The darn $_POST thing does not work

Re: [PHP] Creating a varable with a name held in a string

2005-02-10 Thread Randy Johnson
I like to do this: foreach( $row as $key=$val) { $$key = $row[$key]; } John Holmes wrote: Ben Edwards (lists) wrote: I have the following code;_ $sql = select * from text where id= '$id' ; $row = fetch_row_row( $sql, $db ); $img_loc=

Re: [PHP] Creating a varable with a name held in a string

2005-02-10 Thread Randy Johnson
I will read over extract and change my ways ;-) Randy John Holmes wrote: Randy Johnson wrote: I like to do this: foreach( $row as $key=$val) { $$key = $row[$key]; } You're just recreating a slower version of extract()... -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] cron job style php...

2005-01-16 Thread Randy Johnson
Russel, Yes you can run a cron job on php You may have to add a line like this at the top, it has been awhile since I have done it] #! /usr/local/php/sapi/cli/php this line would be different for your system -Randy - Original Message - From: Russell P Jones [EMAIL PROTECTED] To:

Re: [PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Randy Johnson
I am just curious why you do not upgrade to the latest stable 2.6.0-pl3? Randy - Original Message - From: Lars B. Jensen [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, January 16, 2005 11:40 PM Subject: Re: [PHP] Encoding problems using phpMyAdmin Just a quick note, this

[PHP] AFter the URL in PHP

2004-01-23 Thread Randy Johnson
Hello, I am not sure if this is a php thing or not but hope is... I see some sites like this: www.domain.com/tree where tree is not a directory for example www.domain.com/tree/ would not work the word tree above is not really a directory but a username or id or whatever Anybody

[PHP] query_data

2003-12-06 Thread Randy Johnson
I have a query $query=select a,b,c,d,e from table where id='z'; $result=mysql_query(); $query_data=mysql_fetch_array($result); I normally would do this: $a=$query_data[a]; etc.. is there a way to do this is in a loop so I do not have to do all that typing? Thanks Randy -- PHP General

Re: [PHP] query_data

2003-12-06 Thread Randy Johnson
[EMAIL PROTECTED] To: Randy Johnson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, December 06, 2003 10:04 AM Subject: Re: [PHP] query_data Randy Johnson wrote: I have a query $query=select a,b,c,d,e from table where id='z'; $result=mysql_query(); $query_data=mysql_fetch_array

[PHP] entering in text data and losing the \n

2003-11-29 Thread Randy Johnson
I have a form with a text area. When the user submits the data it is saved to a mysql database in a field of type text. When I extract the data from the database and display it in php it loses the line return and the data is all crammed together. Here is an example This is line 1 This is

Re: [PHP] entering in text data and losing the \n

2003-11-29 Thread Randy Johnson
Yep that was it. Thank you very much. Randy - Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: Randy Johnson [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, November 30, 2003 1:17 AM Subject: Re: [PHP] entering in text data and losing the \n --- Randy Johnson

[PHP] client running

2003-07-09 Thread Randy Johnson
My sysadmin installed PHP as a client on my linux server. I have a script that I developed that opens a socket to accept data feed. This script works great if I run it off my windows pc using the cgi version of php but when I get it to the server it runs and it doesn't do anything. I did get an

Re: [PHP] client running

2003-07-09 Thread Randy Johnson
All is well. The site I was connecting to with the stream changed the string format. Once I figured that out it worked flawlessly :-) Randy - Original Message - From: Randy Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Brenton Dobell [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent

[PHP] array question

2003-05-30 Thread Randy Johnson
How do I access the data in $query_data after I go through the while loop, here is an example $result=mysql_query($query,$link); while ($query_data=mysql_fetch_array($result) ) { $var1=$query_data[var1]; $var1=$query_data[var1]; } after the while is done, How do I access the data in

Re: [PHP] array question

2003-05-30 Thread Randy Johnson
I found this in the manual user comments and it worked great mysql_data_seek($result,0); Randy - Original Message - From: Randy Johnson [EMAIL PROTECTED] To: Brian Dunning [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:14 PM Subject: [PHP] array question How do

[PHP] command line

2003-04-03 Thread Randy Johnson
What would be the syntax for executing a command line php script from the web. and is there way to check the staus of the script via the web ie is it stil running or not? Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email/time question

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

[PHP] email/time question

2003-01-02 Thread Randy Johnson
Here is what i need to do. I have a form where a user will submit, email address, email text and a time like 11:15pm and at 11:15pm the email is supposed to be sent out. any ideas on how i can make this happen automatically??? Randy -- PHP General Mailing List (http://www.php.net/)

[PHP] What does this error mean

2002-09-22 Thread Randy Johnson
What does this error mean? Warning: Wrong parameter count for mysql_query() Thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What does this error mean

2002-09-22 Thread Randy Johnson
? Randy - Original Message - From: Daniel Kushner [EMAIL PROTECTED] To: 'Randy Johnson' [EMAIL PROTECTED]; 'Paul Nicholson' [EMAIL PROTECTED]; 'Bryan McLemore' [EMAIL PROTECTED]; 'PHP GEN LIST' [EMAIL PROTECTED] Sent: Sunday, September 22, 2002 2:34 PM Subject: RE: [PHP] What does

[PHP] question about taking post to session

2002-09-21 Thread Randy Johnson
hello, how could i take all the variables in $_POST[] and move them to $_SESSION[]? example $_POST[name]=$_SESSION[name] Thanks in advance Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SESSION ARRAY

2002-08-29 Thread Randy Johnson
What is the proper syntax for storing an array in a session? is it $_SESSION[BILLARRAY]=$ARRAY? Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql upate return false?

2002-08-22 Thread Randy Johnson
I have a function update_trans(); in a mysql_query() that processes an update, what could i check for to see if it was successful or not. The update only updates 1 row. Thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql upate return false?

2002-08-22 Thread Randy Johnson
] To: Randy Johnson [EMAIL PROTECTED] Cc: Rodrigo Peres [EMAIL PROTECTED]; PHP [EMAIL PROTECTED] Sent: Thursday, August 22, 2002 10:52 AM Subject: Re: [PHP] mysql upate return false? mysql_affected_rows() On Thu, 22 Aug 2002, Randy Johnson wrote: I have a function update_trans

[PHP] directory help

2002-08-21 Thread Randy Johnson
I need some help, I need to go through a number of directories and rename each of the files like this img001 img002 img003 do dir 1 would have img001 img002 img003 directory 2 might have img004 img005 and directory 3 would have img006 img007 img008 Thanks Randy -- PHP General

[PHP] php Transaction question

2002-08-20 Thread Randy Johnson
I know I saw this somewhere before but cannot find the answer In a php/mysql script how do a do a transaction is it like this or is their a better way to do it? innodb table method $query=set autocommitt=0; mysql_query($query); $query=select blah from blah;; mysql_query($query);

Re: [PHP] User data validation

2002-08-19 Thread Randy Johnson
I have a proccess where a user submits the data, data is run through checks, validation etc , then stored in a session. then the user goes to confirmation page where they hit submit to verify the details are correct. when they hit submit they go to another script that pulls the session

Re: [PHP] tracking visitors till registration?

2002-08-19 Thread Randy Johnson
How do I surpress php warnings from being displayed to the screen Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Injection/Data Balidation

2002-08-16 Thread Randy Johnson
I didn't see that, what a waste of paper Randy - Original Message - From: Edwin @ [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 16, 2002 1:14 PM Subject: Re: [PHP] SQL Injection/Data Balidation Yeah, I'm scared... Please excuse me but may I

[PHP] question concerning php parsing

2002-08-13 Thread Randy Johnson
if i have functions.php with 10 functions in it and include the file in my main php file and call 1 of the 10 functions in my program does the whole functions.php have to be parsed or does it just include the function that is needed. I am just curious as I plan to use the phpa on my scripts

[PHP] Sessions in a database?

2002-08-13 Thread Randy Johnson
When i started to learn php there was talk of storing session information in a database rather than in a particular directory like /tmp Is it better to store the session data in a database rather than a directory? Is it faster if it is stored in the database? Randy -- PHP General Mailing

Re: [PHP] Win PHP Editor...

2002-08-10 Thread Randy Johnson
I noticed they have not come out with a new version in quite a long time and do not answer their emails? anybody else heard about any future releases of editplus? Randy - Original Message - From: Liam MacKenzie [EMAIL PROTECTED] To: Dave at Sinewaves.net [EMAIL PROTECTED]; PHPlist

Re: [PHP] Re: Protect PHP coding

2002-08-02 Thread Randy Johnson
Does the bcompiler below improve performance? make scripts run faster? anybody have a testimonials on it's use?? Thanks, Randy - Original Message - From: Manuel Lemos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 9:14 PM Subject: [PHP] Re: Protect PHP

[PHP] mcrypt

2002-08-01 Thread Randy Johnson
I am looking into different password encryption solutions. i started using crypt() then changed to mcrypt() which was not any good cause of the high ascii characters then i read about converting the high ascii characters to hex . Is this the ideal way to encrypt passwords or is their

Re: [PHP] mcrypt

2002-08-01 Thread Randy Johnson
I found that the some of the high ascii characters would not store right in the database or something cause when i went to compare them, the comparison would fail. Randy - Original Message - From: Danny Shepherd [EMAIL PROTECTED] To: Randy Johnson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED

[PHP] String Question

2002-07-31 Thread Randy Johnson
Hello, I would like to be able to do the following but have not figured out a way to handle it $string=abcdefghijklmnopqrstuvwxz; I would like to divde the above string into separate strings 8 charactes long , example $string1=abcdefgh $string2=ijklmnop $string3=qrstuvwx $string4=yz if the

[PHP] date Question

2002-05-20 Thread Randy Johnson
Is their a way to retrieve the previous month using/altering the code below: // get the current timestamp into an array $timestamp = time(); $date_time_array = getdate($timestamp); $month = $date_time_array[mon]; $day = $date_time_array[mday]; $year =

[PHP] virtual coin toss 55%

2002-05-17 Thread Randy Johnson
I was surfing the internet today and found a site that offered a coin toss game in PHP.The site claimed that it used the latest and most random computer algorithms to do the Coin Toss. In the next line it said that you (the player) would win 45% of the time. I would like opinions how

Re: [PHP] extracting a html file name

2002-04-23 Thread Randy Johnson
Matt, Thanks That worked perfectly! I cannot believe I did not think of explode, i have used it before :-) Thanks again, Randy - Original Message - From: Matt Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Dave Sugar [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April

[PHP] storing session variables in a database

2002-04-18 Thread Randy Johnson
anybody have a good tutorial/example of storing sessions in a database? Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File Edit

2002-03-25 Thread Randy Johnson
Hello, I want to be able to edit part of a file. via a text box using php how do i read a file and get the part i want to read and edit it and then write it back to that file here is an example: . case $1 in start) 100.123.456.789 321.654.987.231 123.45.456.789 123.456.789.12 ;;

Re: [PHP] File Edit

2002-03-25 Thread Randy Johnson
How do I know what part of it to read in the array? - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Randy Johnson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, March 25, 2002 9:03 PM Subject: Re: [PHP] File Edit You read the entire file into memory (an array

Re: [PHP] File Edit

2002-03-25 Thread Randy Johnson
: Rasmus Lerdorf [EMAIL PROTECTED] To: Randy Johnson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, March 25, 2002 9:11 PM Subject: Re: [PHP] File Edit You read all of it On Mon, 25 Mar 2002, Randy Johnson wrote: How do I know what part of it to read in the array? - Original Message

Re: [PHP] Variable problem

2002-02-04 Thread Randy Johnson
I heard before that you can store session variables in a database rather than using the tmp directory etc etc..Does anybody have any links on this? Thanks Randy - Original Message - From: Yoel Benitez Fonseca [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 18, 2002

Re: [PHP] Logo proposal

2001-12-12 Thread Randy Johnson
How about the Rhino ? - Original Message - From: Billy Harvey [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Wednesday, December 12, 2001 8:30 AM Subject: RE: [PHP] Logo proposal On Wed, 2001-12-12 at 08:11, Armin Hartinger wrote: Personally, I think it should be something

[PHP] PHP/MySQl Consultation

2001-08-24 Thread Randy Johnson
I am in need of someone that is very good at PHP and MySQL to view my scripts and discuss with me in detail on how to speed up my scripts and how to speed up mysql some. if you are interested please send me credentials and rates ASAP please send them to [EMAIL PROTECTED] Thank you, Randy

[PHP] FORCING A PHP OUTPUT TO BE CACHED

2001-07-27 Thread Randy Johnson
Is it possible to force a confirmation page that is displayed via a post operation to be cached so it will not rerun the script when somebody hits the refresh button? I am hoping it is easy as using a header thanks in advance Randy -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] forms and IP numbers

2001-07-13 Thread Randy Johnson
I would like to pull the date and time of the creation of a file via a php script and compare it to the current time. How do I do this? TIA Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] Re: Downloading Data from Database

2001-07-12 Thread Randy Johnson
:30 PM To: Randy Johnson; PHP General List Subject: [PHP] Re: Downloading Data from Database On Sat, 14 Jul 2001 00:40, Randy Johnson wrote: I am adding a feature to my site where members can download their information from the database. What is the best way to accomplish this? Create a text

[PHP] Downloading Data from Database

2001-07-11 Thread Randy Johnson
I am adding a feature to my site where members can download their information from the database. What is the best way to accomplish this? Create a text file every time a member wants to download their info?I thought about this ..how would I handle deleting the text files when I was finished

RE: [PHP] deletion of temp files

2001-07-11 Thread Randy Johnson
How do you associate a temp file with a session so PHP automatically deletes it when garbage collection occurs -Original Message- From: Chris Lambert - WhiteCrown Networks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:36 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] deletion

[PHP] mkstemp

2001-07-11 Thread Randy Johnson
I see mkstemp() mentioned in the tempnam page in the online manual but cannot find it anywhere? Where is the docs for this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Rename a File?

2001-07-11 Thread Randy Johnson
How do I rename a file on Linux in PHP? Thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Command Line

2001-04-30 Thread Randy Johnson
how do access arguments if I run a script from the command line example php myscript.php arg1, arg2 thanks randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] mkstemp()

2001-04-26 Thread Randy Johnson
I cannot find any documentation on mkstemp() . Can somebody point me in the right place? thanks randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

[PHP] FATAL ERROR

2001-04-25 Thread Randy Johnson
Several people got the following error today when accessing my site. Does anybody know what is going on? They are PHP scripts accessing a mysql database if that helps. I am not sure if this is a physical memory problem or what Thanks Randy -- PHP General Mailing List

[PHP] RE: [linux] FATAL ERROR

2001-04-25 Thread Randy Johnson
sorry i forgot to paste the error i was getting Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3840 bytes) in Unknown on line 0 -Original Message- From: Randy Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 7:49 PM To: [EMAIL PROTECTED

[PHP] PHP FREE MEMORY

2001-04-25 Thread Randy Johnson
if I put the following piece of code in a forloop does it use more memory or does it use the same memory since the same variable result is being used: will it use up lots of memory if I execute it 1000 times or will it use the same memory. for (loop) { $result = mysql_query (UPDATE A_TBL SET

[PHP] random letters and numbers

2001-04-24 Thread Randy Johnson
Is there a way to generate a random set of characters ranging from 8 to 12 characters and numbers where it is crucial that the letters and numbers are truly random because I need to create temporary files for people to download information. Any links/suggestions would be greatly appreciated

[PHP] mysql_free_result

2001-04-20 Thread Randy Johnson
Does php release the memory used by the result set when it is done executing? if so why should I use mysql_free_result() Thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] mysql_free_result

2001-04-20 Thread Randy Johnson
Does the Mysql_free_result slow down the script at all? Randy -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 8:49 PM To: Randy Johnson Cc: Php-General Subject: Re: [PHP] mysql_free_result Does php release the memory used by the result

[PHP] multiple connects

2001-04-19 Thread Randy Johnson
how do I make sure the right connection is being used when I have 2 persistent connections. is there any documentation on this ? thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] temp file part II

2001-04-18 Thread Randy Johnson
I have not managed to get IE to download my file on the fly as suggested. so I was wondering if there are any other suggestions on how I can create a temp file for download and after the download is complete the file is deleted. thanks randy Instead of: header("Content-disposition:

[PHP] temp file help

2001-04-17 Thread Randy Johnson
The following code downloads information on the fly and saves it as a file on the user's hard drive. It works great in Netscape downloads data properly but in Internet explorer it doesn't work. Here is the error I get any ideas? IE was not able to open this site the site is either unavailable

RE: [PHP] temp file help

2001-04-17 Thread Randy Johnson
Nope This doesn't work either. I am going to find header documentation and see if I can find a work around -Original Message- From: Phil Driscoll [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 12:48 PM To: Randy Johnson; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re

[PHP] RE: [PUP] temp file help

2001-04-17 Thread Randy Johnson
ok this doesn't work either I get the same cache error. anybody have any other suggestions? Randy -Original Message- From: Phil Driscoll [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 12:48 PM To: Randy Johnson; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] temp

[PHP] Last 10 rows

2001-04-17 Thread Randy Johnson
How do I get the last 10 rows in a table? thanks randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] TEmp File

2001-03-29 Thread Randy Johnson
Here is the scenario: I want to let my users download their history of transactions from a mysql database. I have that part working...they click a link a csv file is created for them to download. now here is my question. Is there a way to have the file delete after they have downloaded it?

[PHP] scrolling text box

2001-03-28 Thread Randy Johnson
in php how would I ready line by line from a scrolling text box here are the values I would have in the scrolling text box a,1 b,2 c,3 After the user hits the submit button on the form how can I get php to read the data line by line sort of like it was reading it line by line from a file.

[PHP] random letters and numbers

2001-03-24 Thread Randy Johnson
Is there an easy way to create random numbers and letters for a file example http://www.mydomain.com/1w2e3rff.txt and then after they download it have it be deleted off the server? thanks randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] Explode

2001-03-23 Thread Randy Johnson
How would I use to explode to extract the following "name address city state zip" I want to break that up and then do this if (empty($name)) if (empty($address) thanks randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Crypt problem

2001-03-22 Thread Randy Johnson
hello I use crypt to crypt member's passwords and use the following verify "$stored_password" is the encrypted, stored password. "$password" is the plain text password you just got from the form. ## Check the passwords $encrypted_password = crypt($password,$stored_password); if

[PHP] security

2001-03-22 Thread Randy Johnson
In PHP how do I make it so a script cannot be called from somewhere else other than from my server. Example http://domain.com/mail.php is my mail script that is called by http://domain.com/signup.html How do I make it so http://somebodyelsesdomain.com/signup.html cannot call the mail.php

[PHP] Frames

2001-03-16 Thread Randy Johnson
is there a way in php if a page is supposed to be in frames and the user tries to view it outside of the frame it automatically reloads the page into the frame. thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Frames

2001-03-16 Thread Randy Johnson
is there a way in php if a page is supposed to be in frames and the user tries to view it outside of the frame it automatically reloads the page into the frame. thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] how fast is php

2001-03-15 Thread Randy Johnson
I have a question. can a 1 php script access a mysql database more than 10 times a second it's a simple updated statement? if it can how many times do you think it can access the database in a second? thanks randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Sessions

2001-03-09 Thread Randy Johnson
Is there a way to have a session end if they leave my site and go to another? thanks randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

RE: [PHP] Sessions Kill all

2001-03-08 Thread Randy Johnson
Does anybody know where I could get more info on storing session data in a database rather than the default way? thanks randy -Original Message- From: Christian Reiniger [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 12:58 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Sessions

[PHP] Page not found error

2001-03-04 Thread Randy Johnson
if I leave my browser on a php and then I click a link after lets say 5 or 10 minutes that links to another php page it says page not found even though the page is there. has anybody else experienced this error? thanks randy -Original Message- From: Randy Johnson [mailto:[EMAIL

[PHP] Converting String to Variable

2001-03-03 Thread Randy Johnson
Is there anyway to convert a string to a variable example $str="monday"; I would like to then do this: $monday="blah"; thanks randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] Converting String to Variable

2001-03-03 Thread Randy Johnson
lto:[EMAIL PROTECTED]] Sent: Saturday, March 03, 2001 11:35 AM To: Randy Johnson Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Converting String to Variable At 17:09 03.03.2001, Randy Johnson said: [snip] Is there anyway to convert a string to a variable example $s

[PHP] offshore Dedicated Hosting

2001-02-22 Thread Randy Johnson
Anybody know of an offshore dedicated web server hosting companies? randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Paging results

2001-02-14 Thread Randy Johnson
Can somebody give me a url of an example or an example of how to page results so they can be view by clicking page 1 page 2 or back and next? results obtained from mysql database. Thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] Stringing sql queries?

2001-02-03 Thread Randy Johnson
What about an insert or an update instead of a select? thanks randy -Original Message- From: Thomas Weber [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 03, 2001 8:37 PM To: Sandeep Hundal Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Stringing sql queries? Yep, try this: SELECT

[PHP] date

2001-01-25 Thread Randy Johnson
I am wondering if it would be more efficient to store the integer value that the php function time() returns when a transaction is inserted into the database and then when querying the database to get certain transactions just use basic math functions to get the certain transactions. For

[PHP] Unique Session Question

2001-01-20 Thread Randy Johnson
Hello, I plan to use session variables to identify if a user is logged in... I know there is an option to set the life of the session but I am looking for a way to end the session five minutes after they have did there last "transaction" with my site... I don't want people that are actively

[PHP] date

2001-01-20 Thread Randy Johnson
I am wondering if it would be more efficient to store the integer value that the php function time() returns when a transaction is inserted into the database and then when querying the database to get certain transactions just use basic math functions to get the certain transactions. For example

RE: [PHP] RE: Ethics question...

2001-01-18 Thread Randy Johnson
is there any benchmarks or proof that I should host a high traffic site on a FREEBSD/APACHE instead of a redhat Linux/Apache server? randy -Original Message- From: Ayan R. Kayal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 1:42 PM To: [EMAIL PROTECTED] Subject: [PHP] RE:

  1   2   >