[PHP] email a web page

2003-01-06 Thread DC
Hi all, I have a newsletter ready to email to my database of customers. The entire newsletter incl graphics , layout etc is enclosed within a form which posts to a second page which s supposed to email the desired page..but it does not work! The code is listed below _

php-general Digest 6 Jan 2003 10:05:07 -0000 Issue 1806

2003-01-06 Thread php-general-digest-help
php-general Digest 6 Jan 2003 10:05:07 - Issue 1806 Topics (messages 130337 through 130374): Advanced PHP Debugger 130337 by: Fredrik Johansson Re: security in guest book and user forums 130338 by: Justin French Re: PHP and MySQL bug 130339 by: David Freeman Good L

[PHP] Months of the year

2003-01-06 Thread Craig
How do I create a drop down list that automatically generates a list of months for the next 12 months upto and including this month eg list labellist value February 200202 March 2002 03 || || January 2003

[PHP] Strange problem with MAIL

2003-01-06 Thread Cesar Aracena
Hi all, I've been trying to make my way around a complex mailing system for the past couple of days with no success, but now I noticed that I can't just send a simple: mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3"); I used to make this scripts work all the time before using th

[PHP] Re: Strange problem with MAIL

2003-01-06 Thread Manuel Lemos
Hello, On 01/06/2003 08:22 AM, Cesar Aracena wrote: I've been trying to make my way around a complex mailing system for the past couple of days with no success, but now I noticed that I can't just send a simple: mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3"); I used to make t

RE: [PHP] Months of the year

2003-01-06 Thread David Freeman
> How do I create a drop down list that automatically > generates a list of months for the next 12 months upto and including this month This would do it... $month_name\n"; } else { echo " $month_name\n"; } } ?> -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Strange problem with MAIL (Correction)

