[PHP] session vars with recursive form

2001-01-12 Thread bill
ot;); } } -- thanks, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] changing strings to float vars

2001-01-15 Thread bill
val() because it has decimals. kind regards, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Failed to write session data (files)

2001-01-23 Thread bill
are disabled. I pass the session id via a hidden tag within a POST form. ?php $thisses=session_id(); echo "input type=\"HIDDEN\" NAME=\"PHPSESSID\" VALUE=\"$thisses\" ? thanks for any help, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

[PHP] Failed to write session data (files)?

2001-01-24 Thread bill
. The script works fine if cookies are enabled on the browser. I'm using PHP 4.0.3pl1 as a cgi on a Unix machine. thanks in advance, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] session without cookies

2001-01-27 Thread bill
data is saved. I'm stumped. kind regards, bill Richard Lynch wrote: i use the session-functions with php4 and everything works fine. but if a visitor turns off cookies nothing seems to work.. is there a way to support a sessionid with cookies and thru the url ? Yes. Compile PHP

[PHP] sample contract

2001-02-02 Thread bill
quot; type of contract. Posting it might be helpful for others on the list too. TIA kind regards, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] daylight savings time

2001-03-30 Thread bill
: SELECT name FROM my_database WHERE UNIX_TIMESTAMP(date) = $thisdaysec Unfortunately, this code, which used to work fine, begins to fail when looking for dates after this weekend. The two unix timestamps are exactly one hour off. Daylight savings time? I appreciate any help. kind regards, bill

Re: [PHP] Date difference

2001-03-31 Thread bill
- $dbdate; //above gives you the difference in seconds. $daydifference = intval($thedifference / 86400); // 86400 is number of seconds in a day // intval because I don't want partial days, just number of days // $daydifference above gives you the difference in days kind regards, bill [EMAIL PROTEC

[PHP] mysql_insert_id() CGI

2001-04-03 Thread bill
, another user do another query, and then the first user's mysql_insert_id function produce the wrong result? kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Need another verse

2001-12-20 Thread bill
To the tune of Let it Be, with apologies to the Beatles and all those who have gone before: When I find my code in tons of trouble, Then the newsgroups come to me, Speaking words of wisdom: PHP As the deadline fast approaches, And the bugs are all I see, Somewhere, someone whispers PHP PHP,

Re: [PHP] Need another verse

2001-12-20 Thread bill
sais she's feeling jealousy, Because I have a new friend, PHP -Kevin - Original Message - From: bill [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 20, 2001 9:14 AM Subject: [PHP] Need another verse To the tune of Let it Be, with apologies to the Beatles

[PHP] Re: XML Parsing Problem

2002-01-02 Thread bill
, thereby producing one value which was the original content of the tag. kind regards, bill Ben Gollmer wrote: Hi all - I'm experimenting with PHP's XML parser for an application that maps XML tags to MySQL database fields. As a test for my parsing program, I've been grabbing XML from

[PHP] stripping high ascii from a string

2002-01-08 Thread bill
Is there a function that can strip high ascii from a string? thanks, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] HTTP_IL_PAD global variable?

2002-01-16 Thread bill
What does this global variable stand for? HTTP_IL_PAD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: mysql php - while loops

