Re: [PHP] Sql server -- trusted connection

2003-01-20 Thread Lowell Allen
. "\n" . "\n"); exit(); } $rs_fld0 = $rs->Fields(0); $rs_fld1 = $rs->Fields(1); $rs_fld2 = $rs->Fields(2); while (!$rs->EOF) { echo("$rs_fld0->value$rs_fld1->value$rs_fld2->value\n"); $rs->MoveNext(); } $rs->Close(); $db_connection->Close(); -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email being blocked

2003-01-29 Thread Lowell Allen
eturn path header and cause receiving systems to block as spam. There's a user contributed note in the manual: <http://www.php.net/manual/en/ref.mail.php> -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encryption using MMCrypt - whats the point?

2003-01-30 Thread Lowell Allen
Could you use the Zend Encoder to encrypt the PHP script? <http://www.zend.com/store/products/zend-safeguard-suite.php> -- Lowell Allen > From: Mike Morton <[EMAIL PROTECTED]> > Date: Thu, 30 Jan 2003 09:30:36 -0500 > To: <[EMAIL PROTECTED]> > Subject: [PHP] Encryp

Re: [PHP] php question - query string

2003-01-30 Thread Lowell Allen
cause it's associated with "true" (as 0 is associated with "false"). -- Lowell Allen > From: "Anthony Ritter" <[EMAIL PROTECTED]> > Date: Thu, 30 Jan 2003 18:30:28 -0500 > To: [EMAIL PROTECTED] > Subject: [PHP] php question - query string &g

Re: [PHP] Base64 Encode

2003-02-02 Thread Lowell Allen
relates -- I use the code below as a "force frame", placing it at the top of all content pages as an include. (In my case info.php posts to index.php, which allows any content page that's called directly to be returned in a frameset.) <!-- if (top.location == self.location) { top.location.href = "info.php?contents=" + "<?=$page_name?>" } // --> -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] escaping quotes in mail() message

2003-02-03 Thread Lowell Allen
str_replace() on $message to escape double quotes, the email shows the escaping backslash but is still truncated at the double quote! I've got magic_quotes on, but I think I'm keeping up with stripslashes because single quotes are showing up correctly. Can anyone please advise? -- Lowe

Re: [PHP] escaping quotes in mail() message

2003-02-03 Thread Lowell Allen
uncated at the double quote! [snip] > The way around this is to use htmlentities() or htmlspecialchars() on your > string before you insert it into the value attribute of your form element. > It will come out decoded on the the other side, so you don't have to worry > abo

[PHP] tracking bulk email

2003-02-03 Thread Lowell Allen
ludes '--enable-safe-mode', but the directive safe_mode is "Off". I'm building a test list with over 100 messages, but has anyone done something similar to prevent the script timing out when sending lots of mail? Thanks. -- Lowell Allen -- PHP General Mailing List (ht

Re: [PHP] tracking bulk email

2003-02-04 Thread Lowell Allen
> From: "Kevin Stone" <[EMAIL PROTECTED]> > > - Original Message ----- > From: "Lowell Allen" <[EMAIL PROTECTED]> > >> I've added an email feature to a content management system that will send >> plain text email to about 1400

Re: [PHP] tracking bulk email

2003-02-04 Thread Lowell Allen
attempts generated while looping through the email list (thanks, Kevin). But if I do a version with a cron tab I'll store in MySQL instead, since speed really wouldn't be much of a factor for a process without user involvement, and for me it would be easier to manage. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] tracking bulk email

2003-02-04 Thread Lowell Allen
> From: "Matt Schroebel" <[EMAIL PROTECTED]> > >> -Original Message- >> From: Lowell Allen [mailto:[EMAIL PROTECTED]] >> Sent: Monday, February 03, 2003 12:38 PM >> To: PHP >> Subject: [PHP] tracking bulk email >> (1) My client is

[PHP] returning results of cURL POST

2003-02-08 Thread Lowell Allen
{ echo 1; } The receiving script doesn't display anything and should only echo as shown above. I don't get how to return success or failure from the receiving script. The information I've been able to find on cURL doesn't clarify this. Can anyone shed some light? Tha

