Re: [PHP] MsSQL PASSWORD()

2002-02-13 Thread val petruchek
Works! Great! Nobody (even me!) can not understand user passwords! Thanx! Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: Michael Sims [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Tuesday, February

[PHP] file uploading

2002-02-13 Thread Uma Shankari T.
Hello, I have written code to upload files from the browser itself.But only specified user can upload files for specific directory.That one also i have done.I have given permission to upload files to a directory.If there are any subdirectory how will write the code to upload files in the

[PHP] SMTP Mail

2002-02-13 Thread Liam MacKenzie
Hi all, Just wondering if anyone out there's worked out how to send emails through an SMTP server using PHP. Cheers, Liam

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

2002-02-13 Thread L. Hoeneveld
We use the header() function to display a html page like this: header(Location: $mail_error_page?CODE=$CODE); But instead of showing the variable $CODE we would like to hide it. Just like when you POST variables to a HTML-page. Is there any way to do this? -- Regards, Léon Hoeneveld The

Re: [PHP] SMTP Mail

2002-02-13 Thread Liam MacKenzie
Whoops, my bad! If there's anyone out there that needs to use SMTP: http://phpclasses.upperdesign.com/browse.html/package/14 Gotta love it when you answer your own question ;-) - Original Message - From: Liam MacKenzie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February

[PHP] php

2002-02-13 Thread Uma Shankari T.
Is there any function to give write permission to one particular user for entire directory using php.. Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Difference between cookie and session

2002-02-13 Thread Ryan F. Bayhonan
We had a discussion this morning in our office on the differences between cookie and session. I just would like to ask the body if your could enlighten me more on this. And another thing, can cookie be a carrier of some virus across the internet? Thanks, Ryan

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Well, I did this: [mail function] SMTP=mindspring.com sendmail_form=[EMAIL PROTECTED] ...rest I left unchanged... Still doesn't work. :( BTW I'm using Windows at the moment to develop. That SMTP value looks a

[PHP] vpopmail support

2002-02-13 Thread Mike Crosland
Hi, I'm trying to build php 4.1.1 from the FreeBSD ports colloection with vp[opmail support. I've tried tinkering with the Makefile but with no success. Can anyone give me a few pointers? Mikle Crosland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Php contract dublin ireland

2002-02-13 Thread Adrian Murphy
Hi dublin php people here's a 1 month contract i can't do. PHP /MySQL Vacancy Many thanks for registering your details with us during this last 12 months . I have outlined below details of an urgent PHP/MySQL contract which you may be interested in. If you feel the role is suitable please

[PHP] Problem

2002-02-13 Thread Roman Duriancik
How to delete from text documents mark end of line. Example: In file I have some formatted text document with paragraphs, but i need convert this document to new document without paragraphs (all text document in one paragraph). Thanks for yours help. roman -- PHP General Mailing

[PHP] Getting days after last login. Date problem

2002-02-13 Thread Andy
Hi there, I would like to find out the changes on content after a members last login. The format of the date stored in the member db is e.g.: Feb 13, 2002 The format of e.g pictures uploaded is: 2000-02-13 How can I search for pictures which are uploaded since the members last login. Is ist

[PHP] Error Installing PHP as CGI with gmp

2002-02-13 Thread Phuoc Diec
Hello: When I installed PHP as Apache module with '--with-gmp' everything was OK. But I got error when installing PHP as CGI with the same configuration as I used to install PHP as Apache module. The error message is: /bin/sh /data/software/php/php-4.1.1/libtool --silent --mode=link gcc -I.

[PHP] printing files

2002-02-13 Thread John Gurley
Just a quick question, is there a way to echo in your php code lines of a file that you specify. i.e. you want to output lines 1,4,7 of a certain text file Thanks John _ Join the world’s largest e-mail service with MSN Hotmail.

Re: [PHP] printing files

2002-02-13 Thread Edward van Bilderbeek - Bean IT
just put the lines in an array, each array element contains a line... and then just print the specified array elements... Edward - Original Message - From: John Gurley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 13, 2002 12:55 PM Subject: [PHP] printing files

Re: [PHP] printing files

2002-02-13 Thread Henning Sprang
Hy, John Gurley wrote: Just a quick question, is there a way to echo in your php code lines of a file that you specify. i.e. you want to output lines 1,4,7 of a certain text file use the fopen and fread functions, to read lines from a file, only put the wanted lines into a string and

Re: [PHP] Problem

2002-02-13 Thread Girish Nath
Hi Use the str_replace function like this : $myText = str_replace (\n, , $myText); This will remove all line breaks from $myText http://www.php.net/manual/en/function.str-replace.php Regards Girish -- www.girishnath.co.uk - Original Message - From: Roman Duriancik [EMAIL

[PHP] mail headers

2002-02-13 Thread Stalmannen
Hej! I have a question. I send mail from a php-script with the mail()-function. However the smtp server I use has a wrong time set. Can I set the sent-time through the headers so I take my web-servers time? and how then? Thankfull for help. /Kalle

Re: [PHP] Getting days after last login. Date problem

2002-02-13 Thread Girish Nath
Hi You may be able to convert the member db date to a unix timestamp using strtotime() http://www.php.net/manual/en/function.strtotime.php Then use one of the other functions at : http://www.php.net/manual/en/ref.datetime.php to convert the pictures db date also to unix timestamp, then

Re: [PHP] php

2002-02-13 Thread Tyler Longren
you could just: exec(chown user.group directory); That is, if you're on a unix box of some type. Tyler - Original Message - From: Uma Shankari T. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 13, 2002 3:29 AM Subject: [PHP] php Is there any function to give

Re: [PHP] printing files

2002-02-13 Thread Dimitris Kossikidis
The only way that works fine for me is to read a file char by char. When you read the \n character add the readen chars in array's position. Here is an example $fp = fopen (myfile,r); $txtarr = array();// array to store each line of your file $linenum = 1; // just a counter

Re: [PHP] SMTP Mail

2002-02-13 Thread DL Neil
Liam, Check out http://phpguru.org/ =dn - Original Message - From: Liam MacKenzie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 13 February 2002 09:21 Subject: Re: [PHP] SMTP Mail Whoops, my bad! If there's anyone out there that needs to use SMTP:

[PHP] Re: Difference between cookie and session

2002-02-13 Thread Chris Skinner
The answer that I have come to understand is that sessions are more secure than cookies in as that the information is stored on the server side instead of the client side. This way it is harder to steal, alter or intercept. The other reason is that users can even reject cookies, thus disallowing

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

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

Re: [PHP] printing files

2002-02-13 Thread val petruchek
$data = file ($certain_file); echo {$data[0]}\n; echo {$data[3]}\n; echo {$data[7]}\n; Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: John Gurley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Printing files

2002-02-13 Thread val petruchek
$data = file ($certain_file); echo {$data[0]}\n; echo {$data[3]}\n; echo {$data[7]}\n; Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: John Gurley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] URL encoding

