[PHP] Sending POST vars to pop-up window - How?

2002-11-24 Thread Monty
ble in the popup window if I make the FORM action = javascript:popWin('/poll.php'). Is setting the vote choice in a session var the only way to make this work, or is there a way to pass vars via a form POST to the popup window? Thanks! Monty -- PHP General Mailing List (http://www.php.

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

2002-12-13 Thread Monty
;t want 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
specific enough 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

[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.

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

2002-12-13 Thread Monty
? I saw the site 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:

[PHP] Using mail() for mailist list app

2003-01-01 Thread Monty
or do I need to use one 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] Sessions Timing Out Too Often

2003-02-18 Thread Monty
n 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] 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 aft

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 int

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

2003-03-03 Thread Monty
d allowed to proceed. Is this how PHP 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 PR

[PHP] Re: functions and

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: 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 > To: [EMAIL PROTEC

[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 B

[PHP] Re: Where to start?

2003-06-06 Thread Monty
ere. I also get PHP Architect (phparch.com), 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

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-06 Thread Monty
ther spanner into it all, what happens if I have JS off? > will I still be able to access the content 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 m

[PHP] Re: session_start questions.

2003-06-06 Thread Monty
s at any time... session_start(); echo "Hi there ".$_SESSION['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

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

2003-06-06 Thread Monty
nstruct loops through the array and assigns the value of each element to $digit, and continues doing this until it reaches the end of the array. http://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
limiting, and need finer control 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.

[PHP] Re: Opening a Dynamic Pop Up Window

2003-05-30 Thread Monty
that takes the "img" var passed by the Javascript above and loads that image onto the page. $image = $_GET['img']; echo ""; Hope that helps. Monty > From: [EMAIL PROTECTED] (Jeffrey L. Fitzgerald) > Newsgroups: php.general > Date: Thu, 29 May 2003 14:2

[PHP] Using Cookies Securely

2003-05-31 Thread Monty
ore in the cookie to authenticate 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
7;]."-".$realdate['day']; This would insert the date as: 2003-05-21 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

[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 sugge

[PHP] Re: regex problem

2003-06-01 Thread Monty
tring to be tested for digits, you need to add 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:4

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

2003-06-03 Thread Monty
enabled. (I have trans-sid enabled). Is there any reliable way to avoid this, or is this just a small side-effect of making the site accessible to all? 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
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
. function myHeader($location) { if (SID) { if (strstr($location, '?')) { header("Location: {$location}&".SID); } else { header("Location: {$location}?".SID); } } else { return $location; } retu

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

2003-06-04 Thread Monty
ermine where to send the user. So instead 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
ab one POST variable. 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 PRO

[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

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-05 Thread Monty
I'd be interested 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]>, <[EMA

[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
conversion 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

[PHP] How to UPDATE two MySQL Tables

2002-07-26 Thread Monty
er way, I may just combine all 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
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 t

[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 serv

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

2002-07-29 Thread Monty
word. The only annoyance then would 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

[PHP] Vars passed via URL disappearing

2002-08-02 Thread Monty
s only affected session, cookie and get 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: R&B Receivables Management, Inc. > Reply-To: "Erich Kolb" <[EMAIL PROTECTED]> &

Re: [PHP] Vars passed via URL disappearing

2002-08-02 Thread Monty
erg) > Newsgroups: 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 G

[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 spen

[PHP] Re: Need Help with register_globals OFF

2002-08-02 Thread Monty
Well, to answer my own question, I found a decent tutorial on using sessions with the new register_globals off here: http://www.wdvl.com/Authoring/Languages/PHP/Maintaining_state/session_variab les.html Anyone want to share any tips on how to deal with form vars passed to a script with register_

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

2002-08-02 Thread Monty
Date: Sat, 03 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_gl

[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 Au

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

2002-08-03 Thread Monty
thing to remember is that if you put extract() in a custom function (which I did initially), 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: http://www.php.net/u

[PHP] Checking Session Vars in Functions

2002-08-09 Thread Monty
ion var. My script does include session_start(); as well. So, 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 tim

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 pa

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

[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 (http://www.

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

2002-09-11 Thread Monty
> > You should use the patch command, feel 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: > [E

[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

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

2002-10-13 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 t

[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 p

[PHP] Re: Pass vars in URL

2002-10-14 Thread Monty
p://www.php.net/manual/en/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

Re: [PHP] Checking File Size BEFORE Uploading

2002-10-14 Thread Monty
t 2002 16:10:48 -0400 > 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

[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 : > > > Send this file: > > > See

[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 o

Re: [PHP] extract($_POST)

2002-10-24 Thread Monty
field. But maybe I'm missing the point, and if so 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 PROTE

Re: [PHP] How many is too many?

2002-10-24 Thread Monty
ED] (Leif K-Brooks) > 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 wro

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'? Mont

Re: [PHP] extract($_POST)

2002-10-25 Thread Monty
le that would be unique to my web server that CANNOT 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) > O

[PHP] Re: mysql_fetch_row options

2002-10-26 Thread Monty
ecords that match the query and only requires me 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 g

[PHP] Re: parsing conundrum

2002-10-26 Thread Monty
I'm not attempting to solve this puzzle, but, regarding the output from print_r(), try this for nicely formatted output: echo ""; print_r($myarray); echo ""; Looks much better. Monty > From: [EMAIL PROTECTED] (Peter Harkins) > Newsgroups: php.general > Dat

Re: [PHP] extract($_POST)

2002-10-26 Thread Monty
r various functions: one that can only SELECT, which is the one I use the most, another that can SELECT, UPDATE and INSERT, and another that can do all of the following plus DELETE. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extract($_POST)

2002-10-26 Thread Monty
e do the same with MySQL code in a string to prevent tampering? Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mail Delivery errors when posting here ???

2002-10-26 Thread Monty
h does get posted. Not sure why it's being rejected and where this is coming from. Any clues?? Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Getting the "From: admin@site.com" to work

2002-10-26 Thread Monty
Andre Dubuc wrote: > Perhaps some kind guru can spare me some time. I've tried to get the "From: > " field pre-filled for a registration/confirmation email that I send out. To add to John's reply, here's how to do a multi-parameter Header. Also note the \r\n at the end of each of these lines.

Re: [PHP] extract($_POST)

2002-10-26 Thread Monty
e now holds: "John AND fname = \'Mary\'" This forces MySQL to read \' as a character rather than as the beginning of a variable value. So, in essence, this would produce a mySQL error instead of executing the query, is that correct? Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extract($_POST)

2002-10-26 Thread Monty
if (is_string($param)) { $type = 'string'; } if (is_int($param)) { $type = 'integer'; } echo 'Type: '.$type; ... I get the following result: Type: string But, it should be integer because 10001 is meant to be a number. How does this work for $_GET values?

[PHP] Re: Referral Site...

2002-10-26 Thread Monty
Ken Kirtley wrote: > I'm new to PHP and so this may be something of a newbie question. My bad if > it is. I've spent a week now looking for information on capturing the > referral site with php so that I can store it with some session information. > If any of you have any idea how to accomplish

Re: [PHP] extract($_POST)

2002-10-26 Thread Monty
I still need to worry about using addslashes? Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best way to store Votes for Survey app

2002-10-27 Thread Monty
h photo as well as prevent members that have already voted from voting again. Any suggestions would be appreciated! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Rearranging Order of Photos

2002-10-31 Thread Monty
that allow someone to re-order photos displayed in a thumbnail gallery. I'm having a hard to figuring out the best fool-proof way to accomplish this with PHP alone. Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Control Point of Access for certain pages.

2002-11-01 Thread Monty
On a site that uses a popup window to display images, I want to prevent people from hotlinking directly to the popup page because it just looks like crap if not sized properly with controls removed. But I'm not sure how I can prevent someone from doing this. It appears the HTTP_REFERER isn't alway

[PHP] Handling Errors Gracefully

2002-11-09 Thread Monty
or links to articles that explain how this can be done?? Thanks a lot. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] set_error_handler() Keeps Triggering Errors

2002-11-09 Thread Monty
#x27;line'] = $line; header("Location:./error_page.php"); } Anyone have any clues why when I set_error_handler to the above function errors are being triggered for every page? Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] set_error_handler() Keeps Triggering Errors

2002-11-10 Thread Monty
] (Ernest E Vogelsinger) > Newsgroups: php.general > Date: Sun, 10 Nov 2002 10:42:05 +0100 > To: Monty <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] set_error_handler() Keeps Triggering Errors > > At 06:34 10.11.2002, Monty said: > [snip

[PHP] Unsetting Array Element

2002-11-12 Thread Monty
Does unsetting an array element make the array smaller? For example, if I have two elements in an array... $array = ("title" => "Title of Document", "content" => "Ten paragraphs of text in here..." ); ...then issue this command... unset ($array['content']); ...will this ma

[PHP] Writing a Polling App - Need Some Advice

2002-11-21 Thread Monty
separate table and link them to a central "Poll" record? Or do you store the questions all in one record? Or is there an even better way to do this? Any suggestions or pointers would be appreciated! Thanks. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Best Content Management METHOD...

2002-07-08 Thread Monty
or each article, but, it won't 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 c

[PHP] Breaking Dynamic Content into Pages...

2002-07-10 Thread Monty
determine the page breaks 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! M

[PHP] Loading dynamic pages based on URL

2002-07-11 Thread Monty
s may 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 "". I used the following but can't get the regular expression to work: $content = "blah blah blah blah blah"; $paged = preg_split( "[[:cntrl:]*][[:cntrl:]*]", $content ); I also tried the following... $content = "blah blah blah blah blah"; $paged = preg

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
above used with explode() only produce empty array variables, as though it's stripping out everything. What am I doing 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 > DO

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

2002-07-12 Thread Monty
te(). Any 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

[PHP] Preventing Multiple Log-Ins after Authentication

2002-07-16 Thread Monty
Is there a standard method in PHP for preventing multiple people from using the same log-in username/password simultaneously on a membership site? Any suggestions are greatly appreciated. Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

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
asier 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
d to accomplish this task. 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

[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 easie

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

2002-07-18 Thread Monty
ile contents 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
it seems 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

  1   2   >