2002-02-28 Thread bill
Keep track of rows, and add images at rows 4 8. See below Craig Westerman wrote: The following lists 12 items from a fruits table. $results = mysql_query(SELECT ID, date, appleprice, orangeprice, pearprice FROM fruits); $x=1; while ($data = mysql_fetch_array($results)) { ?

[PHP] Re: Congrats to Rasmus?

2002-03-09 Thread bill
Congratulations to all three of you! Michael Kimsal wrote: It doesn't seem to have been mentioned here unless my newsfeed is very slow, but phpdeveloper.org has a quick mention of the new addition to Rasmus' family. http://www.phpdeveloper.org/ Well, everyone's favorite PHP developer

[PHP] find value of image tag

2002-04-18 Thread bill
How can I find the value of image tags in an HTML file: IMG SRC=some_value.jpg alt=blah height=xx width=yy No line breaks are in the tags but they do have other parameters. kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: mysql query

2002-09-11 Thread bill
function mysql_one_element($query, $element) { // quickly returns just one element from a query $one=mysql_query($query); // add error checking here if you wish $r=mysql_fetch_array($one); $thisvalue=$r[$element]; return($thisvalue); } $row=mysql_one_element(select euro from

[PHP] Re: Fw: Questions regarding inserting and updating data into a MySQL db

2002-09-11 Thread bill
comments below Axis Computers wrote: - Original Message - From: Axis Computers To: [EMAIL PROTECTED] ; PHPSent: Tuesday, September 10, 2002 4:51 PMSubject: Questions regarding inserting and updating data into a MySQL db Hi,I'm developing a web application that uses forms for user

[PHP] Re: mysql query

2002-09-11 Thread bill
Ooops, for clarity, I shouldn't have named the result of the function row but euro. It should be: $euro=mysql_one_element(select euro from brandstofprijzen where id=2, euro); Bill wrote: function mysql_one_element($query, $element) { // quickly returns just one element from a query

[PHP] passing parameters from the command line

2001-09-24 Thread bill
, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] stop standard output in cron jobs

2001-09-25 Thread bill
(); } Yet, when run as a cron job, it still outputs two lines: X-Powered-By: PHP/4.0.6 Content-type: text/html And so sends the resultant e-mail. Can I make it output nothing when run as a cron job? kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: named anchors and query strings

2001-10-02 Thread bill
a href=page.php#bottom?location=01link text/a Scott Mebberson wrote: Hi Guys, How do you reference both a named anchor and a query string in a link? i.e. a href=page.php?location=01#bottomlink text/a I am not sure if this is even possible? thanks Scott -- PHP General Mailing List

[PHP] parsing XML turorials, suggestions

2001-10-29 Thread bill
? kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] parsing XML data with ampersands ()

2001-11-12 Thread bill
When parsing XML data, the CDATA sometimes contains an ampersand (). The XML parser sends this as two events, one before the ampersand and one after. That yields two data sections (when there is only one). Ideas on how to keep them together? Is this a bug? kind regards, bill hollett

[PHP] Re: PDF print page creation...

2001-11-29 Thread bill
If the problem is just the web address, etc., in the bottom of the page, that can be turned off. In NN, File/Page Setup and uncheck the boxes in the header and footer In IE, File/Page Setup and remove the stuff in the header and footer fields. Lauri Vain wrote: Hello, A client requested

[PHP] xml header

2001-12-05 Thread bill
What is the proper header to send when presenting dynamic xml pages to the browser? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] xml header

2001-12-05 Thread bill
tossing this around: $clength=strlen($xmlfiledata); header(Host: myhost.com); header(Content-Type: application/xml; charset=iso-8859-1); header (Content-length: $clength); echo $xmlfiledata; I thought about sending Content-Type: text/xml too. Any thoughts. kind regards, bill hollett Tyler

[PHP] url to link

2001-07-28 Thread bill
I thought my regexps were up to snuff until they processed this url: http:[EMAIL PROTECTED] Anybody have a regexp that can parse for both http mailto links and turn that into an http link -without- turning it also into a mailto link? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: url to link

2001-07-30 Thread bill
Hi Matthias, I tried it but it didn't work. It returned a Document contains no data error. I put the preg_replace info all on one line. Could that have affected any whitespace? kind regards, bill Matthias Winkelmann wrote: This uses just one expression (and that is a fast preg_ insteat

[PHP] move_uploaded_file permissions

2001-07-30 Thread bill
I tried the new move_uploaded_file() function. It seems to work fine but doesn't assign any permissions to the moved file, not even for reading. Is there any way around this? Can I define the permissions myself? kind regards, bill hollett -- PHP General Mailing List (http://www.php.net

[PHP] Re: selecting words

2001-08-08 Thread bill
function TrimString($sString,$iLen=125){ $retstring=strtok($sString, ). ; do { if(!$tmp=strtok( ). ) break; $retstring.=$tmp; } while(strlen($retstring)$iLen); if(strlen($retstring)strlen(trim($sString))) $retstring .=...; return $retstring; } // end function Jamie Saunders

