[PHP] Getting the domain from an url?

2001-05-12 Thread John Vanderbeck
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

[PHP] mySQL access denied with correct account/pw?

2001-05-08 Thread John Vanderbeck
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

RE: [PHP] session question

2001-05-08 Thread John Vanderbeck
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

RE: [PHP] RE: Undelivered Mail Returned to Sender

2001-05-08 Thread John Vanderbeck
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

RE: [PHP] VERY URGENT

2001-05-08 Thread John Vanderbeck
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

RE: [PHP] PHPmyadmin

2001-05-07 Thread John Vanderbeck
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

RE: [PHP] Problem with PHP 4.0.5

2001-05-07 Thread John Vanderbeck
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

RE: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread John Vanderbeck
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

RE: [PHP] Variable question

2001-05-07 Thread John Vanderbeck
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

RE: [PHP] Variable question

2001-05-07 Thread John Vanderbeck
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

[PHP] Install problems with PHP and GD

2001-05-06 Thread John Vanderbeck
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

RE: [PHP] best ide for windows

2001-05-06 Thread John Vanderbeck
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

RE: [PHP] searching a MySQL database

2001-05-06 Thread John Vanderbeck
{ // 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

RE: [PHP] best ide for windows

2001-05-06 Thread John Vanderbeck
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

RE: [PHP] Passing variables to another page - newbie

2001-05-06 Thread John Vanderbeck
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

RE: [PHP] MySQL problem - stumped

2001-03-10 Thread John Vanderbeck
, 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

RE: [PHP] MySQL problem - stumped

2001-03-10 Thread John Vanderbeck
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

RE: [PHP] MySQL problem - stumped

2001-03-10 Thread John Vanderbeck
.. 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

[PHP] PHP mySQL primer?

2001-03-06 Thread John Vanderbeck
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]

[PHP] regex help

2001-02-23 Thread John Vanderbeck
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

Re: [PHP] File upload problem on IIS/NT4

2001-02-19 Thread John Vanderbeck
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

[PHP] Apache log analyzer

2001-02-18 Thread John Vanderbeck
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

[PHP] Sessions again :(

2001-02-17 Thread John Vanderbeck
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

[PHP] Determingin if cookies are useable?

2001-02-17 Thread John Vanderbeck
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

Re: [PHP] checking image extensions

2001-02-17 Thread John Vanderbeck
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]

Re: [PHP] Determingin if cookies are useable?

2001-02-17 Thread John Vanderbeck
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

Re: [PHP] Strip HTML codes from a string?

2001-02-17 Thread John Vanderbeck
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

Re: [PHP] php

2001-02-17 Thread John Vanderbeck
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

Re: [PHP] How to make text BOLD

2001-02-16 Thread John Vanderbeck
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

Re: [PHP] PHP Editors

2001-02-16 Thread John Vanderbeck
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

Re: [PHP] HTTP authentication

2001-02-15 Thread John Vanderbeck
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

[PHP] Session Questions...

2001-02-15 Thread John Vanderbeck
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

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread John Vanderbeck
) 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]

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread John Vanderbeck
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

Re: [PHP] ereg_replace

2001-02-15 Thread John Vanderbeck
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]

[PHP] $PHP_SELF in Netscape PART 2

2001-02-14 Thread John Vanderbeck
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 --

Re: [PHP] PHP globals aren't really globals

2001-02-14 Thread John Vanderbeck
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

Re: [PHP] $PHP_SELF in Netscape PART 2

2001-02-14 Thread John Vanderbeck
=', 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

Re: [PHP] PHP globals aren't really globals

2001-02-14 Thread John Vanderbeck
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

[PHP] RE: $PHP_SELF in Netscape PART 2

2001-02-14 Thread John Vanderbeck
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

Re: [PHP] Why???

2001-02-14 Thread John Vanderbeck
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

Re: [PHP] RE: $PHP_SELF in Netscape PART 2

2001-02-14 Thread John Vanderbeck
$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

[PHP] Is this typecast safe?

2001-02-14 Thread John Vanderbeck
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]

Re: [PHP] PHP Editors

2001-02-14 Thread John Vanderbeck
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

[PHP] gettimeofday() question

2001-02-14 Thread John Vanderbeck
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

[PHP] Security...

2001-02-14 Thread John Vanderbeck
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

Re: [PHP] Mystery quotes

2001-02-13 Thread John Vanderbeck
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"; -

Re: [PHP] Any performance penalties for switch vs. if/else?

2001-02-13 Thread John Vanderbeck
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

[PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread John Vanderbeck
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]

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread John Vanderbeck
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

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread John Vanderbeck
- 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

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread John Vanderbeck
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

Re: [PHP] fscanf problem

2001-02-12 Thread John Vanderbeck
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..

Re: Re[2]: [PHP] Testing CONNECTION Speed

2001-02-10 Thread John Vanderbeck
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

Re: [PHP] good free/cheap IDE for PHP

2001-02-09 Thread John Vanderbeck
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

Re: [PHP] how to know which web dir you're in

2001-02-09 Thread John Vanderbeck
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]

Re: [PHP] shows up in IE but not Netscape

2001-02-09 Thread John Vanderbeck
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

Re: [PHP] [Newbie] PHP Variables

2001-02-09 Thread John Vanderbeck
?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

[PHP] PHP Newbie, Experienced Porgrammer, Annoying fread() problem

2001-02-07 Thread John Vanderbeck
"; 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

[PHP] UN-Escaping text from a form submit?

2001-02-07 Thread John Vanderbeck
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

Re: [PHP] UN-Escaping text from a form submit?

2001-02-07 Thread John Vanderbeck
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

Re: [PHP] test for undefined variables renaming variables

2001-02-07 Thread John Vanderbeck
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"