Re: [PHP] Linux and Apache

2002-11-22 Thread Peter Janett
f the first 5 file names are found in the directory, Apache will redirect to your front page (assumption is your frontpage is called index.php, if it's not, change the last value, but leave the /). HTH, Peter Janett New Media One Web Services New Upgrades Ar

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Peter Janett
Since the user Apache is running as created the file, it owns it too. Make a quick PHP script to delete the files when ready. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun

Re: [PHP] problem with https

2002-11-27 Thread Peter Janett
ost set on port 443 to point to the wrong DocumentRoot, or you need to set one up on port 443, pointing to the right DocumentRoot. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Sol

[PHP] Favorite Email validation routine?

2003-01-12 Thread Peter Janett
t looking for a good, clean and fast email address syntax check. So, what is your favorite bit of code to do that? Thanks, Peter Janett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] data move, Please Help..

2003-01-14 Thread Peter Janett
s a column that doesn't exist, in order to break the DSN lock. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25, Stronghol

Re: [PHP] Sessions or Cookies?

2003-01-17 Thread Peter Janett
Sessions themselves use cookies, though, right? So, if you want your app to work for those who don't have cookies, you have to pass the session data in the url string, at least that's my understanding. Peter Janett New Media One Web Services New Upgrad

[PHP] Measuring Query Times

2003-01-21 Thread Peter Janett
I'm trying to figure out if there is an easy way to measure how long my queries in PHP/MySQL are taking to execute. Any tips or code examples most appreciated. Thanks, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 acc

Re: [PHP] htpasswd