Re: [PHP] returning results of cURL POST

2003-02-08 Thread Lowell Allen
> From: Lowell Allen <[EMAIL PROTECTED]> > [snip] > > // check cURL results > if ((trim($curl_results) != 1) || (trim($curl_results) != 0)) { > // maybe nothing returned, bail out > echo("Can't confirm results of attempt to add to database!\n"); > e

Re: [PHP] Delimited file values behaving strangely...

2003-02-10 Thread Lowell Allen
using trim() on the value to get rid of blank spaces, returns, and other weirdness. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mac os 9 - file upload problems

2003-02-11 Thread Lowell Allen
ve the issue. I have no problems with file uploads using IE 5.1, Mac OS 9.2. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session expiration

2003-02-21 Thread Lowell Allen
x, PHP 4.1.2, session.cookie_lifetime setting is 0, session.use_cookies setting is On, session.use_trans_sid setting is 1, and other configurations as mentioned above. Why are sessions expiring? Comments and directions to more information are appreciated. -- Lowell Allen -- PHP General Mailin

Re: [PHP] Re: session expiration

2003-02-21 Thread Lowell Allen
if (session_is_registered("user")) { echo("Logged in as $user."); } else { ?> Problem: You are not logged in. Login "Lowell Allen" <[EMAIL PROTECTED]> schreef in bericht > [EMAIL PROTECTED]">

Re: [PHP] session expiration

2003-02-21 Thread Lowell Allen
> You can also define your own session handler to do what you want. > > Why not just use a cookie to "remember me" though, instead of keeping the > sessions persistant? You're going to end up with a file on your computer for > _every_ person that visits the site and the file w

Re: [PHP] Question about replacing \r\n with

2003-02-22 Thread Lowell Allen
. > > And nl2br doesn't work either. > > Can anyone help? Here's what I use to make two returns a paragraph return and one return a baseline return: $text = ereg_replace("\r", "", $text); $text = ereg_replace("\n\n", "", $text); $text = ereg_replace("\n", "\n", $text); $text = ereg_replace("", "\n", $text); HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date problem

2003-02-27 Thread Lowell Allen
es: > $day=17 > $month=2 > $year=2003 > I searched a lot, but I didn't find how to do this. > I'll be very happy if someone helps! > list($year, $month, $day) = explode("-", $newdate); -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mortgage calculator

2003-03-05 Thread Lowell Allen
down. Some things seem so obvious that you just don't think you > need to bookmark! So why can't I remember... > > I would just prefer not reinventing the wheel. Suggestions would be greatly > appreciated. There's a free PHP mortgage calculator at <http://www.drea

php-general@lists.php.net

2003-03-05 Thread Lowell Allen
e general approach -- whew! Anyway, for anyone struggling with this sort of thing, building a queuing system like this seems to work well, and I'm sure it would be safe to greatly increase the speed above 50/5 minutes. HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general@lists.php.net

2003-03-06 Thread Lowell Allen
and bounced/undeliverable email goes to that user email account. Someone at the client company monitors that address, verifies the bounce, and manually removes the address from the list. Good luck with your project! -- Lowell Allen > From: J J <[EMAIL PROTECTED]> > Date: Wed, 5 Ma

Re: [PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread Lowell Allen
(I think this is from the Welling and Thomson book -- PHP and MySQL Web Development.) -- Lowell Allen > From: "shaun" <[EMAIL PROTECTED]> > Date: Thu, 6 Mar 2003 13:45:52 - > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Checking for empty values sent from a form >

Re: [PHP] sessions terminating randomly please help

2003-03-10 Thread Lowell Allen
s logged in (Mac OSX IE). He got Microsoft tech support to duplicate the behavior and confirm it's a problem with IE -- doesn't happen with Mozilla. So, it's important to verify the problem with more than one system, but it sounds like you have since you mention both IE6 and IE Mac! -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A php-mysql checkbox question

2003-07-05 Thread Lowell Allen
;2\" AND features.TheTest=\"1\""; > > What I get in the return is: > > X Window > pool > fence > drive > > Window > pool > X fence > drive > > Window > pool > fence > X drive I'm not sure how you're formatting

Re: [PHP] multi file multi colomn

2003-07-16 Thread Lowell Allen
cords; $x++) { $merged_files = $records1[$x] . $records2[$x] . (etc) . $records40[$x]; } If you need the data separated with semicolons, add them when concatenating. HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail From option in PHP.ini

2003-07-20 Thread Lowell Allen
e problem is that I have no idea what the syntax of the command line parameter is (what the "-f" does). Can anyone advise? Is it possible to use this fifth parameter to set the return-path header, and if so, what's the syntax? TIA, -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File ordering

2003-08-14 Thread Lowell Allen
tdh = opendir($txtdir); > > while($file = readdir($imgdh)) { > if(substr($file,-3)=="jpg") { > $imgFiles[] = $file; > $textFileName = substr($file,0,-3)."txt"; > $textFiles[] = $textFileName; > } > } Just sort the $imgFiles array. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems send MIME multipart/alternative mail with php

2003-08-20 Thread Lowell Allen
e a plain text message and an HTML-formatted message and write everything to a MySQL database. A separate script that's called by a crontab actually sends the email. (That let's me control frequency and volume.) After pulling from the database, I build the multipart message fr