2002-02-13 Thread David Orn Johannsson
Ok the thing is I’m getting the information from a mysql db and it is being fetched by a Flash app and then it is used to print out the info in a fancy way. I am trying to url encode special Icelandic charaters such as (“þ” ASCII 0222 or the Latin Letter “Thorn”) if you are able to see it but

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

2002-02-13 Thread V
Ok, but i'm using sessions. My users log in the system, there is no anonymous navigation. So i was thinking something about tracking the number of active sessions. I don't know how to do that. ¿Any ideas?. Thanks On 12/Feb/2002 09:22:40, Rick Emery wrote: Store the user count to a database

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

2002-02-13 Thread Rick Emery
I don't know if there is a method to tracke active sessions on the server, other than the method I suggest. The problem I mention is that when a user is in your web site (having logged in) but does not log-out. That is, the user simply types in another web-site outside of your site or selects a

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

2002-02-13 Thread Erik Price
Can you pass a querystring along in header(Location: n)? This is my code: // get name of current page $errorcode = basename($_SERVER['PHP_SELF']); // send them to error page with previous page's name in $_GET array header(Location: domain.com/errorpage.php?errorcode=$errorcode); See what I'm

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 can i count the number of users logged in my system

2002-02-13 Thread Antonio Vicente Maturana
Ok, thanks On 13/Feb/2002 08:42:05, Rick Emery wrote: I don't know if there is a method to tracke active sessions on the server, other than the method I suggest. The problem I mention is that when a user is in your web site (having logged in) but does not log-out. That is, the user simply

[PHP] Re: Implement @-domains with PHP?

2002-02-13 Thread Christian Blichmann
Hi folks! To end the discussion of how my posting has to be understood, I will further explain my idea: In Germany there's a web-space provider called 11 puretec (http://www.puretec.de/). They offer a feature called @-domain: Every time a user enters something like http:[EMAIL

[PHP] Convert a string to an array w/o spliting or exploding

