[PHP] How do I get Apache 1.3.36 to use PHP 5

2007-08-26 Thread Beauford
Not to sound like a total nob, but how do I get Apache 1.3.36 to use PHP5. I have both 4 and 5 installed, but it still uses 4. I never had a problem with 4. I read the followed the INSTALL file for PHP5, below. I reinstall Apache as well and nothing - step 11. I tried putting LoadModule php5_modu

RE: [PHP] Re: Upload and resize file

2007-08-23 Thread Beauford
php-general@lists.php.net > Subject: Re: [PHP] Re: Upload and resize file > > On Thursday 23 August 2007 14:50, Al wrote: > > Suggest you find another script. That one is weird and not > simple PHP > > code, which will do your task easily. > > just my thou

[PHP] Upload and resize file

2007-08-22 Thread Beauford
I downloaded this 'upload and resize image' script, and since I have no idea what I am looking at as this is something I have never done, could someone have a look and see what the problem might be. I've been searching around but haven't come across anything that makes any sense yet. When a pictu

[PHP] List

2007-04-24 Thread Beauford
Does anyone else have this problem with the list. It seems that every time I check my email there is one or more messages from the list that royally screws up Outlook. I usually have to delete all list messages from the actual server and reboot. It only happens with emails from [EMAIL PROTECTED] J

FW: [PHP] Re: LOL, preg_match still not working.

2007-02-19 Thread Beauford
n it wants to. Thanks -Original Message- From: Janet Valade [mailto:[EMAIL PROTECTED] Sent: February 18, 2007 11:07 AM To: Beauford Subject: Re: [PHP] Re: LOL, preg_match still not working. Perhaps the code in your email, that is working for other people, is not the same code that you ar

RE: [PHP] Re: LOL, preg_match still not working.

2007-02-19 Thread Beauford
match still not working. If you want help, you must provide some example text strings that are to be matched. You keep posting your pattern and that's the problem. Beauford wrote: > Mails been down since this morning (sorry, that's yesterday morning). > Anyway, not sure if this

[PHP] Re: LOL, preg_match still not working.

