Re: [PHP] Ensuring all links go to index.php

2006-10-20 Thread Lowell Allen
;] to map the "friendly" URL to content by including files or redirecting with header(). Is that what you mean? -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simultaneous post/get?

2006-06-12 Thread Lowell Allen
urceforge.net/projects/uber-uploader>. -- Lowell Allen Lowell: I don't do windows, I'm a mac guy. Me too, but Windows IE has so many problems I find it necessary to also have a Windows system to check things. However, I do have a BrowserCam account and on remote access under W2K, IE

Re: [PHP] Simultaneous post/get?

2006-06-11 Thread Lowell Allen
IE6 (of course). Is it working in Windows IE6 for you? I got a working upload progress bar by using Uber Uploader <http://sourceforge.net/projects/uber-uploader>. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OS Detection

2005-11-17 Thread Lowell Allen
or_user_agent, "opera")) { $browser = 'opera'; $dom_browser = true; } [snip] Any suggestions on getting the OS ? If you're using the above to match parts of the $_SERVER["HTTP_USER_AGENT"] string, why not also use stristr() to look for "windows&q

Re: [PHP] Sending arrays from page to page

2005-11-17 Thread Lowell Allen
as a hidden form value: <http://us2.php.net/manual/en/function.serialize.php> You may need to also encode the serialized value: <http://us2.php.net/manual/en/function.base64-encode.php> HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Scary nonsense form submissions

2005-09-05 Thread Lowell Allen
s and return an error message if any are found. I also added two returns following my own mail headers, which supposedly prevents an injection of additional headers -- see <http://us2.php.net/manual/en/ref.mail.php#55112>. And see the recent thread on this list -- "Be careful! Look a

Re: [PHP] Re: SFTP problems