[PHP] Re: force download in IE

2001-08-20 Thread bill
Have you tried this? header(Content-Type: application/x-octet-stream); header(Content-Description: MP3 file); David Minor wrote: Can anybody tell me why this doesn't work in IE? I need to force download mp3 files instead of IE5.5 trying to apply a helper app. This code works fine for NN.

[PHP] Re: problem with $HTTP_POST_FILES

2001-08-22 Thread bill
If they're empty but phpinfo displays them you're probably inside a function and haven't declared HTTP_POST_FILES as global. Jason Dulberg wrote: I am working on an image upload script and I've tried to use the variables from $HTTP_POST_FILES however it seems that no matter how I try to get

Re: [PHP] multi-dimensional array won't echo

2001-08-25 Thread bill
Not only a good answer, but the best explanation. thanks, bill hollett Rasmus Lerdorf wrote: The first echo statement doesn't work, the second does. Anybody know why? $string1=15; $string2=27; $myarray[$string1][$string2]=syncopated; echo $myarray[$string1][$string2]br /\n

Re: [PHP] generate random ascii string

2001-09-01 Thread bill
() * 100); $seed = TRUE; } // weak error checking mechanism if ($len 1 || !intval($len)) $len = 8; $chars_len = strlen($chars); for ($a=1; $a = $len; $a++) { $tmp .= $chars[mt_rand(0,$chars_len)]; } return $tmp; } Philip Olson wrote: Hi Bill, Here's a quick hack, should get

Re: [PHP] $str[0] vs $str{0} was : generate random ascii string

2001-09-01 Thread bill
also barked at is_numeric() which I just changed to intval() I should really do better bounds checking. How about: $len=intval($len); if (!$len) $len=8; kind regards, bill Philip Olson wrote: It appears the only change you made was : $tmp .= $chars[mt_rand(0,$chars_len)]; From

[PHP] Re: html anchors and form variables again

2001-09-19 Thread bill
http://yourwebsite.com/webpage.html#anchor?variable=1234 Rebecca Donley wrote: Hi all, Several days ago I asked for help with this problem and you gave me information on the output control functions, which was much appreciated and solved some of my problems. However, I can't seem to find

Re: [PHP] PHP Mysql query data conversion newbie

2001-05-09 Thread bill
because i figure the web server is busy enough will all kind of regular html requests. good luck... hope this helped. Bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Newbie redirect/variable question

2001-05-10 Thread bill
On Thu, 10 May 2001, Steve Wade wrote: I'm trying to get a redirect working - never done one before. Here's the line from the referring page (index.php3): a href=redirect.php?fred=www.fusion.org.autest link/a Here's redirect.php: ?php echo $fred; I don't think you can output anything

Re: [PHP] i need some help with extracting data from mysql

2001-05-10 Thread bill
the fieldnames are correct, the above should work. kind regards, bill hollett Sandeep Hundal wrote: hi all, i've got a simple problem, yet it doesn't work, so i hope someone can help me out here. i've got a table with id, group, and name. each group has many names ofcourse. now i need

Re: Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread bill
On Fri, 11 May 2001, Steve Wade wrote: Thanks - hmm - doesn't seem to do it though. My current code is: ?php if ($HTTP_GET_VARS['fred'] != ) { # $statement = UPDATE links SET hits=hits+1 WHERE href=\$u\; # mysql_query($statement); header(Location: $HTTP_GET_VARS['fred']);

[PHP] myPhpAdmin question

2001-05-10 Thread bill
. The actual data reads 'Well, it doesn\'t blah blah blah...' Any ideas or help would be appreciated. bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

Re: [PHP] myPhpAdmin question

2001-05-10 Thread bill
like this: If site is running PHP4: php_flag magic_quotes_gpc on If site is running PHP3: php3_magic_quotes_gpc on Hope this helps others. kind regards, bill bill wrote: Importing table data with PHPAdmin always fails wherever a \ character appears in the data values