2007-02-18 Thread Beauford
ke out the ! and period from my example and leave the new lines in, it works fine. Thanks > -Original Message- > From: Gregory Beaver [mailto:[EMAIL PROTECTED] > Sent: February 17, 2007 12:21 PM > To: Beauford > Cc: PHP > Subject: [PHP] Re: LOL, preg_match still not

RE: [PHP] LOL, preg_match still not working.

2007-02-17 Thread Beauford
of the preg_* errors disappeared since then. > > HTH, > Vahan > > > Steffen Ebermann wrote: > > Addendum: I encountered a problem when the string contains > linebreaks. Maybe > > adding \n\r into the brackets fixes your problem. > > > > > > On S

RE: [PHP] LOL, preg_match still not working.

2007-02-17 Thread Beauford
t be. The nocomments and invalidchars are constants. Thanks > -Original Message- > From: Ray Hauge [mailto:[EMAIL PROTECTED] > Sent: February 17, 2007 9:45 AM > To: Beauford > Cc: PHP > Subject: Re: [PHP] LOL, preg_match still not working. > > Maybe you just c

[PHP] LOL, preg_match still not working.

2007-02-17 Thread Beauford
Hi, I previously had some issues with preg_match and many of you tried to help, but the same problem still exists. Here it is again, if anyone can explain to me how to get this to work it would be great - otherwise I'll just remove it as I just spent way to much time on this. Thanks Here's the

RE: [PHP] preg_match problem

2007-01-25 Thread Beauford
Hi Jim, Thanks for all the help, but where is the link. > Here is a link to a page that has this on it, but with the added "'" > > Plus a link to the source code for it. > > Jim > > -- > PHP General Mailing List (http://www.php.net/) To > unsubscribe, visit: http://www.php.net/unsub.php >

RE: [PHP] preg_match problem

2007-01-24 Thread Beauford
> Here is my rendition of what I think you are looking for. > > $str = 'tab( )/space( )/[EMAIL PROTECTED]&*();:...'; > > if ( preg_match('|[EMAIL PROTECTED]&*();:_. /\t-]+$|', $str) ) { > echo 'success'; > } else { > echo 'failure'; > } > Here is the problem, and it is strange.

RE: [PHP] preg_match problem

2007-01-23 Thread Beauford
> You don't need to escape the apostrophe if the pattern isn't > quoted with apostrophes in PHP or delimited by apostrophes in > the PREG pattern. But generally there's no harm in escaping > characters unnecessarily; it just makes for messier code. > > Here is a simple test of the regexp I rec

RE: [PHP] preg_match problem

2007-01-23 Thread Beauford
> You need to escape that forward slash in the character class: > > preg_match("/[EMAIL PROTECTED]&()*;:_.'\/ > > Also, you've got only two backslashes in your char class. PHP is > reducing this to a single backslash before the space character. I > think you intend this to be two b

RE: [PHP] preg_match problem

2007-01-23 Thread Beauford
> if (preg_match('/[EMAIL PROTECTED]&()*;:_.'\\/ ]+$/', $string)) > > Use single quotes and double back-slashes. PHP strings also > have escape sequences that use the back-slash as escape > character, that's why you have to double them. And single > quotes to avoid the $ character interpr

RE: [PHP] preg_match problem

2007-01-22 Thread Beauford
> -Original Message- > From: Paul Novitski [mailto:[EMAIL PROTECTED] > Sent: January 22, 2007 6:58 PM > To: PHP > Subject: Re: [PHP] preg_match problem > > At 1/22/2007 03:04 PM, Beauford wrote: > >I'm trying to get this but not quite there. I

[PHP] preg_match problem

2007-01-22 Thread Beauford
I'm trying to get this but not quite there. I want to allow the following characters. [EMAIL PROTECTED]&()*;:_.'/\ and a space. Is there a special order these need to be in or escaped somehow. For example, if I just allow _' the ' is fine, if I add the other characters, the ' gets preceded by a \

[PHP] Php / MySQL DESC tablename

2007-01-21 Thread Beauford
Hi, First off thanks to everyone for the previous help. I managed to get it sorted out and used several of the suggestions made. I am trying to do a DESC table_name using PHP so it looks like it would it you did it from the command line. i.e. | Field | Type | Null | Key | Default |

RE: [PHP] One last try at this!

2007-01-18 Thread Beauford
> -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: January 17, 2007 8:10 PM > To: Jim Lucas > Cc: Beauford; 'PHP' > Subject: Re: [PHP] One last try at this! > > Jim Lucas wrote: > > Beauford wrote: > >> This is

RE: [PHP] One last try at this!

2007-01-17 Thread Beauford
t)) { $formerror['event'] = $result; function ValidateString($string) { if(!preg_match("/^[-A-Za-z0-9_.' ]+$/", $string)) { return "Invalid Characters"; } Thanks > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTE

RE: [PHP] One last try at this!

2007-01-17 Thread Beauford
Your right. I have been sitting here at this computer for 3 days straight with all the various problems, and I missed this. I need a break, I need a KitKat. Thanks to the list for all the help over the last couple of days. I'm going to watch CSI and get away from this. > Take a little closer

[PHP] One last try at this!

2007-01-17 Thread Beauford
I hope I can explain this so I can get this figured out, 'cause if not I may just have to find an alternative to PHP. I can't be wasting 3 and 4 days on something as simple as this. Below are 3 validation routines. When I first enter the page 'Optional' is displayed for all of them as it should be

RE: [PHP] I lied, another question / problem

2007-01-16 Thread Beauford
> $formerror = array(); > > ... do your validation here which may/may not add to the array. > > if (!empty($formerror)) { >echo "Something went wrong!"; >print_r($formerror); > } else { >echo "Everything is ok!"; > } As I said the problem is that a value is being returned, how I ch

RE: [PHP] I lied, another question / problem

2007-01-16 Thread Beauford
> This is a bad way to test for a value also, unless you > expecting only TRUE or FALSE and you are sure that it will > always be set. > Otherwise you should do something like this > > if ( isset($formerror) && $formerror != '' ) { > // Display Error > } The problem here is this. formerr

RE: [PHP] I lied, another question / problem

2007-01-16 Thread Beauford
if(!$formerror) blah blah. This is where the problem is because if null or "" is being returned then $formerror has a value which breaks the above if. I hope this helps. Thanks > -Original Message- > From: Roman Neuhauser [mailto:[EMAIL PROTECTED] > Sent: January 16,

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
s a value. Basically this has just broken my whole site. If anyone can figure this out let me know, right now I just have to put this site up with no validation. Thanks > -Original Message- > From: Beauford > Sent: January 15, 2007 10:26 PM > To: 'PHP' > Subject:

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
works the way it is supposed to. I would however like to know what the issue is with the original code, or if this is actually a bug in PHP. Thanks > -Original Message- > From: Beauford [mailto:[EMAIL PROTECTED] > Sent: January 15, 2007 7:22 PM > To: 'PHP' > Subj

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
> -Original Message- > From: 'Roman Neuhauser' [mailto:[EMAIL PROTECTED] > Sent: January 15, 2007 7:53 PM > To: Beauford > Cc: 'PHP' > Subject: Re: [PHP] I lied, another question / problem > > # [EMAIL PROTECTED] / 2007-01-15 18:33:31 -0500

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
> -Original Message- > From: Roman Neuhauser [mailto:[EMAIL PROTECTED] > Sent: January 15, 2007 7:09 PM > To: Beauford > Cc: PHP > Subject: Re: [PHP] I lied, another question / problem > > # [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500: > > I have f

RE: [PHP] I lied, another question / problem

2007-01-15 Thread Beauford
> -Original Message- > From: Roman Neuhauser [mailto:[EMAIL PROTECTED] > Sent: January 15, 2007 7:09 PM > To: Beauford > Cc: PHP > Subject: Re: [PHP] I lied, another question / problem > > # [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500: > > I have f

[PHP] I lied, another question / problem

2007-01-15 Thread Beauford
I have file which I use for validating which includes the following function: function invalidchar($strvalue) { if(!ereg("^[[:alpha:][:space:]\'-.]*$", $strvalue)) { return "*"; } } Here is the problem. If I don't use the function, like below, there is no

[PHP] FW: Eregi question

2007-01-15 Thread Beauford
Hi, Hopefully this is my last question so I can put this site to bed. Is there a good article that explains how to do the patterns for eregi. I have read tons of articles, but none really explains what everything means. Like why some things have square brackets and some have round, what does the

RE: [PHP] Stripslashes

2007-01-15 Thread Beauford
--Original Message- > From: Larry Garfield [mailto:[EMAIL PROTECTED] > Sent: January 15, 2007 12:02 AM > To: Beauford; PHP-General > Subject: Re: [PHP] Stripslashes > > Copying this back on list where it belongs... > > If the apache process on the server is configured to suppor

RE: [PHP] Stripslashes

2007-01-14 Thread Beauford
I just turned off get_magic_quotes in my PHP.ini, but not sure if the hosting company has it on or not once I upload the site. > -Original Message- > From: Beauford [mailto:[EMAIL PROTECTED] > Sent: January 14, 2007 11:34 AM > To: 'PHP' > Subject: RE: [PHP

RE: [PHP] Stripslashes

2007-01-14 Thread Beauford
the form redisplays after the user has input invalid data. All this is being done on the same page. > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: January 14, 2007 1:02 AM > To: Beauford > Cc: PHP > Subject: Re: [PHP] Stripslashes > > Beau

[PHP] Stripslashes

2007-01-13 Thread Beauford
Hi, Anyone know how I can strip slashes from $_POST variables. I have tried about a hundred different ways of doing this and nothing works. i.e. if(!empty($_POST)){ foreach($_POST as $x => $y){ $_POST[$x] = stripslashes($y); } } This came about after someone tried to enter O'Toole in a form, an

RE: [PHP] Forms and destroying values

2007-01-12 Thread Beauford
Original Message- > From: Stut [mailto:[EMAIL PROTECTED] > Sent: January 12, 2007 11:38 AM > To: Beauford > Cc: 'PHP' > Subject: Re: [PHP] Forms and destroying values > > Beauford wrote: > > So the answer is, there is no way to destroy the values. Question >

RE: [PHP] Forms and destroying values

2007-01-12 Thread Beauford
also still confused as to why giving them a null value doesn't work. Thanks to all. > -Original Message- > From: Satyam [mailto:[EMAIL PROTECTED] > Sent: January 12, 2007 8:21 AM > To: Beauford; PHP > Subject: Re: [PHP] Forms and destroying values > > This i

[PHP] Forms and destroying values

2007-01-12 Thread Beauford
Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser. I have tried to unset/destroy the variables in several different ways, but it still does it. After the info is written I unset the variables by using unset($var1, $var2,

RE: [PHP] Windows directory listings

2007-01-07 Thread Beauford
> -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > Sent: January 7, 2007 8:35 PM > To: Beauford > Cc: 'PHP' > Subject: Re: [PHP] Windows directory listings > > with regard to trolling - I'd don't *just* do that :-) > &

RE: [PHP] Windows directory listings

2007-01-07 Thread Beauford
rlist = array_merge ( $dirlist , $result ) ; } } } closedir ( $handle ) ; } if ( $d == 0 ) { natcasesort ( $dirlist ) ; } return ( $dirlist ) ; } ?> > -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > Sent: Januar

[PHP] Windows directory listings

2007-01-06 Thread Beauford
Hi, I am trying to write a script that reads a directory on Windows. All the PHP functions I have looked at all seem to work with the Linux dietary structure. Is there another way to do this. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

RE: [PHP] Date problems

2007-01-04 Thread Beauford
Yea, I just figured this out. When I cut and pasted I must have overwrote the =. Thanks > -Original Message- > From: Stut [mailto:[EMAIL PROTECTED] > Sent: January 4, 2007 4:27 PM > To: Beauford > Cc: PHP > Subject: Re: [PHP] Date problems > > Beauford wrote:

[PHP] Date problems

2007-01-04 Thread Beauford
Hi All, I have a database with a bunch of dates in it. I want to count the number of entries for each year and then display the year and the count. i.e. YearCount 200622 200518 200414 200322 This is what I have tried but just not quite getting it. $query "select count(date)

RE: [PHP] Clearing POST variable on page refresh

2006-12-18 Thread Beauford
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: December 18, 2006 3:46 PM > To: Beauford > Cc: PHP > Subject: Re: [PHP] Clearing POST variable on page refresh > > On Sun, December 17, 2006 4:59 pm, Beauford wrote: > > I have

[PHP] Clearing POST variable on page refresh

2006-12-17 Thread Beauford
Hi, I have a page with a form on it which posts to itself. The problem is when someone refreshes the page it enters the data into the DB again. How do I clear these variables so that doesn't happen. I tried the unset function, but no luck. I really don't want to use sessions or cookies as this is

[PHP] Embedded Video

2006-12-09 Thread Beauford
Not sure if this can be done with PHP, or if I would need to use a java script or something. If anyone has any ideas it would be appreciated. I have a video on my site and I want something to say that the video is loading and then disappear once the video starts. Thanks again. -- PHP General M

RE: [PHP] PHP Installation question

2006-12-09 Thread Beauford
Solved. Ditched Slackware 10 and installed Slackware 11. Both were installed the exact same way, so who knows Thanks to all. -Original Message- From: Ryan Creaser [mailto:[EMAIL PROTECTED] Sent: December 7, 2006 10:05 PM To: Beauford Cc: php-general@lists.php.net Subject: Re

RE: [PHP] PHP Installation question

2006-12-07 Thread Beauford
On the old PC zlib.h is in /usr/local/inlude. On the new PC it's in /usr/include and /usr/include/linux. I'm in the process of reinstalling PHP, but I have my doubts. Thanks -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: December 7, 2006 8:21 PM To: Beaufo

RE: [PHP] PHP Installation question

2006-12-07 Thread Beauford
een included in either version of Slack. So I think I'm just going around in circles with this. Thoughts.. B -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: December 7, 2006 12:15 AM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Installation ques

RE: [PHP] PHP Installation question

2006-12-06 Thread Beauford
al Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: December 6, 2006 7:35 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Installation question Beauford wrote: > Hi, > > I am trying to install vBulletin and keep getting this error: Fatal error: > Call

[PHP] PHP Installation question

2006-12-06 Thread Beauford
Hi, I am trying to install vBulletin and keep getting this error: Fatal error: Call to undefined function: gzinflate(). The only thing I can find on this is that zlib needs to be configured with PHP at compile time. So I reinstalled PHP using the following: ./configure --with-mysql --with-apach

[PHP] Viruses

2006-11-02 Thread Beauford
Does the PHP list not monitor spam or filter out viruses? I am getting a lot of this junk coming through the list. I am also getting some directly to this address, but obviously that is out of the lists control. Thanks B

FW: [PHP] php.ini & ini_set

2006-10-31 Thread Beauford
October 31, 2006 9:38 PM To: Beauford Cc: 'PHP' Subject: Re: [PHP] php.ini & ini_set Beauford wrote: > Can you be more specific. I only see 4 parameters and none of them apply. Oops sent you to the wrong page. http://www.php.net/manual/en/function.mail.php There are 5 paramete

RE: [PHP] php.ini & ini_set

2006-10-31 Thread Beauford
D]"); It still says it comes from: Nobody [EMAIL PROTECTED]; on behalf of; Registrar [EMAIL PROTECTED] Thanks -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: October 31, 2006 9:38 PM To: Beauford Cc: 'PHP' Subject: Re: [PHP] php.ini & ini_set Beauford wro

RE: [PHP] php.ini & ini_set

2006-10-31 Thread Beauford
Can you be more specific. I only see 4 parameters and none of them apply. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: October 31, 2006 9:13 PM To: Beauford Cc: PHP Subject: Re: [PHP] php.ini & ini_set Beauford wrote: > I am working on a website for a friend

[PHP] php.ini & ini_set

2006-10-31 Thread Beauford
I am working on a website for a friend that is being hosted by a third party (which uses Linux) and I don't have access to the php.ini or any other system files. The problem I am having is this. When an email is sent from the website and the user receives it, it says it is from [EMAIL PROTECTED] i

RE: [PHP] Query question

2006-10-29 Thread Beauford
I don't see this as a particular problem as the data will always be the same. Now under other circumstances in another database, I can see what you are saying. -Original Message- From: Satyam [mailto:[EMAIL PROTECTED] Sent: October 29, 2006 4:30 AM To: Beauford; 'PHP' Su

RE: [PHP] Query question

2006-10-29 Thread Beauford
to 8 and all was well. Beats me. B -Original Message- From: Satyam [mailto:[EMAIL PROTECTED] Sent: October 29, 2006 2:14 AM To: Beauford; 'PHP' Subject: Re: [PHP] Query question If that works then you have a problem: you are storing dates as a plain string ( varc

RE: [PHP] Query question

2006-10-28 Thread Beauford
This is what I finally figured out, which works just perfectly. select count(date) as count, substring(date,8) as year from stats group by year; Thanks to all for the input. -Original Message- From: Joe Wollard [mailto:[EMAIL PROTECTED] Sent: October 29, 2006 12:15 AM To: Beauford Cc

RE: [PHP] Query question

2006-10-28 Thread Beauford
gured I'd need to use PHP to maybe put it in an array first or something. Thanks -Original Message- From: Joe Wollard [mailto:[EMAIL PROTECTED] Sent: October 28, 2006 10:30 PM To: Ed Lazor Cc: Beauford; PHP Subject: Re: [PHP] Query question Agreed, this should go to a MySQL list.

[PHP] Query question

2006-10-28 Thread Beauford
Hi, I have a MySQL database with a date field and a bunch of other fields. The date field is in the format - 01/01/2006. What I want to do is query the database and create a table that shows just the year and how many instances of the year there is. I have been taxing my brain for a simple solutio

RE: [PHP] Override php.ini

2006-09-26 Thread Beauford
EMAIL PROTECTED] Sent: September 22, 2006 8:02 PM To: Beauford Cc: PHP Subject: Re: [PHP] Override php.ini On Fri, September 22, 2006 11:42 am, Beauford wrote: > Is there a way I can use <% %> instead of for the opening and > closing tags of a php script. I thought I read this somew

[PHP] Override php.ini

2006-09-22 Thread Beauford
Is there a way I can use <% %> instead of for the opening and closing tags of a php script. I thought I read this somewhere but can't find anything on it now. Is there something that I could do with override php.ini command? I don't have access to the php.ini file on this server. Thanks B

RE: [PHP] Question on explode and join.

2006-09-14 Thread Beauford
I read your email, but I'm not using sessions and not really planning too. But some of your code may be able to be modified to do what I need. Thanks for the input. B _ From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: September 14, 2006 8:52 AM To: Beauford Subject: Re:

RE: [PHP] Question on explode and join.

2006-09-13 Thread Beauford
there are more I haven't discovered yet. I haven't had much time to play around with it since earlier today, so I haven't experimented with it, but ideas are welcome. Thanks -Original Message- From: Ducarom [mailto:[EMAIL PROTECTED] Sent: September 13, 2006 2:26 PM To: Bea

RE: [PHP] Question on explode and join.

2006-09-13 Thread Beauford
_ From: Eric Butera [mailto:[EMAIL PROTECTED] Sent: September 13, 2006 1:07 PM To: Beauford Cc: php Subject: Re: [PHP] Question on explode and join. On 9/13/06, Beauford <[EMAIL PROTECTED]> wrote: Hi, I have a form which I want to check for inappropriate words before it is pos

[PHP] Question on explode and join.

2006-09-13 Thread Beauford
Hi, I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I check it against another array that contains the inappropriate words. I then replace the inappropriate words with *'s a

RE: [PHP] php_mysql.dll

2006-07-09 Thread Beauford
Good luck. I have tried 1001 ways to try and get PHP 5.xx to work on Windows with no luck. Everyone says it's simple, but I believe there is a bug in PHP 5. I have no problem in Linux, but on Windows - that's another story. If you do a search of the archives for this list I'm sure there are tons of

[PHP] Quick Question re: Windows/Linux PHP

2006-06-30 Thread Beauford
Hi, I'm just curious, because I come across this from time to time. Why does the code below work on Windows and not on Linux. PHP is 5.0 on Linux and 4.4 on Windows (still can't get 5 on Windows). The code at the very bottom is how I got it to work on Linux. Also, why is it with the same setup I

RE: [PHP] Ereg problem

2006-06-27 Thread Beauford
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: June 27, 2006 12:58 PM To: Beauford Cc: PHP-General Subject: Re: [PHP] Ereg problem On Tue, 2006-06-27 at 12:14, Beauford wrote: > One more in my recent woes. The last elseif does not work in the code >

RE: [PHP] Re: PHP 5, Windows, and MySQL

2006-06-27 Thread Beauford
Neither one will work. -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: June 27, 2006 11:37 AM To: 'Beauford'; php-general@lists.php.net Subject: RE: [PHP] Re: PHP 5, Windows, and MySQL But is libmysql.dll the dll from mysql; the one packaged with

[PHP] Ereg problem

2006-06-27 Thread Beauford
One more in my recent woes. The last elseif does not work in the code below - even if the string is correct it always says it's incorrect. Even if I remove everything else and just have the ereg satement is doesn't work either. The code below is in a function and $_POST['password1'] is passed to t

RE: [PHP] PHP 5, Windows, and MySQL

2006-06-27 Thread Beauford
ne 0 Thanks -Original Message- From: Janet Valade [mailto:[EMAIL PROTECTED] Sent: June 26, 2006 7:43 PM To: Beauford Subject: Re: [PHP] PHP 5, Windows, and MySQL Well, I don't know what you mean by a known issue. All your message says is that PHP 5 does not support MySQL. Yes, it d

RE: [PHP] Re: PHP 5, Windows, and MySQL

2006-06-27 Thread Beauford
t: Monday, June 26, 2006 8:13 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I've got it running fine on my windows. Mysql 5.0.19 PHP 5.1.4 I just activate php_mysql.dll and php_mysqli.dll. Which versions of php and mysql are you using? ""Beaufo

RE: [PHP] PHP 5, Windows, and MySQL

2006-06-26 Thread Beauford
une 26, 2006 4:08 PM To: Beauford Subject: Re: [PHP] PHP 5, Windows, and MySQL Activating MySQL in PHP 5 is pretty simple. Open the php.ini file and uncomment the line for the extension that you want to use--php_mysql.dll or php_mysqli.dll. Restart the web server. Using the mysql functions is

[PHP] PHP 5, Windows, and MySQL

2006-06-26 Thread Beauford
Aside from my previous gd problems, here's another problem. It appears that PHP5 (for Windows anyways) does not support MySQL (which in itself is riduculous), but here's my problem. I have a script I just downloaded that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on Windows 2000 w

RE: [PHP] GD problems

2006-06-23 Thread Beauford
e some time if I had though. Thanks to everyone. B -Original Message- From: chris smith [mailto:[EMAIL PROTECTED] Sent: June 23, 2006 6:11 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems On 6/24/06, Beauford <[EMAIL PROTECTED]> wrote: > > Here

RE: [PHP] GD problems

2006-06-23 Thread Beauford
I'm missing in Linux that is required by these scripts? This is what I've been fighting with the last two weeks. Thanks for all the help. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 23, 2006 2:20 AM To: Beauford Cc: php-general@lists.php.net Subject: Re: [P

RE: [PHP] GD problems

2006-06-23 Thread Beauford
Here's something else I just noticed. When I run the script below in Windows it works fine, in Linux I get this error: Fatal error: Call to undefined function bcmod() in /usr/local/apache/htdocs/home/cap.php on line 62 This is line 62: $pos_x = bcmod($code,$size_x-60) +3; Linux is running PHP

RE: [PHP] GD problems

2006-06-22 Thread Beauford
Since I know nothing of how this works, does this actually create a physical image, and if it does I'm assuming it would be in the originating directory from where the script was run - if this is the case, I got nothing. This is a moot point now as I have done what I need without using gd, but it

RE: [PHP] GD problems

2006-06-21 Thread Beauford
and numbers. Here is the entire code from one that doesn't work. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 21, 2006 8:41 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: > This is the output from . As far

RE: [PHP] GD problems

2006-06-21 Thread Beauford
ot;WBMP Support"]=> bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) } -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 20, 2006 8:51 PM To: Beauford Cc

RE: [PHP] GD problems

2006-06-19 Thread Beauford
an find a captcha program that doesn't use gd, or (shudder) move my web server to Windows. Thanks again -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 19, 2006 10:14 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: > Th

RE: [PHP] GD problems

2006-06-19 Thread Beauford
can see I'm way pass frustrated. Thanks again -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 19, 2006 9:10 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: > Hi again, > > I started again to see if I cou

RE: [PHP] GD problems

2006-06-19 Thread Beauford
peg.c:882: error: parse error before "cinfo" gd_jpeg.c: In function `init_destination': gd_jpeg.c:884: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:888: error: `j_common_ptr' undeclared (first use in this function) gd_jpeg.c:888: error: parse error before

[PHP] GD problems

2006-06-19 Thread Beauford
I finally broke down and reinstalled PHP using the info from the site below, but GD is still not working. Phpinfo() shows it is enabled, as are the other libraries. So I'm lost as to what I am missing? http://tanksoftware.com/tutes/installingphp.html Any help is appreciated. B -- PHP General M

[PHP] Includes, Require, Location, Other

2006-06-18 Thread Beauford
Hi, If I were to have something like the following, what is the best way (or best practice) to reload the page and display the error - or is there a better way to do this. I want to keep the site uniform and don't want errors popping up and making a mess. Thanks B -

RE: [PHP] GD

2006-06-12 Thread Beauford
ks. B -Original Message- From: Ray Hauge [mailto:[EMAIL PROTECTED] Sent: June 12, 2006 7:35 PM To: php-general@lists.php.net Cc: Beauford Subject: Re: [PHP] GD On Monday 12 June 2006 16:11, Beauford wrote: > Hi, > > I am trying to get GD working so I can use a captcha script and not &g

[PHP] GD

2006-06-12 Thread Beauford
Hi, I am trying to get GD working so I can use a captcha script and not having much luck. I can get it to work in Windows, but not Linux. I have seen a few comments suggesting that PHP needs to be compiled with the GD switch. Is there another way to do this? I have PHP, MySQL and Apache installe

RE: [PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Yep, I see that now. I really need to take a break - been at this way to long. Thanks to all. -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 3:02 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session variables and words with

RE: [PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Not sure why I would get a parse error, but that did correct the problem. I just completely missed the single quote. I never even clue'd in when I looked at the source of the page. Sometimes another pair of eyes does the trick. Maybe it's time for a break. Thanks >> I'm surprised you're not get

RE: [PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Thanks - Done that though. It shows the way it should be. Example: Niagara Falls -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 2:28 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session variables and words with spaces Perhaps

[PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Hi, I have a form in which a drop down field is populated from a MySQL database. I am also using sessions. The problem is this. After I submit the form the session variable only shows the part of the input before the space. Example: if I choose Niagra Falls from the drop down list, then I only s

[PHP] PHP, Javascript, and Forms

2006-05-30 Thread Beauford
Hi, I have a form with about 20 fields in it and have two drop down menus in which the second one changes depending on the previous one. This is done with a javascript which reloads the page. The problem with this is that everything the user has put in so far gets erased when the page reloads. I

[PHP] Upgrade problems PHP 5.1.4 (Windows)

2006-05-22 Thread Beauford
Hi, I just upgraded to PHP 5.1.4 and now none of my sites will connect to MySQL. I keep getting the error: Fatal error: Call to undefined function mysql_connect() I enabled php_mysql.dll in php.ini as one article suggested, but still no go. Any suggestions? Thanks Beauford -- PHP General

RE: [PHP] Captcha v1.0 (http://www.php.meezerk.com/index.php?page=captcha)

2006-05-20 Thread Beauford
The following are the errors I am getting - quite lengthy. Thanks $ make make all-recursive make[1]: Entering directory `/home/beauford/gd-2.0.33' Making all in config make[2]: Entering directory `/home/beauford/gd-2.0.33/config' make[2]: Nothing to be done for `all'. m

[PHP] Captcha v1.0 (http://www.php.meezerk.com/index.php?page=captcha)

2006-05-20 Thread Beauford
Hi, I am trying to get a program, Captcha v1.0, working and not having much luck. The program says I need PHP version 4.3.10 or later or PHP version 5 and GD Library version 2.0 or later with JPEG support. I know I have PHP 5, but not sure about the GD Library. I was reading on one page I was on

RE: [PHP] Re: SMTP Authentication

2004-03-13 Thread Beauford
Thanks, I'll check them out. -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: March 12, 2004 11:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: SMTP Authentication Hello, On 03/13/2004 12:54 AM, Beauford wrote: > How would I set up PHP to

[PHP] SMTP Authentication

2004-03-12 Thread Beauford
Hi, How would I set up PHP to use SMTP authentication when I send an email. For example, in MS Outlook I have authentication set to use the same settings as my incoming mail. I have searched around but haven't found anything that deals with this. Thanks -- PHP General Mailing List (http://www.p

  1   2   3   >