[PHP] Re: odd problem

2003-03-24 Thread rush
Sebastian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] having a little problem. I know i have a connection to the mysql database but for some reason i can't get this to update the database when submit is clicked. perhaps i am overlooking something.. Here is part of the script: one

[PHP] PHP Send Mail Main headers.

2003-03-24 Thread Philip J. Newman
$headers .= MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; $headers .= From: .$from_name. .$from_address.\r\n; $headers .= Reply-To: .$from_name. .$from_address.\r\n; $headers .= X-Priority: 3\r\n; $headers .= X-MSMail-Priority: Normal\r\n; $headers .=

[PHP] array

2003-03-24 Thread Wilbert Enserink
Hi all, I'm making a bulk send mail program script. In this script I use an array: now this works fine: $send_vars = array( 'recipients' = array('[EMAIL PROTECTED]','[EMAIL PROTECTED]','[EMAIL PROTECTED]')

[PHP] cookbook/recipes sites?

2003-03-24 Thread Jeff D. Hamann
I'm thinking about starting a cookbook/recipes website and I'm guessing there's some special skills for handling recipes (ingredients, cooking times, etc) and I would like to know if there's a PHP based project that is designed for that kind of the project. Doing google searches for anything that

[PHP] help on sessions

2003-03-24 Thread Philippe Lemmerling
If I understood correctly, the first time start_session is used, the server will send both a cookie AND rewrite the links in the page with the sessionid appended to it. This seems logical since at the first call for a session the server can not know whether the browser will accept cookies or not.

RE: [PHP] require_once for php3

2003-03-24 Thread Don Read
On 24-Mar-2003 daniel wrote: hi there is a way to include files once in php3 ? I've always used function_exists(): if (! function_exists('debug')) include('common.inc');// get the basics if (! function_exists('array_pop')) include('libphp4.php3'); // get

[PHP] File manipulation tutorials / helpful resources

2003-03-24 Thread Tony Crockford
Hi What I'd like to do is open an html file, strip out the content between the body/body tags so that I can insert it into my own template. Has anyone got any good resources or tutorials I could read to help me accomplish this simple sounding task. I have no idea where to start! ;o) Thanks

[PHP] overriding upload_tmp_dir

2003-03-24 Thread Roger Thomas
for an application, i would like to have the temporary upload file directory under the webroot of this application. how can i override the php.ini directive of upload_tmp_dir ? -- roger __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March

RE: [PHP] Re[2]: [PHP-DB] mysql timestamps

2003-03-24 Thread Don Read
On 24-Mar-2003 L0vCh1Y wrote: JWH SELECT TO_UNIXTIME(your_column) FROM table ... It doesn't work... MySQL returns error - what could be trouble in? I also tried SELECT TO_UNIXTIME(foo) AS bar FROM baz But it's look like it doesn't know such function :\. I tried table in next

[PHP] Re: Calculating the difference between two dates

2003-03-24 Thread Nenad Djordjevic
Hello, First you need to convert dates in timestamp: int mktime ( int hour, int minute, int second, int month, int day, int year [, int is_dst]) or strtotime('-MM-DD'); (year-month-date; 4 digit year; month and date need to be with leading zero) Then you can use function like

[PHP] Interesting Error??

2003-03-24 Thread Fatih stnda
I'm using Command Line php and php-xslt functions ( sablotron 0.96 ) I have got an error such that : php: output.cpp:1554: Bool OutputterObj::eventAttributeStart(Situation , const EQName ): Assertion `!eventAttributeStart' failed. Any idea? Fatih stnda Yre Elektronik Yaymclk A.. 0 212 234 00

[PHP] Odd Parse Error