Re: [PHP] Question re: JOIN statement PHP/MySQL

2001-05-11 Thread bill
SELECT * FROM table1, table2 WHERE table1.user_id = table2.user_id John E. Haag wrote: Hi, Can anyone tell me how to properly execute a JOIN from PHP to MySQL?? I just want to JOIN two tables, both of which have 'user_id' in common, and then get all of the fields from the matching

Re: [PHP] Slightly OT - PHP Mileage from Zip Code Calculator

2001-05-11 Thread bill
Not sure what you're asking exactly, but I have a Find a Dealer page where a person puts in their zip code and selects how far they want to look. http://earthcomfort.com/find_a_dealer.html Is that what you're looking for? Todd Pillars wrote: I found a site that had a commercial PHP version

Re: [PHP] preview function with upload

2001-05-11 Thread bill
Do you capture the actual Client side Machine path before they hit the submit button or after? If before, I'm guessing you use javascript. If after, I have no guess. I didn't think that information was passed with the POST. kind regards, bill hollett Jason Lotito wrote: -Original

Re: [PHP] phpMyAdmin: dumping problem

2001-05-14 Thread bill
phpMyadmin to upload the data. It may require a bit of futzing but it should work. kind regards, bill hollett [EMAIL PROTECTED] wrote: i got a 1.21 txt file worth of backup data on my HD. I need to get it up and running on my new mysql server asap. 2 problems tho i dont have ftp or telnet

[PHP] detecting HTML tags

2001-05-15 Thread bill
Is there a way to detect the presence of HTML tags? I don't want them stripped out, I just want to know if a string contains them. I'm rolling my own mailing program and want it to detect the HTML if present and send it appropriately. kind regards, bill hollett -- PHP General Mailing List

Re: [PHP] detecting HTML tags

2001-05-15 Thread bill
Yes, I thought similarly. But so far, neither works. $string=blah x4 blah; if (strlen($string) != strlen(strip_tags($string))){ echo html; } else { echo text; } The above still echos html. kind regards, bill Jack Dempsey wrote: $text = 50 100 + 240; not html... would want

Re: [PHP] If (!$submit)

2001-05-17 Thread bill
Two suggestions: Use if (!isset($submit)) OR change the order around ?php if ($submit) { // Results of login form, including login failed or successful print() } else { // First html page containing login form } ? kind regards, bill hollett Tarrant Costelloe wrote: When

Re: [PHP] Why is this not working

2001-05-18 Thread bill
I use php as a CGI from a secure location to do it all. To add a user to .htpasswd on Apache: $thefile=fopen($pathtofile/.htpasswd, a); $newuserline=$username: . crypt($pass) . \n; fwrite($thefile, $newuserline); kind regards, bill hollett YoBro wrote: After much

[PHP] .htaccess and secure image directory

2001-05-24 Thread bill
If I upload images to a web directory using PHP, how can I prevent a web browser from getting a file list of the directory while still allowing it to be polled for specific images? kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] making e-mail link

2001-06-29 Thread bill
I use this to replace URLs as links: $text = eregi_replace((http://[^ ]*),a href=\\\1\\\1/a,$text); What can I use to replace email addresses (like [EMAIL PROTECTED]) as e-mail links? kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] new break tags

2001-06-29 Thread bill
but instead with the new XHTML compliant break tags: br / I tried just substituting the new tag into the above regular expressions to no avail. Any ideas? kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[PHP] Re: File Upload Size Limits

2001-07-27 Thread bill
I think you need to check your Apache time limits too. Michael Conley wrote: I am running PHP 4.0pl1 with Apache 1.3.14 on RedHat Linux 7.1. I am trying to do a file upload from the users PC to my web server. If I do a small file, the transfer goes fine. If I do a large file ( 50 MB), the

[PHP] mysql int_val?

2001-02-14 Thread bill
Does mySQL have an equivalent to PHPs intval() function? I have fields whose contents are "Less than 100", "Less than 200", "Less than 300", and I want to do a SELECT * FROM my_table WHERE $mynumber = intval(myfield) thanks, bill -- PHP General Ma

[PHP] Count of multi-dimensional array

2001-02-17 Thread bill
, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] CGI BIN PHP

2001-02-22 Thread bill
$firstpath = substr($SCRIPT_FILENAME,0,$spos); $fullpath = $firstpath . SCRIPT_NAME; Not sure, but I think it's close. kind regards, bill Hrishi wrote: hey, don't go bald yet :) my web host (communitech.net) has the same setup... is that where you're hosted ? i have a script called

