[PHP] Paths and ImageCreate(), GetImageSize()...

2002-02-21 Thread Monty
I'm having a hard time figuring out exactly how paths should be listed when pointing to files using the ImageCreate(), ImageCopyResized(), etc. commands. My images are in a sub-folder called img, and my script is in another sub-folder called scripts (at the same level as img). It appears that

[PHP] Trying to post

2002-02-21 Thread Monty
I've been trying to post to this newsgroup, but have had problems. If this works, I guess the problem has gone away on its own. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Auto-Pagination of Content from DB

2002-02-21 Thread Monty
I'm not sure the best way to auto-paginated long articles that will be stored in a MySQL database. I tried searching a few sites for sample code but couldn't really find anything, which is why I'm asking here. An idea I had was to split the content into an array called page and then just access

[PHP] Parsing Custom Codes Embedded in DB Text

2002-02-27 Thread Monty
Hi Everyone, I'm new to PHP, and am learning a lot by reading posts here and two PHP books I'm going to be writing some content management scripts, and one thing I want to do is allow writers to embed some simple codes in their text such as: [LINK=http://wwwmysitecom]Click here for

[PHP] preg_replace() ??

2002-02-28 Thread Monty
Is preg_replace() the best PHP command to use for parsing custom codes in text retrieved from a database (eg, turning [link= ] into a href= )? -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

[PHP] Re: Does anybody have code for this?

2002-02-28 Thread Monty
Maybe try looking into the crypt() or md5() functions on php.net. These will encrypt a string more than scramble, but maybe one of these serves the purpose. From: [EMAIL PROTECTED] (Leif K-Brooks) Newsgroups: php.general Date: Fri, 01 Mar 2002 02:30:04 -0500 To: [EMAIL PROTECTED] Subject:

Re: [PHP] Re: Does anybody have code for this?

2002-02-28 Thread Monty
From: [EMAIL PROTECTED] (Leif K-Brooks) Newsgroups: php.general Date: Fri, 01 Mar 2002 02:50:09 -0500 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Does anybody have code for this? on 3/1/02 2:43 AM, Monty at [EMAIL PROTECTED] wrote: Maybe try looking into the crypt() or md5() functions

[PHP] Re: create a file

2002-02-28 Thread Monty
Start here... http://www.php.net/manual/en/function.fwrite.php From: [EMAIL PROTECTED] (Thomas Franz) Newsgroups: php.general Date: Fri, 1 Mar 2002 08:55:25 +0100 To: [EMAIL PROTECTED] Subject: create a file good morning, i want to create a new file and save it in the current dir. I

[PHP] Best Content Management METHOD...

2002-07-08 Thread Monty
be as easy to make site-wide design changes this way, and I won't be able to do some things like automatically paginating longer articles over several pages. Anyone have any input or words of wisdom they can offer on the best method for setting up a content management system? Thanks! Monty -- PHP

[PHP] Breaking Dynamic Content into Pages...

2002-07-10 Thread Monty
themselves when entering the article into the database. A parsing function would grab the chunk of text/html between the appropriate [pagebreak] codes for each page. But this just doesn't seem a very elegant solution. Anyone know of a better way to do this? Thanks! Monty -- PHP General Mailing List

[PHP] Loading dynamic pages based on URL

2002-07-11 Thread Monty
be more of an Apache issue than PHP, but, thought I'd see if anyone here has dealt with something similar. Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Monty
I'm trying to preg_split() text between page. I used the following but can't get the regular expression to work: $content = blah blah page blah blah blah; $paged = preg_split( [[:cntrl:]*]page[[:cntrl:]*], $content ); I also tried the following... $content = blah blah page blah blah blah;

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Monty
The * needs to be after the character class, ie [[:cntrl:]]*. --Dan Thanks Dan. But, removing the asterisk or putting it after the character class doesn't work either for some reason. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Monty
wrong? Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Monty
Yes! That was it! Thank you so much. I actually thought preg and ereg were interchangeable, so, I'm glad you pointed out the difference for reg expressions. Can you tell me what the open and closing slashes / are for inside the quotes? Is it equivalent to [ and ] for ereg? Monty DOH! It's

[PHP] PHP/MySQL -- Date/Time Confusion

2002-07-12 Thread Monty
suggestions? I'll mostly need to compared dates/times of different records and then extract parts of the date for displaying on the screen. Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question on Efficiency

2002-07-16 Thread Monty
If you have have a large number of functions, it might be better to separate them into a few files that you can include as needed. I use one file that contains functions needed by every page. I have a few other files that contain functions that aren't needed by every page, so, I include them only

[PHP] Includes vs. Functions

2002-07-17 Thread Monty
to drop blocks of code in a page design without disrupting the design of the page very much. Thanks, Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: sorting and searching an Array

2002-07-17 Thread Monty
. Monty From: [EMAIL PROTECTED] Reply-To: Richard Kurth [EMAIL PROTECTED] Newsgroups: php.general Date: Wed, 17 Jul 2002 12:52:00 -0700 To: php-general [EMAIL PROTECTED] Subject: sorting and searching an Array After I read this file into an array (small sample of file below) I need

[PHP] Re: Includes vs. Functions

2002-07-17 Thread Monty
Chris, thanks for describing your method. The reason I really dislike Functions in PHP is because you have to pass every variable needed by a function, even if that variable is global in the main script, which is a pain in the ass when a function needs a long string of variables. It makes it

[PHP] Loading a File into Variable - How??

2002-07-18 Thread Monty
is displayed, but, what I really want to do is store it in a string variable, not output it directly. How can I do this? Thanks, Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Loading a File into Variable - How??

2002-07-18 Thread Monty
filesize() doesn't see those files. So, if I replace the filesize($filename) command with a hard-coded number, it works. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Loading a File into Variable - How??

2002-07-18 Thread Monty
the include_path, this seems to always return zero, which is why I hardcoded the byte size into fread(). Monty From: [EMAIL PROTECTED] (Andre Dubuc) Reply-To: [EMAIL PROTECTED] Newsgroups: php.general Date: Thu, 18 Jul 2002 17:45:14 -0400 To: Monty [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re

Re: [PHP] Loading a File into Variable - How??

2002-07-18 Thread Monty
Hi Rasmus, file_gets_contents() doesn't work in my version of PHP (4.2.1). It says not a valid function or something like that. Also, I discovered that the filesize() function won't work on files fopened from the include_path. It returns a value of zero, so, I had to hardcode the bytes into the

[PHP] Passing variables to page via POST - How?

2002-07-18 Thread Monty
create a very simple form that only has hidden fields with the data I want to pass, along with an image Submit button that would call the page and pass the hidden field variables. Is that the only/best way to accomplish this? Thanks. Monty -- PHP General Mailing List (http://www.php.net

[PHP] Re: modify an element of a HTML tag within a string

2002-07-18 Thread Monty
important part of doing what you need to do. If you don't already know how they work, they are hard to grasp at first, but, very useful once you understand their purpose. Monty From: [EMAIL PROTECTED] (Justin French) Newsgroups: php.general Date: Fri, 19 Jul 2002 13:50:08 +1000 To: php [EMAIL

[PHP] Re: Password in script

2002-07-18 Thread Monty
use your master MySQL username and password. Monty From: [EMAIL PROTECTED] (Sailom) Newsgroups: php.general Date: Fri, 19 Jul 2002 10:03:02 +0700 To: [EMAIL PROTECTED] Subject: Password in script I am new to PHP and MySQL and never have experience in this area. I am writing a PHP script

[PHP] Re: Why won't this work?

2002-07-19 Thread Monty
Well, first thing I see is that you need to change this: if ($mode == entrance) You need the double equal signs for string comparison. From: [EMAIL PROTECTED] (John Wulff) Newsgroups: php.general Date: Fri, 19 Jul 2002 00:25:12 -0700 To: [EMAIL PROTECTED] Subject: Why won't this

[PHP] Getting name of referenced variable into string

2002-07-19 Thread Monty
Is there a way to get and store the name of a referenced variable into another variable? Example... $varname = blah; checkit($varname); function checkit($name) { ...code... } In the function above, I'd like to find out the name of the referenced variable (pointed to by $name) which should

[PHP] Faster: Includes or DB Queries??

2002-07-21 Thread Monty
Is there much of a difference in speed or efficiency between INCLUDEing files in a script or loading data from a database? I'm building a dynamic menu system for a website and not sure if it would be faster to store button data in a DB or just do it with Included files. -- PHP General Mailing

[PHP] $HTTP_SERVER_VARS not accessible in Functions

2002-07-21 Thread Monty
? If not, is there another command I can use? I also tried $_SERVER[] but this appears to be always empty no matter what level I call it on. Thanks. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Password Generator Script

2002-07-24 Thread Monty
Can anyone recommend where I could find a decent script that automatically generates passwords? I don't care if they are readable or just random letters, numbers. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: timestamp triggered only on update?

2002-07-25 Thread Monty
commands. I'm not a MySQL expert, so, the above my not be totally accurate, it's based on my own experience. Monty From: [EMAIL PROTECTED] (Ragnar) Organization: na Reply-To: Ragnar [EMAIL PROTECTED] Newsgroups: php.general Date: Fri, 26 Jul 2002 00:19:02 +0200 To: [EMAIL PROTECTED] Subject

[PHP] How to UPDATE two MySQL Tables

2002-07-26 Thread Monty
the fields into one table and be done with it. Sorry for the long-winded explanation. Any suggestion are greatly appreciated! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] POSTing Form Vars as Array ??

2002-07-26 Thread Monty
. Is it only possible to POST variables to a page if they are not in an array? Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Meetup, how many of you have signed up?

2002-07-26 Thread Monty
so with Guinness and bread, who needs to buy a meal? :-) Ooof. I feel bloated just reading that. :) Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Quotes getting screwed up in form fields

