Hey all,
I am quite horrible when it comes to regexps, but I have a string that
contains a complete url, like:
http://www.domain.com/this/is/it.html
And I need to strip everything but the domain so that I am left with:
www.domain.com
Can anyone help me out?
- John Vanderbeck
- Admin
denied message whenever I try to connect.
Could something ELSE be causing this error?
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues
--
PHP General Mailing List (http://www.php.net
Are you opening a session on each of the pages you want to use the
variables?
Calling session_register() I believe causes an implicit opening of the
session, but on the other pages you have to explicity open the session, or
you won't have access to those vars.
- John Vanderbeck
- Admin
I have been getting this as well, and it is _really_ starting to annoy me.
Why is this not filtered out anyways? I am the owner and admin of the
GameDesign mailing list, and our software automaticly filters these things
from the general list.
Please fix this :(
- John Vanderbeck
- Admin
Spam thats been going around lately. Good old money laundering apparently.
Friends have reported seeing it as well.
It better stop hitting the list over and over again though or i'm gonna
scream :)
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign
a bunch of new databases, and tables.
Thanks!
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues
-Original Message-
From: Ryan W. Zajicek [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 5:19
Try,
?PHP
echo This is a testbr\n;
?
Some systems are configured to not allow the shorthand ? and instead
REQUIRE the full code start ?PHP
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues
I to have never been happy with the way PHP handles actual secure sessions.
GameDesign was written to entirely use session based access. Both the main
user site, and the admin backend use it, and it works quite well.
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com
I'm not sure what you mean...
[code]
$query = SELECT username FROM Users WHERE userid=1;
$result = mysql_query($query, $link);
$user_data = mysql_fetch_assoc($result);
echo my user name is .$user_data[username];
[/code]
Is that _not_ what you mean?
- John Vanderbeck
- Admin, GameDesign (http
How about manually parsing the string out to give you chunks, that can then
be eval'd easy.
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues
-Original Message-
From: King, Justin [mailto
that
you need to compile in the GD options, but are unclear on what the path's
are that it asks for.
Would anyone has the kindness to write up a quick Installation of PHP-GD for
Dummies? :)
Thanks a million!
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign
I am a fan of UltraEdit. It has syntax highlighting and is a good all
purpose powerful editor. What I really like though is the ability to Open
From and Save To FTP sites. This speeds up my work considerably.
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com
{
// build link
$title = A
HREF=\http://gamedesign.incagold.com/displayarticle.php?mode=articleid=.$
row [article_id].\.$row[article_title]./A;
}
echo $title.BR\n;
}
break;
}
[/CODE]
- John Vanderbeck
- Admin, GameDesign (http
But isn't VIM a *nix only tool?
The thread was about Windows IDE's. I'm always open to new editors though,
so if VIM is available for Windows, can you give an URL?
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design
Your location header should be a fully qualified URL, just like you had
typed it into your browser.
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues
-Original Message-
From: Dean Martin
, it
should have given me some sort of error when I output mysql_error(). No?
However, I did of course try changing it to AND instead of . But the
problem remains. Same error.
Any other ideas?
- John Vanderbeck
- Admin, GameDesign
-Original Message-
From: Rick St Jean [mailto:[EMAIL PROTECTED
with that
call.
- John Vanderbeck
- Admin, GameDesign
-Original Message-
From: Julian Wood [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 10, 2001 2:28 PM
To: John Vanderbeck; PHP User Group
Subject: Re: [PHP] MySQL problem - stumped
Well, PHP seems to think that $link is not working, so
..
Thanks again. Your a deadline saver :)
- John Vanderbeck
- Admin, GameDesign
-Original Message-
From: Christian Reiniger [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 10, 2001 2:32 PM
To: PHP User Group
Subject: Re: [PHP] MySQL problem - stumped
On Saturday 10 March 2001 19
user names and passwords?
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello,
I need to take a string and remove everything from the first "" character
to the end of the line. I'm pretty sure I could do this with an
ereg_replace(), but I am horrible at regular expressions. Could anyone help
me with this?
- John Vandebreck
- Admin, GameDesign
--
PHP General
ITry searching the drive(s) for the file. I dont know what the deal is, but
I found on my system that the session path specified in the php.ini file
isn't being used, it is using /tmp instead. Might be doing the same thing
for the upload path.
- John Vanderbeck
- Admin, GameDesign
Hello,
Does anyone know where I might find a good PHP script for analyzing apache
logs, with as much information as can be gathered?
I looked around on a few of the script sites, but didn't see any and I
thought this wierd.
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List
Sorry about all these questions. Just a quickie. Does a session registered
variable take on global scope, or do I still need to do a "global
$my_session_var" to make my function see it?
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsu
could do this in a roundabout way, by setting a cookie, then
trying to read it back. However, I was wondering if there way a simpler
way?
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
but the ikmage format you submitted is not
a supported format./P";
}
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Well, since cookies are set in the header, I would say you would have to at
least refresh the same page. I'm just putting a cookie into my home page
for now. and it will be checked in just afew areas of the site that REQUIRE
the cookies to work right.
- John Vanderbeck
- Admin, GameDesign
Ok, ignore me. I'm an idiot.. I just found the striptags() fucntion.
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "John Vanderbeck" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 17, 2001 12:33 PM
Subject: [PHP] Strip HTML codes fro
other file access function, and have spaces or empty lines that will
output before header() is called. The same problem exists when using a
single PHP/HTML file."
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "Brandon Feldhahn" [EMAIL PROTECTED]
To: [E
All my output scripts use stylesheets, that way they can be easily
customized.
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "Brian V Bonini" [EMAIL PROTECTED]
To: "Nguyen, David M" [EMAIL PROTECTED]
Cc: "PHP Lists" [EMAIL PROTECTED]
Sent
I have Allaire and use it for web development, but i'm not happy with it. I
like the APP itself, but its such a resource hog, crashes all the time, and
causes other problems.
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "Hoover, Josh" [EMAIL PROTECTED]
To
on the
server, but that is beyond me.
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "Thomas Edison Jr." [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 15, 2001 2:07 AM
Subject: [PHP] HTTP authentication
I was browsing thru the http authenticat
it, then start a whole new session on the client?
I'm just starting to hate the looks of all these encoded urls being thrown
around as i'm developing the site. It is getting more and more complex, and
some of the stuff i'm passing in the urls is ugly, and some of it is not
good to be showing.
- John
)
should be:
if ((mysql_num_rows($result)) == 1)
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
to what is on the right.
C, and C based languages allow you to out an assignemtn statement even when
you intend a relational expression. It is a very common pitfall. I know I
have fallen into it in my C work many times :(
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http
t in CAPS:
"thIS NOT" .. then the second "is":
thIS NOT IS NOT" etc..I think you can see why now..
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
HREF=$PHP_SELF?mode=indexcategory=rootMain/A - $category/P";
DOES NOT WORK:
echo 'BRA HREF="', $PHP_SELF, '?mode=sub_categorycategory=',
$category, 'sub_category=', urlencode($subcategories[$index]), '"',
$subcategories[$index], '/A';
- John Vanderbeck
- Admin, GameDesign
--
d i'm SURE there was a reason
for it. Just not sure what that reason was :)
- John Vanderbeck
- Admin, GameDesign
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-ma
=', urlencode ($userinput), '"';
So I am using that as a model:
echo ' A HREF=" ', $PHP_SELF, '?mode=indexcategory=',
urlencode($cateogory), ' "Blah/A';
- John Vanderbeck
- Admin, GameDesign
Visit the Gates Motel webgame:
http://www.games
nnoys"
me, is I would expect those to be available from inside the functions, but
they aren't.
- John Vanderbeck
- Admin, GameDesign
Visit the Gates Motel webgame:
http://www.gameslate.com/gatesmotel/
--
PHP General Mailing List (http://w
urlencode() in
double quotes. But I would really like to understand WHY this doesn't work.
Again, all other varaibles are properly resolved, and in IE $PHP_SELF is
properly resolved.
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-ma
I can help you there, as I had the same problem until someone else helped
me. This is because PHP will escape the input it gets. I think this is
dependant on some enviroment setting, but I can't recall which one.
To fix it you call stripslashes($var);
- John Vanderbeck
- Admin, GameDesign
$PHP_SELF were always global.
Sorry to have bothered everyone :(
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "John Vanderbeck" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 14, 2001 10:59 AM
Subject: [PHP] RE: $PHP_SELF in Netscape PART 2
I
info);
echo $info[0];
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I still strongly recommend UltraEdit. It is SO flexible its unbelievable.
It also allows you to load from and save to files on an FTP server which
saves me , god I can't even measure how much that saves me.
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "Mi
it could be
long, noone has to read these names).
if I use the PHP gettimeofday() function and get the "usec" value, would
this be the same thing? The manual is unclear about what the usecs is in
reference to.
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://w
and
gain access. And i'm not even open yet! So I want to make SURE my PHP
back-end will be as secure as I can make it.
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
What about just forcing the use of escaped quotes? Have you tried that?
instead of:
echo "document.write(\"tdinput type=text size=9 value='\" +\n";
try:
echo "document.write(\"tdinput type=\"text\" size=\"9\" value='\"
+\n";
-
In most cases, using a switch is preferrable. The code is cleaner, and the
performance increases. This is true accross languages.
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "John Guynn" [EMAIL PROTECTED]
To: "Php (E-mail)" [EMAIL PROTECTED]
Sen
hose echo statements are properly resoved into value.
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Well, yes the script was in the root (root of the URL not root of the
server). I threw it into a subdirectory, but no go. Same problem.
Very strange.
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "Jon Haworth" [EMAIL PROTECTED]
To: "'John Vand
- Original Message -
From: "Pavel Jartsev" [EMAIL PROTECTED]
To: "John Vanderbeck" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, February 13, 2001 12:49 PM
Subject: Re: [PHP] Netscape not resolving $PHPSELF ??
Try $PHP_SELF.
--
Pavel a.k.a. Papi
Than
and complains, IE simply reloads
the current page.
No, that can't be it, because it actually gets resolvedI have echo'd it
out to the screen to verify, and it DOES get resolved in IE.
- John Vanderbeck
- Admin, GameDesign
--
Jason Stechschulte
[EMAIL PROTECTED]
--
But you have to allow
Hmm..noone has any ideas on this one? Its really driving me crazy
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "John Vanderbeck" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 11, 2001 10:01 PM
Subject: [PHP] fscanf problem
my code..
Well,
There are about 3 or 4 sites on the net that will test your connection
speed, so it must be possible. I know MSN has one.
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "Andrew Golovin" [EMAIL PROTECTED]
To: "Adam Knight" [EMAIL PROTECTED
I use UltraEdit (ultraedit.com). It does syntax highlighting and ALOT more.
The one feature that I REALLY like is the ability to treat files on my FTP
as if they were local files. It greatly simplifies things, and speed up my
development.
- John Vanderbeck
- Admin, GameDesign
- Original
Well... $PHPSELF gives the full url to the current webpage..so if you are
at:
http://gamedesign.incagold.com/index.php
then $PHPSELF = http://gamedesign.incagold.com/index.php
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "Jason Jacobs" [EMAIL PROTECTED]
around.
Especially when it comes to Stylesheets, even using CSS Level 1, which is
like 5 years old. Netscape just plain ignores alot of attributes, or
handles them different from the spec, that it makes it such a pain getting a
page to look the same in both. Arg
/Rant off
- John Vanderbeck
- Admin
?php echo $contents; ?
Looks liek you dropped the semi colon
- John Vanderbeck
- Admin, GameDesign
It should display HOME? But it does not !
-Original Message-
From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
Sent: donderdag 8 februari 2001 23:55
To: Steve Haemelinck
Subject: RE: [PH
";
echo "br";
echo "Title:";
echo "$book_data[1]";
echo "br";
echo "Description:";
echo "$book_data[2]";
echo "p/p";
}
If anyoen can clear this up for me, I would most appreciate it. I'm on a
tight deadl
er to \"me\"!
Note the addition of the escape sequences. How can I stop this? Is there
some function in PHP? Or am I goign to have to write a character routine to
strip out escape sequences? shudder
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To
Thanks everyone..Seems it was a very simple thing blush I had searched
around on the PHP site, but i'm tired, and I must have missed it. Thanks!
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "David Robley" [EMAIL PROTECTED]
To: "John Vanderbeck&qu
is called,
then it will save the information, but if "book_reviews.php" is passed, then
its not defined and it goes to a different mode (which in my case is a form
to get the information)
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "August Malson"
62 matches
Mail list logo