2003-03-24 Thread shaun
Hi, Using the following code i get a parse error for line 137, and i cant see anything wrong with it, i would be very grateful for someones help here! if ($num 0){ if ($values[$i] == 0){ $query = DELETE FROM WMS_Allocatations WHERE User_ID = '.$_GET[user_id].' AND Project_ID =

RE: [PHP] PHP Send Mail Main headers.

2003-03-24 Thread Don Read
On 24-Mar-2003 Philip J. Newman wrote: $headers .= MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; $headers .= From: .$from_name. .$from_address.\r\n; $headers .= Reply-To: .$from_name. .$from_address.\r\n; $headers .= X-Priority: 3\r\n; $headers .=

[PHP] Re: Odd Parse Error

2003-03-24 Thread liljim
You have a curly brace, where you should have a square bracket: if ($values{$i] != 0){ //line 137 if($values[$i]) { James Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Using the following code i get a parse error for line 137, and i cant see anything wrong with it,

Re: [PHP] Odd Parse Error

2003-03-24 Thread Ernest E Vogelsinger
At 11:24 24.03.2003, shaun said: [snip] Using the following code i get a parse error for line 137, and i cant see anything wrong with it, i would be very grateful for someones help here! if ($num 0){ if ($values[$i] == 0){ $query = DELETE FROM

Re: [PHP] overriding upload_tmp_dir

2003-03-24 Thread Jason Wong
On Monday 24 March 2003 17:28, Roger Thomas wrote: You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells

[PHP] Help me pervade Bristol City council to use PHP

2003-03-24 Thread Ben Edwards
Am talking to a part Bristol City Council in the UK. To persuade them to use PHP I need to find some high profile reference sites. Looked on php.net but all the sites were technical support sites, not really corporate or government sites. This is not very good, the MySQL lot have a very good

Re: [PHP] PHP Send Mail Main headers.

2003-03-24 Thread Jason Wong
On Monday 24 March 2003 18:35, Don Read wrote: On 24-Mar-2003 Philip J. Newman wrote: $headers .= MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; $headers .= From: .$from_name. .$from_address.\r\n; $headers .= Reply-To: .$from_name. .$from_address.\r\n;

[PHP] Re: Help me pervade Bristol City council to use PHP

2003-03-24 Thread rush
Ben Edwards [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Am talking to a part Bristol City Council in the UK. To persuade them to use PHP I need to find some high profile reference sites. So.. Can anyone give me some sites who use PHP that the people at Bristol city Council

[PHP] How to count check # of user connected

2003-03-24 Thread P Lok
Does anyone know how to count check # of user logged on (and not logged off) using PHP? Should I use session? best regards ./pl

[PHP] Setprecision ?? pls help

2003-03-24 Thread Adriaan Nel
Hi all, I'v got the following: round ($val1,4); echo $val1; It works fine, but when $val which is a float, contains for instance 1.1 I want it to output 1.1000 instead of just 1.1 I know in C++ this can be done with setprecision(), but I can't seem to find anything similar in phpplease

[PHP] Re: When to use htmlentities()

2003-03-24 Thread liljim
If you store your text htmlentitied in the database, you will need to apply htmlentities to the search string, but not when you bring the data back from the database tables (to either display in the text editing screen, or the normal viewing screen. Example: ?php $text = This is a test /textarea;

[PHP] Why NOT you ?

2003-03-24 Thread Khim
Dear Online Business Opportunity Seekers Why CCI ? CCI, Core Club International is a 3 year old, Federally registered non-profit humanitarian aid, corporation. Federal EIN # 93-1324671 State Reg. # 036394-99 Established April 17, 2000 CCI was set up to help eradicate poverty in the world

[PHP] Re: File manipulation tutorials / helpful resources

2003-03-24 Thread liljim
Tony, try searching the archives - the regular expression that's required to get the stuff between the body tags has been asked many, many times before. Here's a quick bit of code that might get you started: ?php $temp_file = /tmp/ . uniqid(yahoo); $myfile = /path/to/myfile.html; $file =

Re: [PHP] Setprecision ?? pls help

2003-03-24 Thread Marek Kilimajer
number_format Adriaan Nel wrote: Hi all, I'v got the following: round ($val1,4); echo $val1; It works fine, but when $val which is a float, contains for instance 1.1 I want it to output 1.1000 instead of just 1.1 I know in C++ this can be done with setprecision(), but I can't seem to find

Re: [PHP] How to count check # of user connected

2003-03-24 Thread Marek Kilimajer
This has been discussed before. It depends on what kind of authentication you use. Sessions are great for this, but you need to use your own session save handler, save sessions to sql db, and then use select count(*) P Lok wrote: Does anyone know how to count check # of user logged on (and

Re: [PHP] Setprecision ?? pls help

2003-03-24 Thread Joshua Moore-Oliva
You could have also used sprintf, which can be called from C++ as well. Josh. On March 24, 2003 07:18 am, Marek Kilimajer wrote: number_format Adriaan Nel wrote: Hi all, I'v got the following: round ($val1,4); echo $val1; It works fine, but when $val which is a float, contains

[PHP] The tool that generates documentation for PHP's website

2003-03-24 Thread James
I'm refering to the type of documentation that mysql and php has on their websites, where you have chapter headings and sections, and people can look at a contents pages, or can look at individual sections, or can look at one massive html file with everything in it or can download the entire

[PHP] Viewing PHP pages

2003-03-24 Thread Andy
Can someone help? I have uploaded my PHP pages, created in Dreamweaver MX to my hosting server but when I try to access the page the only option I get is to download it. What am I doing wrong? I have created the forms and guestbooks that mail information to me but these do not work, they are OK

Re: [PHP] Viewing PHP pages

2003-03-24 Thread Ben Edwards
Server is probably set up wrong or your extensions are wrong. Check with the ISP wether you have PHP facilities, the extension is .php normally but sometimes .php3. At 03:55 24/03/2003 +, Andy wrote: Can someone help? I have uploaded my PHP pages, created in Dreamweaver MX to my hosting

Re: [PHP] Viewing PHP pages

2003-03-24 Thread Andy
Hi Ben They say that the server is set up for PHP4, and they say it is something to do with my scripts. Not sure I believe them. My pages have the extension .php Andy Ben Edwards [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Server is probably set up wrong or your extensions are

[PHP] mail() function

2003-03-24 Thread John Love
The use of the standard mail(...) function is just not working and I would really appreciate some patient soul's time to access: http://www.up.net/~jolove/PHP/EMail/EmailPHP.phps and look at the code ... it really is very short ... The function send() returns success, yet my mail client,

RE: [PHP] Viewing PHP pages

2003-03-24 Thread Christian Rosentreter
Hi, I don't think this's the solution... so take this msg only as info. :) Same problem can happen with old browsers. Solution is to add .php to MIME-Settings of text/html. I had this problem with eBay (*.dll) some times ago. :) But I think it's a problem with your ISP. If there are errors

[PHP] hide multiple recipients

2003-03-24 Thread mailing
Hi I'm new (to the list and php) - be gentle on me! I'm working on a script that will allow a client to send an email message to an email list that is pulled out of a database(mysql). I've got the script working sort of..., though it needs more work. Essentially, I pull the e-mails out of a

[PHP] Retrieve values from checkboxes

2003-03-24 Thread shaun
Hi, I have some checkboxes on my form and am using the following code to populate it. The box will be checked if the user is allocated to the project. My problem is if I uncheck a checkbox and send the form I don't know what the $project_id is as it returns zero, so I cant delete the

Re: [PHP] How to count check # of user connected

2003-03-24 Thread P Lok
Thanks! Could u pls tell me where can I find the said topic? Is the record in db still valid if the user has disconnected? rgds ./pl Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This has been discussed before. It depends on what kind of authentication you use.

RE: [PHP] Re[2]: [PHP-DB] mysql timestamps

2003-03-24 Thread John W. Holmes
Yeah, sorry, it's the UNIX_TIMESTAMP() function you want. FROM_UNIXTIME() will convert a Unix timestamp to a MySQL timestamp, also. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -Original Message- From: Don

[PHP] prepare() and execute()

2003-03-24 Thread Charles Kline
hi Could anyone give me an example of a prepare() and execute() that retrieves a simple dataset as an associative array and then prints it to the screen? I can only seem to find examples that do an INSERT and I am having trouble doing the translation. Thanks charles -- PHP General Mailing

php-general Digest 24 Mar 2003 13:56:35 -0000 Issue 1957

2003-03-24 Thread php-general-digest-help
php-general Digest 24 Mar 2003 13:56:35 - Issue 1957 Topics (messages 140790 through 140847): Re: Calculating the difference between two dates 140790 by: Don Read 140791 by: Greg Beaver 140817 by: Nenad Djordjevic Re: reloading a page.. 140792 by: Leo

[PHP] PHP or Mysql or Combination

2003-03-24 Thread ed
I'm currently stuck in a project where I need to pull info from a database and sort it by order of 2 seperate fields and creates a text report of the results. No problems there but now what the boss is wanting to do is break it up into slices of 8 records per file and save each file individually

RE: [PHP] Viewing PHP pages

2003-03-24 Thread Thijs Lensselink
Hey andy, I had this problem a while ago. And this is a server problem. This is what happens if the server is unable to execute the .php files. I can't look at my docs right now so can't give you a clue in how to fix this. Will have a look when i'm at home. Thijs -Oorspronkelijk

Re: [PHP] Viewing PHP pages

2003-03-24 Thread Andy
Hi Thijs It would seem it was a problem with the server, and they have now corrected this. Even though they said it was my scripts. Thank you for your help all. Andy Thijs Lensselink [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey andy, I had this problem a while ago. And this

Re: [PHP] PHP or Mysql or Combination

2003-03-24 Thread Chris Hayes
At 15:50 24-3-03, you wrote: I'm currently stuck in a project where I need to pull info from a database and sort it by order of 2 seperate fields and creates a text report of the results. No problems there but now what the boss is wanting to do is break it up into slices of 8 records per file and

Re: [PHP] Help me pervade Bristol City council to use PHP

2003-03-24 Thread Chris Hewitt
Ben Edwards wrote: Am talking to a part Bristol City Council in the UK. To persuade them to use PHP I need to find some high profile reference sites. You may find some useful references in the archive of this list. I remember a poster with the subject of: Is php used by U.S. Government? By

[PHP] Re: Retrieve values from checkboxes

2003-03-24 Thread chris
On Mon, 24 Mar 2003 13:06:45 -, Shaun [EMAIL PROTECTED] wrote: Hi, I have some checkboxes on my form and am using the following code to populate it. The box will be checked if the user is allocated to the project. My problem is if I uncheck a checkbox and send the form I don't know what the

[PHP] Re: Help-- 255 characters limitation in textarea.

2003-03-24 Thread chris
On Mon, 24 Mar 2003 16:11:00 +0800, Larry Li [EMAIL PROTECTED] wrote: But MS SQL SERVER saved all characters. Only first 255 characters was shown in textarea. What's wrong? Thanks for your input, Larry What does the html source look like? Sounds like some sort of html closing tag

Re: [PHP] prepare() and execute()

2003-03-24 Thread Jason Wong
On Monday 24 March 2003 21:56, Charles Kline wrote: Could anyone give me an example of a prepare() and execute() that retrieves a simple dataset as an associative array and then prints it to the screen? I can only seem to find examples that do an INSERT and I am having trouble doing the

Re: [PHP] hide multiple recipients

2003-03-24 Thread Jason Wong
On Monday 24 March 2003 21:05, mailing wrote: I'm new (to the list and php) - be gentle on me! I'm working on a script that will allow a client to send an email message to an email list that is pulled out of a database(mysql). I've got the script working sort of..., though it needs more

[PHP] Dynamic Form

2003-03-24 Thread Keven Jones
Hi, Can someone tell me if I can use php to accomplish the following: I would like to create a form that can: A. Total the sum of a certain number of numerical fields, Before the user clicks submit B. Automatically fill in sections of a form based on selections made by the user. As an example,

Re: [PHP] Dynamic Form

2003-03-24 Thread Awlad Hussain
use javascript - Original Message - From: Keven Jones [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 4:32 PM Subject: [PHP] Dynamic Form Hi, Can someone tell me if I can use php to accomplish the following: I would like to create a form that can: A.

Re: [PHP] Dynamic Form

2003-03-24 Thread Randum Ian
Hi Keven, Hi, Can someone tell me if I can use php to accomplish the following: I would like to create a form that can: A. Total the sum of a certain number of numerical fields, Before the user clicks submit B. Automatically fill in sections of a form based on selections made by

Re: [PHP] Dynamic Form

2003-03-24 Thread Charles Kline
If the page does not submit between changes, PHP will not be much help, that would be JavaScript's job. You could use PHP to prepare the arrays that JavaScript will use to accomplish this. - Charles On Monday, March 24, 2003, at 11:32 AM, Keven Jones wrote: Hi, Can someone tell me if I can

Re: [PHP] The tool that generates documentation for PHP's website

2003-03-24 Thread Ray Hunter
The system is done with xml and xslt and uses the docbook utilities like jade, jadetex, sgml and other utilities. -- Ray On Mon, 2003-03-24 at 05:48, James wrote: I'm refering to the type of documentation that mysql and php has on their websites, where you have chapter headings and sections,

[PHP] Re: how to test string to see if it is a date or time?

2003-03-24 Thread DomIntCom
can anybody help me out with this? I have figured out checkdate finally, but still have nothing that will help me with time validation. thanks, Jeff Domintcom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a form that is passing a date variable, and a time variable. I will

[PHP] Apache environment variables

2003-03-24 Thread Jeremy Russell
Hello list.. I have an issue.. I have users athenticating to apache using the ldap_mod_auth module, when they authenticate it populates the LDAP_USER variable. What I need is to also populate the REMOTE_USER variable for some other CGI's, I know I could change them, but there are several

Re: [PHP] Getting linux server's country

2003-03-24 Thread Marek Kilimajer
Manual: string *setlocale* ( mixed category, array locale) If /locale/ is zero or 0, the locale setting is not affected, only the current setting is returned. Martin Towell wrote: So noone has any ideas at all ? Surely not ? If my question's too vague, please let me know and I'll try to expand

Re: [PHP] Re: how to test string to see if it is a date or time?

2003-03-24 Thread Jason Wong
On Tuesday 25 March 2003 00:39, DomIntCom wrote: can anybody help me out with this? I have figured out checkdate finally, but still have nothing that will help me with time validation. explode() on the time delimiter (probably colon) check that hour is 1-12 (or 0-23) check that minute is 0-59

Re: [PHP] Re: how to test string to see if it is a date or time?

2003-03-24 Thread Erwin Kerk
Try this (as found on php.net) $str = 'Not Good'; if (($timestamp = strtotime($str)) === -1) { echo The string ($str) is bogus; } else { echo $str == . date('l dS of F Y h:i:s A',$timestamp); } Erwin Kerk Web Developer @ BliXem.nl Jason Wong wrote: On Tuesday 25 March 2003 00:39,

[PHP] can't make str_replace work with single quote

2003-03-24 Thread DomIntCom
this should be pretty straight forward, but I cannot make this work for some reason. $ndate = str_replace(','', '2003-1;1 00:00:01' AND '2003-3-1 23:59:59'); to extrapolate we have the following string surrounded by double quotes; '2003-1;1 00:00:01' AND '2003-3-1 23:59:59' now - I have even

[PHP] Re: MySQL Date

2003-03-24 Thread George Whiffen
Why not get MySQL to compare your date with today? e.g. select if(Booking_Date = curdate(),'booked','free') as Todays_Status ... $Todays_Status = mysql_result($result,$i, Todays_Status); echo you are $Todays_Status today; I find it is much, much safer to only use the database for finding out

[PHP] Problem Parsing message/rfc822

2003-03-24 Thread Haseeb Iqbal
hi, i have paresed entire messaage into an array. everything was ok untill i encountered a message/rfc822 subtype.it was a farwaded message.now my array contains everything from images to headers in a subscript 'TEXT'. the actual array returned is Array ( [Date] = Tue, 18 Mar 2003 13:28:07

Re: [PHP] Apache environment variables

2003-03-24 Thread Marek Kilimajer
I think this can be acoplished with some apache configuration directives. Php has nothing to do with this, as it funtions besides CGI's Jeremy Russell wrote: Hello list.. I have an issue.. I have users athenticating to apache using the ldap_mod_auth module, when they authenticate it populates

Re: [PHP] can't make str_replace work with single quote

2003-03-24 Thread Marek Kilimajer
works for me: echo str_replace('2003','2002', '2003-1;1 00:00:01' AND '2003-3-1 23:59:59'); DomIntCom wrote: this should be pretty straight forward, but I cannot make this work for some reason. $ndate = str_replace(','', '2003-1;1 00:00:01' AND '2003-3-1 23:59:59'); to extrapolate we have the

Re: [PHP] Interesting Error??

2003-03-24 Thread Marek Kilimajer
This is either bug in the extensions, or you give wrong parameters to a function or method. Fatih stnda wrote: I'm using Command Line php and php-xslt functions ( sablotron 0.96 ) I have got an error such that : php: output.cpp:1554: Bool OutputterObj::eventAttributeStart(Situation , const

Re: [PHP] How to write a module for php?

2003-03-24 Thread Marek Kilimajer
I think there is a module example/template in the php sources hzqbbc wrote: Hi all: I want to write a small module for php and reduce some overhead while doingthe same job with PHP scripts. But i'm new to php dev, and even don't konw about the archtecture of phpmodule.. So could

Re: [PHP] can't make str_replace work with single quote

2003-03-24 Thread DomIntCom
yea - that figures... I was pretty certain I had the syntax correct. this is kind of a round about way, but I finally did get the following to work; $ndate = strtr($date, ' , \\); $ndate = stripslashes($ndate); Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] works

[PHP] Quick snippet to convert text files to unix based line endings

2003-03-24 Thread Mike Zornek
I'm writing a little script that is parcing a excel generated csv file. While all the users will be using windows I'd like to make it safe for all file types. Any one have a quick snippet that I could use to convert a temp file to use all \n based line endings for consistency? Thanks. ~ Mike --

Re: [PHP] Re: how to test string to see if it is a date or time?

2003-03-24 Thread DomIntCom
thanks Erwin Jason... I will work with these two, and see what I can come up with. Erwin Kerk [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try this (as found on php.net) $str = 'Not Good'; if (($timestamp = strtotime($str)) === -1) { echo The string ($str) is bogus; }

RE: [PHP] can't make str_replace work with single quote

2003-03-24 Thread Sysadmin
Try str_replace(chr(39),.. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:23 PM To: DomIntCom Cc: [EMAIL PROTECTED] Subject: Re: [PHP] can't make str_replace work with single quote works for me: echo str_replace('2003','2002',

Re: [PHP] Feasability of Serial functions and constantly runningprogrms

2003-03-24 Thread Marek Kilimajer
CLI does not have time limit by default, and memory should not be a problem too, but you will need to use unset() more often than it is used to in web scripts. Also look at direct IO functions, there is something about serial ports Jason Young wrote: After upgrading to RedHat 8.0 and

[PHP] php and forms

2003-03-24 Thread Iggy
hi, I am very new to php so please forgive me if this is somewhat of a dumb question I have a html page with a whole bunch of textfields and checkboxes. Once the user fills out the information it is entered it is recorded in a mySQL db/table the problem that i am having is with the checkboxes. if

[PHP] Using include() or require() with PDF module

2003-03-24 Thread Bill Hudspeth
I wish to use the include() and/or the require() functions to include a block of PHP multiple times in my file. The block contains code for outputting PDF elements. Although other external code (functions for example) are successfully referenced using these commands, the PHP's PDF functions don't

[PHP] Hidden new line markers?

2003-03-24 Thread Jeff Lewis
I am using a SELECT statement to grab all items from a database table and while looping through the results I am connecting the fields with tabs and adding a new line at the end of the row to create a tab delimited file. On one field I do a nl2br in order to preserve the spacing in the field.

[PHP] looking for advice on PHP server

2003-03-24 Thread Doug Parker
My server has cURL built into its php module, but it doesn't support SSL, and thus doesn't support requests to secure servers, i.e. https. It was an effort in itself to get them incorporate cURL, and I was just wondering if I should move immediately to a new host - if this were just

Re: [PHP] php and forms

2003-03-24 Thread Chris Shiflett
--- Iggy [EMAIL PROTECTED] wrote: I have a html page with a whole bunch of textfields and checkboxes. Once the user fills out the information it is entered it is recorded in a mySQL db/table the problem that i am having is with the checkboxes. if they are checked everything works fine, but if

Re: [PHP] Hidden new line markers?

2003-03-24 Thread CPT John W. Holmes
nl2br() doesn't remove the newlines, it simply adds in the br / in before them. The str_replace should work, how are you trying to use it? ---John Holmes... - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:56 PM Subject: [PHP]

Re: [PHP] looking for advice on PHP server

2003-03-24 Thread CPT John W. Holmes
My server has cURL built into its php module, but it doesn't support SSL, and thus doesn't support requests to secure servers, i.e. https. It was an effort in itself to get them incorporate cURL, and I was just wondering if I should move immediately to a new host - if this were just

RE: [PHP] Retrieve values from checkboxes

2003-03-24 Thread Don Read
On 24-Mar-2003 shaun wrote: Hi, I have some checkboxes on my form and am using the following code to populate it. The box will be checked if the user is allocated to the project. My problem is if I uncheck a checkbox and send the form I don't know what the $project_id is as it returns

Re: [PHP] Hidden new line markers?

2003-03-24 Thread Jeff Lewis
The data is being entered into a textarea and is being stored as it is entered but with an addslashes right before insertion. On the extract I am doing the following: $row[description] = stripslashes($row[description]); $row[description] = nl2br($row[description]); $row[description] =

Re: [PHP] Hidden new line markers?

2003-03-24 Thread CPT John W. Holmes
The data is being entered into a textarea and is being stored as it is entered but with an addslashes right before insertion. On the extract I am doing the following: $row[description] = stripslashes($row[description]); You don't have to use stripslashes() on data coming out of a database

Re: [PHP] Hidden new line markers?

2003-03-24 Thread Jeff Lewis
Ah! That did it, it's all on Windows and when I tried removing things I tried at one point removing the \r as i thought the nl2br changed the \n to br / Thanks a lot John :) Jeff - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL

[PHP] mail() Bcc:

2003-03-24 Thread Oden Odenius
How can send bcc: with mail()? -- Programmers are tools for convert coffeine into code... (c) Oden _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General

[PHP] File uploads...

2003-03-24 Thread Al
Trying to do what should be rather simple and I have done before. Maybe I am just overlooking the obvious but this is the error I get... Warning: Unable to open 'Array' for reading: No such file or directory in /var/www/html/nepso_noah/NEPSO/includes/reporters/update_profile.inc on line 33 This

Re: [PHP] Quick snippet to convert text files to unix based line endings

2003-03-24 Thread Ernest E Vogelsinger
At 20:36 24.03.2003, Mike Zornek said: [snip] I'm writing a little script that is parcing a excel generated csv file. While all the users will be using windows I'd like to make it safe for all file types. Any one have a quick snippet that I could use to

Re: [PHP] mail() Bcc:

2003-03-24 Thread Bryan Brannigan
$mail-BCC( [EMAIL PROTECTED] ); - Original Message - From: Oden Odenius [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:44 PM Subject: [PHP] mail() Bcc: How can send bcc: with mail()? -- Programmers are tools for convert coffeine into code... (c) Oden

RE: [PHP] File uploads...

2003-03-24 Thread Dan Rossi
u etetr reference them with $_FILES['photonew']['tmp_name'] or do a print_r($_FILES); and it'll tell u info in the upload -Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 7:14 AM To: [EMAIL PROTECTED] Subject: [PHP] File uploads... Trying to do what

Re: [PHP] mail() Bcc:

2003-03-24 Thread Kevin Stone
- Original Message - From: Oden Odenius [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:44 PM Subject: [PHP] mail() Bcc: How can send bcc: with mail()? -- Programmers are tools for convert coffeine into code... (c) Oden From, CC and BCC are headers to be

Re: [PHP] File uploads...

2003-03-24 Thread Kevin Stone
- Original Message - From: Al [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:14 PM Subject: [PHP] File uploads... Trying to do what should be rather simple and I have done before. Maybe I am just overlooking the obvious but this is the error I get... Warning:

Re: [PHP] mail() Bcc:

2003-03-24 Thread Leif K-Brooks
Not everyone has whatever class you seem to be using... Bryan Brannigan wrote: $mail-BCC( [EMAIL PROTECTED] ); - Original Message - From: Oden Odenius [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:44 PM Subject: [PHP] mail() Bcc: How can send bcc: with mail()?

[PHP] [php] php.dat

2003-03-24 Thread Gavin Jackson
I had a look in the cgi-bin in the site that's hosting my files and it contains a binary file called php.dat. Can anyone tell me what the file is used for? Regards Gavin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem Parsing message/rfc822

2003-03-24 Thread Haseeb Iqbal
hi, i have paresed entire messaage into an array. everything was ok untill i encountered a message/rfc822 subtype.it was a farwaded message.now my array contains everything from images to headers in a subscript 'TEXT'. the actual array returned is Array ( [Date] = Tue, 18 Mar 2003 13:28:07

Re: [PHP] mail() Bcc:

2003-03-24 Thread CPT John W. Holmes
From: Oden Odenius [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:44 PM Subject: [PHP] mail() Bcc: How can send bcc: with mail()? - Original Message - From: Bryan Brannigan [EMAIL PROTECTED] To: Oden Odenius [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent:

Re: [PHP] mail() Bcc:

2003-03-24 Thread CPT John W. Holmes
How can send bcc: with mail()? From, CC and BCC are headers to be set in the fourth parameter of the mail() function. Headers must be spearated by end-of-line characters. $headers = From: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] BCC: [EMAIL PROTECTED]; mail($to, $subject, $body,

[PHP] HELP HELP in a stand still

2003-03-24 Thread Daniel McCullough
I dont know where my brain is today, obviously not with me. I had this working yesterday and then a server crash casued them to run the backup from teh day before and wiped all my work out. Can someone please get me back on track. HEre is the problem. I want to list a collection of items.

Re: [PHP] mail() Bcc:

2003-03-24 Thread Kevin Stone
- Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Kevin Stone [EMAIL PROTECTED]; Oden Odenius [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:51 PM Subject: Re: [PHP] mail() Bcc: How can send bcc: with mail()? From, CC and BCC are headers to

Re: [PHP] mail() Bcc:

2003-03-24 Thread Kevin Stone
- Original Message - From: Kevin Stone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 4:17 PM Subject: Re: [PHP] mail() Bcc: - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Kevin Stone [EMAIL PROTECTED]; Oden Odenius [EMAIL

[PHP] count up from 7

2003-03-24 Thread Richard Whitney
Braindead! I need to evaluate a number if greater than 7 and add a value per increment. I'm frazzled and can't think straight. Thanks Guys! -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791

Re: [PHP] mail() Bcc:

2003-03-24 Thread Ernest E Vogelsinger
At 23:51 24.03.2003, CPT John W. Holmes said: [snip] If I'm wrong, someone please let me know, but some servers may only accept Bcc: instead of bcc: or BCC:, etc... ?? Does anyone know if that matters? If it does, is it only dependant upon the sending SMTP

Re: [PHP] count up from 7

2003-03-24 Thread Justin French
Huh? Not really following what you want to achieve, but: ? $n = 9; $floor = 7; if($n $floor) { $diff = $n - $floor; //eg 2 // no idea what you want to do from here } ? on 25/03/03 10:58 AM, Richard Whitney ([EMAIL PROTECTED]) wrote: Braindead! I need to evaluate a

Re: [PHP] count up from 7

2003-03-24 Thread Sebastian
not sure if this is what you're looking for: if ( $var 7 ) { // do stuff } - cheers, Sebastian - Original Message - From: Richard Whitney [EMAIL PROTECTED] | Braindead! | | I need to evaluate a number if greater than 7 and add a value per increment. | I'm frazzled and can't think

  1   2   >