[PHP] RE: [PHP-DB] Login System with access levels

2001-03-16 Thread Rick Emery
First, I would NOT store passwords in a database. Rather, I'd store a hash based upon the password and username. Storing a password is dangerous as regards security. Second, if you're asking for syntax on how to add the security level column: ALTER TABLE mytable ADD access tinyint unsigned

[PHP] RE: [PHP-DB] php+mysql simple query help me pls! ty.

2002-01-04 Thread Rick Emery
Test the mysql_query() return value: $result = mysql_query(SELECT * FROM members) or die(Error:.mysql_error()); there may be an error in your query. -Original Message- From: louie miranda [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:59 PM To: [EMAIL PROTECTED] Cc:

RE: [PHP] can u find error in php file?

2002-01-08 Thread Rick Emery
Given the simplicity of the mail() function, why go to all this trouble? I must be missing something here. Does your PHP host lack SMTP, so you must use another server's SMTP? -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 3:25 AM To:

RE: [PHP] Getting data from DB

2002-01-10 Thread Rick Emery
Dani, you need to aska a specific question for us to help you. -Original Message- From: Dani [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 10:01 AM To: PHP LIST Subject: [PHP] Getting data from DB Hi! I'm trying to make a webpage which can be edited online. My problem is

RE: [PHP] headers showing up in browser

2002-01-10 Thread Rick Emery
what does your code look like? -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 1:17 PM To: PHP Subject: [PHP] headers showing up in browser I've got this problem that won't go away. The headers are showing up at the top of the page when I run

RE: [PHP] does this work?

2002-01-10 Thread Rick Emery
Show all your code. Did you open a connection to the MYSQL server? If so, show the code. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 3:29 PM To: PHP Subject: [PHP] does this work? It seems that I have a parse error somewhere in the

RE: [PHP] does this work?

2002-01-10 Thread Rick Emery
Show all your code. Did you open a connection to the MYSQL server? If so, show the code. What is the exact error that you get? -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 3:29 PM To: PHP Subject: [PHP] does this work? It seems that

RE: [PHP] does this work?

2002-01-10 Thread Rick Emery
quotes are not needed -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 3:26 AM To: Erik Price; PHP (E-mail) Subject: Re: [PHP] does this work? Hmm I believe that the mysql_query() function requires quotes around the query statement even it

RE: [PHP] Passing variables with include()

2002-01-14 Thread Rick Emery
Does http://www.someremote.server/calculate_drivers.php; contain a function? If so, you may have to declare $serie_id as global within it. -Original Message- From: Imar de Vries [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 5:53 AM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Change column in mysgl

2002-01-15 Thread Rick Emery
ALTER TABLE mytable CHANGE COLUMN adress VARCHAR(40); -Original Message- From: Jan Grafström [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 5:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Change column in mysgl Hi! Can I change this column adress VARCHAR(25) to adress

RE: [PHP] Change column in mysgl

2002-01-15 Thread Rick Emery
ALTER TABLE mytable CHANGE COLUMN adress VARCHAR(40); -Original Message- From: Jan Grafström [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 5:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Change column in mysgl Hi! Can I change this column adress adress VARCHAR(25) to adress

RE: [PHP] Beginner: Open URL

2002-01-16 Thread Rick Emery
In your original post (see below), you stated that that you wanted A tag functinality, which would involve the user clicking. In your last post, you state that you do not want the user to click; which is it to be? Now, your question is really about re-direction based upon a condition, whereby

RE: [PHP] variable problem - help!

2002-01-16 Thread Rick Emery
$row[coloumname_${v$ariable}] -Original Message- From: Dani [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 8:36 AM To: [EMAIL PROTECTED] Subject: [PHP] variable problem - help! Importance: High Hi! I 'm trying not to hard code my php coding and I'm trying to pass a

RE: [PHP] Help !! Mail Function Problem (Newbie)

2002-01-16 Thread Rick Emery
Put quotes around the TO address: mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); -Original Message- From: Simos Varelakis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: [PHP] Help !! Mail Function Problem (Newbie) Hello

RE: [PHP] find and replace help.. VERY important

2002-01-16 Thread Rick Emery
If you're on a unix/linux system, you can use an AWK script -Original Message- From: Peter Sienkiewicz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] find and replace help.. VERY important Hello ladies and gentlemen, I need a

RE: [PHP] encrypting passwords, how to decrypt?

2002-01-17 Thread Rick Emery
Did you try print $query to ensure it contained what you expected? -Original Message- From: Hawk [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] encrypting passwords, how to decrypt? Ok, even if I don't need encryption I thought

RE: [PHP] What is going on here? list() = each()

2002-01-23 Thread Rick Emery
change to: ? $var = this.that; list( $thisVal, $thatVal ) = explode( ., $var ); echo $thisVal, $thatVal ? -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 3:43 PM To: PHP-General Subject: [PHP] What is going on here? list() = each()

RE: [PHP] Correction

2002-01-23 Thread Rick Emery
$newlines = nl2br($oldline); print $newlines; The $oldline would contain text which contains newline characters. -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 3:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Correction I mean how to

RE: [PHP] can anyone explain this error ?

2002-01-23 Thread Rick Emery
It means you are trying to insert 22 values into 20 fields -Original Message- From: Matthew Darcy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 4:11 PM To: PHP developers Subject: [PHP] can anyone explain this error ? I am doing an insert into a EMPTY mysql table. 1

RE: [PHP] What do you mean?

2002-01-23 Thread Rick Emery
First, no such PHP function exists which will fix up the amount of spaces for each lines to make the end of each line to be all aligned. Second, you could verify that in section LXXXIII. String functions of the PHP manual before asking. Third, please keep the same subject line. It makes

RE: [PHP] MySQL queston - Which row does it put your info into?

2002-01-24 Thread Rick Emery
When records are deleted, the space they occupied are marked as vacant. New records are inserted into those locations. That said, since this is a relational database, it really doen't matter where the new records are inserted. If you want the nitty-gitty details of MYSQL or help, go to the the

RE: [PHP] Re: while loop on an array

2002-01-24 Thread Rick Emery
You don't need to know when you hit the end. Rather, simply remove the last || after the completion of the loop. while (list($new_qID,$new_aID) = each ($new_answers)) { $sql .= qID=\$new_qID || \; } $sql .= substr( $sql, 0, -3) .) AND uID = \$uID\; -Original Message-

RE: [PHP] Got a problem I cant figure out

2002-01-28 Thread Rick Emery
SHOW US YOUR CODE -Original Message- From: Ben Turner [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 10:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Got a problem I cant figure out Parse error: parse error in /var/www/docs/tacklebox/404handler.php on line 47 I am receiving

RE: [PHP] Sending an e-mail to 1,000 people

2002-01-29 Thread Rick Emery
yes you can by using MYSQL to store the names, PHP to generate the letters (or you can store letter template in database as well), and PHP's mail() function will take you home. -Original Message- From: Ben Clumeck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 1:43 PM To:

RE: [PHP] Sending an e-mail to 1,000 people

2002-01-29 Thread Rick Emery
and MYSQL? If not, that's a whole other matter. rick -Original Message- From: Ben Clumeck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 3:02 PM To: Rick Emery Subject: RE: [PHP] Sending an e-mail to 1,000 people Thanks for your response. How would it know who to send

RE: [PHP] curious - any phpshop/core users?

2002-01-30 Thread Rick Emery
I use PHP Coder. It's an excellent IDE and it's free.. -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 11:46 AM To: PHP Subject: [PHP] curious - any phpshop/core users? hi, has anyone used PHPShop and Core (www.phpshop.org) ?? i'm thinking

RE: [PHP] Page Not Found - on IE

2002-01-30 Thread Rick Emery
Is the PHP script you're moving to trying to dao a long or complec database query? that is, are you timing out? -Original Message- From: Bryan Gintz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 12:33 PM To: PHP List Subject: [PHP] Page Not Found - on IE Sometimes with

RE: [PHP] unset a function?

2002-01-30 Thread Rick Emery
what happened when you tried unset()? -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 2:52 PM To: PHP List Subject: [PHP] unset a function? Hello, I have this: ? include(file1); function_somename(); include(file2); function_somename();

RE: [PHP] unset a function?

2002-01-30 Thread Rick Emery
include_once() won't help. In fact, he is including each file only once. He wants to have a function with the same name in each file. That's the kicker... -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 3:03 PM To: Bas Jobsen Cc: PHP

RE: [PHP] Plz help w/ query

2002-01-31 Thread Rick Emery
Remove the MYSQL_ASSOC. I've never needed it for what you're doing: while ($row_1=mysql_fetch_array($result_1)) -Original Message- From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 7:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Plz help w/ query The

RE: [PHP] PHP Hosting Services

2002-01-31 Thread Rick Emery
I use http://www.nomonthlyfees.com, which provides 500 meg of disk and 5 gig of bandwidth. It's $200 the first year, which includes domain registration. It's $70 a year thereafter, which includes domain re-registration. I subdivide the disk space; I have 5 domains that I point to various

RE: [PHP] autorefresh/redirect ?

2002-01-31 Thread Rick Emery
meta http-equiv=refresh content=10; http://www.newpage.com; where 10 specifies you want to refresh in 10 seconds -Original Message- From: Hawk [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] autorefresh/redirect ? what do I type

RE: [PHP] Need Urgent Help!!

2002-01-31 Thread Rick Emery
mail([EMAIL PROTECTED],Subject line,$message,From: $txtname $email); -Original Message- From: Scott's Mail [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 2:00 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Need Urgent Help!! Shannon, I appreciate your

RE: [PHP] newbie: regular expression suggestios

2002-01-31 Thread Rick Emery
try: if (eregi(^[a-zA-Z0-9]*$, $name)) This searches for [a-zA-Z0-9] between start and end of line with no other intervening characters -Original Message- From: Lee P Reilly [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 1:45 PM To: PHP List Subject: [PHP] newbie: regular

RE: [PHP] newbie: regular expression suggestios

2002-01-31 Thread Rick Emery
I thought about the case insensitivity, but I wanted to be certain that A-Z was captured. Personnally, I'd use ereg(), as you suggest. -Original Message- From: Administrator [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 2:38 PM To: Rick Emery Subject: Re: [PHP] newbie

RE: [PHP] ereg et all

2002-01-31 Thread Rick Emery
try: eregi_replace(this,that,This equals this equals tHis); -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 3:40 PM To: [EMAIL PROTECTED] Subject: [PHP] ereg et all hi, is there a simple way to replace an occurence

RE: [PHP] Best way to frequently check database?

2002-01-31 Thread Rick Emery
To timeout users after 20 minutes, use a cookie which is set for 20 minutes. I'm not exactly sure what you are attempting to limit on database: 100 entries per hour, per day, per year, concurrently? -Original Message- From: Hawk [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31,

RE: [PHP] need some advice; small server on a win98 machine.

2002-02-01 Thread Rick Emery
Dump PWS, PHP module, mysql Download and install PHPTRIAD, which will install Apache server, PHP, and MySQL on your system. It's a turn-key operation. -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 6:18 AM To: [EMAIL PROTECTED]

RE: [PHP] PHP commands and HTML combobox

2002-02-01 Thread Rick Emery
Eduardo, You've already solved your own problem. You just need to take it one step further. given: form method=post action=formprocess.php select name=combo option value=01Option 01 option value=02Option 02 option value=03Option 03 /select -- in

RE: [PHP] Date format

2002-02-01 Thread Rick Emery
list($y,$m,$d) = explode(,,$phpdate); $newdate = $d/$m/$y; -Original Message- From: Jose [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Date format Hi all. How can I write the date in this format (dd/mm/) if php gives me

RE: [PHP] getting information from a COMBOBOX

2002-02-01 Thread Rick Emery
You get the results by including it in a FORM/FORM and calling another PHP script which uses that value. As I stated earlier, you CANNOT retrieve the value of the COMBO BOX in the same page that it is created until the SUBMIT button is pushed -Original Message- From: Eduardo Melo

RE: [PHP] Newbie: function for downloading

2002-02-01 Thread Rick Emery
Well, the quick and dirty is that the user RIGHT-CLICKs on the link. The Context menu will display which invites the user to Save Target As. But I gues you really want a LEFT-CLICK option? -Original Message- From: Manuel Ritsch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
$sql = SELECT * FROM $table_name WHERE sec = '$sec' AND WHERE subsec = '$subsec' AND WHERE name = '$name' ORDER BY component ; $result = mysql_query($sql) or die(Error: .mysql_error().$sqlBR); while ( link($component,$content) = mysql_fetch_array($result)

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
/content pair, regardless of how many pairs there are returned by the SQL statement, and then to have those variables available for display later on in the page. Do you have any suggestions? James -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01

RE: [PHP] Need eregi() help

2002-02-01 Thread Rick Emery
What do you mean it does not work? What error do you get? Logic error? Compile error? -Original Message- From: Robby [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:28 PM To: [EMAIL PROTECTED] Subject: [PHP] Need eregi() help I am using this code below but it does not

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
; } ? // HTML Stuff in here .. ? echo $compDisplay['headline']; //headline is the first component.. ? Grr. I'm stumped.. James -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 2:45 PM To: 'James Hallam'; [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] Mysql

2002-02-06 Thread Rick Emery
Look-up GRANT PRIVILEGES in the mysql manual. That should get ya going -Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 1:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Mysql Pleae help me ! I need delete record from table

RE: [PHP] Using functions before they're defined

2002-02-07 Thread Rick Emery
What happened when you tried? -Original Message- From: Brad Harriger [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Using functions before they're defined How does PHP 4 locate function definitions if the function is called

RE: [PHP] Quote in input tag value?

2002-02-07 Thread Rick Emery
I prefer: print input type=text value=\My Quote\; -Original Message- From: Nathan Cassano [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Quote in input tag value? If there is a quote mark in an input tags value what is the

[PHP] RE: [PHP-DB] Need to delete charcters from a string

2002-02-07 Thread Rick Emery
$str = substr($str,0,-3); -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 1:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] Need to delete charcters from a string I need to delete the last 3 character of a string,

RE: [PHP] Newbie Question about PHP / MySQL

2002-02-08 Thread Rick Emery
SELECT COUNT(col_name) FROM mytable WHERE some condition This will return the number of items with that condition in that columne, name col_name -Original Message- From: Ron Clark [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Parameters via Link

2002-02-08 Thread Rick Emery
try: if( ! strcmp($link, home) ) { include(soundmp3.php); } -Original Message- From: Manuel Ritsch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Parameters via Link Hey there I want to make a webpage out of one main pagewith

RE: [PHP] Php Projects

2002-02-08 Thread Rick Emery
Do I detect a bit of Friday-afternoon sarcasm??? GRIN Actually, a beer sounds good about now -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 1:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Php Projects -BEGIN PGP SIGNED

RE: [PHP] A MYSQL COUNTER

2002-02-12 Thread Rick Emery
The question you must answer first: what do you intend to do with the data once it's collected? Will you simply review the data without sorting it or performing data manipulation? If so, why incur the overhead of MYSQL? If all you need to do is log the user page hits, use a text file; then use

RE: [PHP] How can i count the number of users logged in my system

2002-02-12 Thread Rick Emery
Store the user count to a database or file. Increment when new user enters; decrement when user logs out. If user does not log out and simply types a new URL into the address line, then you have another problem. -Original Message- From: V [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

RE: [PHP] A MYSQL COUNTER

2002-02-12 Thread Rick Emery
they're is a new unique visitor, I want a script to email the member about who visited. And have a permanent record for each member of who viewed their pages, accesible when they login. Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The ques

RE: [PHP] Exchange substitute

2002-02-12 Thread Rick Emery
http://twig.screwdriver.net/ -Original Message- From: Erik H. Mathy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 11:23 AM To: PHP General List Subject: RE: [PHP] Exchange substitute I'm doing a project to move my company off of microsloth exchange. I have dont qmail

RE: [PHP] Re-Importing .CSV file into Database

2002-02-12 Thread Rick Emery
look at MYSQL's LOAD DATA INFILE command: LOAD DATA INFILE datafile.csv INTO mytable FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:02 PM To: [EMAIL

RE: [PHP] Re-Importing .CSV file into Database

2002-02-12 Thread Rick Emery
me out with the php code that would make this possible.. Thanks, T. Edison jr. --- Rick Emery [EMAIL PROTECTED] wrote: The file is located on the server and you have access to it, yes. If the file is on the client, then no -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL

RE: [PHP] Refreshing a page.

2002-02-12 Thread Rick Emery
did you try: meta http-equiv=refresh content=0; URL=http://my.site.com//thispage.html; -Original Message- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Refreshing a page. Hi, I got a page, which uses

RE: [PHP] PHP Work in New York

2002-02-12 Thread Rick Emery
George, I don't have any job sources for. However, I wondered where you lived in Germany. Ich habe fur drei Jahre in Kaiserlautern gewohnt. Von 1985 bis 1988. Sind Sie Deutscher oder Amerikaner im militar? rick -Original Message- From: George PHP [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Newbie question about links

2002-02-12 Thread Rick Emery
reference the file that you wish to link to: A href=newpage.phpClick here/A -Original Message- From: Chris Schoeman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:13 PM To: [EMAIL PROTECTED] Subject: [PHP] Newbie question about links I want to make links on my website

RE: [PHP] How to POST a HTML-page with the header function

2002-02-13 Thread Rick Emery
Short answer: NO. Because your method is the same as the GET method Use cookies or sessions to pass hidden variable values -Original Message- From: L. Hoeneveld [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:05 AM To: [EMAIL PROTECTED] Subject: [PHP] How to POST a

RE: [PHP] How can i count the number of users logged in my system

2002-02-13 Thread Rick Emery
left your web-site and decrease the number of users by 1. -Original Message- From: V [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 8:38 AM To: 'V'; [EMAIL PROTECTED]; Rick Emery Subject: RE: [PHP] How can i count the number of users logged in my system Ok, but i'm using

RE: [PHP] querystrings passed in header(Location: n) ?

2002-02-13 Thread Rick Emery
try: header(Location: domain.com/errorpage.php?errorcode=.urlencode($errorcode)); -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 8:51 AM To: PHP Subject: [PHP] querystrings passed in header(Location: n) ? Can you pass a querystring

RE: [PHP] How to POST a HTML-page with the header function

2002-02-13 Thread Rick Emery
]] Sent: Wednesday, February 13, 2002 9:30 AM To: Rick Emery Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How to POST a HTML-page with the header function I'll study on that. And in case you have an easy example for both suggested methods I am willing to receive that. We use the PHP-pages as external

RE: [PHP] querystrings passed in header(Location: n) ?

2002-02-13 Thread Rick Emery
:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 9:34 AM To: Rick Emery Cc: PHP Subject: Re: [PHP] querystrings passed in header(Location: n) ? On Wednesday, February 13, 2002, at 09:53 AM, Rick Emery wrote: try: header(Location: domain.com/errorpage.php?errorcode=.urlencode($errorcode

RE: [PHP] Newbie - Session Help

2002-02-13 Thread Rick Emery
show us the code you've tried so far. -Original Message- From: Richard O'Flaherty [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 9:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Newbie - Session Help I have a log-in form on my site that registers a session for the username

RE: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread Rick Emery
Has fanlist_try table been created? -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 10:54 AM To: Jason Murray Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Re-Importing .CSV file into Database Hi, Ok, considering the FULL PATH and

RE: [PHP] Cheap, PHP, mySQL hosting!

2002-02-13 Thread Rick Emery
http://www.nomonthlyfees.com 500 megs space, 5 gig bandwidth, PHP4, MYSQL, SSL,SSH, etc On-line administration tool decent customer service $200 first year (includes domain registration) $70 year thereafter, includes domain registration -Original Message- From: Thomas Edison Jr.

RE: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread Rick Emery
To: Rick Emery Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Re-Importing .CSV file into Database Oh yes, definately. With the appropriate columns too. --- Rick Emery [EMAIL PROTECTED] wrote: Has fanlist_try table been created? -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL

RE: [PHP] querystrings passed in header(Location: n) ?

2002-02-13 Thread Rick Emery
This is frustrating, because I have used header(location) with parameters and it has worked. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 11:12 AM To: Rick Emery Cc: PHP Subject: Re: [PHP] querystrings passed in header(Location: n

RE: [PHP] Troubles With Mail Function

2002-02-13 Thread Rick Emery
show us more code. I believe SMTP would require the mail server Can you mail via the mail() function? -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:44 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Troubles With Mail Function

RE: [PHP] Php is serversided????

2002-02-13 Thread Rick Emery
The if-statements are based upon values read from session variables, cookies, values from databases, and values for the form that was just submitted. So, no, there are no if-statements executed on data the user has not submitted. -Original Message- From: Morten Nielsen [mailto:[EMAIL

RE: [PHP] php dies every 2 days

2002-02-13 Thread Rick Emery
How is PHP dying? Is it really you web-server that is dying? What happens when you execute PHP at the command line? -Original Message- From: Ice [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 1:53 PM To: [EMAIL PROTECTED] Subject: [PHP] php dies every 2 days Hi,

RE: [PHP] Re: mail headers

2002-02-13 Thread Rick Emery
Renato, To send mail, use PHP's mail() function: mail($recipient,$subject,$message,$headers); You can reference $HTTP_REFERER directly without saying getenv(HTTP_REFERER) -Original Message- From: Renato Salvatore Moya L. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002

RE: [PHP] Re: mail headers

2002-02-13 Thread Rick Emery
); echo ' enviado..'; ? -Original Message- From: Renato Salvatore Moya L. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:17 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Rick Emery Subject: Re: [PHP] Re: mail headers Importance: High ok guys, thank for all, but i try

RE: [PHP] how a function 'return' statement works

2002-02-13 Thread Rick Emery
If your call to the function is: print get_current_page_name() then you are getting the expected results, a description of the returned value. Change your call to: $myarrray = get_current_page_name(); Then iterate through $myarray to print each value; -Original Message- From: Erik

RE: [PHP] Filling Forms with $variables

2002-02-13 Thread Rick Emery
try: input type=text name=name value=?echo $name;? -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:56 PM To: PHP Subject: [PHP] Filling Forms with $variables Hi, I'm having trouble setting the value of form elements using

RE: [PHP] arrays with form data?

2002-02-13 Thread Rick Emery
list($mytext,$mynbr) = explode(,$FORM_ITEM); -Original Message- From: Police Trainee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 4:05 PM To: PHP Subject: [PHP] arrays with form data? good evening gentlemen. I am attempting (with my oh so limited php writing abilities)

RE: [PHP] trouble with headers

2002-02-13 Thread Rick Emery
Erik, Thanks for clearing that up Torben. (It seems that whenever I ask a question, you always have the answer.) Next time you go to the PHP Manual (dated 19-09-2001) for answers, go to the title page and count down 5 names... rick -Original Message- From: Erik Price

RE: [PHP] Is this possible?

2002-02-13 Thread Rick Emery
Yes, you can do this. In the script below, I read the sub-directory from a MYSQL database. This is overkill for just a few domains, but great for a hundred. This is index.html file: ?php $conn = mysql_connect(localhost,username,password); mysql_select_db(mydatabase,$conn) or die(Error:

RE: [PHP] Is this possible?

2002-02-14 Thread Rick Emery
I forgot to mention, you must have access to the A and/or CNAME records for your DNS in order to point the domains to the single IP adress. Yes, you can do this. In the script below, I read the sub-directory from a MYSQL database. This is overkill for just a few domains, but great for a

RE: [PHP] Webhosts

2002-02-14 Thread Rick Emery
I use http://www.nomonthlyfees.com 500 megs disk space, 5 gig/month bandwidth PHP 4, MYSQL, SSL, SSH, shopping carts, PGP, PGMail, etc $200 first year, includes domain registration $70 each year thereafter, includes domain registration I take my 500 megs and split among 5 domains -Original

RE: [PHP] Webhosts

2002-02-14 Thread Rick Emery
I'm beginning to suspect a certain bias GRIN because you always make the same recommendation... -Original Message- From: Michael Romagnoli [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 10:46 PM To: R'twick Niceorgaw; [EMAIL PROTECTED] Subject: RE: [PHP] Webhosts I

RE: [PHP] Troubles With Mail Function

2002-02-14 Thread Rick Emery
I have a similar situation and would like to know your solution. I would like to send mail from my RH Linux box using the sendmail -t -i command through my isp mailer (mail.attbi.com). Could you post, or send me directly, the PHP code that you developed for this? thanks rick -Original

RE: [PHP] Sessions

2002-02-14 Thread Rick Emery
It means you've already sent some HTML. Sessions stuff must be sent first -Original Message- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 12:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions Hi, I try to use sessions to keep track if a user is

RE: [PHP] character replace function

2002-02-14 Thread Rick Emery
Erase by what criteria? Position? Value? specifics!! -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 12:38 PM To: [EMAIL PROTECTED] Subject: [PHP] character replace function I need a function that will erase a particular

RE: [PHP] Store array into mysql?

2002-02-14 Thread Rick Emery
$ser_array = serialize($myarray); then store $ser_array to a table as BLOB, TEXT, or even VARCHAR to use its contents, read it from the table and use unserialize() -Original Message- From: Jan Grafström [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 10:35 AM To: [EMAIL

RE: [PHP] array variable name

2002-02-14 Thread Rick Emery
what are your trying to do with it?? -Original Message- From: Tomek Golembiewski [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 8:20 AM To: [EMAIL PROTECTED] Subject: [PHP] array variable name How can I get the name of array variable into str? -- PHP General Mailing

RE: [PHP] class and session identyfier

2002-02-14 Thread Rick Emery
did you begin your script with session_start()? -Original Message- From: sasza [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 7:28 AM To: [EMAIL PROTECTED] Subject: [PHP] class and session identyfier hi I've got session identyfier in $session_id. In all sites it can be

RE: [PHP] access php4 intepreter

2002-02-14 Thread Rick Emery
or include it in your PATH environment variable -Original Message- From: toni baker [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: [PHP] access php4 intepreter php4.1.1.exe was installed in C:\My Documents directory. Do I need to

RE: [PHP] How get the name of the array variable?

2002-02-15 Thread Rick Emery
your mailing address TLD (the .pl in emarket.pl) says you're from Poland -Original Message- From: Tomek Golembiewski [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 7:20 AM To: DL Neil; [EMAIL PROTECTED] Subject: Re: [PHP] How get the name of the array variable? Please feel

RE: [PHP] Mail()

2002-02-15 Thread Rick Emery
It should be configured automatically if you have PHP compiled into your Apache server. That said, I know nothing about NuSphere, so they might do something different. Have you tried??? -Original Message- From: André Felix Miertschink [mailto:[EMAIL PROTECTED]] Sent: Friday, February

RE: [PHP] Apache - Virtual Name

2002-02-15 Thread Rick Emery
edit /etc/httpd/conf/httpd.conf look for ServerName in Core directives. Change to something like: ServerName myserver Find VirtualHost section and locate a VirtualHost block. It should be commented out. Copy the lines between #VirtualHost #/VirtualHost and paste them. Remove # comment

RE: [PHP] Access Denied !!

2002-02-15 Thread Rick Emery
Thomas, What happens when you enter the LOAD DATA INFILE command directly into the MYSQL command line? -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 7:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Access Denied !! Hi, I'm facing a

RE: [PHP] uuencode

2002-02-15 Thread Rick Emery
uuencode() is a function, not a process. You cannot read and write to it. It takes a string and converts it. Then use uudecode() to translate it back. Now, what do you REALLY want to do?? -Original Message- From: Michael Mehlmann [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15,

RE: [PHP] Sessions just not working...

2002-02-15 Thread Rick Emery
Did you register each variable individually? Did you have a session_start() as the first line of each page? -Original Message- From: Norman Cates [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 6:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions just not working... I

RE: [PHP] http header?

2002-02-15 Thread Rick Emery
you get get some header variable data, such as $HTTP_REFERER execute ?php phpinfo(); ? to determine what is available to you (differs from system to system) You might also iterate through $HTTP_SERVER_VARS[], $HTTP_ENV_VARS[] -Original Message- From: marcbey [mailto:[EMAIL

RE: [PHP] uuencode

2002-02-15 Thread Rick Emery
Sorry...I missed it...I was thinking of urlencode(). Lack of sleep, I guess I would suggest doing GOOGLE search for the uuencode algorithm and coding it in PHP -Original Message- From: Michael Mehlmann [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 8:38 AM To: Rick Emery Cc

  1   2   3   4   5   6   >