[PHP] PHP and directory permissions

2003-08-22 Thread Lowell Allen
liams? Would it be better to rewrite my script so that it doesn't need to create files? Comments on the best approach for security and reliability would be appreciated. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP permissions problem

2003-08-25 Thread Lowell Allen
nux/Apache 1.3.28 -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP permissions problem

2003-08-26 Thread Lowell Allen
> * Thus wrote Lowell Allen ([EMAIL PROTECTED]): >> My commercial host is set up with the public root directory, "public_html", >> owned by user: userid, group: nobody. Directories I create within >> public_html are owned by user: userid, group: userid. As a result,

Re: [PHP] problem passing variable between forms.

2003-08-26 Thread Lowell Allen
= base64_encode(serialize($array)); You can then pass $portable_array as a form hidden input value. To turn it back into an array: $array = unserialize(base64_decode($portable_array)); -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and IIS 5.0

2003-03-19 Thread Lowell Allen
The error reporting level setting is set higher on the Windows box than on your Linux box. See info in the manual about changing, or define all those variables. HTH -- Lowell Allen > From: "Beauford.2002" <[EMAIL PROTECTED]> > Date: Wed, 19 Mar 2003 11:11:42 -0500 >

Re: [PHP] Addslashes problem (MSSQL)

2003-03-20 Thread Lowell Allen
MS-SQL doesn't escape with slashes. It escapes single quotes with single quotes. -- Lowell Allen > From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> > Date: Thu, 20 Mar 2003 10:58:02 -0500 > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]

Re: [PHP] Addslashes problem (MSSQL)

2003-03-20 Thread Lowell Allen
Read the user-contributed notes following the online manual info on addslashes: <http://www.php.net/manual/en/function.addslashes.php> -- Lowell Allen > From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> > Date: Thu, 20 Mar 2003 11:20:51 -0500 > To: 'Lo

Re: [PHP] cookies with internet explorer on macs

2003-03-31 Thread Lowell Allen
the problem. I use Mac OS 9/Internet Explorer/Outlook Express -- no problem. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mailing forms and input into MySQL

2003-04-02 Thread Lowell Allen
1\n"; if ($address2 != "") { $message .= "Address: $address2\n"; } etc. Then send it and report failure or success to the user like so: if ([EMAIL PROTECTED]("$send_to_name<$sendto>", $subject, $message, $headers)) { // report failure to send confir

Re: [PHP] MSSQL using Sybase FreeTDS

2003-04-03 Thread Lowell Allen
/function.addslashes.php>, which will direct you to other info on changing the escape character used. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect

2003-04-03 Thread Lowell Allen
documentation at <http://www.php.net/manual/en/function.header.php>. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formatting issue.

