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

[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
ngled 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 The browser sent the value "on" instead of the value "4". So, the form couldn't be processed correctly. Has anybody encountered

[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
a new page that receives the file, or not using $PHP_SELF but > the actual filename. Can't do that, the page 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.

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

[PHP] Re: Part PHP part MySQL question

2003-03-08 Thread bill
s the next 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 enter

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

2003-07-30 Thread bill
uthors are used to editors doing things with their text; think of a magazine or newspaper editing, cutting, putting in pictures, etc. Second, authors don't want to learn html any more than they want to learn page layout programs. Give them some basic formatting stuff and add more as needed.

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

2003-08-08 Thread bill
.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:

[PHP] sorting results in PHP

2003-03-17 Thread bill
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 (

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

Re: [PHP] sorting results in PHP

2003-03-17 Thread bill
d the order to SELECT ... GROUP BY $detailsdb.eid HAVING foobar = $numcatchoices ORDER BY Year, Month, Day thanks, bill "John W. Holmes" wrote: > > Sorting like that doesn't get it sorted by date. Each row has a lot > of > > fields. It > > a

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

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

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

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

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 ar

[PHP] session_destroy causes backspace on IE

2003-10-24 Thread bill
The following code causes IE to break the tag. logout Logout page"; $_SESSION = array(); session_destroy(); echo "Session destroyed\n"; echo " \n"; ?> View/Source in IE: displays this (note broken): logout Logout pageSession destroyed h1> Details: Works fine in other browsers I've tried

Re: [PHP] session_destroy causes backspace on IE

2003-10-24 Thread bill
ession_destroy() command because commenting it out the problem goes away. kind regards, bill Eugene Lee wrote: On Fri, Oct 24, 2003 at 01:24:32PM -0400, bill wrote: : : The following code causes IE to break the tag. : : : session_start(); : header("Cache-control: private"); : echo

Re: [PHP] session_destroy causes backspace on IE

2003-10-25 Thread bill
Aha, I'm using PHP 4.1.2 with trans-sid enabled for browsers that don't use cookies. Now that I know where to look, I found that putting ob_start() at the beginning seems to help. kind regards, bill David Otton wrote: On Fri, 24 Oct 2003 15:42:45 -0400, you wrote: Tried break

[PHP] session vars with recursive form

2001-01-12 Thread bill
now the top of the page says: --- session_start(); $thevals=array(alpha,beta,gamma,delta,epsilon); while (list($key, $val) = each($thevals)) { if (!session_is_registered($val) ) { session_register("$val"); } } -- thanks, bill -- PHP General Mailing

Re: [PHP] session vars with recursive form

2001-01-12 Thread bill
O.K., this seems to work: --- $thevals=array(alpha,beta,gamma,delta,epsilon); while (list($key, $val) = each($thevals)) { if ($HTTP_POST_VARS["$val"] && (!session_is_registered("$val"))) { session_register("$val"); } } ---

[PHP] Calendar holidays

2001-01-13 Thread bill
If I create an office calendar using PHP & mySQL, how can I program normal days off for (U.S.) holidays like Christmas, Fourth of July, Easter, etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] changing strings to float vars

2001-01-15 Thread bill
e intval() 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
disabled. I pass the session id via a hidden tag within a POST form. ?> thanks for any help, 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: [EM

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

Re: [PHP] CGI BIN PHP

2001-02-22 Thread bill
dir $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

[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/) To

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

2001-04-27 Thread bill
$days = ; 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: Jacky >

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, &g

Re: [PHP] searching a MySQL database

2001-05-06 Thread bill
27; ) 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 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] PHP Mysql query data conversion newbie

2001-05-09 Thread bill
nder high enough load to make a difference :( i prefer to let mysql do all the work it can 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

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): > > test link > > Here's redirect.php: > > echo $fred; I don't think you can output anything like this to the browser before you issue

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

2001-05-10 Thread bill
eldname called "approved". In any case, assuming 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&

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: > > > if ($HTTP_GET_VARS['fred'] != "") { > # $statement = "UPDATE links SET hits=hits+1 WHERE href=\"$u\""; > # mysql_query($statement); > header("Location: $HTTP_GET_VARS['

[PHP] myPhpAdmin question

2001-05-10 Thread bill
blah. 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

Re: [PHP] myPhpAdmin question

2001-05-10 Thread bill
tes in php.ini or in .htaccess 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 \ characte

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 match

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 versio

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: > &g

Re: [PHP] phpMyAdmin: dumping problem

2001-05-14 Thread bill
ot;\" with a double slash "\\" Use 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 ser

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

Re: [PHP] detecting HTML tags

2001-05-15 Thread bill
Yes, I thought similarly. But so far, neither works. $string="blah x<4 blah"; if (strlen($string) != strlen(strip_tags($string))){ echo "html"; } else { echo "text"; } The above still echos "html". kind regards, bill Jack Dempsey wrot

Re: [PHP] If (!$submit)

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

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 regard

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

[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] find value of image tag

2002-04-18 Thread bill
How can I find the value of image tags in an HTML file: 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://www.php.net/unsub.php

[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] php include path setting in .htaccess

2002-02-28 Thread bill
How can I set the php include path on an Apache machine using .htaccess. Assuming I'm puting it outside of the web root, I think it is something like: php_include_path "../includefiles/:../../includefiles/" but that generates server errors. Any suggestions? kind regards

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

[PHP] parsing XML turorials, suggestions

2001-10-29 Thread bill
ons? 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-general@lists.php.net

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 hol

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

[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
far, I've been 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

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

Re: [PHP] Need another verse

2001-12-20 Thread bill
;s been sending emails, > She 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

[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
stamp - $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 [EM

[PHP] mysql_insert_id() & CGI

2001-04-03 Thread bill
query, 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 contac

[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 2"; } // end if } // end whil

[PHP] Metaphone, Soundex , MySQL

2001-04-08 Thread bill
n and searching 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: [

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/)

[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://[^ ]*)","\\1",$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/)

[PHP] new break tags

2001-06-29 Thread bill
s new lines with: but instead with the new XHTML compliant break tags: 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 PROTE

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

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

[PHP] Re: url to link

2001-07-28 Thread bill
Bill wrote: > 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? Thou

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 th

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

[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) Hi, > > What I'd like to do is take a string (paragraph) of text consisting of say > 500 wo

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

[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

[PHP] multi-dimensional array won't echo

2001-08-25 Thread bill
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]\n"; //displays Array[27] echo $myarray[$string1][$string2] . "\n"; //displays syncopated -- PHP General Mailin

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

[PHP] generate random ascii string

2001-09-01 Thread bill
How can a random string of only letters and numbers be generated? I'm stumped so far on how to avoid including symbols. -- 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 administrat

Re: [PHP] generate random ascii string

2001-09-01 Thread bill
) { mt_srand ((float) microtime() * 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 w

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

2001-09-01 Thread bill
ture reference. PHP 3 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 : > > > $tm

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

[PHP] passing parameters from the command line

2001-09-24 Thread bill
d 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] 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
link text Scott Mebberson wrote: > Hi Guys, > > How do you reference both a named anchor and a query string in a link? i.e. > link text I am not sure if this is > even possible? > > thanks > > Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

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

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 PRO

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 (http://www.php.ne

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 s

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 >

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

Re: [PHP] character encoding

2008-03-26 Thread Bill
the encoding in the editing window of Outlook while this garbaged email shows it doesn't work. I still see the garbage, yet my 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

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

  1   2   3   >