2002-02-13 Thread brendan conroy
Hi, thanks for reading this novice question, I'd be grateful if someone could email me and tell me if its possible to convert a string to an array whithout using the split[] or explode[] function, as these aren't appropriate for the task. I cant find any ino on php.net, Thanks, Bren

RE: [PHP] URL encoding

2002-02-13 Thread Jill . Baker
Okay - looks like you are using a weird character mapping. Let's be clear about the names of encoding standards, so we don't get confused. There is no such thing as ASCII 0222. ASCII characters are seven bits wide. Period. Their range is hex 00 to 7F. Anything outside of that range is, by

[PHP] Newbie - Session Help

2002-02-13 Thread Richard O'Flaherty
I have a log-in form on my site that registers a session for the username and password entered, on my other pages i want it to include a file on the page if the session contains a value, but if its not then i want it to include a different file. All my attempts at this have failed, can anyone

RE: [PHP] Convert a string to an array w/o spliting or exploding

2002-02-13 Thread Jon Haworth
Hi, thanks for reading this novice question, I'd be grateful if someone could email me and tell me if its possible to convert a string to an array whithout using the split[] or explode[] function, as these aren't appropriate for the task. What are you trying to achieve? Why isn't

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

2002-02-13 Thread L. Hoeneveld
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 and I wonder if a session-ID can be used then. But maybe a cookie is an idea... In any case thanks and regards, Léon Hoeneveld Rick

RE: [PHP] empty session files stacking up in /tmp on solaris

2002-02-13 Thread Johnson, Kirk
Set the session.gc_probability to a positive value between 1 and 100. This setting is the proportion of page requests on which the session file garbage collection routine is launched, e.g., if you set it to 1, then on 1 out of every 100 page requests the garbage collection routine will delete old

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

2002-02-13 Thread Erik Price
On Wednesday, February 13, 2002, at 09:53 AM, Rick Emery wrote: try: header(Location: domain.com/errorpage.php?errorcode=.urlencode($errorcode)); I tried that, and it didn't work. But it does raise a question, which I'll ask in a minute. I also tried doing $errorcode =

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

