Re: [PHP] foreach() or for()

2003-03-24 Thread Tom Rogers
Hi, Tuesday, March 25, 2003, 4:41:02 PM, you wrote: RW> How Do, All? RW> Here's one unsuccessful attempt to add each $val during a for: RW> for ($z = 0;$z < count($val);$z++) RW> { RW>

Re: [PHP] counting ..

2003-03-24 Thread Justin French
Use $num as a global value across all pages, through GET, and use $i for a per-script counter. Increase both in a loop, add some navigation, and you're all set... This should be a starting point... "; } $last = $_GET['num'] - $per_page; if($num > $per_page) { echo "last {$per_page}"; e

[PHP] foreach() or for()

2003-03-24 Thread Richard Whitney
How Do, All? Here's one unsuccessful attempt to add each $val during a for: '; ?> Conversely I need to isolate certain elements oof a foreach: Thank you! -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net*

Re: [PHP] counting ..

2003-03-24 Thread Sebastian
I Have made my own pagination script, but i am trying give each comment isn't own number. Which i already did, but when i view the next results it starts counting from 1 again. cheers, Sebastian - Original Message - From: "Nikunj Virani" <[EMAIL PROTECTED]> | Check out: | http://phpbuil

[PHP] SetUID Scripts with PHP.

2003-03-24 Thread Nikunj Virani
I need to make some PHP Executables which needs root permissions to run. I currently use SetUID Perl scripts for the purpose and they works fine. But now i feel PHP would be better language for the purpose so i want to switch it to PHP. Can any one tell me how can i make setUID PHP scripts ? Th

Re: [PHP] counting ..

2003-03-24 Thread Nikunj Virani
Check out: http://phpbuilder.com/columns/rod2221.php3 Hope that helps! Regards, Nikunj Virani - Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 11:39 AM Subject: [PHP] counting .. > Hello all. > > rather dumb

Re: [PHP] openssl php 4.3.1

2003-03-24 Thread Kalin Mintchev
part 2: --- got curl 7.10.3 (latest version)... recompiled php 4.3.1 with curl. no errors. shows up fine on phpinfo... testing with: $ch = curl_init ("http://moo.org";); $fp = fopen("http://moo.org/index.html";, "r"); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_HEAD

[PHP] counting ..

2003-03-24 Thread Sebastian
Hello all. rather dumb question. I have a pagination system, 25 results per page, which are user comments, I want to put a number on each comment so i am doing something like: $num=$num + 1; $number = $num; echo $number; But when i switch to the next 25 results it starts counting from 1 again,

[PHP] openssl php 4.3.1

2003-03-24 Thread Kalin Mintchev
hi all, i have problems getting fopen() and fsockopen() to work over https.. here is the problem.. from the phpinfo: OpenSSL support enabled OpenSSL Version OpenSSL 0.9.6h 5 Dec 2002 from php -m # php -m [PHP Modules] ctype mysql openssl overload pcre posix session standard t

[PHP] ho to remove an empty space

2003-03-24 Thread WebDev
somehow when I have try to develop an application where I read five or six values into an individual arrays the array who carries the emails has the email and an additional empty field after the email somehow complex well they way the information has been stored is that the email was the last v

[PHP] Charset problem with DBF database

2003-03-24 Thread Alexander Weber
Hello, I have a DBF database with some ASCII characters like ALT+154 (Ü) etc. I read out the database but instead of an Ü i get an s. Tried out charsetconverting from/to ASCII, UTF-8/7 and ISO, but nothing gave me the rigth letter. Anybody an idea? THX Alex -- PHP General Mailing List (htt

[PHP] Secure coockie is not available as variable

2003-03-24 Thread Alexander Weber
hello, I send a secure cookie an it should be available as varible setcookie("pbas_usr", $row[usr], time()+600, "", "", 1); but the varable is empty. If it send the header without secure flag the cookie works well setcookie("pbas_usr", $row[usr], time()+600); Is there a special way to read out

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

2003-03-24 Thread DomIntCom
here is my solution for this... if (($timestamp = strtotime($_POST['sdate'])) === -1) die ("The start date is not a valid date format"); if (($timestamp = strtotime($_POST['edate'])) === -1) die ("The end date is not a valid date format"); if (($timestamp = strtotime($_POST['stime']))

[PHP] PHP Extensions: are they inefficient when using the extension keyword in php.ini?

2003-03-24 Thread Mike Papper
After reading the PHP online documentation for "Chapter 25. Extension Possibilities" I am confused. I have a set of questions below: 1) compiled versus extension versus dl function: It appears to say that if an extension is NOT compiled in and IS used as a shared module that the module is loade

[PHP] Getting __LINE__ of calling function

2003-03-24 Thread Mike Papper
I have a class that does database transactions. If there is an SQL error in the query, the error line is always from the class. It should be from the caller/creator of the class so the programmer will know exactly what code caused the error. I could have the code that calls the database class p

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 thi

Re: [PHP] count up from 7

2003-03-24 Thread Justin French
Huh? Not really following what you want to achieve, but: $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 number if greater than 7 and a

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

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

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 a

[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. St

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,

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

[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

[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

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

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

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 heade

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 sh

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

[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

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

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 Thanks a lot John :) Jeff - Original Message - From: "CPT John W. Holmes" <[EMAIL PROTECTED]> To: "Jeff Lewis" <[EMAIL PROTECTED]>; <[EMAIL

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 datab

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] = trim($row[d

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

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

[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 ridiculous.

[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. H

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

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

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 effective

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', "'2003

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 bo

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

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] 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 Üstündağ 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] 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

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 t

[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

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

[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

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

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

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

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

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,

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 us

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 selection

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

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

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

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 tr

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

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 . What's wrong? Thanks for your input, Larry What does the html source look like? Sounds like some sort of html closing tag prematurely ended

[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

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

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

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

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

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 Spalteh

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

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

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

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

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

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 error

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

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

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 s

[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

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

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

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

[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 tags has been asked many, many times before. Here's a quick bit of code that might get you started: http://www.yahoo.com/";; $their_text = implode("", file($file)); # now let's get our match b

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

[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: "; ?> That will not bring a desirab

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

[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] When to use htmlentities()

2003-03-24 Thread rotsky
Okay, I'm starting to tie myself in knots with this: Part of my site carries feature articles held in a MySQL database. I've written an admin page that allows me to edit the articles in an HTML form before saving them to the database (using INSERT or UPDATE as appropriate). On the site, I want us

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

2003-03-24 Thread M.A.Bond
We use it here (although you can't tell because we have set up the extension to be .html) http://library.open.ac.uk It queries a mysql database for the metadata as well as building up the pages. Mark Bond Systems Manager Open University Library -Original Message- From: Ben Edwards [ma

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

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

  1   2   >