2002-07-26 Thread Monty
If someone enters this into a field... New York City and I need to re-display it in the field (if an error occurred, for example), this is what's in the field... New York \ I have another multi-line text field that I used quotes in and this doesn't happen with that field, even though

[PHP] RTRIM() - Won't accept 2nd Param

2002-07-27 Thread Monty
When I issue this command to remove any commas at end of string: $query = rtrim($query, ,); PHP give me an error saying Wrong parameter count for rtrim(). How can this be? The online manual shows rtrim can accept two parameters. Shouldn't this work? I have PHP 4.0.6 installed on the server.

[PHP] Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Monty
be someone sending this password over and over to another user, but, at least they won't get 20 new passwords and be locked out of their account as a result. If anyone else has dealt with this issue, I'd appreciate your insight. Thanks! Monty -- PHP General Mailing List (http://www.php.net

[PHP] Vars passed via URL disappearing

2002-08-02 Thread Monty
type variables? Why is PHP ignoring the variables passed via the URL? Thanks. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP and MySQL

2002-08-02 Thread Monty
Indexes Putting strings in single quotes instead of double (WHERE id = 'something') Normalized database design. - Monty From: [EMAIL PROTECTED] (Erich Kolb) Organization: RB Receivables Management, Inc. Reply-To: Erich Kolb [EMAIL PROTECTED] Newsgroups: php.general Date: Fri, 2 Aug 2002

Re: [PHP] Vars passed via URL disappearing

2002-08-02 Thread Monty
: php.general Date: Fri, 2 Aug 2002 12:45:41 -0700 To: Monty [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Vars passed via URL disappearing 'variables passed via the URL' = 'GET variables' -steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Need Help with register_globals OFF

2002-08-02 Thread Monty
I'm trying to use the more secure register_globals=Off setting for some simple scripts that do authentication and use sessions. But I'm ready to rip all my hair out! Can someone recommend a good article online that clearly discusses what's different when you have register_globals=Off? I've spent

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-03 Thread Monty
Aug 2002 15:46:57 +1000 To: Monty [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Re: Need Help with register_globals OFF Anyone want to share any tips on how to deal with form vars passed to a script with register_globals turned off? Do you simply refer to them directly with $_GET

[PHP] Re: User Authentication Problem

2002-08-03 Thread Monty
You might get some help if you post only the code relevant to the problem with a clear explanation of the exact problem. Otherwise, I doubt anyone will bother looking through all that code you posted links to. From: [EMAIL PROTECTED] (Tony Harrison) Newsgroups: php.general Date: Sat, 3 Aug

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-03 Thread Monty
), it won't really work because the variables are created only within the scope of the function, so, as soon as it returns to the script, the vars it created are released. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] register_argc_argv

2002-08-03 Thread Monty
What does this parameter do in PHP.ini, and what would happen if I turned it off? From reading the PHP site, it appears this is only useful if you use PHP from the command line, is that right? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Checking Session Vars in Functions

2002-08-09 Thread Monty
, is there a way I access session vars stores in $_SESSION[] from a custom function? Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Name of Include File breaking a Function - Strange!

2002-08-09 Thread Monty
I have an include file named functions.inc.php that I include in nearly every script. For some bizarre reason, the following function inside this file does not always work: function user_acess() { if ( isset($_SESSION['valid_user']) ) { return 1; } return 0; } Most of the

Re: [PHP] Name of Include File breaking a Function - Strange!

2002-08-09 Thread Monty
Dan, you were right and I feel so retarded now! I found another include file of the same name in the folder with the script that wasn't working. It was driving me crazy but I didn't even think to check that. Thank you for replying! Monty. Perhaps, somewhere in your include path is another

Re: [PHP] Re: Getting information of a client

2002-08-09 Thread Monty
Try this: $_POST['var_name'] Monty From: [EMAIL PROTECTED] (Radio X) Newsgroups: php.general Date: Fri, 9 Aug 2002 23:38:42 -0700 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Getting information of a client how can i get a variable posted from a form by a user whitout having

[PHP] How do I upgrade my version of PHP?

2002-09-11 Thread Monty
I've downloaded the patch file for 4.2.2 to 4.2.3 from the PHP website, but, not sure what to do with this file. I have a Linux 7.x server. Can anyone tell me how to patch my version of PHP or point me to a source that explains how this is done? Thanks! -- PHP General Mailing List

[PHP] Re: How do I upgrade my version of PHP?

2002-09-11 Thread Monty
free to man patch. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Monty [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] I've downloaded the patch file for 4.2.2 to 4.2.3 from the PHP website, but, not sure what

[PHP] All Queries TRUE even when they should be FALSE

2002-09-20 Thread Monty
Even though I have no record in my MySQL DB with that has 005 in the ID field, the following statement always reverts to Record Found, or True, no matter what ID I use. What's wrong? I'm using PHP 4.2.2. Has something changed that makes this work differently? Thanks. $query = SELECT id

[PHP] BEST Book for Learning PHP/MySQL

2001-12-03 Thread Monty
I'm a PHP and MySQL beginner. What's the best book I can buy that will get me started using both these technologies? Thanks! -- 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

[PHP] The BEST Content Management Script?

2001-12-03 Thread Monty
Hi, I'm looking for a really good content management system written in PHP that's free or very little money. I looked on HotScripts.com, but, there are SO many of them! Can someone recommend one or two good ones? Thanks!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] BEST Book for Learning PHP/MySQL

2001-12-03 Thread Monty
Sorry, I did a search here and found only one message with book recommendations. Where's the archive? Is it a separate newsgroup? I looked on php.net, but, only found a long list of books available, no recommendations. Monty From: [EMAIL PROTECTED] (Kurt Lieber) Reply-To: [EMAIL PROTECTED

[PHP] Text Fields - How Big Can They Be?

2002-12-13 Thread Monty
to have to do this manually in MySQL. That would make me break down and start sobbing. Has anyone else dealt with this and found a solution? Thanks a lot! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upgrading GD to 2.1

2002-12-13 Thread Monty
for a Linux novice like me. Does anyone know of a good place to find out how to do this? I'm all Goggled out. Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Upgrading GD to 2.1

2002-12-13 Thread Monty
Nofa, sorry, forgot to say Redhat Linux. What you mentioned seems pretty easy, actually. I'll give a try and keep my fingers crossed. Thanks! Monty From: [EMAIL PROTECTED] (Nofa) Reply-To: nofa [EMAIL PROTECTED] Newsgroups: php.general Date: Sat, 14 Dec 2002 20:13:20 +1300 To: [EMAIL

[PHP] Re: Text Fields - How Big Can They Be?

2002-12-13 Thread Monty
HI Nofa, When you say submit the file, do mean as a TXT file via a file upload field? If so, not sure what to do with the file once it's been uploaded. Do I read the file using fopen(), then just put this into a var that can be stored in the DB? Hmmm... sounds like a good solution. Monty From

Re: [PHP] Text Fields - How Big Can They Be?

2002-12-13 Thread Monty
and will definitely be subscribing! It's a great idea. Thanks, Monty From: [EMAIL PROTECTED] (John W. Holmes) Organization: U.S. Army Reply-To: [EMAIL PROTECTED] Newsgroups: php.general Date: Sat, 14 Dec 2002 02:06:59 -0500 To: 'Monty' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP

[PHP] Using mail() for mailist list app

2003-01-01 Thread Monty
of the various PHP e-mail classes available to send HTML e-mail? Any recommendations for online tutorials about building a mailing list manager using PHP would be much appreciated! Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dreaded Return-Path and mail()

2003-01-06 Thread Monty
Okay, I've read just about everything on the Internet about how the change the Return-Path header in an e-mail sent using mail(), but, I STILL can't get it to work. All e-mail sent via PHP says Return-Path: [EMAIL PROTECTED] and Received: (from nobody@localhost). I have a Red Hat Linux 7.2 server

[PHP] Re: Regex for Browser Versions

2003-06-06 Thread Monty
Maybe it might be easier to just use the get_browser() function: http://www.php.net/manual/en/function.get-browser.php Monty From: [EMAIL PROTECTED] (Gerard Samuel) Newsgroups: php.general Date: Thu, 05 Jun 2003 14:00:23 -0400 To: [EMAIL PROTECTED] Subject: Regex for Browser Versions Im

[PHP] Re: Where to start?

2003-06-06 Thread Monty
), a PDF publication that has some good and helpful stuff in it. As you can see, there are lots of online resources for PHP and MySQL. Monty From: [EMAIL PROTECTED] (Simon Thurtle) Organization: Mainlink Reply-To: Simon Thurtle [EMAIL PROTECTED] Newsgroups: php.general Date: Thu, 5 Jun 2003

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-06 Thread Monty
of the pop-ups? i bet not :) Well, I have to draw the line somewhere. Javascript is used throughout this site for simple things like resizable popups. I'm not willing to dumb it down that much. Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: session_start questions.

