[PHP] Re: Convert Smart Quotes to Sraight Quotes - Need Help!

2004-09-07 Thread Monty
there must be some way to convert those curly quotes into > straight ASCII quotes while the text is still in Unicode format, before I > run this through either iconv() or utf8_decode(). But, I've searched all > over for two days and can't figure out how to accomplish this.

[PHP] Convert Smart Quotes to Sraight Quotes - Need Help!

2004-09-06 Thread Monty
ll over for two days and can't figure out how to accomplish this. I'd really appreciate someone's help with this! It's driving me nuts!! Thanks, Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: htmlentities and foreign characters from MS Word

2004-09-06 Thread Monty
] = iconv("UTF-8", "ISO-8859-1", $var); > } > > It can be that your array has a different coding than UTF-8 check the > manual for the htmlentities function, but i'm pretty shure that should > solve it. > > I2eptilex > > Monty wrote: >

[PHP] htmlentities and foreign characters from MS Word

2004-09-04 Thread Monty
oreign characters, and if there's any way to convert them to proper htmlentities before being displayed in a browser. I thought htmlentities would do this, actually. Thanks! Monty. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Location header does not work?

2004-08-03 Thread Monty
s, or just Netscape? Monty > From: [EMAIL PROTECTED] (Bing Du) > Newsgroups: php.general > Date: Tue, 3 Aug 2004 15:34:27 -0500 (CDT) > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Location header does not work? > > The latest message I got was 'Redirection limit for thi

Re: [PHP] javascript type cast

2004-08-03 Thread Monty
hich have PHP forums, such as sitepoint.com. Monty > From: [EMAIL PROTECTED] (Josh Close) > Newsgroups: php.general > Date: Tue, 3 Aug 2004 13:44:28 -0500 > To: PHP <[EMAIL PROTECTED]> > Subject: Re: [PHP] javascript type cast > > Ok. I write most my web apps in php. I rarely

[PHP] SPAMCEASE ???

2004-07-31 Thread Monty
I got the following e-mail from this list. Is this legit? I'm skeptical because the URL it tells me to click on leads to what looks like a SPAM site to me. Here's the full e-mail I received with headers: - MIME-Version: 1.0 Received: from tgpnexus.com ([66.17.150.83]) by mc3-f36.hotm

Re: [PHP] upload_tmp_dir Not Working

2004-07-30 Thread Monty
> On Fri, 30 Jul 2004 17:08:46 -0400, Monty <[EMAIL PROTECTED]> wrote: >> In my .htaccess file I have... >> >> php_value upload_tmp_dir /home/site/temp >> >> But when I upload a file using a form, here's what the $_FILE array prints >> out: >

[PHP] upload_tmp_dir Not Working

2004-07-30 Thread Monty
t). Anyone have any insight on this?? Thanks! - Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MAX_FILE_SIZE

2004-07-30 Thread Monty
mall files, but, for larger files it sucks that the user has to wait for the entire file to upload first before being told it's too big. If the MAX_FILE_SIZE form variable doesn't prevent this, as the manual says it should, then what's the point of using it? I'm using PHP 4

[PHP] Most Efficient Query

2004-07-22 Thread Monty
dexes with MATCH() and AGAINST()? I have MySQL 3.23.58 installed on my server. Thanks! - Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Programming User-Customized Categories ??

2004-06-18 Thread Monty
;m finding it a lot trickier to allow the users to customize these with their own category types. So, I'm hoping someone might be able to point me to an example of how custom categories and sub-categories can be programmed in PHP and set up in MySQL. Any suggestions or advice would be much appr

[PHP] Re: PHPSESSID Being Stubbornly Persistent

2004-05-13 Thread Monty
> From: [EMAIL PROTECTED] (Jason Barnett) > > Out of curiosity, how were you planning on passing session id's? > Through POST variables? In cookies only. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables Help

2004-05-13 Thread Monty
sy way to keep just the user-defined vars part of the array created by get_defined_vars. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHPSESSID Being Stubbornly Persistent

2004-05-13 Thread Monty
ave the Session ID appended to all URLs, just the first page visited. I have PHP 4.3.2 installed on a RedHat Linux ES 3.0 server. Is there anything I can do to prevent this from happening? Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Altering Content-Type with CURL

2004-04-21 Thread Monty
I need the Content-Type header for a CURL POST to be this: Content-Type: text/comma-separated-values instead of the default "application/x-www-form-urlencoded" that is set by the CURLOPT_POST parameter set with curl_setopt(). How is this done? Monty -- PHP General Mailing

[PHP] CURL Help

2004-04-19 Thread Monty
99&cvv2_code=M Do my CURL statements look correct based on what the gateway needs to receive?? I have PHP 4.3.2 and Apache 2.0 running on Red Hat ES 3.0. Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reusing MySQL Connections - Can it be done?

2004-04-05 Thread Monty
> A define is pretty much for strings only, not objects or resources. Try > using $GLOBALS['_CONNECT_DB'] instead. I tried this, but, same results. If I store the Resource ID from a mysql_pconnect() in $GLOBALS['_CONNECT_DB'] and then call... mysql_query($query, $GLOBALS['_CONNECT_DB']); PHP

Re: [PHP] Reusing MySQL Connections - Can it be done?

2004-04-05 Thread Monty
It appears you can't pass constant vars by reference, or am I missing your point? I understand passing vars by reference, but not sure where you suggest I need to use it. I tried "define('_CONNECT_DB', &$result);" and "return &_CONNECT_DB;" separately, but neither worked. > [snip] > function conne

Re: [PHP] Re: session_exist() ?? Can this be done?

