[PHP] Re: Proxy problems

2002-03-05 Thread mojo jojo
Hi Try adding the following to the top of your pages "Petre Agenbag" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > I'm suspecting that I am having proxy problems with one of my PHP/MySQL > websites. > I am getting strange behaviour that ( at this poin

[PHP] Proxy problems

2002-03-05 Thread Petre Agenbag
Hi I'm suspecting that I am having proxy problems with one of my PHP/MySQL websites. I am getting strange behaviour that ( at this point) seem only logical to be due to proxy servers on the net holding outdated pages. I would like to know if there is a way to force the bypass of a proxy server

[PHP] Version difference (4.0.4pl1-4.1.2)

2002-03-05 Thread Aras Kucinskas
I want to upgrade PHP from 4.0.4 to 4.1.2. Where I can find docs apbout version differences. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Value of $_* variables

2002-03-05 Thread Jason Wong
On Wednesday 06 March 2002 13:51, CC Zona wrote: > In article <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED] (Jason Wong) wrote: > > echo "$doo[dah]"; # is correct > > If constant 'dah' is defined, and its value is the name of the key you wish > to access from array '$doo'. But if the string litera

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread hugh danaher
My wife knows I spend too much time in here. - Original Message - From: "Andre Dubuc" <[EMAIL PROTECTED]> To: "hugh danaher" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 9:40 PM Subject: Re: [PHP] Is there a "GoTo Page" Function? > Hugh, > > Food? What's that

RE: [PHP] OOP .. overload not working

2002-03-05 Thread S.Murali Krishna
There is nothing of me. I just cut and pasted the example from manual. Anyway Iam including here. Thanks for Reply, 9, 'c' => 42); function __get($prop_name, &$prop_value) { if (isset($this->elem[$prop_name])) { $prop_value = $this->elem[$prop_name]; r

Re: [PHP] Re: Value of $_* variables

2002-03-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Wong) wrote: > echo "$doo[dah]"; # is correct If constant 'dah' is defined, and its value is the name of the key you wish to access from array '$doo'. But if the string literall 'dah' is itself the name of the key you are trying to ac

RE: [PHP] OOP .. overload not working

2002-03-05 Thread Martin Towell
can you provide a code snippet so we can see what you're doing? -Original Message- From: S.Murali Krishna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 4:38 PM To: [EMAIL PROTECTED] Subject: [PHP] OOP .. overload not working Hi PHPzers Is php have to compile with anything

[PHP] OOP .. overload not working

2002-03-05 Thread S.Murali Krishna
Hi PHPzers Is php have to compile with anything to get 'overload' function to work, bcoz its not working on mine, by saying 'undefined function'. In manual ,there is no restriction in using this. <[EMAIL PROTECTED]> --- We must u

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Jim Koutoumis
Whack your text and input boxes in different cells of a table,.. use align (or nowadays an appropriate style setting) and that should get your things lined up :-) "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > Hugh, > > Food? What's that? > > [Btw, my wife would lov

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Andre Dubuc
Hugh, Food? What's that? [Btw, my wife would love you. She seems to think I spend too much time in here . . .] Thanks for the help. I sort of figured I'd have to make a php page to call the error codes, then call another for the actual database stuff. At least, I'll be able to find my error

Re: [PHP] data from service into array

2002-03-05 Thread S.Murali Krishna
Is anything hindering you from using XML expat? You can use that to do it. I already post a mail on this, search in the archive for xml related posts. On Tue, 5 Mar 2002, Craig Westerman wrote: > I'm retrieving data from a data service. > This is the ENTIRE source code of the URL they let me r

Re: [PHP] mysql_error()

2002-03-05 Thread GENESiS DESiGNS
Dan, No, I telnet to gdesigns.vcn.com. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql_error()

2002-03-05 Thread GENESiS DESiGNS
Dan, When I put 'mysql_error()' inside the 'or die();' it shows nothing when it doesn't connect? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread hugh danaher
Andre, Yes, the html page with your input form effectively ends with the tag so any decision statements on that page past that tag would miss the form input. So, put any decision statements on the php page where you've put your database code. I'm sure someone will educate me on the above statem