2003-06-06 Thread Monty
['username']., welcome back!; That's a very brief overview. The above links provide better explanations. Monty From: [EMAIL PROTECTED] (Daniel J. Rychlik) Newsgroups: php.general Date: Thu, 5 Jun 2003 16:19:04 -0500 To: [EMAIL PROTECTED] Subject: session_start questions. Questions

[PHP] Re: using a for loop but it is not working how come

2003-06-06 Thread Monty
://www.php.net/manual/en/control-structures.foreach.php http://www.php.net/manual/en/function.explode.php Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best Approach for defining User Access Levels

2003-05-30 Thread Monty
over who has access to what. Does anyone know of a better system for granting access to groups of users that isn't too complicated but is flexible enough to add or remove access to whole groups of users? I'm trying to not reinvent the wheel here if possible. Thanks for any suggestions! Monty

[PHP] Re: Opening a Dynamic Pop Up Window

2003-05-30 Thread Monty
'); Then you need to create a script called show_photo.php that takes the img var passed by the Javascript above and loads that image onto the page. $image = $_GET['img']; echo img src='$image' border=0; Hope that helps. Monty From: [EMAIL PROTECTED] (Jeffrey L. Fitzgerald) Newsgroups

[PHP] Using Cookies Securely

2003-05-31 Thread Monty
against? Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: 3 entries going into 1 field