[PHP] Item in two db tables

2001-04-04 Thread bill
d=$row["id"]; $thisitem=$row["item"]; $ckresult=mysql_query("SELECT id FROM table2 WHERE id=$thisid"); if (!mysql_num_rows($ckresult)) { echo "$thisitem using id $thisid is in table 1 but does not appear in table 2BR"; } // end if } // end whil

[PHP] Metaphone, Soundex , MySQL

2001-04-08 Thread bill
that column for metphone matches, then using the id to get the human-readable data on a match. i like the last one (and prefer metaphone), but am wondering what others might be doing. thanks kindly, Bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] L?

2001-04-10 Thread bill
I think L is 50. bill Kurth Bemis wrote: what does the roman numeral L mean? can someone point me to a page that has all of the roman numerals and their English equivlents? i forgot? ~kurth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] 5.2.5 failed 7 tests

2007-12-02 Thread Bill
Do failed tests mean I absolutely should NOT install. Or is it normal to have a few fails? Try two different versions, all have some failure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 5.2.5 failed 7 tests

2007-12-03 Thread Bill
at the end of make test no critical errors, 3 or 4 said they were bugg. then 3 said iI may have a branded libc. Peter Smit [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Dec 3, 2007 12:18 AM, Bill [EMAIL PROTECTED] wrote: Do failed tests mean I absolutely should NOT install

Re: [PHP] 5.2.5 failed 7 tests

2007-12-03 Thread Bill
Thank you. configure ended with no errors. But it said Don't forget to make test, so like a good little lemming I did. Daniel Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Dec 3, 2007 11:01 AM, Bill [EMAIL PROTECTED] wrote: at the end of make test no critical

Re: [PHP] cart in a session

2008-03-10 Thread Bill
Is it a good idea to put a cart in a session var since the cart will be an array ? Yes, and it's far more secure than putting the actual data into a cookie, since that can be changed on the client-side to alter prices and other data. Thanks -- PHP General Mailing List

[PHP] Session still open

2008-03-10 Thread Bill
Hi Ubuntu7.10 LAMP A PHP session destroys itself as soon as the client disconnects from the site. Why if I connect from another machine, log in, and disconnect without logging off, and return 5 mins later, my session is still alive ? Thanks -- PHP General Mailing List

Re: [PHP] Session still open

2008-03-10 Thread Bill
Hi Daniel, Why if I connect from another machine, log in, and disconnect without logging off, and return 5 mins later, my session is still alive ? A session only expires in three cases: a.) An explicit session_destroy() is sent.* b.) The user-side cookie with the session

Re: [PHP] Session still open

2008-03-10 Thread Bill
Hi Daniel, http://www.nabble.com/Logging-session-timeout-in-DB-to15845123.html It can build a lot of stress on the server. What if I use connection_aborted() ? In the status line of the page I can write a 'connected' timer and use it to check the connection !? At most I'll have a 30 secs.

Re: [PHP] Session still open

2008-03-11 Thread Bill
Hi Daniel, on the site. If all you want to do is find out if they still have the socket open, then there are much smaller, simpler ways. Like what ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session still open

2008-03-11 Thread Bill
Hi socket open, then there are much smaller, simpler ways. Like what ? I meant as opposed to the session-handling method I sent in the other thread. However, you may want to look into having JavaScript handle the session-watching, and report to the server via AJAX calls every 30

Re: [PHP] Session still open

2008-03-11 Thread Bill
I want to prevent one from taking over a session from one who left the site and left his desk for a moment. What if that connection were two servers communicating together !? Any crooked mind could then steal the latent session and start fire in the system(s). All things that

Re: [PHP] character encoding