[PHP] Auth against unshadowed /etc/passwd?

2002-03-05 Thread Nick Richardson
Anyone know how i can auth a username and password against the /etc/passwd file? Any help will be much appreciated! //Nick Richardson [EMAIL PROTECTED] [EMAIL PROTECTED] -- -- We must come to see that the end we seek, is a society --

Re: [PHP] last update

2002-03-05 Thread Jason Wong
On Wednesday 06 March 2002 05:35, Ryan wrote: > Hi, I'm trying to figure out how to have a time stamp at the bottom of > every page that shows when the page was last updated in the format > below. Thanks. > > Last updated: Tue Mar 5 15:48:50 2002 CST echo "Page last updated:\n"; i

[PHP] Dan...

2002-03-05 Thread GENESiS DESiGNS
Dan, I make my own error and the error is 'Couldn't connect to MySQL.'. I live in Wyoming. Why? Where do you live? Thanks Dan, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com

Re: [PHP] Re: Help with an error I can't solve!

2002-03-05 Thread Jason Wong
On Wednesday 06 March 2002 05:06, you wrote: > Thanks Jason, but I am using php 4.0.0 and there is no way I can get rid of > that error! This is driving me crazy! :-) Thanks for the instructions, if > you have any other idea, please let me know... With the recent security problem on older version

Re: Re: [PHP] OK Dan...

2002-03-05 Thread GENESiS DESiGNS
Dan, I;m using PHP to create my database. This is the script I'm using: -- -- Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Value of $_* variables

2002-03-05 Thread Jason Wong
On Wednesday 06 March 2002 10:01, bvr wrote: > Yes, there is, strings should *always* be quoted! > > See: http://www.php.net/manual/en/language.types.array.php > > it's under do's and don'ts .. > > bvr. > > Mike Eheler wrote: > > $result = mysql_query("select user from users where id = > > $_SES

[PHP] OK Dan...

2002-03-05 Thread GENESiS DESiGNS
Dan, OK. I am trying to make a database with PHP and of course I need to put in my MySQL host name address and username and password. I need to know what I should put for the host name address? I hope this is enough. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP G

[PHP] Dan...

2002-03-05 Thread GENESiS DESiGNS
Dan, I'm sorry, but I still don't get. :( Thanks A LOT, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com

RE: [PHP] Re: PHP and mySQL

2002-03-05 Thread Dan Vande More
Max, PHP.net says: "Calls to mysql_result() should not be mixed with calls to other functions that deal with the result set. " I would use mysql_fetch_array which they say is MUCH faster, example of how you could use it: username='me' GROUP BY username"; $number_of_rows=mysql_num_rows($sqlinf

RE: Re: [PHP] Help with MySQL.

2002-03-05 Thread Dan Vande More
I'm sorry after re-reading the correct answer would be this: The hostname(ip address) of the mysql box is whatever you telnet too, if indeed you get those weird characters when you 'telnet localhost 3306'. For instance if you telnet to 192.168.0.1, that is the mysql server address. If you telnet

[PHP] Re: PHP and mySQL

2002-03-05 Thread David Robley
In article <180f01c1c403$2ac62820$[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I have a little problem when trying to count the number of results returned > in a mysql query. I was using mysql_num_rows() to do it with no problems, > but this isn't as quick as using mySQL's COUNT(*), or so I ha

Re: Re: Re: [PHP] Help with MySQL.

2002-03-05 Thread GENESiS DESiGNS
Dan, Running on what? I need to know the host name address. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] Help with MySQL.

2002-03-05 Thread Dan Vande More
For one of my servers I get " 3.23.34-log3REu?zk*+;," And another I get " 4.0.1-alpha,ZaXs]W{," That means that is most certainly running on it, if not you would get something like "Telnet: Unable to connect to remote host: Connection refused" Be warned, if your isp does not know anything about th

Re: Re: [PHP] Help with MySQL.

2002-03-05 Thread GENESiS DESiGNS
Dan, What do you mean by : If you get some weird characters(most likely the version and some other chars) then the server is itself, is the mysql host. Because thats what happens. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.ph

RE: [PHP] Help with MySQL.

2002-03-05 Thread Dan Vande More
Once in your telnet session, from the command line type 'telnet localhost 3306' or 'telnet 127.0.0.1 3306' Keep in mind this only proves the host is there, it doesn't disprove. The machine may not know itself as localhost(unlikely) or the mysql server may not be living on 3306. If you get some wei

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread mojo jojo
Thanks to all those who contributed to the thread. Very helpful. Mojo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with MySQL.

2002-03-05 Thread GENESiS DESiGNS
Hello everyone, I need some help with telneting to my web host and figuring out what the host name address is to mysql. My web host (which is my ISP) knows that they have MySQL but they don't know the host name address. I want to know if there is a sentence I can type into the telnet box to

Re: [PHP] Re: Value of $_* variables

2002-03-05 Thread James Taylor
Yeah, the curly braces work great. I was at first doing a "where id = " . $_SESSION['id'], $db); but I like the curly braces better. Oh, for those wondering, this wasn't a copy/paste, I just made this up as an example and forgot to put the second quote on $_SESSION['id']; twas a typo :) On T