2003-06-01 Thread Monty
Monty From: [EMAIL PROTECTED] (Vicky) Newsgroups: php.general Date: Sat, 31 May 2003 15:05:43 +0100 To: PHP List [EMAIL PROTECTED] Subject: 3 entries going into 1 field Hi, I have a registration form, but I would like to add a Date of Birth section. Now, because of the different

[PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-01 Thread Monty
this problem? Or, is it simply unavoidable? Right now, I tell users that the site will only work with browsers that have cookies turned on, but, I'd rather the site was accessible to all. However, I also don't like passing session IDs via the URL because of the security risk. Any suggestions?? Monty

[PHP] Re: regex problem

2003-06-01 Thread Monty
the length of the string to the regex pattern: $length = strlen($data); preg_match([0-9]{$length}, $data); Monty From: [EMAIL PROTECTED] (Daniel J. Rychlik) Newsgroups: php.general Date: Sat, 31 May 2003 13:46:44 -0500 To: [EMAIL PROTECTED] Subject: regex problem Hello,, I have

Re: [PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-03 Thread Monty
? Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to remove empty Session Var from URL

2003-06-03 Thread Monty
immediately unless they first leave the site then come back to clear the empty PHPSESSID var from all the URLS. How can I make this stop? Thanks Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-04 Thread Monty
) { if (strstr($location, '?')) { header(Location: {$location}.SID); } else { header(Location: {$location}?.SID); } } else { return $location; } return; } Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: determine action of a form dynamically?