2008-03-26 Thread Bill
outlook is set for utf-8 !! Bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: character encoding

2008-03-28 Thread Bill
Hi Manuel In the body that column shows Brébeuf in Windows Outlook. You may want to try this MIME message composing and sending class that http://www.phpclasses.org/mimemessage Looks great Manuel.but my server is under dyndns and the DN isn't qualified so no mail functions available. I

[PHP] Re: character encoding

2008-03-29 Thread Bill
Hi Manuel You can build mailto: links with a default subject and text, but I am not sure you can force Outlook to use specific HTML. It's wiser to not rely on mailto: . Hotmail will accept mail delivery from PHP ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: character encoding

2008-03-31 Thread Bill
Ok I give it a try as soon as I can. Hotmail will accept mail delivery from PHP ? Sure. There is nothing specific of PHP that prevents Hotmail from accepting messages sent by PHP scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: character encoding

2008-03-31 Thread Bill
Hi Manuel Hotmail will accept mail delivery from PHP ? Sure. There is nothing specific of PHP that prevents Hotmail from accepting messages sent by PHP scripts. I used your test_smtp_message.php setting to_address to my hotmail, localhost to my ip on dyndns, smtp_host to www.hotmail.com,

[PHP] Re: newsletter administration

2008-04-12 Thread Bill
Hi Alain I would use RSS. My friend Google gave me that link to try http://www.feedforall.com/free-php-script.htm this newsletter should be in HTML format and send 1 by 1 to each customer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] unset($_GET['i'])

2008-09-04 Thread Bill
Hi given page1 has a list of goods and sends $i as a variable into a link to page2, ie, a href=page2.php?i=3send/a Page2 adds the items recieved in an array. In page2 how can I unset the $_GET['i'] so that if I press F5(refresh) it doesn't add the same item to the array ? I tried

Re: [PHP] unset($_GET['i'])

2008-09-04 Thread Bill
Dan Shirah a écrit : How about just adding a simple counter on your page. That's what I do but that counter resets when you press F5 and is not functionnal. Why $_GET['i'] doesn't unsets ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] unset($_GET['i'])

2008-09-04 Thread Bill
Why $_GET['i'] doesn't unsets ? Your page URL has ?i=asdf in it. As such, $_GET['i'] is being set every time you refresh that particular URL. Unsetting $_GET['i'] will only erase the variable for that instance of that PHP script. As soon as you refresh, you are calling a new instance of that

[PHP] PCRE vs. POSIX

2001-04-15 Thread bill
hi everyone, i have been using perl for quite some time, but after getting used to php4, i think it rocks. i am wondering which is better, performance-wise, when trying to match the same text: PCRE or POSIX extended in php4? cheers, Bill -- PHP General Mailing List (http://www.php.net

Re: [PHP] Fw: how do I calculate this?

2001-04-27 Thread bill
$days = whatever; if ($days % 7 == 0) { ...then $days is divisible by seven; } else { ...if is not; } the % is the modulus operator. basically divides left hand side by right hand side and returns the remainder. HTH On Fri, 27 Apr 2001, Jacky wrote: - Original Message - From:

Re: [PHP] crypting a database

2001-04-30 Thread bill
There al RC4 crypt/decrypt class here: Class Made By Mukul Sabharwal [[EMAIL PROTECTED]] http://www.devhome.net/php/ On October 21, 2000 kind regards, bill hollett Augusto Cesar Castoldi wrote: Hi, Anyone have some function to crypt and text then decrypt? regards, Augusto Cesar

Re: [PHP] searching a MySQL database

2001-05-06 Thread bill
'[[::]]that[[::]]' ) OR (events.speaker REGEXP '[[::]]that[[::]]' ) OR (events.attr REGEXP '[[::]]that[[::]]' ) ) ) AND date LIKE '2001-05%' ORDER BY date (*note): this would have been AND if the keyword was 'this and that' is this how it is generally done or am I way off here? :) cheers, bill -- PHP

[PHP] Re: Not able to connect to FTP server

