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 =
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]]
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
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,
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
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
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
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
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";
/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
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:
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
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
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
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
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.
16 matches
Mail list logo