2003-06-04 Thread Monty
of sending them to PHP_SELF or next.php, use something like goto.php, which can determine where to send the user next, and then redirects the user using the header() function. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Monty
. It makes it a little easier. Also be sure to clean the data with some kind of function that uses strip_tags() and similar functions. Monty From: [EMAIL PROTECTED] (ØYstein HåLand) Newsgroups: php.general Date: Tue, 3 Jun 2003 18:44:30 +0200 To: [EMAIL PROTECTED] Subject: Re: Migration from

[PHP] Gracefully dealing with Cookies OFF

2003-06-04 Thread Monty
I've decided to require that members for a site need to have cookies enabled in their browsers to sign-up and use the site. Is there a graceful way to deal with this when users who have cookies off try to sign-up or log-in to the site? Thanks, Monty -- PHP General Mailing List (http

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-05 Thread Monty
in hearing how others have dealt with requiring users to have cookies turned on for sessions, or not. Monty From: [EMAIL PROTECTED] (Justin French) Newsgroups: php.general Date: Wed, 04 Jun 2003 19:23:11 +1100 To: Monty [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Gracefully dealing

[PHP] Sessions Timing Out Too Often

2003-02-18 Thread Monty
in the forum. I do have a remember me feature that uses a cookie, but, not all visitors are using it, and they are the ones experiencing this problem. Is there a way to extend session time, and is that the best way to reduce this problem from happening to most members? Thanks! Monty -- PHP General

[PHP] Garbage at beginning of uploaded Text File

2003-03-01 Thread Monty
I have a form that allows someone to upload a text file, the contents of which will be inserted into the database. When I fread() the file, there is some garbage at the beginning and end of the text. Here's what the text looks like: This is the sentence of text. Here's what it looks like

Re: [PHP] Garbage at beginning of uploaded Text File

2003-03-01 Thread Monty
Are you using Apache2? IIRC, there was a bug where data would get added to the POST data, or something along those lines... What if you just look at the file with a regular text editor? Do you see that data there after it's uploaded and written to the server, or does it just appear into the

[PHP] All Code Executing Even After header() Redirect

2003-03-03 Thread Monty
is supposed to work? Is there any way to prevent the script from executing below a certain point if the user is not logged in? Thanks, Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Run db query with db query?

2003-03-03 Thread Monty
What is the code for the inner query? Hard to advise you based on the small bit of code you posted. Are you using the same $result var for both queries? If so, that's why. Just run two separate queries stored in to different result vars. I do this all the time with no problems. From: [EMAIL

[PHP] Re: functions and a href

2003-03-03 Thread Monty
You can't call a PHP function directly from an HTML tag. You'll instead need to do something like this: a href='/logout.php' Then create a logout.php file that has your logout code. From: [EMAIL PROTECTED] (Martin Johansson) Newsgroups: php.general Date: Mon, 3 Mar 2003 23:32:16 +0100

[PHP] Launching a Browser Win with PHP - Is it possible?

2002-10-14 Thread Monty
For a form that allows people to upload image files to the server, I'd like to pop open a small browser window with an Uploading... message once someone clicks on Submit button. Then I'd like the window to automatically close once the process is done and the main browser window refreshes. Can

[PHP] Checking File Size BEFORE Uploading

2002-10-14 Thread Monty
If someone uploads a file via an HTML form, is there a way to check the file size before it's uploaded to the server? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re-populating File field in form - won't work??

2002-10-14 Thread Monty
I have a few File input fields in a form so people can upload images. If there's an error with the form, I want to re-populate the fields with the values the user filled in. This works for all the fields except the File fields. When I check the HTML output to the browser, I do see that the value

[PHP] Re: Pass vars in URL

2002-10-14 Thread Monty
/function.extract.php Monty From: [EMAIL PROTECTED] (Gary) Newsgroups: php.general Date: Mon, 14 Oct 2002 15:07:21 -0400 To: [EMAIL PROTECTED] Subject: Pass vars in URL Hello, My host has upgraded to 4.2 but still uses the old ini setting. I am trying to rewrite my scripts so when the day comes for my

Re: [PHP] Checking File Size BEFORE Uploading

2002-10-14 Thread Monty
To: 'Monty' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] Checking File Size BEFORE Uploading You can set the MAX_FILE_SIZE in the hidden element of your form, but I don't think that stops the form from being submitted if the file size is too large. Basically, the file has to be uploaded