2004-04-05 Thread Monty
7;m trying to avoid. I only want to create a session for a user that I know has already been authenticated first, which for my site seems to be the existence of the session cookie. Monty > just on a side-note, the session is not always kept in a cookie ( if > cookies are deactivated the ses

[PHP] Reusing MySQL Connections - Can it be done?

2004-04-05 Thread Monty
exactly how PHP and MySQL work together, but, if there's anything that explains in detail exactly what is happening when you call mysql_connect or mysql_query, please point me in its direction. Any input on this is most appreciated! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: session_exist() ?? Can this be done?

2004-04-05 Thread Monty
y checking a value. If the session value isn't there, then I destroy the session, clear out the $_SESSION vars and send back to log-in pgae. This only works if you are restricting passing sessions IDs via a cookie, which I am doing to make my sessions a bit more secure. Monty > From: [EMAIL

[PHP] Re: \n is not working!

2004-04-04 Thread Monty
\n must be included in double-quotes because it's treated like a variable. echo "This works\n"; // Displays: This works echo "This doesn't work\n'; // Displays: This doesn't work\n > From: [EMAIL PROTECTED] (Labunski) > Newsgroups: php.general > Date: Mon, 5 Apr 2004 00:58:35 +0300 >

[PHP] session_exist() ?? Can this be done?

2004-04-04 Thread Monty
sion if it's possible to first know whether a session exists without starting it. I have my site set to store the PHPSESSID in a cookie only (not passed via URL), so, would checking for the existence of $_COOKIE['PHPSESSID'] be a reliable way of doing this? Any other suggestions are appre

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Monty
evelopment > Reply-To: [EMAIL PROTECTED] > Newsgroups: php.general > Date: Sat, 03 Apr 2004 00:01:43 +0200 > To: [EMAIL PROTECTED] > Cc: Monty <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: [PHP] Strange Numeric Conversion... > > sry... it's \\1 instead of

Re: [PHP] Strange Numeric Conversion...

2004-04-02 Thread Monty
erting it immediately to a 9 instead of reading it as 11 or even 11. If PHP sees this as an octal, then why does gettype(11) = INTEGER? This makes no sense. Monty. > From: [EMAIL PROTECTED] (Jay Blanchard) > Newsgroups: php.general > Date: Fri, 2 Apr 2004 15:38:03 -0600 > To:

[PHP] Strange Numeric Conversion...

2004-04-02 Thread Monty
Why is this happening??? $id = 11; echo $id; // Displays: 9 $id = 11; echo $id; // Displays: 11 How do I make the first number (00011) display as 11? Why is it showing 9? Thanks. Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] 2 OOP or Not 2 OOP

2004-02-28 Thread Monty
ld just wait until I get PHP 5? Anyone have any insight?? - Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] To Separate, or Not to Separate

2004-02-25 Thread Monty
separate table (which has very limited access with a separate user/password in MySQL). The Member DB I was asking about holds stuff like username, password, e-mail, membership expire date and various preferences. Thanks for all the input! - Monty > From: [EMAIL PROTECTED] (Chris W. Parker) > Ne

[PHP] To Separate, or Not to Separate

2004-02-23 Thread Monty
ingle table in MySQL than several if a member makes changes to their account or preferences. What do you think? Monty. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: RewriteRule REGEX ?

2004-01-24 Thread Monty
ake a difference. I also tried /articles... but that didn't work, either. Monty > From: [EMAIL PROTECTED] (Paul Chvostek) > Newsgroups: php.general > Date: Sat, 24 Jan 2004 13:39:25 -0500 > To: Monty <[EMAIL PROTECTED]> > Subject: Re: RewriteRule REGEX ? > > &

[PHP] Re: RewriteRule REGEX ?

2004-01-24 Thread Monty
gt; > -- > // DvDmanDT > MSN: dvdmandtâhotmail.com > Mail: dvdmandtâtelia.com > "Monty" <[EMAIL PROTECTED]> skrev i meddelandet > news:[EMAIL PROTECTED] >> My server runs Apache 2.0. I am trying to do a simple URL rewrite so that >> old URLs will map to our new st

[PHP] RewriteRule REGEX ?

2004-01-24 Thread Monty
My server runs Apache 2.0. I am trying to do a simple URL rewrite so that old URLs will map to our new style of URLS... From This: articles.php?id=999 To This:articles/999 In the .htaccess file for the htdocs folder that contains the web files, I put the following: RewriteEngine

Re: [PHP] Alternate way of e-mailing in PHP

2004-01-05 Thread Monty
) within PHP, then writing directly to it using fputs. > From: [EMAIL PROTECTED] (David Otton) > Newsgroups: php.general > Date: Mon, 05 Jan 2004 16:36:09 + > To: Monty <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Alternate way of e-mailing in

[PHP] MAIL doesn't work anymore

2004-01-05 Thread Monty
Shouldn't this work in PHP 4.3.2? ... mail('[EMAIL PROTECTED]', 'Subject', 'Body of email'); This very simple use of the mail command produces an error by Sendmail: "dsn=5.6.0, stat=Data format error," which must mean there is a bug in this function. Does anyone know why this won't work anymo

[PHP] Alternate way of e-mailing in PHP

2004-01-04 Thread Monty
I've been getting "data format errors" from Sendmail when trying to send automatic e-mails from my websites recently, and as I can't find a fix for this, I tried some code that someone sent to me which actually worked. It uses popen() and I'd like to know if this method of sending e-mail has any ma

[PHP] Data Format Errors using MAIL()

2004-01-04 Thread Monty
nd fixed it, I'd really appreciate hearing from you! Thanks - Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

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: 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

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

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] 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

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

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] 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-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] 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

[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: 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] 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: 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] 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: 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: 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] 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

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] 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

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

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

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

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] 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

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

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] 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
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?

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

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

[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

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

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

[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

[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

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

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] 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] 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

[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

[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

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: 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

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

  1   2   >