2005-06-20 Thread Lowell Allen
xt files and binary files, and the remote server will be Windows (although I'm now testing on Linux), so that's why I have the "t" flag, but you're probably right to suggest just using "b" in all cases. Thanks for your reply. -- Lowell Allen Lowell Allen w

Re: [PHP] Re: SFTP problems

2005-06-19 Thread Lowell Allen
On Jun 19, 2005, at 12:37 PM, M. Sokolewicz wrote: Lowell Allen wrote: I need to use SFTP to send text files and binary files from one server to another, but I'm unable to use fopen on the remote server, and if I send with ssh2_scp_send the files are truncated. I'm assuming t

[PHP] SFTP problems

2005-06-19 Thread Lowell Allen
H" in the February PHP Architect. That's what prompted me to try PECL/ssh2, but now I'm stuck. Anybody successfully using fopen with SFTP or anybody using ssh2_sftp_send without getting truncated files? -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SFTP problem

2005-06-18 Thread Lowell Allen
H" in the February PHP Architect. That's what prompted me to try PECL/ssh2, but now I'm stuck. Anybody successfully using fopen with SFTP or anybody using ssh2_sftp_send without getting truncated files? -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SFTP problems

2005-06-18 Thread Lowell Allen
H" in the February PHP Architect. That's what prompted me to try PECL/ssh2, but now I'm stuck. Anybody successfully using fopen with SFTP or anybody using ssh2_sftp_send without getting truncated files? -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installation

2005-06-09 Thread Lowell Allen
to install PHP. Or which file (if any) to configure. Can someone please help me? Tony Suggest you try this product which installs Apache, PHP, MySQL (and more) at the same time: <http://www.reactorserver.com/>. It makes it very easy to set up a test server on a Windows box. -- Lowe

[PHP] ftp_put() problem

2004-12-15 Thread Lowell Allen
does work. I'm trying to avoid writing a file to the local server just to be able to use ftp_fput(). -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cURL FTP

2004-12-15 Thread Lowell Allen
On Dec 15, 2004, at 8:47 AM, Ian Firla wrote: On Wed, 2004-12-15 at 08:27 -0500, Lowell Allen wrote: I'm trying to FTP a text file from a commercial hosting server, but the file isn't being transferred and I'm not getting any feedback from the script. Here's the code: [sn

[PHP] cURL FTP

2004-12-15 Thread Lowell Allen
e I use it successfully for a couple scripts. The "upload" directory has permissions set to 777. The server I'm attempting to upload to runs in a shared hosting environment. I've read what I think are the relevant sections of the manual. I'd appreciate info or

[PHP] antique PHP problem

2004-09-11 Thread Lowell Allen
stuck with 4.0.6 for this project. I'd appreciate any suggestions on what I should check/advice on using $HTTP_SESSION_VARS. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] upload changes accented character

2004-08-01 Thread Lowell Allen
this isn't a PHP problem, but can anyone point me towards a solution? Setup is PHP 4.3.2 on FreeBSD 4.10, Apache 1.3.27. TIA -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Escaping php content output for valid html

2004-04-16 Thread Lowell Allen
. You could set up str_replace() translations to correct invalid character entity codes before displaying. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] binary data in php

2004-04-16 Thread Lowell Allen
e']; $uploaddesc = $_POST['desc']; [snip] You might try using "$HTTP_POST_FILES" rather than "$_FILES" -- was necessary in my code recently. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP editor

2004-04-15 Thread Lowell Allen
. Opinions? Zend Studio endorsements? Is it worth the time to learn to use? -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Lowell Allen
value that is inserted into the database is > Array, as opposed to the actual filename. The $HTTP_POST_FILES array works for me. Maybe you need to try the $_FILES array instead. Take a look at the info in the manual: <http://www.php.net/manual/en/features.file-upload.php#features.file

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Lowell Allen
form1"> > >value=""> >disabled> > > The uploaded file name will be $HTTP_POST_FILES["filename"]["name"] -- use that rather than $_POST["filename"]. HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's your favorite PHP weather code?

2004-02-28 Thread Lowell Allen
> I'm looking for some code to get the latest weather and put it on my > webpage, and have it very customizable. What are your favorites? > I've only tried this one -- found it easy to work with: <http://www.cruelacid.com/?page=weather> -- Lowell Allen -- PHP G

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Lowell Allen
> --- Lowell Allen <[EMAIL PROTECTED]> wrote: [snip] >> Am I overlooking a better solution? > > I'm not sure. To be clear, you're saying that the following two things do > not behave the same for you: > > header('Refresh: ...'); > > &

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Lowell Allen
wnload does not start automatically". I couldn't figure out how to display a page (after authorization), then use the PHP header redirect to force the download while keeping the same page display. However, using a meta refresh to a script that forced the download (without producing any di

Re: [PHP] Can PHP redirects be detected?

2004-02-09 Thread Lowell Allen
> On Mon, Feb 09, 2004 at 02:31:16PM -0500, Lowell Allen wrote: >> A recent thread on the WebDesign-L raised the question of whether search >> engines can detect (and penalize sites for) PHP redirects of the form: >> >> header("Location: http://www.whatever.com/

[PHP] Can PHP redirects be detected?

2004-02-09 Thread Lowell Allen
gt; request amazon.com) Note this is different from simply sniffing the UA > string from a single request and serving altered content. What say you, PHP list? Would it be better (in terms of search engine detection) to use include() to serve different or altered content? TIA -- Lowell Al

Re: [PHP] Need a way to automate user logout

2004-02-07 Thread Lowell Allen
she logs out. The problem is that users often don't log out, and sometimes leave directly from an edit screen. I tried using the Javascript onunload event to open a new window which runs a PHP script to unlock the record then close itself, but that doesn't work if pop-up blocking software

Re: [PHP] transactions

2004-01-29 Thread Lowell Allen
> Is there anyway to do something similar to Transactions in mysql? > Yes -- <http://www.mysql.com/doc/en/ANSI_diff_Transactions.html> -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] spelling without aspell/pspell?

2004-01-17 Thread Lowell Allen
on that > doesn't require any compiling or libraries exists Just FYI -- if you've searched for information on a spell checker, I'm sure you saw Jspell -- <http://www.jspell.com/jspell.html>. It's Java and Javascript, but I found it fairly easy to add to a PHP CMS. -- Lowe

[PHP] Locking and unlocking records

2004-01-15 Thread Lowell Allen
un a PHP script, and close the new window onload -- very nasty and unreliable with pop-up blocking so popular. Can anyone suggest an all-PHP way? TIA -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Calendar.

2004-01-15 Thread Lowell Allen
> Hi, > Is there any PHP function or set of PHP files that allows me to print the > current month in calendar format ? > You should write one. Here's mine, which I'm sure could be improved: HTH -- Lowell Allen function display_calendar($mon, $year) { // find curre

Re: [PHP] regexp with mysql

2004-01-15 Thread Lowell Allen
ss to much knowledge of regular expressions. Check the MySQL documentation. I saw something about REGEXP there recently. Also, there's a MySQL discussion list at <http://lists.mysql.com/>. HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-01-14 Thread Lowell Allen
ven took out the space which was in category. > > Any ideas? > [snip] Make sure you upload the .htaccess file as ASCII mode, not binary. (That wasted lots of my time recently.) -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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($

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

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

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

[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

[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

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

[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

[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

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

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

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

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

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

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

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

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

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

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

  1   2   >