2003-01-23 Thread Peter Janett
sues exist that Evan pointed out (unless you're not in a shred environment, or are running PHP as cgi with Apache SuExe.), but those issues are for anything you do in PHP. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000

Re: [PHP] Re: query caching & caching in general

2003-01-23 Thread Peter Janett
that saves results sets in tmp files, but I'm guessing that having the results cached in memory would be faster than in files. I think maybe the file caching was part of a database abstraction layer. HTH, Peter Janett New Media One Web Services New Upgrades Ar

Re: [PHP] Using 404 instead of mod_rewrite

2003-02-03 Thread Peter Janett
an be called from anywhere in your web tree, so paths like ../images/img.gif won't work if a 404 is thrown in /directory/subdirectory/nothersubdirectory HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusi

Re: [PHP] setcookie() in various browsers.. 3rd followup.. anyone?

2003-02-11 Thread Peter Janett
, anyCname_you_want.domain.com, etc. Then, make sure your site NEVER loads without the www. (or something dot domain). Kind of a pain, but since newer browsers aren't sticking to that original spec (not sure I.E. ever did), the issue is going away with time. HTH, Peter

[PHP] Getting around the LOAD DATA LOCAL with MySQL 3.23.49 + using PHP?

2003-02-17 Thread Peter Janett
ame`, `Player_Tracker_Number`, `Last_Visit`, `Point_Balance`) failed Error #1148: The used command is not allowed with this MySQL version I'm running Red Hat Linux, Apache (Stronghold 3.x), and MySQL 3.23.52 Any help or hints most appreciated. Thanks, Peter Janett New Media One Web Serv

Re: [PHP] Protecting files

2003-02-17 Thread Peter Janett
: http://www.php.net/manual/sl/function.fopen.php HTH, Peter Janett New Media One Web Services http://www.newmediaone.net [EMAIL PROTECTED] (303)828-9882 - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Pax" <[EMAIL PROTECTED]>; <[EMAI

Re: [PHP] Re: Using mod_rewrite and PHP

2003-02-27 Thread Peter Janett
You can do this in your PHP code by itself, no need to use Apache. Search for "search engine safe" or "search engine friendly". Fusebox.org has some default code that does this (follow the links for PHP fusebox). HTH, Peter Janett New Me

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-07-01 Thread Peter Janett
/var/www/html/mydatabase. That would mean that in order for someone to get the user/pass, they would have to write a php script into my directory. Any more thoughts? This seems very appealing to me. Thanks, Peter Janett New Media One Web Services, LLC http://www.newmediaone.net [EMAIL PROT

[PHP] Reverse Phone Number Lookup in importable format

2003-06-16 Thread Peter Janett
e can come later. In other words, a non free option would be viable long term, and I'm hoping to avoid a legal discussion about scraping this kind of data, privacy, etc. Any ideas, resources, etc would be most appreciated. Thanks, Peter Janett New Media One Web Services, LLC http://www.newme

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-06-30 Thread Peter Janett
PHP script with the passwords outside the web root. Has anyone done this? Any thoughts on how someone could still get the passwords with this setup? Thanks, Peter Janett New Media One Web Services, LLC http://www.newmediaone.net [EMAIL PROTECTED] (303)828-9882 -Original Message- Fr

Re: [PHP] Re: running php with .html files?

2002-07-28 Thread Peter Janett
You need to append or create a .htaccess file in the same folder as index.html, and add this line: ForceType application/x-httpd-php Then, just treat the index.html file as a php file. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live

Re: [PHP] Logging out with authentication

2002-07-28 Thread Peter Janett
Add a link to log out, like this: Log out That seems to work the way phpMyAdmin does, which I think is snazzy! HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) acc

[PHP]

2002-08-20 Thread Peter Janett
I'm converting over some .shtml files that call an external Perl script with the following format: I'm not sure what php function to use, as I'm returning the results of a Perl script, not really a UNIX command. Thanks, Peter Janett New Media O

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Peter Janett
Simply hold down the control key and then push the "r" key while looking at the source code window. That will cause the page source to repost, and you will see the resulting source code. HTH, Peter Janett New Media One Web Services New Upgrades Ar

Re: [PHP] Re: sending email with linefeeds

2002-09-06 Thread Peter Janett
27;Message'} =~ s/\r//g; HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25, Stronghold/3.0 (Apac

Re: [PHP] Mail problem with more than 1k users

2002-09-23 Thread Peter Janett
have successfully sent 15,000+ personalized messages, one at a time, with both Perl and PHP. (It takes a couple hours, but it does work.) Of course I only send opt in email, and I hope you are doing the same, as spam is always evil. :) HTH, Peter Janett New Media One Web Ser

Re: [PHP] Unix passwd file

2002-10-04 Thread Peter Janett
ocess is probably possible with whatever format they are in. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25, Stronghold/3.0 (A

[PHP] Need to move all MySQL tables to another server

2002-10-04 Thread Peter Janett
n the data, but I'm guessing someone else has faced this need, so there may be a PHP solution out there. I'm hoping I can find an open source Perl or PHP script that I can simply point at the old and new server and tell it to copy all databases and data to the new server. Any ideas?

[PHP] Need CyberCash MCK for Linux

2002-11-11 Thread Peter Janett
. So, anyone know where (or have a copy) of the CyberCash MCK software for Linux? Thanks, Peter Janett New Media One Web Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Apache Module vs CGI, both??

2002-11-18 Thread Peter Janett
safety switches that can be setup in PHP when compiled as an Apache module. Any and all info or ideas most appreciated! Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX)

[PHP] Old config options still showing after updating PHP

2002-06-21 Thread Peter Janett
ppreciated. Thanks, Peter Janett New Media One Web Services http://www.newmediaone.net [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rookie Question RE: Specific Coldfusion equivalent in PHP

2002-06-27 Thread Peter Janett
header ("Location: http://whatever";); You probably want to put: exit; After that line, so you script stops at that point. (Exit; is like ) :) HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold

[PHP] Re: [PHP-DB] PDF

2002-07-08 Thread Peter Janett
I needed to create invoices, one per page, that could be printed, and chose to use http://www.fpdf.org/. It was easy to take my HTML formated output and change it to PDF. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000

Re: [PHP] Submit code

2002-07-15 Thread Peter Janett
imple form post, and found some very basic code, but it slowed by app down so much it had to be replaced eventually anyway. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris

[PHP] system(), passthru(), exec() not working as from command line

2002-01-20 Thread Peter Janett
o, I'm stumped. I was following the basics of the article at: http://hotwired.lycos.com/webmonkey/00/20/index3a.html?tw=programming Thanks, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Peter Janett
iable. So, what about caching database results in memory? Thanks, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.0.6, mod_perl/1

Re: [PHP] RE: Creating Tab-Delimited Text File

2002-02-08 Thread Peter Janett
t all the html, then separate the values with a tab (\t), and a carriage return at the end. So, while looping through the results: print "$db_1\t$db_2\t$db_3\r"; That gives you tab separated data, with one row per line. HTH, Peter Janett ~~ New Media One Web Services ~~ &

Re: [PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Peter Janett
$what_you_want = "$HTTP_HOST" . "$REQUEST_URI"; Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.0.6, mod_perl/1.25, Stronghol

Re: [PHP] modular programming

2002-02-15 Thread Peter Janett
ou get what the methodology is about, you can go the site dedicated to Fusebox with PHP, http://bombusbee.com. There is a whole "Fusebox Community", which is built around the methodology. Pretty good stuff, will save lots of time. HTH, Peter Janett New Media One Web Services ~~~

[PHP] Strange need - "Repeater" appliation

2002-04-20 Thread Peter Janett
s, ideas, etc appreciated. Thanks, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25, Stronghold/3.0 (Apac

Re: [PHP] alternatives to mail()

2002-04-25 Thread Peter Janett
that provides PHP working with the mail function! :) HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25, Stronghold/3.0 (Apache/1

Re: [PHP] What's wrong w/ this line?

2002-02-25 Thread Peter Janett
; } elseif ($a == "green"){ print "you chose green"; } elseif ($a == "yellow"){ print "you chose yellow"; } else{ print "you did not chose red, blue, green, or yellow"; } HTH, Peter Janett New Media One Web Services ~