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 variab

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) H

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: -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() What is getting echo'd out is: "0, this" Why? What am I missing here? Chris -- PHP Genera

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 m

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 field

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 fol

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 thi

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: [EMA

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

2002-01-29 Thread Rick Emery
using PHP 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

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 a

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 c

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: file1 and contain a function definition, but the function in both files had

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 Li

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 fol

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 subdi

RE: [PHP] autorefresh/redirect ?

2002-01-31 Thread Rick Emery
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 to redirect or refresh a page afte

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

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: regula

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] n

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 occu

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, 2002

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] Subje

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: Option 01 Option 02 Option 03 -- in formprocess.php file: -Original Message- From: Eduardo Melo [mailto:[EMAIL PROTECTED]] Sent: Friday, Fe

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 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 [mailto:[EMAIL P

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, 200

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()."$sql"); while ( link($component,$content) = mysql_fetch_array($resul

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

2002-02-01 Thread Rick Emery
here. My goal is to have a variable for each component/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 [mai

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
$compDisplay[$comp] = $content; } ?> // HTML Stuff in here .. 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] Generating

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 user

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 bef

RE: [PHP] Quote in input tag value?

2002-02-07 Thread Rick Emery
I prefer: print" "; -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 correct way to print the quote?

[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, w

RE: [PHP] Newbie Question about PHP / MySQL

2002-02-08 Thread Rick Emery
SELECT COUNT(col_name) FROM mytable WHERE 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] Newbie Question a

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 pagewit

RE: [PHP] Php Projects

2002-02-08 Thread Rick Emery
Do I detect a bit of Friday-afternoon sarcasm??? 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 MESSAGE-

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, Februa

RE: [PHP] A MYSQL COUNTER

2002-02-12 Thread Rick Emery
QL COUNTER whenever 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]">n

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 w

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 P

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

2002-02-12 Thread Rick Emery
mp; PHP4 support. And i can easily upload the .CSV files on the server itself. Could you kindly help 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

RE: [PHP] Refreshing a page.

2002-02-12 Thread Rick Emery
did you try: 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 frames. When a user logges in I would lik

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]]

RE: [PHP] Newbie question about links

2002-02-12 Thread Rick Emery
reference the file that you wish to link to: Click here -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 which doesn't show the

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 HTML-

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

2002-02-13 Thread Rick Emery
e user has 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

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
day, 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 services

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.p

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 an

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 the

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. [mailto:

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

2002-02-13 Thread Rick Emery
Thomas, Can you provide your table structure and about a dozen lines from your file? I'd like to experiment with it on my machine. We WILL get this resolved... rick -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 11:09

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(&q

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 Actually,

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 PRO

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, everybo

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 2:34

RE: [PHP] Re: mail headers

2002-02-13 Thread Rick Emery
eba de email',$referer); 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 gu

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 Pric

RE: [PHP] Filling Forms with $variables

2002-02-13 Thread Rick Emery
try: "> -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 variable values. For example: >

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: $query"); if( mysql_num_rows($results)<>1 ) { print "Error: Cannot find sub-domain ".$HTTP_SERVER_VARS['HTTP_HOS

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 hundred

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 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 would als

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 ---

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 log

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 char

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 PRO

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 List

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 see

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 inc

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

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 15

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 # # and paste them. Remove # comment designator. Change to:

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 ra

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, 20

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 can

RE: [PHP] http header?

2002-02-15 Thread Rick Emery
you get get some header variable data, such as $HTTP_REFERER execute 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 PROTECTED]] Sent: Friday, Fe

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

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

2002-02-15 Thread Rick Emery
Actually, if I had my druthers, my domain TLD would be ".texas". Some day, when Texas becomes the independent country it should be, that will be my TLD. -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 8:57 AM To: Rick Emery; [EMAIL

RE: [PHP] Dynamic Date Select and SQL

2002-02-15 Thread Rick Emery
If I understand your question, you are looking for the MYSQL sql statement. Based upon your info, I've found something like this example: mysql> describe a; ++--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | ++--+--+-+

RE: [PHP] Polymorphism question

2002-02-15 Thread Rick Emery
I've also done C and C++ since the 80's. My experience with virtual, is that there is no base implementation for a function. Rather, the function is expected to be defined in the derived class. The inheritance you describe would have a base implementation (no virtual declaration), which could b

RE: [PHP] writing / reading from text files

2002-02-15 Thread Rick Emery
fopen(), fwrite(),fseek(),fread(),fclose() -Original Message- From: cyberskydive [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 10:29 AM To: [EMAIL PROTECTED] Subject: [PHP] writing / reading from text files I need to write to a specific line in a text file, read from a line

RE: [PHP] writing / reading from text files

2002-02-15 Thread Rick Emery
] Subject: Re: [PHP] writing / reading from text files lol- so I use fseek() to move the file pointer before where I need to write/replace/update a value? Is there a parameter for fseek to tell it to move to a newline, or stop after a certain bytes? "Rick Emery" <[EMAIL PROTECTED]>

RE: [PHP] writing / reading from text files

2002-02-15 Thread Rick Emery
/ reading from text files thanks guys, there is just one more question I dont see an answer for anywhere I've looked. will fseek read past \n's and if so how do I move the filepointer to a newline, or should I just put all the data on one line? (not unreasonable n this case) "Rick

[PHP] PHP Built-In Functionality (was: writing / reading from text files)

2002-02-15 Thread Rick Emery
ty, I discover you have a function already. from those of us who have been pushing bits for a long time (30 years for me), thanks... rick -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 12:53 PM To: cyberskydive Cc: [EMAIL PROTECTED] Subjec

RE: [PHP] Novice question

2002-02-15 Thread Rick Emery
$element[0] = "-".$element[0]; $element[1] = "-".$element[1]; $element[2] = "-".$element[2]; $element[3] = "-".$element[3]; -Original Message- From: brendan conroy [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 3:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Novice question Hi,

[PHP] readline() Fails in PHP for Win2000

2002-02-18 Thread Rick Emery
What do I need to do to allow the readline functions to work? The following short program fails when run from the command line: Execution command and error message: C:\>php -q myscript.php Fatal error: Call to undefined function: readline() in C:\myscript.php on line 2 My system: Windows

RE: [PHP] Mysql_num_rows

2002-02-18 Thread Rick Emery
Please show your exact code, because your code snippet looks right. Then, again, maybe it's because it's an Aggie machine... -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 8:11 AM To: Php-General Subject: RE: [PHP] Mysql_num_rows Maybe

RE: [PHP] storing arrays

2002-02-18 Thread Rick Emery
-Original Message- From: Clark [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 17, 2002 11:15 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] storing arrays I'm having trouble storing my array to a text file, utilizing serialize() and unserialize(). Could you please show a very basic la

RE: [PHP] stupid problem

2002-02-18 Thread Rick Emery
show html show code -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] stupid problem I am getting a variable from a web page ($inst) which is looked at by the loop: if ($inst == 2) { do stuff }

<    1   2   3   4   5   6   7   8   9   10   >