2003-06-16 Thread Lowell Allen
== 0) { echo("$image"); if ($i+1 == $img_count) { echo("\n"); } } elseif ($i%3 == 1) { echo("$image"); if ($i+1 == $img_count) { echo("\n"); } } elseif ($i%3 == 2) { echo("$image\n"); } $i++; } Hope this helps. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CSS help

2003-06-18 Thread Lowell Allen
coration: none } a:visited { color: #036; text-decoration: none } a:hover{ color: #fff; text-decoration: none; background-color: #339 } a:active{ color: #fff; text-decoration: none } -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Spellchecking using PHP on WinXP?

2003-06-19 Thread Lowell Allen
ution, but I can recommend the Java-based JSpell spell checker if you've got Tomcat on Apache and you're OK with *absolutely no support* installing. <http://www.jspell.com/> -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem receiving notification emails to mails sentwith php

2003-06-21 Thread Lowell Allen
o tried using \r\n instead of \n Send yourself an email using PHP and examine the Return-Path listed in the source code. (The Return-Path is not the same as the From you're setting.) If you're using a commercial host (shared hosting), then the Return-Path is probably something like [EMAIL

Re: [PHP] Paying Job...

2002-07-25 Thread Lowell Allen
g a project (1/3 to 1/2 the total fee). A good proposal protects both you and the client. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql question

2002-07-26 Thread Lowell Allen
ansfer (data and > structure) a MSAcess database to Mysql, and vice versa. Anyone know? Thanks > MS Access2MySQL Converter is at <http://www.dmsofttech.com/downloads.html>. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] NS4.x / IE3.0 Browser Detection

2002-08-20 Thread Lowell Allen
_AGENT"))) && (!eregi("Gecko", getenv("HTTP_USER_AGENT"))) && (eregi("Mac", getenv("HTTP_USER_AGENT" Do you really need to differentiate between 4.x versions? It looks like you're matching any 4.x version. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] NS4.x / IE3.0 Browser Detection

2002-08-20 Thread Lowell Allen
redirect all platforms for NS4, but you can check out the differences here: <http://www.webreview.com/style/css1/charts/mastergrid.shtml> -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pay Pal

2002-09-30 Thread Lowell Allen
one > know any other site I can use? > Go to <http://www.hotscripts.com/> and search for PayPal under PHP. There are several scripts listed -- some free. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] spell checker

2002-10-01 Thread Lowell Allen
x27;t been able to find an existing, inexpensive PHP spell checker solution. Can anyone direct me to one or provide advice? Thanks. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and Flash

2002-10-02 Thread Lowell Allen
ing loads into the text > field. The client swears that it isn't, but it is dammit. Or is it? > > http://www.overbrookfarm.myiglou.com/ > Works fine for me in Mac OS 9.2, both Mozilla 1.0 and IE 5.1, Flash player 6. But with Mac OS 9, IE 5.1 and Flash player 5, I get a blank page.

Re: [PHP] working with pspell

2002-10-06 Thread Lowell Allen
recommend on this topic? > I'm currently doing a spell checker, and found this article very helpful: <http://www.zend.com/zend/spotlight/spellchecking.php>. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is there an alternative to this code?

2002-10-08 Thread Lowell Allen
ag: STYLE="display: inline;" A previous post recommended doing something similar by setting HSPACE and VSPACE to zero, but be aware that both HSPACE and VSPACE are deprecated in HTML 4. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secure File Upload

2002-06-04 Thread Lowell Allen
le to really PREVENT uploads, let's say > bigger than 10 MB?! > Add this to your HTML form: HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secure File Upload

2002-06-05 Thread Lowell Allen
e-up is on the client machine during upload. For example, I did a site where uploads of 24 Mb are possible, but the max_execution_time is only set to 50 (and I'm pretty sure it could be lower). HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] browser timeouts with file upload

2002-06-12 Thread Lowell Allen
't counted as execution time because nothing is happening at the server. Perhaps whatever process you're using for handling multiple files causes the timeout? I'd love to hear how you resolve the problem, because I need to do a multiple file upload system soon. <http:/

Re: [PHP] using a variable stored in a variable.

2002-06-18 Thread Lowell Allen
> From: "Renaldo De Silva" <[EMAIL PROTECTED]> > > how can i use a variable stored in a vaiable in a if statement? > Check the manual info on variable variables: <http://www.php.net/manual/en/language.variables.variable.php> -- Lowell Allen -- PHP Genera

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lowell Allen
Windows servers the Bcc: header is not removed when sending, so recipients can see Bcc: receivers by examining the headers. This is from Kevin Yank's "Advanced email in PHP" on WebmasterBase.com. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nested Menu Help

2002-06-23 Thread Lowell Allen
categories for the selected main category. The subcategories are also displayed with links back to the script passing the variable $MainCatID again plus the variable $SubCatID. When the script is called with $SubCatID set, the submenu name with ID equal to $SubCatID is also class-styled to indicate the selection. The main page display (in this case for a products catalog) is generated by other selection queries based on $MainCatID and $SubCatID. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Lowell Allen
vailable to change the permissions? > I thought unlink() did not work on Windows. Notes in the manual suggest this for Windows: system("del name.ext"); -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] uploading a file via php - i need some simple code

2002-07-03 Thread Lowell Allen
ipart/form-data"> > [snip] Without looking at your other code, I'll just point out that the value for MAX_FILE_SIZE is in bytes, so you're specifying a very small files size as your max. Perhaps you're off by a few magnitudes. For example, "24576000" woul

[PHP] returning first paragraph from a string

2002-07-04 Thread Lowell Allen
quot;\n\n", "", $summary); $summary = preg_replace("#(.*)#", "\1", $summary); This also returns only the second paragraph. Can anyone point out what I'm doing wrong, or suggest another approach? TIA -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] returning first paragraph from a string

2002-07-04 Thread Lowell Allen
anyone recommend a good online reference, book, or tutorial for regular expressions? -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best Content Management METHOD...

2002-07-08 Thread Lowell Allen
home page is static HTML that's generated by opening a script-generated version of the page as an http: URL with fopen(), written to a temp file, then copied to replace the previous static home page. Detail/article page displays would remain script generated. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and geographic maps

2002-07-11 Thread Lowell Allen
e for PHP/MySQL. I've been Google-searching info on GIS and GPS and GMT, but thought it might be worthwhile to ask this discussion list for input. Can anyone direct me to info on PHP presentation of geographic maps -- tied to a database with locating coordinates? Thanks. -- Lowell Allen

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Lowell Allen
of map coordinates, wouldn't it? If the corners of each rectangular map view were referenced, couldn't any point be placed in relation to 3 of the corners? > My $.10 > Thanks for the input. I certainly don't know if the client's desire is realistic, and I appreciate any guida

Re: [PHP] PHP and geographic maps

2002-07-12 Thread Lowell Allen
> From: "Peter J. Schoenster" <[EMAIL PROTECTED]> > > On 11 Jul 2002 at 16:42, Lowell Allen wrote: > [snip/] >> >> Can anyone direct me to info on PHP presentation of geographic maps -- >> tied to a database with locating coordinates? > > W

Re: [PHP] PHP and geographic maps

2002-07-12 Thread Lowell Allen
ap server? If so, does that mean multiple maps are loaded during the interaction with the map server, then called as needed, or is one image created by the map server then modified with JavaScript or PHP for different zoom views and pans? Thanks, I find your project description very helpful. -- L

[PHP] Re: PHP and geographic maps

2002-07-12 Thread Lowell Allen
he database... > The system would need to handle a few thousand properties. > The one tricky part is getting public domain maps of the regions you want. > We may need to commission a graphic artist or cartographer to synthesize the > desired maps... > I don't think that will be

Re: [PHP] PHP and geographic maps

2002-07-12 Thread Lowell Allen
> From: Analysis & Solutions <[EMAIL PROTECTED]> > > On Fri, Jul 12, 2002 at 09:25:56AM -0400, Lowell Allen wrote: >> Are you using JavaScript to update the image without going back to the map >> server? > > Dude, Dynamic HTML / JavaScript are a poor idea.

[PHP] How to exec PHP as CGI

2003-08-27 Thread Lowell Allen
eference my PHP script headed with "#!/usr/bin/php -q"? And how do I return something to tell me if execution was successful? I'm searching through the manual, but links to good examples (or outright explanations) would be greatly appreciated. -- Lowell Allen -- PHP General Mailing

[PHP] Creating files in public_html

2003-08-29 Thread Lowell Allen
ill be acceptable. This is my third post concerning this (rephrased and refocused each time). Does anyone else need to create and update files in their main directories? Is this a security problem? Do I need to completely rewrite the CMS to use a subdirectory? -- Lowell Allen -- PHP General Ma

Re: [PHP] password systems

2003-09-02 Thread Lowell Allen
> Anyone have any sources of noun/verb/adjective lists for password > generation? Google search for Aspell and Pspell. Here's a link to Aspell info, which has a link to dictionaries: <http://aspell.net/> -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Is there an issue using sessions with IE/Mac?

2003-09-09 Thread Lowell Allen
and he said Microsoft confirmed the problem. However -- I've since gone to OSX and can't duplicate the problem on my system. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web server file perms || More than I can chew.....

2003-09-19 Thread Lowell Allen
at link (script) writes info to the database, flagging an update request. Every 5 minutes, a crontab calls the PHP CGI script that actually does the update. The script checks the database flag and does the updates if they've been requested (flagged). Bottom line -- discuss the problem

Re: [PHP] XHTML / CSS

2003-09-22 Thread Lowell Allen
> First, excuse-me for this out of topic message. > > I am searching a good mailling-list for people trying to write standard > XHTML and CSS. css-discuss <http://www.css-discuss.org/mailman/listinfo/css-d> -- Lowell Allen -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Form Passed Multidimension Array

2003-09-26 Thread Lowell Allen
ray: $array = unserialize(base64_decode($portable_array)); -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session info stored on server

2003-09-26 Thread Lowell Allen
aren't those sessions still listed in the sessions directory? Thanks for any insights. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session info stored on server

2003-09-26 Thread Lowell Allen
troy() were never called for those sessions. Why aren't those >> sessions still listed in the sessions directory? > session_start() runs garbage collector in current session save path > directory. The plus is you are not affected by other virtual hosts on > the same server. So

Re: [PHP] Sessions

2003-10-10 Thread Lowell Allen
ectory for saving session data. Create a directory (on the same level as your directory of publicly-viewable files if you can) and before the 'session_start();' line, do 'session_save_path("../my_sessions_dir");'. Also be aware that circumstances on the client side ca

Re: [PHP] Sessions

2003-10-11 Thread Lowell Allen
starts like this: require_once($req_fns); session_save_path(prepath($PHP_SELF) . "../ccb_sessions"); session_start(); Note that when I said my session data directory is on the same level as my publicly viewable files (public_html), I mean that the session directory is not contained wi

Re: [PHP] more proplems with passing arrays

2003-11-02 Thread Lowell Allen
code($_GET["whatever"])); HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mailing List

2003-11-03 Thread Lowell Allen
sses and sends the message. By controlling the number of addresses selected and how often the crontab calls the script, the email rate is controlled. And using a crontab makes it a background process. The email message is created and list progress monitored through a content management system. --

Re: [PHP] dictionary

2003-11-05 Thread Lowell Allen
n example snippet > [snip] > > What I want is a dictinary of some sort to try and eliminate the lines > where and english word does not exist !! > > Anyone got any ideas ... greatly appreciated The GNU Aspell project includes dictionaries: <http://ftp.gnu.org/gnu/aspell

Re: [PHP] Cell Colour Change!!! HELP

2003-11-07 Thread Lowell Allen
F)) { $color = "red"; } elseif (eregi("contact", $PHP_SELF)) { $color = "yellow"; } else { $color = ""; } HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help With Recursion && Multi-Dimensional Arrays

