RE: [PHP] get name of file

2001-03-19 Thread Thor M. Steindorsson
> How do I return the name of a file without any extensions or path info. > Eg how do I return "about" from "http://www.domainz.com/about.htm". Here's a quick and dirty way: http://www.domainz.com/about.htm"; $url = explode("/",$url); $num = count($url); $name = explode(".",$url[($num-1)]); $doc

RE: [PHP] Advanced PHP

2001-03-09 Thread Thor M. Steindorsson
Although it's a wee bit off topic, your logic doesn't really make sense here. If the egg is a potential chicken, doesn't that mean the egg came before the chicken? Re-read the question. It only speculates which came first. > -Original Message- > From: Jerry Lake [mailto:[EMAIL PROTECTED]

RE: [PHP] httpd.conf question...

2001-02-20 Thread Thor M. Steindorsson
it's in the php.ini file, which should be in your /etc folder (or windows folder on a winbox) or you can just use to turn it off for that particular script. -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 12:37 PM To: PHP User Group

RE: [PHP] shopping cart classes

2001-02-16 Thread Thor M. Steindorsson
Seems to be good enough for NASA. :) -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 1:51 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] shopping cart classes I found the same as you, I wrote some classes of my own. have you done much with post

RE: [PHP] Piping/parsing Apache logs though PHP?

2001-02-13 Thread Thor M. Steindorsson
try this script: http://www.wokzilla.com/usage/usage.php3 -Original Message- From: Michael McGlothlin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Piping/parsing Apache logs though PHP? I'd like to pipe and parse my Apache lo

[PHP] RE: [PHP-DB] installing MySQL with PHP4.0.3pl1

2001-02-13 Thread Thor M. Steindorsson
a rule of thumb with windows boxes: always install software in the default location :) in this case that would be c:\mysql cheers, Thor. -Original Message- From: Paulson, Joseph V. "Jay" [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 2:19 PM To: PHP-DB-LIST; [EMAIL PROTECTE

FW: [PHP] Here you have, ;o)

2001-02-13 Thread Thor M. Steindorsson
or simpler yet, REMOVE WINDOWS SCRIPTING HOST! It does nothing useful (or at least the few useful things it does are things we can easily live without). All it does is open every possible door on a windows box to viruses and hackers. Without the WSH, none of these worms will work. cheers, Tho

RE: [PHP] Parse HTML Block

2001-02-12 Thread Thor M. Steindorsson
This should do the trick. (.*)", $readfile, $output); fclose($file); echo $output[1]; ?> cheers, Thor. -Original Message- From: Mark Green [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 6:06 PM To: PHP General Mailing List Subject: [PHP] Parse HTML Block Hi Guys, Im look

RE: [PHP] Converting CFML to PHP

2001-02-09 Thread Thor M. Steindorsson
I've done this. Once I did everything in CF. Today, I do everything in PHP and have not looked back. PHP is faster, easier and far less taxing on the server than CF. Basically, once you know the syntax and functions of PHP, converting is pretty easy, although time consuming. What you need to do

RE: [PHP] security help

2001-02-08 Thread Thor M. Steindorsson
SAFE MODE!! That's exactly what I was looking for... It did the trick. Thanks Chris. -Original Message- From: Chris [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 4:18 PM To: php Subject: Re: [PHP] security help If you include a file as a link, so the browser sees: www.my

RE: [PHP] security help

2001-02-08 Thread Thor M. Steindorsson
So: > > /home/myfiles/.htpasswd > > Rather than > > /home/myfiles/publicwwwfiles/.htpasswd > > Hope that's of some use to you. > James. > > ""Thor M. Steindorsson"" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTEC

[PHP] security help

2001-02-08 Thread Thor M. Steindorsson
Should this be possible? I know this isn't an issue with php, but since I used php to do this, I figured maybe someone here has encountered the same thing, and knows how to help. Is this something that can be fixed by making some changes on the linux server? By using this: "; include("/home/some

RE: [PHP] Questions about simple php problems

2001-02-06 Thread Thor M. Steindorsson
Answers are numbered according to questions. 1. Contact your hosting provider about this one. 2. Unless the webserver is instructed to let php handle html files, you cannot include php code within html. It has to be a php file so php can process it. 3. Again, contact your hosting provider and as

[PHP] PHP, MySQL and XML

2001-02-05 Thread Thor M. Steindorsson
Does anyone have a solution for importing data from a RDF-XML file into a MySQL database? I've been racking my brain, as well as looking at tutorials and some xml parsers, but if someone has something like this it would save me tons of time. Thanks! -- PHP General Mailing List (http://www.php

RE: [PHP] .htpasswd?

2001-02-01 Thread Thor M. Steindorsson
check this out: http://www.hotscripts.com/Detailed/3903.html It does what you're asking for... why write the code when you can copy and paste? :) -Original Message- From: James Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 1:22 PM To: [EMAIL PROTECTED]; [EMAIL PRO

RE: [PHP] Microsoft SQL server 7

2001-01-26 Thread Thor M. Steindorsson
Excellent answer... somewhat when you're asked "Can you tell me where the Bakery is?" and you say "Yes, I can." Forgive me for saying so, but I find this sort of attitude on a mailing list designed as help forum very arrogant, impolite and snooty, and completely unnecessary. -Original Messag

RE: [PHP] Help with INSERT query

2001-01-24 Thread Thor M. Steindorsson
x27;, '$Description', '$FileSize', '$FileName', '$DownloadCount', '$Categories', '$Redirect')"; } Thor M. Steindorsson - [EMAIL PROTECTED] http://www.netwood.net - Find Out Why We're Better. -Original Message- From: Darren Evans

RE: [PHP] Redirect

2001-01-24 Thread Thor M. Steindorsson
try this: http://www.dogpile.com"; header ("Location: $rdrct"); exit; ?> Thor M. Steindorsson - [EMAIL PROTECTED] http://www.netwood.net - Find Out Why We're Better. -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Janu

[PHP] apache + mssql

2001-01-23 Thread Thor M. Steindorsson
source and configuring it with mssql and re-installing it. But if there's any way to add the mssql support without such drastic measures, I'd sure like to hear about them. Can anyone help? Thanks. Thor M. Steindorsson - [EMAIL PROTECTED] http://www.netwood.net - Find Out Why We're Better.