2003-01-06 Thread Cesar Aracena
Hello Manuel and all, I just checked my hotmail account (one of three I'm sending to) and all the emails arrived correctly (sorry for the re-post) but it's not reaching the other two. One of them, I know it has a very poor configuration and can hardly receive e-mails from PHP scripts, but the othe

Re: [PHP] email a web page

2003-01-06 Thread Sean Burlington
DC wrote: Hi all, I have a newsletter ready to email to my database of customers. The entire newsletter incl graphics , layout etc is enclosed within a form which posts to a second page which s supposed to email the desired page..but it does not work! The code is listed below

[PHP] Re: Strange problem with MAIL (Correction)

2003-01-06 Thread Manuel Lemos
Hello, On 01/06/2003 08:33 AM, Cesar Aracena wrote: I just checked my hotmail account (one of three I'm sending to) and all the emails arrived correctly (sorry for the re-post) but it's not reaching the other two. One of them, I know it has a very poor configuration and can hardly receive e-mails

Re: [PHP] Months of the year

2003-01-06 Thread liljim
Another solution: $month_now = date("n"); echo "\n"; for($i=$month_now, $j=0; $i<=($month_now+12); $i++,$j++) { echo "" . date("F Y", mktime(0, 0, 0, $month_now+$j, 1, date("Y"))) . "\n"; } echo "\n"; This will start the month's dropdown on the month of the year through to the month of th

[PHP] Error handling with multiple file uploads and sql

2003-01-06 Thread Jim
Hi, I have the following scenario: A user can login to my website (so I know their ID) and create a new 'item record' through a form. This item may have up to 10 images uploaded with it (pictures of the item). The structure of my DB is a main 'Items' table holding textual description/price/locati

Re: [PHP] Error handling with multiple file uploads and sql

2003-01-06 Thread Justin French
Why not split it into 2 forms? insert, then attach pictures to the record. Otherwise, decide what's the key issue (imho the a record can exist without pics, but not vice-versa), and focus on that first. Justin on 06/01/03 10:15 PM, Jim ([EMAIL PROTECTED]) wrote: > Hi, > > I have the followin

[PHP] Dreaded Return-Path and mail()

2003-01-06 Thread Monty
Okay, I've read just about everything on the Internet about how the change the Return-Path header in an e-mail sent using mail(), but, I STILL can't get it to work. All e-mail sent via PHP says Return-Path: [EMAIL PROTECTED] and Received: (from nobody@localhost). I have a Red Hat Linux 7.2 server

[PHP] undefined constant?

2003-01-06 Thread Markus Jäntti
If have this piece of code (test.php): I open the file in my browser like this: localhost/test.php?test=test and get this page: Notice: Use of undefined constant test - assumed 'test' in c:\programfiler\apache group\apache\htdocs\test.php on line 2 A Do I need to define test? How can I work a

Re: [PHP] undefined constant?

2003-01-06 Thread Jason k Larson
How about if you quote index/key names in arrays like: if($_GET['test'] == "test") { echo "A"; } HTH, Jason k Larson Markus Jäntti wrote: If have this piece of code (test.php): if($_GET[test] == "test") { echo "A"; } else { echo "B"; } ?> I open the file in my browser like this: localhost/t

Re: [PHP] undefined constant?

2003-01-06 Thread Markus Jäntti
quoting solved the problem thanks mate :) > How about if you quote index/key names in arrays like: > > if($_GET['test'] == "test") { echo "A"; } > > HTH, > Jason k Larson > > > Markus Jäntti wrote: > > If have this piece of code (test.php): > > > > > if($_GET[test] == "test") { echo "A"; } > >

[PHP] Re: Dreaded Return-Path and mail()

2003-01-06 Thread Manuel Lemos
Hello, On 01/06/2003 09:37 AM, Monty wrote: Is there anything else I can try? I want to avoid changing this in the PHP.ini file because I don't want e-mail from all domains to look like it is coming from a single domain, if possible. I think you are doing something wrong because that works well

[PHP] Re: undefined constant?

2003-01-06 Thread Jean-Christian Imbeault
Markus JäNtti wrote: You forgot the double quotes ... Should be: if($_GET["test"] ... Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread Krzysztof Dziekiewicz
> I'm just deciding which DB to use for my projects and I'm not clear with one > thing... When considering a database for web, is MySQL good enough? I read > it only supports table locking, which is not very satisfying in such a > multiuser environment as the internet.. PostgreSQL has transactions

Re: [PHP] Error handling with multiple file uploads and sql

2003-01-06 Thread Jim
> Why not split it into 2 forms? insert, then attach pictures to the record. Its just not user-friendly enough, I have thought about it though. I think I'd rather risk the script hitting an error than compromise the user-friendliness.after all, the chance of a file not saving is miniscule as

Re: [PHP] Zend IDE vs. PhpEd

2003-01-06 Thread John Wells
I've tried phpEdit, but unfortunately it's a Windows-only IDE and has quite a few reproduceable bugs (I get an access violation almost everytime I use the latest version. I do all my development in Linux, so it won't cut it. Thanks! John -- PHP General Mailing List (http://www.php.net/) To

[PHP] php $query help

2003-01-06 Thread - \[ Paul Ferrie \] -
Here is my problem I have created a user login system (flash+php+mysql) And it just about works Here's the prob when i go to register as a new user the code wont properly check to see if the username already exsist's in the DB, I am pretty sure the problem lies in my first $query PHP:-

Re: [PHP] php $query help

2003-01-06 Thread Leif K-Brooks
What the heck is if($name == $name){ supposed to mean? I've never seen a variable that's not equal to itself... :-) - [ Paul Ferrie ] - wrote: > Here is my problem > >I have created a user login system (flash+php+mysql) >And it just about works > >Here's the prob when i go to register as a new u

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread Jim
>> is MySQL good enough? I read it only supports table locking, >> which is not very satisfying in such a multiuser environment >> as the internet.. Read all of http://www.mysql.com/doc/en/ANSI_diff_Transactions.html You'll find an explanation of what atomic operations are and how they compare to

Re: [PHP] changing uid/gid

2003-01-06 Thread Michael Sims
On Mon, 6 Jan 2003 02:03:05 -0500, you wrote: >Is it posible to change the current uid/gid in a script that is being running >? of course, having the user and password ? like running su. I don't believe that it's possible to do this inside PHP. I would suggest writing a seperate script to do all

[PHP] No Idea - Comparing Lines

2003-01-06 Thread Christopher J. Crane
Ok, this is the first time I will post a message without a line of code. I am not sure how to go about this task. So I will describe it and maybe someone will have some thoughts. I use PHP to connect to our many routers and get data using snmp. I have written a script that refreshes itself every 1

Re: [PHP] No Idea - Comparing Lines

2003-01-06 Thread Petre Agenbag
When you read the first line, split the data into it's components , then assign each value to a variable. Call them: $octet_1,$unix_time_1 etc. Now, start the loop. Inside the loop, read the next line, assign to $octet_2, $unix_time_2 etc. Do your calculations ( $answer = $octet_2 - $octet_1 etc. )

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread Jeffrey B. Ferland
> > I'm just deciding which DB to use for my projects and I'm not clear with one > > thing... When considering a database for web, is MySQL good enough? I read > > it only supports table locking, which is not very satisfying in such a > > multiuser environment as the internet.. > > PostgreSQL has t

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread John Wells
> See MySQL 4.x. They also have subselects now (HUGE!). As for an Well, not really. Nested queries are scheduled for 4.1. 4.0 is in gamma, 4.1 isn't even available for download as alpha. You'll have to go with Postgres for now if you need subselects. Regarding row locking and transactions, lo

[PHP] problems adjusting size of permissable file upload

2003-01-06 Thread Kenn Murrah
Greetings. My code to upload file is working fine with very small files but not with larger ones Here's what I've tried so far: 1. I've edited my php.ini file to read: upload_max_filesize = 100M 2. I've the following line to my html file: when i try to upload a file of about 5 megs, it

Re: [PHP] problems adjusting size of permissable file upload

2003-01-06 Thread Adam Voigt
There's also a max POST size variable in the php.ini, try upping that cause the default is 8 MB if I'm not mistaken. On Mon, 2003-01-06 at 09:46, Kenn Murrah wrote: Greetings. My code to upload file is working fine with very small files but not with larg

Re: [PHP] problems adjusting size of permissable file upload

2003-01-06 Thread Stephan Seidt
http://www.php.net/phpversion Kenn Murrah wrote: Greetings. My code to upload file is working fine with very small files but not with larger ones Here's what I've tried so far: 1. I've edited my php.ini file to read: upload_max_filesize = 100M 2. I've the following line to my html file

Re: [PHP] problems adjusting size of permissable file uploadRESOLVED

2003-01-06 Thread Kenn Murrah
that worked ... thanks !! - Original Message - From: Adam Voigt To: Kenn Murrah Cc: php list Sent: Monday, January 06, 2003 8:48 AM Subject: Re: [PHP] problems adjusting size of permissable file upload There's also a max POST size variable in the php.ini, try upping tha

Re: [PHP] problems adjusting size of permissable file upload

2003-01-06 Thread Jason Wong
On Monday 06 January 2003 22:46, Kenn Murrah wrote: > Greetings. > > My code to upload file is working fine with very small files but not with > larger ones [snip] > 2. I've the following line to my html file: > You can get rid of that. In most cases it serves no purpose (browsers don't

[PHP] mail() not working on Win2k

2003-01-06 Thread Rad Craig
I'm running under Win2k, new install of PHP(last week), I have been trying to test the mail() function, but it doesn't seem to work. I host my own mail server on the same machine and I know it works, has been for months, all other mail come/goes just fine. I don't have the default SMTP server for

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread Jason Sheets
Not to cause a flame war, but, MySQL and PostgreSQL are both excellent choices, MySQL tends to be a lighter less feature rich database while PostgreSQL tends to have more features, perform better under load, etc. You can read a lot about the two databases at google.com and also at postgresql.org.

RE: [PHP] mail() not working on Win2k

2003-01-06 Thread Collins, Robert
Do you have this line in your php.ini file? SMTP=;for win32 only -Original Message- From: Rad Craig [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:22 AM To: PHP Mailing List Subject: [PHP] mail() not working on Win2k I'm running u

RE: [PHP] mail() not working on Win2k

2003-01-06 Thread Rad Craig
yes, I've tried: SMTP = localhost SMTP = 127.0.0.1 SMTP = mail.mydomain.com SMTP = internal.ip.address None made any difference, so I've set it back to localhost. Rad... > -Original Message- > From: Collins, Robert [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 9:20 AM > To

Re: [PHP] No Idea - Comparing Lines

2003-01-06 Thread Christopher J. Crane
Thank you, I am going to try this now. "Petre Agenbag" <[EMAIL PROTECTED]> wrote in message 1041861992.1993.36.camel@DELL">news:1041861992.1993.36.camel@DELL... > When you read the first line, split the data into it's components , then > assign each value to a variable. > Call them: > $octet_1,$uni

[PHP] include directory?

2003-01-06 Thread Rad Craig
Where should this point to? Mine points to c:\php4\pear and I dont' have a pear directory under \php4. Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] loading a different web page ...

2003-01-06 Thread Kenn Murrah
i know this is an elementary question, but i can't even figure out what to search for at php.net i need php code that, when executed, takes you to a different web page, i.e. when browser goes to www.abc.com, he's automatically redirected to www.xyz.com ... thanks in advance for the help.

Re: [PHP] loading a different web page ...

2003-01-06 Thread Marco Tabini
Check the header() function--you want header ("Location: http://www.xyz.com";). It has to be outputted before any other output. Cheers, Marco -- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com! --- Begin Message

Re: [PHP] include directory?

2003-01-06 Thread Stephan Seidt
That depends on where you want to point it at :) In pear we always use something like : require_once 'Package/File.php' It's very usable to add the pear directory to php's include path, but only if you have it ;) Otherwhise, just don't think about that setting. Rad Craig wrote: Where should this

[PHP] system()

2003-01-06 Thread Richard Baskett
When using the system() function, let's say starting up a program, can that program start in the background while the rest of the page is parsed or does it have to wait until the system command has finished whatever it is doing? Rick "Dost thou love life? Then do not squander time; for that's the

[PHP] progress page

2003-01-06 Thread Edward Peloke
I am working on an application that will take data from the user and run then check through all the data to find matches. Instead of the user seeing a blank screen while the page is loading, I would like to pop up a page that says, processing, please wait and maybe have an icon like a progress bar

Re: [PHP] loading a different web page ...

2003-01-06 Thread - Edwin
Looking for this? http://www.php.net/manual/en/function.header.php - E "Kenn Murrah" <[EMAIL PROTECTED]> wrote: > i know this is an elementary question, but i can't even figure out > what to search for at php.net > > i need php code that, when executed, takes you to a different web > pa

Re: [PHP] emulate Post with redirect

2003-01-06 Thread Bobby Patel
I was trying to do it without cURL, since it's not on our server. I guess I'll just install it, and just use that. I checked out snoopy but when it gets down to it, it just uses cURL, so I rather just use cURL directly and cut the fat (of code that is). "Jason Wong" <[EMAIL PROTECTED]> wrote in me

Re: [PHP] system()

2003-01-06 Thread Krzysztof Dziekiewicz
> When using the system() function, let's say starting up a program, can that > program start in the background while the rest of the page is parsed or does > it have to wait until the system command has finished whatever it is doing? It is impossible. "system()" is not asynchronous. Only a comman

Re: [PHP] system()

2003-01-06 Thread - Edwin
Hello, Richard Baskett <[EMAIL PROTECTED]> wrote: > When using the system() function, let's say starting up a program, can > that program start in the background while the rest of the page is > parsed or does it have to wait until the system command has finished > whatever it is doing? You ca

[PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
hey guys could someone help me I have created a user login register system in flash with PHP and Mysql. Everthing Now works fine aprt from the time stamp of when the user registered. Code --- // Get current date & time $time = time(); // Connects to the Database. $

[PHP] session_start() in php.ini does not work on Microsoft IIS

2003-01-06 Thread Scott Fletcher
Hi! It have been a while that I don't remember how did I jogged MS-IIS's memory or something. Perhap a baseball bat will help. I'm not here to ask for help on writing script for session ID or stuffs like that. I'm here asking for help in jogging IIS's memory with a baseball bat. When I

RE: [PHP] mail() not working on Win2k

2003-01-06 Thread - Edwin
Hello, "Rad Craig" <[EMAIL PROTECTED]> wrote: > yes, I've tried: > > SMTP = localhost > SMTP = 127.0.0.1 > SMTP = mail.mydomain.com > SMTP = internal.ip.address > > None made any difference, so I've set it back to localhost. ...and of course you restarted your web server after each changes? H

[PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
I have been trying to get my email working. I have made some changes in the php.ini file in the Windoze directory, but when I run phpinfo() the changes I make aren't changing on what it prints out. I have logging turned on in my php.ini file, but phpinfo() says it's turned off. Any ideas? ==

RE: [PHP] mail() not working on Win2k

2003-01-06 Thread Rad Craig
Yes, I restart IIS after every change/test. I don't have another outside SMTP server to check it on. Will yahoo and others like that work for testing this? Rad... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:20 AM > To: [E

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Mat Harris
have you restarted apache? On Mon, Jan 06, 2003 at 10:26:13 -0600, Rad Craig wrote: > I have been trying to get my email working. I have made some changes in the > php.ini file in the Windoze directory, but when I run phpinfo() the changes > I make aren't changing on what it prints out. > > I ha

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Johannes Schlueter
On Monday 06 January 2003 17:26, Rad Craig wrote: > I have been trying to get my email working. I have made some changes in > the php.ini file in the Windoze directory, but when I run phpinfo() the > changes I make aren't changing on what it prints out. > > I have logging turned on in my php.ini f

[PHP] Need help detecting attached files

2003-01-06 Thread Don
Hi, I'm using a mailer class that allows for external file attachments. I was using the test: if ($HTTP_POST_FILES[$val]['size']) { Which worked fine. However, I wanted something more generic that works for POST or GET so I wrote the following code: $request = 'HTTP_' . getenv('REQUEST_METH

Re: [PHP] time stamp screwing up

2003-01-06 Thread Stephan Seidt
What sort of mysql field type did you use for dateAdded ? You need UNIX_TIMESTAMP (or sth like that) for unix timestamp format. - [ Paul Ferrie ] - wrote: hey guys could someone help me I have created a user login register system in flash with PHP and Mysql. Everthing Now works fine aprt from th

RE: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
I run IIS5, but yes, I restart it each time I make a change. > -Original Message- > From: Mat Harris [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:26 AM > To: Rad Craig > Cc: PHP Mailing List > Subject: Re: [PHP] php.ini - changes aren't taking? > > > have you restarted

RE: [PHP] php $query help

2003-01-06 Thread Cesar Aracena
First, try to complete that query by executing it. You do that by adding the next couple of lines right after the $query: $result = mysql_query($query); // supposing you already established the connection and that you use MySQL. $num_rows = mysql_num_rows($result); // To count how many matches whe

RE: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
Says it's using the one I'm changing. > -Original Message- > From: Johannes Schlueter [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:25 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] php.ini - changes aren't taking? > > > On Monday 06 January 2003 17:26,

[PHP] Re: time stamp screwing up

2003-01-06 Thread Scott Fletcher
Instead of the php function, 'time()'. Try 'date()'. Somethine like this --clip-- --clip-- You can customize the way you want the time format to be displayed. You can find it at http://www.php.net/manual/en/function.date.php and you'll see the option for dates and times. "- -" <[EMAIL PROTEC

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread - Edwin
..in other words, it's possible that you could be editing/making changes on the *wrong* php.ini file... - E __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:26, Rad Craig wrote: > I have been trying to get my email working. I have made some changes in > the php.ini file in the Windoze directory, but when I run phpinfo() the > changes I make aren't changing on what it prints out. > > I have logging turned on in my php.ini

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
nope it still comes up with all the zero's :( "Stephan Seidt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What sort of mysql field type did you use for dateAdded ? > You need UNIX_TIMESTAMP (or sth like that) for unix timestamp format. > > - [ Paul Ferrie ]

RE: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
Yes, I restart my WebServer (IIS 5) each time. Yes, I am editing the .ini file the phpinfo() reports it is using. Rad... > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:34 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php.ini - cha

Re: [PHP] progress page

2003-01-06 Thread - Edwin
Hello, [EMAIL PROTECTED] (Edward Peloke) wrote: > I am working on an application that will take data from the user and > run then check through all the data to find matches. Instead of the > user seeing a blank screen while the page is loading, I would like to > pop up a page that says, proce

[PHP] Creating an extra library

2003-01-06 Thread Tom Vandeplas
Hi all, this question may have been asked a couple of times already, unfortunately I can't find the answer. I have a complete PHP-webserver system up and running, based on a standard redhat PHP distribution. The only thing that is missing are the XSLT funtions. I managed to build php on a differe

[PHP] Re: php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
I'm having the same problem with II5 as you do. So, we're in the same boat. I only have one php.ini on Windows and I'm using hte same file path. I even rebooted the machine. I don't see how was I able to make it work before but not now Scott F. "Rad Craig" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] time stamp screwing up

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:19, - \[ Paul Ferrie \] - wrote: > hey guys could someone help me > I have created a user login register system in flash with PHP and Mysql. > Everthing Now works fine aprt from the time stamp of when the user > registered. > > Code ---

Re: [PHP] progress page

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:33, Edward Peloke wrote: > I am working on an application that will take data from the user and run > then check through all the data to find matches. Instead of the user > seeing a blank screen while the page is loading, I would like to pop up a > page that says, pro

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
So Jason what your saying is this $query = "INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES > (NULL, '$name', '$pass', '$email', '$time')"; Should be $query = "INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES > (NULL, '$name', '$pass', '$email', NOW())"; ?? cheers

[PHP] Re: session_start() in php.ini does not work on Microsoft IIS

2003-01-06 Thread Christoph Grottolo
Scott Fletcher wrote: > $salt="C4155DDAF13A529594FB7C2541F4D4C7"; > session_start($salt); >> > > This is the error messages > > --clip-- > Warning: open(/tmp\sess_C4155DDAF13A529594FB7C2541F4D4C7, O_RDWR) > failed: m (2) in D:\DealPack\... on line 24 > > Warning: open(/tmp\sess_C4155D

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:43, Rad Craig wrote: > Yes, I restart my WebServer (IIS 5) each time. > > Yes, I am editing the .ini file the phpinfo() reports it is using. Gawd, I hate it when people top-post. > > -Original Message- > > From: Jason Wong [mailto:[EMAIL PROTECTED]] > > Sent:

Re: [PHP] time stamp screwing up

2003-01-06 Thread Stephan Seidt
yep i guess that, so NOW() is a mysql function. - [ Paul Ferrie ] - wrote: So Jason what your saying is this $query = "INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES (NULL, '$name', '$pass', '$email', '$time')"; Should be $query = "INSERT INTO contacts (id, name, pass, email

Re: [PHP] time stamp screwing up

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:49, - \[ Paul Ferrie \] - wrote: > So Jason what your saying is this > > $query = "INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES > > > (NULL, '$name', '$pass', '$email', '$time')"; > > Should be > > $query = "INSERT INTO contacts (id, name, pass, email

RE: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:55 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php.ini - changes aren't taking? > > > On Tuesday 07 January 2003 00:43, Rad Craig wrote: > > Yes, I restart my WebServer (IIS 5) eac

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Christoph Grottolo
Rad Craig wrote: > Yes, I restart my WebServer (IIS 5) each time. > > Yes, I am editing the .ini file the phpinfo() reports it is using. > >>> I have been trying to get my email working. I have made some >>> changes in the php.ini file in the Windoze directory, but when I >>> run phpinfo() the cha

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
That is correct, there's no PHP fault. It's is just IIS that aren't doing what it is suppose to be doing. I'm still working on it. "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Rad Craig wrote: > > Yes, I restart my WebServer (IIS 5) ea

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
The funny thing is that when IIS is freshly installed on a new O/S. It is very simple to make PHP work. Then 6 months later, IIS lose itself and have harder time working with PHP.INI. "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Rad Cra

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
So Is NOW() a mysql function? "Stephan Seidt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > yep i guess that, so NOW() is a mysql function. > > - [ Paul Ferrie ] - wrote: > > So Jason what your saying is this > > > > $query = "INSERT INTO contacts

RE: [PHP] mail() not working on Win2k

2003-01-06 Thread - Edwin
"Rad Craig" <[EMAIL PROTECTED]> wrote: [snip] > I don't have another outside SMTP server to check it on. Will yahoo > and others like that work for testing this? [/snip] Yes and no. I think this depends on the server. With Yahoo? No, it wouldn't/shouldn't work... - E __

Re: [PHP] No Idea - Comparing Lines

2003-01-06 Thread Christopher J. Crane
Ok here is what I did but it does not do anything. I verified that is opening the file ok and everything, but it shows nothing. It doesn't even produce an error. I am sure there is an easier way than looping twice, but this is how I have it for now. $Lines = array(); $TempDir = "tempdata"; $DataFr

Re: [PHP] Need help detecting attached files

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 03:26, Don wrote: > Hi, > > I'm using a mailer class that allows for external file attachments. I was > using the test: > > if ($HTTP_POST_FILES[$val]['size']) { > > Which worked fine. However, I wanted something more generic that works for > POST or GET How do you me

Re: [PHP] No Idea - Comparing Lines

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 01:12, Christopher J. Crane wrote: > Ok here is what I did but it does not do anything. > I verified that is opening the file ok and everything, but it shows > nothing. It doesn't even produce an error. I am sure there is an easier way > than looping twice, but this is ho

Re: [PHP] time stamp screwing up

2003-01-06 Thread - Edwin
"- [ Paul Ferrie ] -" <[EMAIL PROTECTED]> wrote: > So > > Is NOW() a mysql function? Well, you can check for yourself ;) It should be somewhere around here: http://www.mysql.com/doc/en/Date_and_time_functions.html - E ...[snip]... __

[PHP] Re: php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
Yep! I changed the working email address on my php.ini to a different email address, then stopped, started the IIS and test send myself an email. It doesn't go to the new email address and it stuck to the old email address. It is a IIS problem, not php.ini problem because it's not updating itself

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
Well i am still getting all the zero's : ( : ( "- Edwin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "- [ Paul Ferrie ] -" <[EMAIL PROTECTED]> wrote: > > So > > > > Is NOW() a mysql function? > > Well, you can check for yourself ;) > > It should

[PHP] Dictionary File

2003-01-06 Thread Adam Voigt
Anyone know where I can download an easily parse-able (with PHP) dictionary file? Thanks. -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc signature.asc Description: This is a digitally signed message part

[PHP] Session ID changes

2003-01-06 Thread [-^-!-%-
Hello all, I need some clarification. To my understanding, each visit to php site creates a UNIQUE Session ID (SID). And, that ID stays constants until the browser is shutdown, or the session is specifically destroyed. Is this correct? If not, then please advise. I'm trying to develop a cookie-l

[PHP] Re: Creating an extra library

2003-01-06 Thread J Smith
Since there's no PHP XSLT extension RPM from Red Hat (as far as I can tell), the easiest way to build it would probably be... 1. download the PHP source code. 2. in the ext/xslt directory, run phpize. This is assuming the Red Hat RPM installed PEAR and it's utilities. 3. Run ./configure, mak

[PHP] Defaults in drop down list...

2003-01-06 Thread Steven Kallstrom
I have a drop down list with all fifty states. very common. I conjured up a way to store the value when you return to edit the form, but there most be an easier way either in html, or in php. Here is what I currently have. Alabama Alaska Arizona

Fw: [PHP] time stamp screwing up

2003-01-06 Thread Rick Emery
show us your database table structure (the whole thing). the NOW() will always work with a "date" or "timestamp" field - Original Message - From: "- [ Paul Ferrie ] -" <[EMAIL PROTECTED]> To: <> Sent: Monday, January 06, 2003 11:28 AM Subject: Re: [PHP] time stamp screwing up Well i am

[PHP] Fw: Session ID changes

2003-01-06 Thread Scott Fletcher
"[-^-!-%-" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>. .. > > Hello all, > > I need some clarification. To my understanding, each visit to php site > creates a UNIQUE Session ID (SID). And, that ID stays constants until the > browser is shutdown, or the session is specificall

[PHP] Far out!!!! More IIS problems.....

2003-01-06 Thread Scott Fletcher
I tried various methods on IIS after configuring hte PHP.INI. Such as shutting down IIS, restarting IIS and rebooting hte machine. Here's one latest addition that I found to be very far out!! What I did was I renamed the php.ini to php1.ini and goes throught the procedures. Guess what the

[PHP] Unable to run any PHP script with WinXP/IIS. Please help.

2003-01-06 Thread David Scott
When attempting to run any PHP script, I get the message: Unknown(): Cannot open 'C:\WINDOWS\system32\inetsrv' for reading And then I get the windows error message: PHP Script Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience. Any ideas here? -- PHP

RE: [PHP] No Idea - Comparing Lines

2003-01-06 Thread Ford, Mike [LSS]
> -Original Message- > From: Christopher J. Crane [mailto:[EMAIL PROTECTED]] > Sent: 06 January 2003 17:12 > > Ok here is what I did but it does not do anything. > I verified that is opening the file ok and everything, but it > shows nothing. > It doesn't even produce an error. I am sure

[PHP] Re: Unable to run any PHP script with WinXP/IIS. Please help.

2003-01-06 Thread David Scott
Eh, nevermind on this one. I uninstalled PHP and then reinstalled it. I am no longer getting this error. I have another problem now that I will mention in a new post. "David Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When attempting to run any PHP sc

[PHP] No input file specified. Please help.

2003-01-06 Thread David Scott
I am running this file from a tutorial: Something Useful Tutorial When this file is run from my webserver (IIS) I get a page that says: No input file specified. What can I do to get this working? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Designing in PHP4 with PHP5 in mind...

2003-01-06 Thread John Wells
I'm preparing for a project in which I'll be porting and redesigning a large, ugly Visual Basic/Sql Server app to a PHP/Mysql or Postgresql based web application. I'd like to code in a way that will be at the same time easily ported to PHP5 and that will take advantage of PHP5's new object handlin

  1   2   >