[PHP] Re: Value of $_* variables

2002-03-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (James Taylor) wrote: > $result = mysql_query("select user from users where id = $_SESSION['id]", > $db); > > That just doesn't work, so I have to first go: > > $sid = $_SESSION['id']; > $result = mysql_query("select user from users where id =

Re: [PHP] Re: Value of $_* variables

2002-03-05 Thread bvr
Yes, there is, strings should *always* be quoted! See: http://www.php.net/manual/en/language.types.array.php it's under do's and don'ts .. bvr. Mike Eheler wrote: > $result = mysql_query("select user from users where id = > $_SESSION[id]", $db); > > No need to quote the key name in a str

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread hugh danaher
Andre, My note on decision lines was in anticipation of your next question/problem of "How do I handle things if the user doesn't fill in his name, address, whatever?" My solution is check to see if the cell is filled and if not then quit the database storage and tell the person to fill in the in

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Jason Murray
> As you said: > > > OOP had answer to all of this. Modules that can't be touched, > > which exist by themselves. You could really get a module from > > somebody else and put it right into your program. The problem I have with this is that when I do this, the class just plain doesn't work (s

[PHP] RE: OOP .. I just don't get it.

2002-03-05 Thread Andrew Chase
Well, the 'Table' class is definitely of limited usefulness.. but where classes come in especially handy is when you want to build reusable code for handling common tasks, like, for instance, MySQL connections and queries... so that your PHP code looks something like /***

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Martin Towell
> It's just, well, maybe not something that the ordinary web-programmer will > benefit much from at the beginning. Very true - I find object more scalable too, from the code itself, all the way to the size of the project. Many of my classes have started out being just 10 lines, but some have inc

[PHP] Re: [PHP-DB] Re: [PHP] timestamp iin MySQL not compatible to the one in PHP???

2002-03-05 Thread Ken Thompson
On Tuesday 05 March 2002 05:11 pm, Andy wrote: > So what is the proper function in PHP to convert the MySQL timestamp into a > proper format like Sonday, Apr. 20th 2002? > Thanx, > > Andy > > > "Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED]... > > > On Wednesd

RE: [PHP] Basic help for radio buttons needed

2002-03-05 Thread WG4- Cook, Janet
Thanks Matt, I've got it working now - there must be another admin_do[] somewhere - I changed it to adm_do and it worked! Thanks for your help Janet -Original Message- From: Matt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 March 2002 11:41 To: WG4- Cook, Janet Cc: PHP List Subject

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Andre Dubuc
On Tuesday 05 March 2002 19:20, you wrote: > On Tuesday, March 5, 2002, at 07:01 PM, Andre Dubuc wrote: > > Now that makes sense. I'm getting a better idea of how it works > > together. I > > figured there must be a way to control the "Submit" button's behaviour, > > but I > > didn't know where t

Re: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Frank
Many years ago I wrote something for newcomers into OOP. I have cut a snippet out of it and added some comments. Sorry, it became rather long. Hope it helps somebody. Frank " OOP is the art of designing "objects", then creating and killing them. An object is a box with handles. We can operat

Re: [PHP] Required problem....

2002-03-05 Thread Ben Turner
I have got access from admin (the apache user) to those files as well as the directory. Nothing seems to be working. - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Ben Turner'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 5:34 PM Subject: R

Re: [PHP] Basic help for radio buttons needed

2002-03-05 Thread Matt
> the only value I get is the $admin_do which has the value "Array" - not much > help Running your code on my 4.1.2 box, I see: submit = select = value is Change User password admin_do is Change User password counter = 0 value is counter = 1 value is counter = 2 value is counter = 3 value is coun

Re: [PHP] timestamp iin MySQL not compatible to the one in PHP???

2002-03-05 Thread DL Neil
Andy, > So what is the proper function in PHP to convert the MySQL timestamp into a > proper format like Sonday, Apr. 20th 2002? SELECT from SQL using UNIX_TIMESTAMP() Format for presentation in PHP using: string date ( string format [, int timestamp]) Regards, =dn > > > I am playing around

RE: [PHP] Required problem....

2002-03-05 Thread Martin Towell
this would be an auto-prepend file? anyway - does the web server have read permissions to the file + path? -Original Message- From: Ben Turner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 11:24 AM To: [EMAIL PROTECTED] Subject: [PHP] Required problem I am just setting

[PHP] Required problem....

2002-03-05 Thread Ben Turner
I am just setting up a server that I am leasing through Rackshack.net. I am having some difficulties just trying to get myphpadmin running. Here is the error I am receiving... anyone know anything about this?? It isnt terribly descriptive and I have no idea why it isnt working. The path is the

Re: [PHP] timestamp iin MySQL not compatible to the one in PHP???

2002-03-05 Thread Mike Eheler
The long way, but it will help in the understanding of it: $timestamp = "20020305211704"; $year = substr($timestamp, 0, 4); $month = substr($timestamp, 4, 2); $day = substr($timestamp, 6, 2); $hour = substr($timestamp, 8, 2); $minute = substr($timestamp, 10, 2); $second = substr($timestamp, 12, 2

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 07:01 PM, Andre Dubuc wrote: > > Now that makes sense. I'm getting a better idea of how it works > together. I > figured there must be a way to control the "Submit" button's behaviour, > but I > didn't know where to look. Yep, the submit input tells the form "go

RE: [PHP] Basic help for radio buttons needed

2002-03-05 Thread WG4- Cook, Janet
Matt Thanks for the reference, but it still doesn't work for me. I now have Add new user Change User password Delete User Add new document and in admin.php "); echo (" submit = $submit "); echo ("select = $select "); $myval = $_POST['admin_do']; echo (" value is $myval "); echo (" admin_

Re: [PHP] timestamp iin MySQL not compatible to the one in PHP???

2002-03-05 Thread Andy
So what is the proper function in PHP to convert the MySQL timestamp into a proper format like Sonday, Apr. 20th 2002? Thanx, Andy "Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED].; > On Wednesday 06 March 2002 04:31, Andy wrote: > > Hi there, > > > > I am playin

[PHP] PHP Mail() Question

2002-03-05 Thread Mindless Bot
Hello, I hope maybe you can help me with this problem... I've been working with PHP/mySQL for about 6 months now, this is causing quite a headache! When I try to send confirmation email (from a form the user fills out) - it works fine when sending within the company network but fails when send

[PHP] Tutorial or links for using MyODBC with Excel

2002-03-05 Thread Tom Beidler
I was wondering if anyone could point me to some information about using MyODBC with Excel, or possibly MyODBC in general. I have limited experience using ODBC. I have used Filemaker Pro with a SQL plug-in on the Mac to connect with MySQL successfully but that's it. I've already scanned through th

Re: [PHP] Re: Is there a "GoTo Page" Function?

2002-03-05 Thread Andre Dubuc
Hi Hugh, Thanks - I can access the next page now. But I've got a new problem: even if the fields are all empty, a carriage return sends me off to the next form [Bad! Bad, form - that's not what I want you to do!] Where would you insert: if (!isset($name)) die ("You need to fill in you

[PHP] Re: Odd problem using sendmail - possibly to do with set_time_limit?

2002-03-05 Thread Jon Abernathy
"Alexis Birkill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > Hi, > > I'm trying to track down an odd problem in a script I'm writing, the > purpose of which is below: > > > The PHP can be found below - I'm already resetting the set_time_limit on > each loop execution, so as I

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Andre Dubuc
On Tuesday 05 March 2002 17:43, you wrote: > On Tuesday, March 5, 2002, at 04:06 PM, Andre Dubuc wrote: > > After inserting variables from a fill-out html form into my database, I > > would > > like the form to "goto" the next html page, but I cannot figure out how > > to do > > this basic functi

[PHP] Re: Basic help for radio buttons needed

2002-03-05 Thread Mike Eheler
First, change your form tag to: Post's are better, and to be standard-compliant it should be defined lower-case. Then in admin.php, just to see what is being returned, do: Replace $_POST with $HTTP_POST_VARS if you're using a version of PHP older than 4.1.0. If still there is nothing, the

[PHP] Basic help for radio buttons needed

2002-03-05 Thread WG4- Cook, Janet
Hi all, I am sure this is a very simple question, but after reading reams of doco I still can't find the answer. I am very new to PHP and HTML coding. I have a form (html) that uses radio buttons that goes to some PHP code - how in the PHP code can I tell which radio button was selected? M

Re: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Michael Cronström
Hi ...suggest u take a look at this article by Kevin Yank at SitePoint: http://www.webmasterbase.com/article/662 . I think he is a great author of small and efficient articles! Web inventor Michael Cronstrom At 21:22 05/03/02, you wrote: >Hi > >I've been using php for a while now but I have

Re: [PHP] Re: OOP .. I just don't get it.

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 05:40 PM, mojo jojo wrote: > Hi Phillip > > Yes, thanks this does help. > > The problem with the tutorials that I have seen so far is that they are > very > simplistic and therefore do not reveal the benefits of this style of > programming. > > If anybody knows of

[PHP] Re: OOP .. I just don't get it.

2002-03-05 Thread mojo jojo
Hi Phillip Yes, thanks this does help. The problem with the tutorials that I have seen so far is that they are very simplistic and therefore do not reveal the benefits of this style of programming. If anybody knows of any good tutorials, I would appreciate a link. Thanks Peter (Mojo) Philip

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 04:06 PM, Andre Dubuc wrote: > After inserting variables from a fill-out html form into my database, I > would > like the form to "goto" the next html page, but I cannot figure out how > to do > this basic function. I assume that when one clicks a "Submit" button

Re: [PHP] Parsing Content

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 04:00 PM, Jonathan Duncan wrote: > That is perfect, thank you Philip and Erik. I forgot what a great > resource > DevShed is. It's awesome. Not very in-depth, but then I'd buy a book on the subject if I wanted in-depth. Just enough so that you can get a grasp

[PHP] Directory Size Calculation...trying again!

2002-03-05 Thread Simon H
Tried this earlier but have had no takersis it a no go? Please read on. Hello! I hope someone can help me with this...it's doin' my head in! Below I have a class I found for finding out directory sizes. What I have done is to get the username of each user and their create a directory pat

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Martin Towell
With simple examples, such as that given by Mojo, it would probably be better to use a normal function. However, once you start getting much more complex objects, and (possibly) many of them, it's easier to model them using classes, and not just functions. One reason to use classes is to abstract

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Mike Eheler
It needs to run as a CGI script. The reason is maybe it needs to be a dual-purpose script that can be run from the console, or from the web, or maybe it needs to run as a user other than the web server. Whatever my actual reason is doesn't matter, but trust me, the script must be run as a CGI.

[PHP] Create Word Document from PHP??

2002-03-05 Thread jeremy spielmann
I've been trying to create a MS Word document from PHP, but I've been running into some issues. I was wondering if there was anything in the config file (php.ini) that needs to be configured before I can do this. I'm using the example from the manual, but i'm receiving several errors. ###

[PHP] sprintf precision modifiers

2002-03-05 Thread Erik Price
The manual for sprintf http://www.php.net/manual/en/function.sprintf.php gives a nice introduction to the idea of the different formatting options. But, the reader is referred to the examples to see the different ways that you can format a number. Is there a better resource than this for fo

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Anas Mughal
Why do you have "#!/usr/bin/php" in your script?! You are running it thru the webserver. You shouldn't need that line. --- Mike Eheler <[EMAIL PROTECTED]> wrote: > Having a bit of a weird problem with using PHP as > CGI. The problem is > this.. the output is returning the #!/usr/bin/php > line

Re: [PHP] Re: Using php as a backend bridge between smtp and mysql

2002-03-05 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I got the sendmail part to work, but how do you process a pipe? I just need > the variable name of yyy in "echo yyy | proc-mail.php" > > On 3/4/02 5:05 PM, "David Robley" <[EMAIL PROTECTED]> wrote: > > > In article <[EMAIL PROTECTED]>,

[PHP] input text file html

2002-03-05 Thread niels
I have my data in a text file delimited by tabs One field contains : https://www.paypal.com/cart/add=1&business=%.net&item_name=xx+xx+xx&item_number=85&amount=4.95','cartwin','width=600,height= 400,scrollbars,location,resizable,status');">http://images.paypal.com/images/xx-xx-xx.gi

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Mike Eheler
-q supresses the output of headers: Content-type: text/html X-Powered-By: PHP/4.1.1 But in any event I tried it.. now the page gives me an error: No input file specified. The first few lines look like: #!/usr/bin/php -q Content-type: text/html Mike Aaron Gould wrote: > Try adding a -p arg

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Aaron Gould
My apologies, that should have read "-q" and not "-p". Sorry! :) -- Aaron Gould [EMAIL PROTECTED] Web Developer - Original Message - From: "Mike Eheler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 3:43 PM Subject: [PHP] #!/usr/bin/php in output? > Hav

Re: [PHP] Re: Is there a "GoTo Page" Function?

2002-03-05 Thread hugh danaher
Andre, Have your form action point to a page that has your database storage code, and nothing else (no screen output at all!). Have this page start with the to end your php code. Once you get the above to work, then you can add decision statements which will help qualify your data. (e.g. if (!

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Aaron Gould
Try adding a -p argument to the end of that line: #!/usr/bin/php -q -- Aaron Gould [EMAIL PROTECTED] Web Developer - Original Message - From: "Mike Eheler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 3:43 PM Subject: [PHP] #!/usr/bin/php in output?

Re: [PHP] Re: Is there a "GoTo Page" Function?

2002-03-05 Thread Andre Dubuc
On Tuesday 05 March 2002 16:15, you wrote: > Andre Dubuc wrote: > > As a complete newbie to PHP, and relative novice to html, this one has me > > stumped. Rather than wade through volumes of documentation, I thought I'd > > risk asking it here. > > > > After inserting variables from a fill-out htm

Re: [PHP] Webmail

2002-03-05 Thread Josh Trutwin
> Hi > > can anyone quickly run through how to use php to send the contents of a > form via e-mail using sendmail? How do you begin? > > thanks I use this (omitting error checking): $message = "Name: $name\nAddress: $address\n"; mail("[EMAIL PROTECTED]", "Message Subject", $message, "From: $emai

RE: [PHP] last update

2002-03-05 Thread Vlad Kulchitski
I have the problem, Something happened to my server setup and all of a sudden I am getting warning messages I haven't gotten before. When I run the following piece of code: if (!isset($lang)) { $lang="eng"; } I get the following warning: Warning: Use of undefined constant eng - assumed 'eng

[PHP] last update

2002-03-05 Thread Ryan
Hi, I'm trying to figure out how to have a time stamp at the bottom of every page that shows when the page was last updated in the format below. Thanks. Last updated: Tue Mar 5 15:48:50 2002 CST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] Re: Value of $_* variables

2002-03-05 Thread Mike Eheler
$result = mysql_query("select user from users where id = $_SESSION[id]", $db); No need to quote the key name in a string. Mike James Taylor wrote: > I'm sure this has been asked before, but at least not within the last 600 > messages (i checked): > > I have the session variable $_SESSION['id

[PHP] Re: OOP .. I just don't get it.

2002-03-05 Thread Philip Hallstrom
I'm not an OOP master, but I'll give it a shot. In your example below you don't gain much from using OOP. However, consider this example (all pseudo code)... class animal ( function eat() ... function sleep() ... function walk() ... ); class bird extends animal (

[PHP] Re: Is there a "GoTo Page" Function?

2002-03-05 Thread Michael Kimsal
Andre Dubuc wrote: > As a complete newbie to PHP, and relative novice to html, this one has me > stumped. Rather than wade through volumes of documentation, I thought I'd > risk asking it here. > > After inserting variables from a fill-out html form into my database, I would > like the form t

Re: [PHP] mysql_query: how to uniquely identify the query???

2002-03-05 Thread hugh danaher
Simon, You can use the same name for your result as in: $query="SELECT * FROM table_name WHERE id='$variable'"; $result=mysql_query($query); $array1=mysql_fetch_array($result); $query=SELECT * FROM table_name WHERE name='$variable2'"; $result=mysql_query($query); $array2=mysql_fetch_array($resul

[PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Andre Dubuc
As a complete newbie to PHP, and relative novice to html, this one has me stumped. Rather than wade through volumes of documentation, I thought I'd risk asking it here. After inserting variables from a fill-out html form into my database, I would like the form to "goto" the next html page, but

Re: [PHP] Parsing Content

2002-03-05 Thread Jonathan Duncan
That is perfect, thank you Philip and Erik. I forgot what a great resource DevShed is. Thanks again, Jonathan Duncan "Erik Price" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > > On Monday, March 4, 2002, at 06:10 PM, Jonathan Duncan wrote: > > > I want to make a web site tha

[PHP] Re: Webmail

2002-03-05 Thread Mike Eheler
It's really quite simple. Here's a quick script that will dump all variables sent in a form to an email address: $email = '[EMAIL PROTECTED]'; $subject = 'Form Posted on ' . date('r'); $from = '"Your Website" <[EMAIL PROTECTED]>'; $message = ''; // PHP up to 4.0.6 foreach ($HTTP_POST_VARS as $ke

Re: [PHP] timestamp iin MySQL not compatible to the one in PHP???

2002-03-05 Thread Jason Wong
On Wednesday 06 March 2002 04:31, Andy wrote: > Hi there, > > I am playing around with the timestamp functions. I created a timestamp > with mysql ( the row is timestamp) > and do reformat this thing after selecting with php in the folowíng way: > > $date_posted[$i] = strftime("%A, %d-%m-%Y %R",

Re: [PHP] Re: Help with an error I can't solve!

2002-03-05 Thread Jason Wong
On Wednesday 06 March 2002 04:45, Mike Eheler wrote: > Is the line within a function? If so, it's possible that $HTTP_POST_VARS > hasn't been globalled. > > Check to see if within the function that line is on that the line global > $HTTP_POST_VARS; exists. > > Mike > > On Tue, 05 Mar 2002 12:32:59

Re: [PHP] Re: REQUEST QUESTION

2002-03-05 Thread Jason Wong
On Wednesday 06 March 2002 03:42, karthikeyan wrote: > Hi All, > > I have worked in Java and Cgi and there I was able to do this very > easily. Infact i have one solution to this using GET method in PHP but I > want this using POST. As you have said, using POST overwrites duplicate variables. T

[PHP] Webmail

2002-03-05 Thread Webmaster - MyOnlineSite.co.uk and .com
Hi can anyone quickly run through how to use php to send the contents of a form via e-mail using sendmail? How do you begin? thanks [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help with an error I can't solve!

2002-03-05 Thread Mike Eheler
Is the line within a function? If so, it's possible that $HTTP_POST_VARS hasn't been globalled. Check to see if within the function that line is on that the line global $HTTP_POST_VARS; exists. Mike On Tue, 05 Mar 2002 12:32:59 -0800, Lic. Carlos A. Triana Torres wrote: > Hello all, > I h

[PHP] #!/usr/bin/php in output?

2002-03-05 Thread Mike Eheler
Having a bit of a weird problem with using PHP as CGI. The problem is this.. the output is returning the #!/usr/bin/php line from the file. Example: /cgi-bin/test: #!/usr/bin/php Then in a web browser: http://www.example.com/cgi-bin/test: #!/usr/bin/php Hello World! Has anyone else experien

[PHP] Help with an error I can't solve!

2002-03-05 Thread Lic. Carlos A. Triana Torres
Hello all, I have been "installing" an easy webmail client (webmiau) which seems to work fine and is very light; but I keep receiving this error everytime I open a new session: Warning: Variable passed to reset() is not an array or object in /usr/..file.php on line 5 -- Line 5 of File.ph

[PHP] timestamp iin MySQL not compatible to the one in PHP???

2002-03-05 Thread Andy
Hi there, I am playing around with the timestamp functions. I created a timestamp with mysql ( the row is timestamp) and do reformat this thing after selecting with php in the folowíng way: $date_posted[$i] = strftime("%A, %d-%m-%Y %R", $date_posted[$i]); This always returns Tuesday, 19-01-203

Re: [PHP] Re: REQUEST QUESTION

2002-03-05 Thread karthikeyan
Hi All, I have worked in Java and Cgi and there I was able to do this very easily. Infact i have one solution to this using GET method in PHP but I want this using POST. Here is the PHP Solution using GET to get 2 values with same NAME. --- $ar=explode('&',$QUERY_STRING)

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Demitrious S. Kelly
I've often wondered the same thing... which is why I've never moved to OOP So I'm patiently waiting for a reply to this message as well :) -Original Message- From: mojo jojo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:22 PM To: [EMAIL PROTECTED] Subject: [PHP] OOP .. I j

RE: [PHP] value of an array into a sendmail function

2002-03-05 Thread Demitrious S. Kelly
$mail=''; foreach($automail as $mailline) { $mail.=$mailline; } $to = $EMAILADDRESS $subject = "Thank You for your submission!"; $message = eval($automail); $fromaddress = "[EMAIL PROTECTED]"; mail($to, $subject, $mail, $fromaddress); that's my $.02 -Original Message- From: Kris

[PHP] OOP .. I just don't get it.

2002-03-05 Thread mojo jojo
Hi I've been using php for a while now but I have not got my head around OOP (classes). Why bother using them? I've read thru a few tutorials on using classes and the examples given are quite simple. This is probably the problem - I just can't see the benefit of using this style of programming.

[PHP] value of an array into a sendmail function

2002-03-05 Thread Kris Vose
I want to take the value of an array and define it as $message. This variable will be called in the sendmail function mail(). Here is what I have so far. (does not work!) Can anyone help me with this problem? $automail = file("DOCUMENT_ROOT/BetterBus/1/AutoEmail.txt"); $number_of_lines = cou

  1   2   3   >