2003-11-09 Thread Lowell Allen
2[2] . "\n\n"); } else { echo("" . $sublink2[2] . "\n\n"); } } } } } elseif ($pid == "0") { // only display children of current page // build submenu of child pages of curren

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Lowell Allen
for non-HTML use (like for plain text email), or if I actually *WANT* to use stored HTML code (like for HTML-formatted email) TIA -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Having fits with input to array

2003-11-14 Thread Lowell Allen
and > eval("\$psArray = array($ps2);"); - This one gives me a parse error > (Parse error: parse error, unexpected T_STRING, expecting ')' in > /var/www/html/ps.php(25) : eval()'d code on line 1) > > When I have used the same eval in another page I get eac

Re: [PHP] Quick ereg_replace question

2003-12-02 Thread Lowell Allen
uld be appreciated. Try listing the - as the first character (or last) so it's not seen as showing a range. > Also, any good references for regular expressions? O'Reilly's "Mastering Regular Expressions", by Jeffrey Friedl. HTH -- Lowell Allen -- PHP General Mailing

Re: [PHP] Sessions, ending and starting new with just a click

2003-12-03 Thread Lowell Allen
order, you can give it a different id when saving to the db. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Expiration Problem....

2003-12-03 Thread Lowell Allen
ly an inelegant solution, but it's better than losing the form data. In my situation, I've considered rewriting the PHP script that's receiving the form post so that if the session has expired it will re-display a simplified version of the form (without showing protected content) with the pos

Re: [PHP] PHP Dynamic menu building

2003-12-05 Thread Lowell Allen
if ($menu3[1] == $menu[0]) { if ($menu3[0] == $id || $menu3[0] == $pid) { echo("" . $menu3[2] . ""); } else { echo("" . $menu3[2

Re: [PHP] Structuring keyword searches

2003-12-09 Thread Lowell Allen
-- <http://www.lukelaura.com>. The system described is your option (1) above, and allows the keywords to be weighted by the contributors. HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Selecting between using letters

2003-12-29 Thread Lowell Allen
reatly appreciated. $sql = "SELECT * FROM table WHERE LastName REGEXP '^[A-E]'"; HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rename generates level 2 warning but works

2003-12-31 Thread Lowell Allen
tions are greatly appreciated... Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch of time yesterday with an upload script that did not recognize files when using "$_FILES", but worked fine with "$HTTP_POST_FILES" -- PHP 4.3.4 on Linux. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rename generates level 2 warning but works

2003-12-31 Thread Lowell Allen
> Lowell Allen wrote: > >> >> Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch >> of time yesterday with an upload script that did not recognize files when >> using "$_FILES", but worked fine with "$H

Re: [PHP] Upload and PullPicture???

2004-01-13 Thread Lowell Allen
quotes_gpc() ? htmlentities($_POST[$cp]) : htmlentities(addslashes($_POST[$cp])); $insert_sql = "INSERT INTO Images SET PagePath='$PagePath', FileID='$userfile_name', " . "Caption='$Caption', Sequence='$_POST[$sq]', LastMod=NOW(), UploadedBy='$valid_user'"; if (@!mysql_query($insert_sql)) { echo("Error adding image information to database: " . mysql_error() . "\n\n"); exit(); } echo("" . $userfile_name . " uploaded sucessfully and image information saved.\n"); -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql selecting question

2004-01-14 Thread Lowell Allen
if you're using MySQL version 3.23.2 or later, and you only want to return one random result you can use: $query = "SELECT * FROM table WHERE id<10 ORDER BY RAND() LIMIT 1"; I don't know if that works without the LIMIT clause; give it a try. HTH -- Lowell Allen -- P

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Lowell Allen
b $request = substr($REQUEST_URI, 1); $results = mysql_query("SELECT DisplayStatus FROM Pages WHERE MenuPath='$request' AND DisplayStatus='Y'"); if (!$results) { $db_error = mysql_error(); include("error_page.php"); exit(); } if (mysql_num_rows($

  1   2   >