[PHP] Re: Checking File Size BEFORE Uploading

2002-10-14 Thread Monty
Nicos, the problem is that MAX_FILE_SIZE doesn't check the file size before it's uploaded to the server, it only works afterwards. So, you have to first wait for the file to upload before you know whether or not it's too large. Thanks. Hi, The way is : form enctype=multipart/form-data

[PHP] How many is too many?

2002-10-24 Thread Monty
This is a more general server question: I know that having a large number of files in one folder can slow down a web server, but, how many would it take for this to be a problem? Wondering if I should store all articles for a content site in one big 'articles' folder with each article having it's

Re: [PHP] extract($_POST)

2002-10-24 Thread Monty
I'd like to understand so I can make my scripts more secure when passing data. It seems like I will need to basically re-define every form field and GET variable at the beginning of each script literally. Monty From: [EMAIL PROTECTED] (Mike Ford) Newsgroups: php.general Date: Thu, 24 Oct 2002

Re: [PHP] How many is too many?

2002-10-24 Thread Monty
) Newsgroups: php.general Date: Fri, 25 Oct 2002 00:55:48 -0400 To: Monty [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How many is too many? Why not store them in a database with one php script selecting them? Monty wrote: This is a more general server question: I know

Re: [PHP] mkdir and directory permissions

2002-10-25 Thread Monty
Hi Jason, I have a follow-up question about mkdir. If the files created by mkdir are owned by 'nobody', does that create a security risk for those files? If so, how does one get around accepting files via an upload form that are assigned to a user other than 'nobody'? Monty -- PHP General

Re: [PHP] extract($_POST)

2002-10-25 Thread Monty
be spoofed or easily changed by a cracker that I can use as a check to be sure the data is being submitted from a form on my site on not from someone else's site? Thanks a lot, guys! Monty From: [EMAIL PROTECTED] (Paul Nicholson) Organization: WebPower Design Newsgroups: php.general Date: Fri, 25

[PHP] Re: mysql_fetch_row options

2002-10-26 Thread Monty
to type one line of code. Monty From: [EMAIL PROTECTED] (James Taylor) Newsgroups: php.general Date: Sat, 26 Oct 2002 03:23:23 -0700 To: [EMAIL PROTECTED] Subject: mysql_fetch_row options There's got to be a better way to go about this: I am constantly doing mysql queries where I am doing

  1   2   >