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: ? $url = "http://www.domainz.com/about.htm"; $url = explode("/",$url); $num = count($url); $name =

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

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,

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

[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

RE: [PHP] Parse HTML Block

2001-02-12 Thread Thor M. Steindorsson
This should do the trick. ? $file = fopen("filename.html", "r"); //it can also be a URL $readfile = fread($file, 2); $read = eregi("something(.*)/something", $readfile, $output); fclose($file); echo $output[1]; ? cheers, Thor. -Original Message- From: Mark Green [mailto:[EMAIL

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

[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: ? echo "pre";

RE: [PHP] security help

2001-02-08 Thread Thor M. Steindorsson
/publicwwwfiles/.htpasswd Hope that's of some use to you. James. ""Thor M. Steindorsson"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Should this be possible? I know this isn't an issue with php, but since I used php to do this, I fi

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:

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

[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

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

RE: [PHP] Redirect

2001-01-24 Thread Thor M. Steindorsson
try this: ? $rdrct = "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: Wednesd

[PHP] apache + mssql

2001-01-23 Thread Thor M. Steindorsson
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.