2002-02-13 Thread Rick Emery
something like: setcookie(cookiename,cookievalue); header( Location: $mail_error_page); exit; in mail_error_page: ?php $mycookie = $HTTP_COOKIE_VARS['cookiename']; ? The cookie will exist until the web browser is closed.. -Original Message- From: L. Hoeneveld [mailto:[EMAIL

[PHP] pack problem

2002-02-13 Thread Martin Wickman
Hi I am having some problems with the 'pack' function. Some values just doesnt come out right. For instance, 0xa0 turns into x81a0. Here is some code I used for testing. It packs the value, prints it. Then unpacks the value and prints it # This is wrong, but note that unpack gives the

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

2002-02-13 Thread Rick Emery
What error did you receive? What was displayed? Please show your code; I hope there was no line break as shown below. Unfortunately, my mail client breaks lines after about 40 cchars. I agree with you that it is handled as any string. -Original Message- From: Erik Price

RE: [PHP] Newbie - Session Help

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

Re: [PHP] trouble with headers

2002-02-13 Thread Erik Price
On Tuesday, February 12, 2002, at 09:10 PM, Miles Thompson wrote: You're right Erik. Subtle, ain't it? On the other hand, look how accepting browsers are of malformed HTML. I'm inclined to think that today they see the HTML tag and 'think': So, we assumed HTML anyway. True! I

Re: [PHP] PHP Work in New York

2002-02-13 Thread Erik Price
On Tuesday, February 12, 2002, at 09:33 PM, Jason Murray wrote: I figure if I'm forced to go M$ I'd much rather use C# that VBScript... C# actually seems to be getting quite a lot of positive mentions in the *nix world at the moment. I'm far from a MS proponent, but basing .NET on XML

[PHP] PHP GD Library

2002-02-13 Thread SpyProductions Support Team
I installed and recompiled PHP on my Apache server with the GD libs as well as zlib and png libs. I have a test script from the GD web site, but it doesn't seem to work. The test script is at: http://www.spidermanzone.com/testgd2 And runs at: http://www.spidermanzone.com/testgd2.php The

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

2002-02-13 Thread bvr
If you really want, you can emulate a form POST by using the CURL library. Please refer to the manual for more info on CURL. bvr. But instead of showing the variable $CODE we would like to hide it. Just like when you POST variables to a HTML-page. Is there any way to do this? -- PHP

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

2002-02-13 Thread Erik Price
On Wednesday, February 13, 2002, at 04:04 AM, L. Hoeneveld wrote: We use the header() function to display a html page like this: header(Location: $mail_error_page?CODE=$CODE); But instead of showing the variable $CODE we would like to hide it. Just like when you POST variables to a

[PHP] PHP GD - Nevermind! Thanks!

2002-02-13 Thread SpyProductions Support Team
Thank you to anyone looking into my question, but it is moot; seems the two scripts I was given initially are just buggy. I found one that isn't, and it works fine. Anyone have any idea what would be a practical application of GD nowadays? Doesn't seem to be practical to me. -Mike --

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

2002-02-13 Thread Thomas Edison Jr.
Hi, Ok, considering the FULL PATH and the QUOTES thingy, this is the code i'm applying : ?php $db = mysql_connect(localhost,mydb,pwd); mysql_select_db(mydb,$db); $query = LOAD DATA INFILE 'D:\Apache Group\Apache\htdocs\mjimm\php3\tabledata\fanlist.csv' INTO fanlist_try FIELDS TERMINATED BY ','

Re: [PHP] Re: Difference between cookie and session

2002-02-13 Thread Erik Price
On Wednesday, February 13, 2002, at 08:35 AM, Chris Skinner wrote: The answer that I have come to understand is that sessions are more secure than cookies in as that the information is stored on the server side instead of the client side. This way it is harder to steal, alter or

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

2002-02-13 Thread Thomas Edison Jr.
DL Neil, OK buddy, let me be more than frank with you.. i don't think i've been quite as confused and having the expression what the hell are you tryin 2 say on my lips in a while, as i had when i read your mail. Hmm.. i do hope u can help me though.. T. Edison jr. Further to David's

[PHP] Cheap, PHP, mySQL hosting!

2002-02-13 Thread Thomas Edison Jr.
Hi, Lookin for about 50 Megs with php4, mySQL and the works. Any economical hosts?? thanks.. t. edison jr __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List

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

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

Re: [PHP] Convert a string to an array w/o spliting or exploding

2002-02-13 Thread Erik Price
On Wednesday, February 13, 2002, at 10:19 AM, brendan conroy wrote: Hi, thanks for reading this novice question, I'd be grateful if someone could email me and tell me if its possible to convert a string to an array whithout using the split[] or explode[] function, as these aren't

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

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

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

2002-02-13 Thread Thomas Edison Jr.
Oh yes, definately. With the appropriate columns too. --- Rick Emery [EMAIL PROTECTED] wrote: Has fanlist_try table been created? -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 10:54 AM To: Jason Murray Cc: [EMAIL

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

2002-02-13 Thread Boaz Yahav
Check out : http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm This is your one stop shop for hosting. WeberDev.com is hosted there and I can tell you that their service is amazing. They are fast, reliable and more than anything, very professional (specially in PHP / MySQL).

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

2002-02-13 Thread Gary
Thomas Edison Jr. wrote: Hi, Lookin for about 50 Megs with php4, mySQL and the works. Any economical hosts?? thanks.. t. edison jr __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com

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

2002-02-13 Thread Erik Price
On Wednesday, February 13, 2002, at 10:37 AM, Rick Emery wrote: What error did you receive? What was displayed? Please show your code; I hope there was no line break as shown below. Unfortunately, my mail client breaks lines after about 40 cchars. Well, to post the actual code would

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 AM To:

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

2002-02-13 Thread Darren Gamble
Good day, The proper syntax is: INTO TABLE table and not: INTO table Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Thomas Edison Jr.

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

2002-02-13 Thread Jackson Miller
I have been using http://www.cedant.com for about a year now. They have different packages for different needs. -Jackson -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Cheap, PHP,

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

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

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

2002-02-13 Thread Thomas Edison Jr.
Hi Rick, Thanks for the support! This is the mySQL Table Structure : $sql = CREATE table fanlist_try (ID bigint(21) NOT NULL auto_increment, name varchar(50), email varchar(70), age int(10), sex varchar(20), country varchar(50), PRIMARY KEY (ID)); And these are few lines from the fanlist.csv

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

2002-02-13 Thread val petruchek
Hi Rick, Thanks for the support! This is the mySQL Table Structure : $sql = CREATE table fanlist_try (ID bigint(21) NOT NULL auto_increment, name varchar(50), email varchar(70), age int(10), sex varchar(20), country varchar(50), PRIMARY KEY (ID)); sex varchar(20) sounds great. why do

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

2002-02-13 Thread Thomas Edison Jr.
Hi Darren, Actually your code worked, those errors did go way by putting in INTO TABLE .. but there's a very funny new problem. I get this error on the page : error:Access denied for user: 'mjimm@localhost' (Using password: YES) And believe me, i'm using the correct password/user! The same

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

2002-02-13 Thread Thomas Edison Jr.
Val, quite frankly, i'm not quite sure i know what you're talking about. i don't think i know enum() function!! T. Edison jr. --- val petruchek [EMAIL PROTECTED] wrote: Hi Rick, Thanks for the support! This is the mySQL Table Structure : $sql = CREATE table fanlist_try (ID

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

2002-02-13 Thread Michael R @ Spy
You could try: www.spyproductions.com But I'm not biased! :) -Mike -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Cheap, PHP, mySQL hosting! Hi, Lookin for about

Re: [PHP] Getting days after last login. Date problem

2002-02-13 Thread Matt Moreton
You can convert both date formats into a UNIX timestamp, then do a picturedate logindate. To convert them into a unix timestamp you need to use strtotime function http://www.php.net/manual/en/function.strtotime.php $ldate = strtotime($logindate); $pdate = strtotime($picturedate);

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

2002-02-13 Thread val petruchek
Enum is not a function; it's a mysql data type. It's very useful when field values are from the finite set. Examples CREATE table fanlist_try (ID bigint(21) NOT NULL auto_increment, name varchar(50), email varchar(70), age int(10), sex enum('male','female'), country varchar(50), PRIMARY KEY

[PHP] Re: mail headers

2002-02-13 Thread Corey Bakalarski
Stalmannen [EMAIL PROTECTED] wrote in message 001f01c1b485$ea5dcb30$6900a8c0@web">news:001f01c1b485$ea5dcb30$6900a8c0@web... Hej! I have a question. I send mail from a php-script with the mail()-function. However the smtp server I use has a wrong time set. Can I set the sent-time through the

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

2002-02-13 Thread Thomas Edison Jr.
Val, hey thanks.. that's a very interesting data type. wonder why i never knew it. thanks a bunch. i'll def. be using it more often now. the current problem at hand of getting the : error:Access denied for user: 'mjimm@localhost' (Using password: YES) is really jamming the thought process. i

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

2002-02-13 Thread Alastair Battrick
Lookin for about 50 Megs with php4, mySQL and the works. Any economical hosts?? You could try: http://www.datasnke.co.uk And I am biased... Alastair Lightwood Consultancy Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-02-13 Thread val petruchek
Enum is not a function; it's a mysql data type. It's very useful when field values are from the finite set. Examples CREATE table fanlist_try (ID bigint(21) NOT NULL auto_increment, name varchar(50), email varchar(70), age int(10), sex enum('male','female'), country varchar(50), PRIMARY

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

2002-02-13 Thread Darren Gamble
Good day, That's difficult to say, as I'm not familiar with running MySQL on Windows. You should print out $query, and then make sure the file exists and that the MySQL server has the permissions to read it. Remember that it's the server that's reading in the file, not whatever the client is

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

2002-02-13 Thread Matt Schroebel
Me thinks you need to have file privileges. See http://www.mysql.com/doc/P/r/Privileges_provided.html -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] the current problem at hand of getting the : error:Access denied for user: 'mjimm@localhost' (Using password:

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread Dr. Shim
Actually, I don't really know what to put in it. I thought that's what it wanted. What does it want? David Robley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Well, I did this: [mail function] SMTP

[PHP] Freebsd, php and mail

2002-02-13 Thread Matt Schroebel
I figured this one out, so I thought I'd put it in the archives ... I just spent a few hours pulling my hair out because the mail sent by mail() was coming from 'unprivileged user' on my freebsd box. It worked fine for another site on the same box. It turned out that I has mistakenly

Re: [PHP] PHP Work in New York

2002-02-13 Thread Casey Allen Shobe
Why not start a php-jobs mailing list? It would be an ideal place for employers and job seekers alike, just like the SecurityFocus security-jobs mailing list. - Casey On Tuesday 12 February 2002 17:28, you wrote: On Tuesday, February 12, 2002, at 05:17 PM, NDPTAL85 wrote: You know at most

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

[PHP] Security Issue?!

2002-02-13 Thread Fredrik Arild Takle
Hi, I found a weekness in one of my local dev projects today. php.ini is set ut with cookies off in session handling. I asked another user to send me his url when logged in, I copied and pasted it and then I was logged in as him. What should I do? Turn cookies on? Or write ip to mysql? or...?

Re: [PHP] Convert a string to an array w/o spliting or exploding

2002-02-13 Thread Lars Torben Wilson
On Wed, 2002-02-13 at 07:19, brendan conroy wrote: Hi, thanks for reading this novice question, I'd be grateful if someone could email me and tell me if its possible to convert a string to an array whithout using the split[] or explode[] function, as these aren't appropriate for the task.

[PHP] Php is serversided????

2002-02-13 Thread Morten Nielsen
Hi, I don't understand... Everybody says PHP is server based, so everything is calculated before the user sees it in his browser. But if that is the case how is it then possible to use if-statements. Wouldn't that mean that the if-statement has been executed before the user makes a selection?

[PHP] php dies every 2 days

2002-02-13 Thread Ice
Hi, everybody, I have a problem which is really annoying. MY php dies every 2 days. I'm not a programmer, I'm more as a system administator I have the following configuration on my machine Linux RedHat 7.2 php-4.0.6-7.i386. As soon as I reinstall php package (RPM) it works for the next few

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

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

RE: [PHP] php dies every 2 days

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

Re: [PHP] Convert a string to an array w/o spliting or exploding

2002-02-13 Thread Lars Torben Wilson
On Wed, 2002-02-13 at 09:06, Erik Price wrote: On Wednesday, February 13, 2002, at 10:19 AM, brendan conroy wrote: Hi, thanks for reading this novice question, I'd be grateful if someone could email me and tell me if its possible to convert a string to an array whithout using the

[PHP] GOOD, EASY part-time jobs for webmasters!!!

2002-02-13 Thread Balazs Laszlo
Hi! You can find many part-time jobs for you at: http://endi.go.ro/ml.htm __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2002-02-13 Thread Lars Torben Wilson
On Wed, 2002-02-13 at 11:56, Rick Emery wrote: 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. Say what?

[PHP] Problem with CVS access

2002-02-13 Thread David McMahon
I can't get the Zend and TSRM directories from CVS: $ cvs -d :pserver:[EMAIL PROTECTED]:/repository co Zend TSRM cvs server: Updating Zend cvs server: cannot open directory /repository/Zend: Permission denied cvs server: skipping directory Zend cvs server: Updating TSRM cvs server: failed to

[PHP] Re: mail headers

2002-02-13 Thread Renato Salvatore Moya L.
Hi, i'm writte from Chile. If you writte to little php-script for send mail, what send you mail ?. I question you, because i'm writte a tipical php-script tell a friend, but i have problems with getenv(HTPP_REFERER), because send only my https fixed. Renato. Stalmannen ha escrito: Hej!

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

2002-02-13 Thread Keith V. (Vance Consulting LLC)
Just remember that what the user sees is always just static html. If some decision needs to happen the user has to send some sort of request of the web server to do something, and that's where PHP does its thing. For client-side stuff, like Java Applets. There is actually code running on the

Re: [PHP] Re: mail headers

2002-02-13 Thread Keith V. (Vance Consulting LLC)
On 13 Feb 2002 at 17:33, Renato Salvatore Moya L. wrote: Hi, i'm writte from Chile. If you writte to little php-script for send mail, what send you mail ?. I question you, because i'm writte a tipical php-script tell a friend, but i have problems with getenv(HTPP_REFERER), because send

RE: [PHP] Re: mail headers

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

RE: [PHP] Re: mail headers

2002-02-13 Thread Keith V. (Vance Consulting LLC)
On 13 Feb 2002 at 14:40, Rick Emery wrote: 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) Yeah, and if your mail function is being called within a function, just

[PHP] Sessions?

2002-02-13 Thread Morten Nielsen
Hi, I have a site where users should log in. What is smartest/most secure way of handling this? Should I use sessions, HTTP authentication or just pass the parameters when I call a new page? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2002-02-13 Thread Lars Torben Wilson
On Wed, 2002-02-13 at 07:34, Erik Price wrote: On Wednesday, February 13, 2002, at 09:53 AM, Rick Emery wrote: try: header(Location: domain.com/errorpage.php?errorcode=.urlencode($errorcode)); First to the original question: yes, querys are allowed in Location headers, according to

Re: [PHP] trouble with headers

2002-02-13 Thread Lars Torben Wilson
On Tue, 2002-02-12 at 17:57, Erik Price wrote: Sorry, I debugged it myself. Don't add extra whitespace lines after you jump out of PHP mode (for instance, at the end of an include file, don't have any extra lines after the '? PHP-jump-out mark'. The extra lines at the bottom of the

  1   2   >