2002-12-09 Thread bill
Have you tried passive mode? Vinod wrote: Hi friends, I am having a DSL Internet connectivity in our office and my PC is connected to Internet using a HTTP/FTP Proxy(192.168.0.10) and the browser(Mozilla) in my PC is configured to connect to net through the proxy When I tried to connect

[PHP] Design Discussions

2002-12-30 Thread bill
I found that http://designdiscussions.com is backonline with a new url. They use to have a pretty nice PHP forum going. They need a mod for their PHP forum too... bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTTP_WEFERER

2003-01-07 Thread bill
HTTP_REFERER variable, which was missing, but the value was some long string. Any ideas? thanks, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Opera form oddity

2003-01-31 Thread bill
I had a browser reporting itself as Opera 7.0 [en] fail recently in submitting a form. Specifically, it didn't forward the right value. Using this html in the form INPUT TYPE=Radio NAME=detail[1][] VALUE=4 The browser sent the value on instead of the value 4. So, the form couldn't be

[PHP] Re: looking for some kind of CMS breakthough (slightly OT)

2003-07-30 Thread bill
. kind regards, bill Justin French wrote: Hi all, I've been writing CMS's for years now, and at the moment, I find myself looking for some breakthrough, or at the very least, a change in the way I do things. Anyone can write a CMS to manage simple articles with a data structure like: id

[PHP] Re: PHP Newbie needs assistance to highlight a specific item in a frame window

2003-08-08 Thread bill
(a) will have .3em while the anchor tag with id from the GET request should have .5em. If there is no highlight the extra a line won't be printed in the CSS. There's a lot of other ways to do it, but this should give you a start. kind regards, bill Mary D. Taffet wrote: While I am technically

[PHP] array encapsulate

2003-09-12 Thread Bill
I'd like to do this, but it produces an error: if ($_POST{[detail][11][116]} !$_POST{[detailtext][19][114]}) { so I'm left doing this if ($_POST[detail][11][116] !$_POST[detailtext][19][114]) { How can I encapsulate the array so it is a multi-dimensional array and not just a string length?

Re: [PHP] array encapsulate

2003-09-12 Thread Bill
How do I know it won't just assume that $_POST[detail][11][116] means the 116th character in the string $_POST[detail][11]? Larry E . Ullman wrote: if ($_POST[detail][11][116] !$_POST[detailtext][19][114]) { How can I encapsulate the array so it is a multi-dimensional array and not

[PHP] $PHP_SELF with redirected domain

2003-02-26 Thread bill
page to be http://domain2.com/domain2/myform.php Ideas? kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $PHP_SELF with redirected domain

2003-03-03 Thread bill
is repeatedly and indefinitely called. Others have asked me to tell them if we find a solution. Which we're still looking for, I guess. I'm still open to suggestions. kind regards, bill At 18:42 26-2-03, you wrote: If I use $PHP_SELF as the action in a form where the domain name is redirected, I

[PHP] test for rtf

2003-03-07 Thread bill
Is there any way to test a file to confirm it is an RTF file? I'm thinking along the lines of how we can test for an image with getimagesize(). kind regards, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] test for rtf

2003-03-08 Thread bill
regards, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Part PHP part MySQL question

2003-03-08 Thread bill
oldest. Lather, rinse, repeat. kind regards, bill Beauford.2002 wrote: Hi, I have a hockey database with players names in it and I want to be able to update their stats one after the other. To be more clear - when the page is first entered I want the first players name to automatically

[PHP] sorting results in PHP

2003-03-17 Thread bill
but that didn't work. while ($crow=mysql_fetch_array($cresult)) { $therow[]=$crow; } asort($therow[Year]); reset($therow); asort($therow[Month]); reset($therow); asort($therow[Day]); reset($therow); ideas? kind regards, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] sorting results in PHP

2003-03-17 Thread bill
Hi André, Sorting like that doesn't get it sorted by date. Each row has a lot of fields. It actually needs to be sorted three times by three fields, Year, Month, and Day. Because the query uses a GROUP BY statement, I can't sort it in the query. André cupini wrote: Bill Try this: while

  1   2   3   >