[PHP] Replacing text with criteria

2006-06-15 Thread Jeff Lewis
I have been working on a script to parse a CSV file and in the process I clean out a lot of the garbage not needed but I am a bit stumped on one aspect of this file. It's a list of over 3000 contacts and I'm trying to mask a lot of the information with *. So as I loop through this list I am

[PHP] Adding X days to a time string...

2003-11-21 Thread Jeff Lewis
Storing a date in seconds (Unix timestamp) in a database and want to add X number of days to this. So I want to extend a time by say 5 days, what is the best method to handle this? It's always stored as a timestamp for a day not an exact time. So dates are stored as day (March 5th, 2003). Jeff

RE: [PHP] Adding X days to a time string...

2003-11-21 Thread Jeff Lewis
Sorry, I may have muddled that...the issue isn't converting a string to a time, it's taking a time (102636 for example) and adding 30 days to that. Jeff -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 11:13 AM To: [EMAIL PROTECTED];

[PHP] Using PHP to get size of mySQL data?

2003-08-22 Thread Jeff Lewis
I want to query a table of text articles and when selecting them I am wondering if I can grab the actual size of the articles in question. So if someone has two articles, I want to see if they have reache 100kb in total. Does that make sense to anyone? is that possible with PHP? Jeff

[PHP] Configuring PHP to use aspell

2003-08-14 Thread Jeff Lewis
I have the following set up... RH Linux version 7.3 PHP 4.3.2 Aspell installed on the server I have NEVER configured PHP and am looking for some assistance in configuring PHP to use Aspell so I can take advantage of this great feature that (as I can see from my searches) is not as well

[PHP] HTML mail being sent with mail() not working for some people

2003-03-27 Thread Jeff Lewis
We're sending out emails using mail() and sending it in HTML format and while most people get it correctly a couple are not. They get the anti-abuse headers and then the HTML code appears as just that - HTML code in the body of the email. Sending those same people an HTML email composed in

Re: [PHP] HTML mail being sent with mail() not working for some people

2003-03-27 Thread Jeff Lewis
from Jeff', $message, $headers); And again, it works for most people but two people have complained about this issue. At least one as using MS Outlook. Jeff - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 12:14 PM Subject: [PHP

[PHP] Selecting date range from database

2003-03-26 Thread Jeff Lewis
I am trying to select a date range in this format from a database 1-Mar-03 to 26-Mar-03. The date is stored in a mySQL database in that format and when doing a normal select it just selects the dates as if they are numbers. How can I make this select work the way I want it to work? I am using the

[PHP] Hidden new line markers?

2003-03-24 Thread Jeff Lewis
I am using a SELECT statement to grab all items from a database table and while looping through the results I am connecting the fields with tabs and adding a new line at the end of the row to create a tab delimited file. On one field I do a nl2br in order to preserve the spacing in the field.

Re: [PHP] Hidden new line markers?

2003-03-24 Thread Jeff Lewis
it down to what was causing the issue. Jeff - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:03 PM Subject: Re: [PHP] Hidden new line markers? nl2br() doesn't remove the newlines, it simply adds

Re: [PHP] Hidden new line markers?

2003-03-24 Thread Jeff Lewis
Ah! That did it, it's all on Windows and when I tried removing things I tried at one point removing the \r as i thought the nl2br changed the \n to br / Thanks a lot John :) Jeff - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL

[PHP] Parsing help needed, regular expression perhaps?

2003-03-12 Thread Jeff Lewis
I am grabbing this page and trying to grab the stats on the page: http://slam.canoe.ca/StatsHKN/BC-HKN-STAT-TORONTOSTAX-R.html The code I had worked just fine before but now that there are players that have multiple lines, it's not working as I'd like it to. Below is the code that worked and I

[PHP] Debugging fsockopen errno 0?

2003-03-04 Thread Jeff Lewis
I've been trying to use fsockopen and it fails to get by if (!fp) and returns an errno of 0. In the documentation it says that indicates an error initializing the socket. Is there anyway I can debug this or find out what is going wrong? Jeff

[PHP] PHP scripts and the GPL/other licenses

2003-03-01 Thread Jeff Lewis
I am wondering if anyone out there has some really good references in regards to scripts distributed as open source using the GPL. In the last three years that I have worked on open source projects I have seen several people steal a program, change the name and then try to distribute it as

Re: [PHP] PHP scripts and the GPL/other licenses

2003-03-01 Thread Jeff Lewis
And they aren't, that is our main issue... So with the GPL, someone can change say...10 lines and rename the scripts and distribute it as their own? Jeff - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday

[PHP] SMS messages and the From field...

2003-02-22 Thread Jeff Lewis
I have been using mail() to send SMS messages to my phone but the From address never seems to work as I set it. When it arrives in my email client it works fine but when it gets to my phone it does. I have set headers like so: From: $from_email\r\nReply-To: $from_email\r\nReturn-path: $from_email

Re: [PHP] MAC address user recognition?

2003-02-21 Thread Jeff Lewis
So how are most people handling the situation you mentioned below? After getting verfified in a https, how is the session information being passed back to the http? Jeff - Original Message - From: Ernest E Vogelsinger [EMAIL PROTECTED] To: Jason Sheets [EMAIL PROTECTED] Cc: Leo Spalteholz

Re: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Jeff Lewis
Set your php.ini file and error reporting as such: error_reporting = E_ALL ~E_NOTICE See if that helps with the undefined notice. jeff - Original Message - From: Beauford.2002 [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 12:52 PM Subject:

[PHP] Suggestions on FAQ application?

2003-01-10 Thread Jeff Lewis
I've checked Hotscripts and I can't findanything relatively new or that suits my needs. I was wondering if anyone uses a FAQ program that they could suggest? Jeff

Re: [PHP] Suggestions on FAQ application?

2003-01-10 Thread Jeff Lewis
on here lately... Jeff - Original Message - From: Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] To: 'Jeff Lewis' [EMAIL PROTECTED]; 'php-gen' [EMAIL PROTECTED] Sent: Friday, January 10, 2003 9:39 PM Subject: RE: [PHP] Suggestions on FAQ application? It is a 30 minute write... not that hard

[PHP] Looping through directories?

2003-01-08 Thread Jeff Lewis
Currently I have a script that reads an index file and from that index file it then loops through all files in that directory based on the index. Instead of one directory now I have several and I want to loop through each directory and go to each directory's index file. Since there is no

[PHP] Function to catch all mySQL errors?

2003-01-04 Thread Jeff Lewis
I know that mySQL errors are caught in mysql_error() and I find that function extremely useful (kudos!). However, I have several queries in a few scripts of mine but am wondering if anyone has written a small function that catches errors and outputs them. What I mean is lets say I have a block of

[PHP] Bit of a logical question (what values to use for a graph)

2003-01-03 Thread Jeff Lewis
I am creating a graph using jpgraph and it is based on values grabbed every 15 minutes. So for the first graph I want to report the values for the last 24 hours. Would it make sense to report 96 points or what is everyones suggestion? The time is stored as a Unix timestamp...the values are server

[PHP] Problems getting PHP to work (IIS5/XP Pro)

2002-12-31 Thread Jeff Lewis
Now I tried this on the Windows list but didn't get any replies. I also found an old thread on another site that Rasmus had replied to and I tried that suggestion but no luck. I just ran the PHP installer and it set it up as a cgi I guess. I'd do the other way if I could find complete

Re: [PHP] forum?

2002-12-24 Thread Jeff Lewis
http://www.yabbse.org - Original Message - From: Fatih Üstündað [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 9:51 AM Subject: [PHP] forum? do you know freeware forum in php I can easly use? thanks. fatih ustundag -- PHP General Mailing

[PHP] Parsing XML files, logic involved...

2002-11-27 Thread Jeff Lewis
I have to write a script to parse XML files we receive daily. The XML files are all individual stories but there is an index page that comes with each batch that contains blocks of information for each story as follows (below). I need to run through this index file and for each story I need to

Re: [PHP] Best Forum System

2002-10-12 Thread Jeff Lewis
YaBB SE seems to do quite well, I have it running on three sites. http://www.yabb.info Jeff - Original Message - From: Stephen [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Friday, October 11, 2002 5:36 PM Subject: [PHP] Best Forum System Hello, I know there will be a load

[PHP] Verify phone format?

2002-09-10 Thread Jeff Lewis
Just wondering what the best way to validate an entered phone format is? Is anyone doing this currently? I have a form field that people enter in information and I want to force phone entries to XXX-XXX-. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Verify phone format?

2002-09-10 Thread Jeff Lewis
If it makes you feel better, it's a site only for Canada. Jeff - Original Message - From: Justin French [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, September 10, 2002 7:35 PM Subject: Re: [PHP] Verify phone format? The problem you have

[PHP] Credit Card Validation

2002-09-07 Thread Jeff Lewis
I know it's been posted here several times and I've looked through the archives but I just need something very simple for this. I have a form that already takes in user information but now before accepting the information, I'd like to pass the credit card information to a function and return

[PHP] Regular expression question

2002-08-30 Thread Jeff Lewis
Is there a regular expression that will remove 1, L, I, O, 0 and the lowercase equivilants from a varialbe? I am not horribly well versed in regular expressions...so I'm basically asking someone to help :) Say I have a string like this jeD1GLal I want to remove any of the chracters that be

Re: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-20 Thread Jeff Lewis
Trim clears whitespace not characters (I'm pretty sure), try using this to rid yourself of the period: $trimmed = substr($date, 0, -1); // returns everything but that last character (the period) Jeff - Original Message - From: Mike At Spy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-20 Thread Jeff Lewis
Sorry, just saw Rasmus' reply, lso I didn't read your code entirely, noticed you specified for the period to be chopped off :) Jeff - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: Mike At Spy [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 12:53 PM Subject

[PHP] Problem with mysql_query

2002-08-20 Thread Jeff Lewis
mysql_query is returning an odd error. I don't know if I'm just totally missing something or not but I keep getting this error: mySQL Error: You have an error in your SQL syntax near ''LIMIT 25,25'' at line 1 with this query: SELECT * FROM dvd_library WHERE genre=BUDGET ORDER BY description

Re: [PHP] Problem with mysql_query

2002-08-20 Thread Jeff Lewis
Please disregard, it was a silly problem (I was echoing the SQL query and editing that, not the main SQL query). Jeff - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 3:04 PM Subject: [PHP] Problem with mysql_query mysql_query

[PHP] Group and count at the same time?

2002-08-15 Thread Jeff Lewis
I am using PHP to maintain a catalog of music and have been just fine with it but have run into one thing i want to do and need some advice. The format of the data is like so: upc|genre|distributor|details What I want to do is grab a summary. So it would end up printing out: rock (43) country

Re: [PHP] Group and count at the same time?

2002-08-15 Thread Jeff Lewis
August 2002 23:19, Jeff Lewis wrote: I am using PHP to maintain a catalog of music and have been just fine with it but have run into one thing i want to do and need some advice. The format of the data is like so: upc|genre|distributor|details Where is this info coming from? What I

[PHP] News to toolbar (ticker)

2002-08-01 Thread Jeff Lewis
vBulletin has a file called ticker.php that allows users to have latest posts sent to their toolbar in Windows. An example can be found on this site: http://www.whitesoxinteractive.com/Ticker.htm How exactly do they do this? I can't manage to get my hands on the file to take a look but it's

Re: [PHP] PHPDiscuss.com

2002-07-13 Thread Jeff Lewis
I think there is always a need for more resources. Some people prefer forums and the ability to actually go a bit off topic in some boards as opposed to strictly answering questions. It's a matter of preference I suppose. Anything that further helps PHP spread I'm for it :) Jeff - Original

Re: [PHP] Announcement: FUDforum 2.2.2 Released

2002-07-12 Thread Jeff Lewis
Tried going to the official announcement and got this: query failed: %( SELECT fud_forum.id, fud_forum.name, fud_cat.name AS cat_name, fud_cat.id AS cat_id, fud_msg.post_stamp AS msg_post_stamp FROM fud_cat INNER JOIN fud_forum ON fud_cat.id=fud_forum.cat_id LEFT JOIN fud_msg ON

Re: [PHP] PHPDiscuss.com

2002-07-12 Thread Jeff Lewis
Is it like http://www.phptalk.com ? Like just discussion or are their tutorials etc? Jeff I have started a new website devoted strictly to discussing development with PHP. If anyone is interested, you can see it at http://www.phpdiscuss.com.

Re: [PHP]Erik Hegreberg

2002-07-09 Thread Jeff Lewis
He is both, he has been emailed how to get off. For now, I keep just sending my read receipts :) - Original Message - From: R'twick Niceorgaw [EMAIL PROTECTED] To: Erik Hegreberg [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 6:30 PM Subject: Re: [PHP]

[PHP] Getting value back from fsockopen?

2002-06-27 Thread Jeff Lewis
Currently I am using fsockopen on my IP and a port and when sending a UDP request it always says it's open. Now, what I'm trying to do is see if I have an application running on there. This application listens to the port I'm trying to hit. Is there a way with fsockopen I can do this? Instead of

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Jeff Lewis
Shane, I use a javascript prompt. When you click OK, it passes the information on to the PHP script to do the work :) Jeff - Original Message - From: Shane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 12:48 PM Subject: [PHP] Best Delete Confirmation Script

[PHP] Synchronize FTP sites with PHP?

2002-06-26 Thread Jeff Lewis
We're using a FTP Control program here but it's very old and I'm wondering if anyone has used PHP to sync up FTP sites, to connect to a remote server and check if there is anything new... Not quite sure where to start with it though... Jeff -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Forum / Web Mail Combined?

2002-06-12 Thread Jeff Lewis
Ed, Currently none to my knowledge, however, YaBB SE 2 which is in development has this feature roughed in already. However, it's still in development. Jeff - Original Message - From: Lazor, Ed [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 1:35 PM Subject: [PHP]

Re: [PHP] FUDforum 2.0 Stable Released

2002-06-10 Thread Jeff Lewis
Is it just me or the forum area totally overflowing with choices? I often wonder why people don't pool talents and work on really great products, instead people break off and make their own system - quite unusual... Jeff - Original Message - From: Ilia A. [EMAIL PROTECTED] To: [EMAIL

[PHP] Failed opening '' for inclusion...

2002-05-30 Thread Jeff Lewis
I am running PHP 4.2.1 on Windows XP. I had 4.1.2 running perfectly fine and then decided to get MSSQl running as well. So I ran into a problem where it failed to load the DLL. I read through the archives and it said to make sure I have the most up to date DLL, so I then installed 4.2.1. Now,

Re: [PHP] Failed opening '' for inclusion...

2002-05-30 Thread Jeff Lewis
Yes and that isn't in there (php4\pear). I looked in the php.ini in windows and in php folders... Jeff - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Jeff Lewis' [EMAIL PROTECTED]; PHP General [EMAIL PROTECTED] Sent: Thursday, May 30, 2002 8:20 PM Subject: RE: [PHP

Re: [PHP] Failed opening '' for inclusion...

2002-05-30 Thread Jeff Lewis
to update the scripts! Jeff - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Jeff Lewis' [EMAIL PROTECTED]; PHP General [EMAIL PROTECTED] Sent: Thursday, May 30, 2002 8:33 PM Subject: RE: [PHP] Failed opening '' for inclusion... Do you have an auto-prepend file? If so, maybe

Re: [PHP] 4.2.1 Vars

2002-05-25 Thread Jeff Lewis
For now you can add this to the top of your scripts: $types_to_register = array('GET','POST','COOKIE','SESSION','SERVER'); foreach ($types_to_register as $type) { $arr = @${'HTTP_' . $type . '_VARS'}; if (@count($arr) 0) { extract($arr, EXTR_OVERWRITE); } } Somebody else

Re: [PHP] Bulletin Boards

2002-05-18 Thread Jeff Lewis
Never used Phorums as it didn't have what I was looking for. Tried phpBB but the admins ection is awful IMHO. I currently use YaBB SE which has a very fast development time. Jeff - Original Message - From: Richard Baskett [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent:

[PHP] Restricting image height and width in a message

2002-05-17 Thread Jeff Lewis
Currently, people can post links to images in an application I am using but they can post something outrageous like 1000X800 pixels and it messes thing up on the format. I was sent this as a solution but it really bogs down especially on images from certain servers. Is there a better way to do

Re: [PHP] Re: Forum with PHP, without using mySQL..

2002-05-06 Thread Jeff Lewis
Actually... the version of YaBB at yabbforum.com is strictly a Perl based board. It doesn't use mySQL either. The PHP version of YaBB is at http://www.yabb.info but it relies on mySQL. There is Easy Forum http://www.hotscripts.com/Detailed/15435.html There is Eboard

Re: [PHP] Re: Forum with PHP, without using mySQL..

2002-05-06 Thread Jeff Lewis
he MAY have been thinking of the PHP version which is at www.yabb.info and also in use over at http://www.phptalk.com Jeff - Original Message - From: John Fishworld [EMAIL PROTECTED] To: Mizery De Aria [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 06, 2002 10:29 AM Subject: Re:

[PHP] Anyone use frames and PHP solution?

2002-05-06 Thread Jeff Lewis
I've looked through the archive and seen that people have attempted it but I am wondering if anyone has actually gone forward with using PHP and frames together. I ask as I am using a very simple frame interface. Left side contains a menu system with all content etc on right. I have a login

Re: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread Jeff Lewis
Austin, I am using 4.2 on a W2K machine at work and have had no problems with the mysql_fetch_* functions. Only thing I had to get used to was the new way to handle globals. Jeff - Original Message - From: Austin W. Marshall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April

Re: [PHP] BBS system

2002-04-26 Thread Jeff Lewis
Try YaBB SE http://www.yabb.info - Original Message - From: r [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 27, 2002 7:21 AM Subject: [PHP] BBS system Hey all, Just a small q, does anybody know of any particular good BBS system that is free? (I aint rich :-( )

[PHP] Sessions not staying a session...

2002-04-25 Thread Jeff Lewis
I am storing session information by using $_SESSION[privs] and it works for the first screen but when I click on the next link it doesn't seem to carry over. Do I need to declare session start with this method? Do I need to make it global? Jeff -- PHP General Mailing List

Re: [PHP] Re: Sessions not staying a session...

2002-04-25 Thread Jeff Lewis
-Original Message- From: Craig Donnelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 9:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Sessions not staying a session... You should use session_start(); on every page that u want to pass session information.. Craig Jeff Lewis

[PHP] 4.2 new GLOBALS question

2002-04-25 Thread Jeff Lewis
I am working on an odler script which loads up in index.php and a URL is passed usually like index.php?s=something Now, around line 10 of index.php I do an include that pulls the value of s via HTTP_POST_VARS and then I dump it into $start. It used to work just fine and still does except on

Re: [PHP] 4.2 new GLOBALS question

2002-04-25 Thread Jeff Lewis
: John Holmes [EMAIL PROTECTED] To: 'Jeff Lewis' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 10:13 PM Subject: RE: [PHP] 4.2 new GLOBALS question I am working on an odler script which loads up in index.php and a URL is passed usually like index.php?s=something Now

Re: [PHP] PHP

2002-04-16 Thread Jeff Lewis
Another one is http://www.phptalk.com - Original Message - From: Martin Cabrera Diaubalick [EMAIL PROTECTED] To: Jason Whitaker [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, April 16, 2002 7:11 AM Subject: Re: [PHP] PHP It's a Forum, not a chat.

[PHP] Problem grabbing value of session

2002-04-16 Thread Jeff Lewis
I am in a function called Login2 in which I call the following: session_start(); session_register(valid_user); session_register(privs); valid_user contain a name - Jim privs contains a number -1 Right after I call those I try a is_registered and it showed that these registered correctly. I

Re: [PHP] Problem grabbing value of session

2002-04-16 Thread Jeff Lewis
I've decided to use the _SESSION method instead and it works just fine :) So...thanks for suggesting that method, as it does look neater in the code as well. Jeff - Original Message - From: Erik Price [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday

[PHP] Besy way to ban a user?

2002-04-08 Thread Jeff Lewis
We've used email ban and IP ban but there are easy ways around this as you all know. I am wondering if there is anything a little more hardcore to do as far as banning goes. I had read somewhere about grabbing a MAC address or something similar from a network card. Has anyone heard of this

Re: [PHP] Phpfx, what is it?

2002-03-20 Thread Jeff Lewis
You can also give YaBB SE a shot http://www.yabb.info - Original Message - From: Chuck PUP Payne [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Wednesday, March 20, 2002 7:11 PM Subject: [PHP] Phpfx, what is it? Hi, I was sourgeforge.net looking at the PHP stuff, I saw

[PHP] PHP returns this error... (1030: Got error 28 from table handler)

2002-03-05 Thread Jeff Lewis
I was returned this error after a mysql_query: 1030: Got error 28 from table handler What does this mean? It doesn't happen all the time and it almost random... I searched the mysql site and didn't find anything and a search on Google I found that it is a table that may have become corrupt so

Re: [PHP] PHP returns this error... (1030: Got error 28 from table handler)

2002-03-05 Thread Jeff Lewis
More digging has turned up that the disk space is low or running out...so I will look into that. However, if anyone has any tips I'd greatly listen :) Jeff - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 2:51 PM Subject: [PHP

[PHP] Problem with global variables?

2002-03-01 Thread Jeff Lewis
We have some software where there is a form that people can enter a message in. When submitting the form, it is directed to a function that has global declarations for the subject and message of the post. This worked up until yesterday. And it didn't just happen on one site, it stopped on

[PHP] Freeing up locked table?

2002-02-25 Thread Jeff Lewis
Sometimes when using PHP/mySQL I have encountered a locked table. I have no idea why it occurs, I am not explicitly locking the tables but sometimes in phpmyadmin it says in use. Is there a way to unlock this table using PHP? Jeff -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: ? re phpwebhosting.com - still in business??

2002-02-24 Thread Jeff Lewis
They are very questionable. Have had heard many complaints from clients and associates about these guys shutting down sites without warning, anything that starts to get a few hits seems to be an issue with them... Again, you get what you pay for people :) Jeff - Original Message -

[PHP] Possible to measure CPU and Ram used with PHP?

2002-01-29 Thread Jeff Lewis
Is it possible to measure the amount of RAM or CPU power used to process a particular file written in PHP? Can the values be grabbed and displayed with PHP? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Opening more than one database at a time?

2002-01-20 Thread Jeff Lewis
I am trying to basically copy data from one database to another and am wondering if it is possible to have more than one database open at a time. So for example, I want to do something like this but am wondering if there is a better way: $dbcon = mysql_connect($db_server, $db_user, $db_passwd);

Re: [PHP] Opening more than one database at a time?

2002-01-20 Thread Jeff Lewis
Not sure, the tables are in different databases with different users and passwords. I will look into it but the answer I got this afternoon satisfied me :) Jeff - Original Message - From: Miles Thompson [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday

Re: [PHP] phpbb and ikonboard forum scripts

2001-12-25 Thread Jeff Lewis
Never thought I'd see this pop on here :) As mentined before, Ikonboard is in fact Perl and up until recently was only flatfile. Another you may want to try is http://www.yabb.info (PHP/mySQL combo) Jeff - Original Message - From: Indera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] Using @file

2001-12-10 Thread Jeff Lewis
I am using this line in part of my code but am getting an error that looks like below: Code: $serverDetails = @file(http://www.myserver,com/versions.php?l=$scripturlv=$version;); Error: 2: php_network_getaddresses: gethostbyname failed (c:\inetpub\wwwroot\yabbse\Sources\Admin.php ln 43) What

Re: [PHP] Using @file

2001-12-10 Thread Jeff Lewis
Sorry that was a typo, it is a period, I mistyped into the email. If it cant resolve the name, what would cause that problem? Jeff - Original Message - From: Darren Gamble [EMAIL PROTECTED] To: 'Jeff Lewis' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 10, 2001 3:19 PM

Re: [PHP] Using @file

2001-12-10 Thread Jeff Lewis
Again, this works on some servers and othes not. Does IIS support this particular function? Jeff - Original Message - From: Darren Gamble [EMAIL PROTECTED] To: 'Jeff Lewis' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 10, 2001 3:32 PM Subject: RE: [PHP] Using @file

[PHP] Qukc days to time() conversion?

2001-12-05 Thread Jeff Lewis
I am prompting users for a number of days and then wanting to pull items from a database older than the number of days. All dates are stored as timestamps in the database so wondering how I can come up witht he required timestamp to compare with? (for for example 30 days). I have a

Re: [PHP] md5 decrypt

2001-12-05 Thread Jeff Lewis
I'm pretty sure you can't. You would have to set up an area where they can have their password reset and the new password emailed to their email address. Jeff - Original Message - From: Dan McCullough [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED] Sent: Wednesday, December 05,

[PHP] Updating parts of files without rewriting them

2001-12-01 Thread Jeff Lewis
I have a file that contains settings and there are a lot of comments in there and a lot of variables. An excerpt of the file looks like below. My question is, is it possible to change only certain variables? For example, I want to set just the db variables, is it possible for me to input the

[PHP] Question regarding mysql_connect/pconnect

2001-11-29 Thread Jeff Lewis
I was typically using pconnect but then read that for very busy sites you can reach the max threads for mySQL quickly. So on my new server I have a couple of scripts and they are using mysql_connect. I was under the impression that these disconnected after script execution but when checking,

[PHP] Regular Expressions.

2001-11-20 Thread Jeff Lewis
I'm trying to port over some Perl to PHP and have come to a string of regular expressions like this. There are probably 30 of them: $message =~ s~\[color=([\w#]+)\](.*?)\[/color\]~font color=$1$2/font~isg; $message =~ s~\[black\](.*?)\[/black\]~font color=00$1/font~isg; $message =~

Re: [PHP] Question on variable variables

2001-11-17 Thread Jeff Lewis
(/yabb\s+$tags[1]/,${$tags[1]},$curline); Jeff - Original Message - From: Jason G. [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 7:02 AM Subject: Re: [PHP] Question on variable variables It seems to me that the use of a temp variable

Re: [PHP] problem with image

2001-11-17 Thread Jeff Lewis
I would think it's an HTML problem, try: echo img src=\image.gif\; or echo 'img src=image.gif'; Jeff - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 11:20 AM Subject: [PHP] problem with image when i want to put an image like

[PHP] Difference of queries in PHP/mySQL?

2001-11-17 Thread Jeff Lewis
I am wondering if there are any difference between using PHP and using the command line for mySQL. Entering this at the comman line returns all the membergroups properly. When I use this in my PHP program, it doesn't continue past this line: $request = mysql_query(SELECT membergroup FROM

[PHP] Converting dates?

2001-11-17 Thread Jeff Lewis
I am storing a birthdate in my database as a Unix timestamp but when I display it I want to calculate the different between that date and todays date and display the persons age. How can I do that with PHP? I also want to know if it is currently their birthday. So trying to set $isbday to yes

Re: [PHP] Converting dates?

2001-11-17 Thread Jeff Lewis
= floor($DIS / (60*60)); $DIS -= $hours * (60*60); $mins = floor($DIS / 60); $DIS -= $mins * 60; $diffstr= $days Days, $hours Hours, $mins Minutes, $secs Seconds; return $days; } - Original Message - From: Jack Dempsey [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED]; PHP is not a drug

Re: [PHP] Equivilant of exit;

2001-11-16 Thread Jeff Lewis
of exit; Hi Jeff, @ 6:26:28 PM on 11/16/2001, Jeff Lewis wrote: Is there an equivilant to Perls exit function? I am calling a fatal error function in PHP and I want it to end the script, just want to end the whole program if this is called. Maybe I'm missing something, but.. :-) PHP has

[PHP] Question on variable variables

2001-11-16 Thread Jeff Lewis
I've a question regarding variable variable I was hoping someone could help me with: All the examples in the manual have the entire variable name being variable e.g. $a = hello and $$a being the same as $hello What I need to do, however, is append a variable portion to a constant prefix. So

Re: [PHP] Question on variable variables

2001-11-16 Thread Jeff Lewis
Message - From: Christopher William Wesley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Jeff Lewis [EMAIL PROTECTED] Sent: Friday, November 16, 2001 10:38 PM Subject: Re: [PHP] Question on variable variables On Fri, 16 Nov 2001, Jeff Lewis wrote: What I need to do, however, is append a variable

Re: [PHP] Setting variables from a text file

2001-11-14 Thread Jeff Lewis
Someone may have a better way but you can read each line (assuming the file uses \n for a new record) and use: arrayname = explode(|,$variable_holding_line_from_file); Then you can do assign the variables as such: $name = $arrayname[0]; etc Could be a better way from the list :) Jeff -

[PHP] Problem writing to file, can't find the error

2001-11-01 Thread Jeff Lewis
I have this code in my program but I fail to find the error, does anyone see it after a quick glance? ?php if ($action == save_filter) { $fh = fopen (./filters.data.php, r+b) or die (couldnt open); $file = fread($fh, filesize(./filters.data.php)); $file = stripslashes($file); $array =

[PHP] Logic/method question...

2001-10-22 Thread Jeff Lewis
It's not really, but kind of, a PHP question. I mean it is being written in PHP :) I am putting together a search feature for our classified ads and there are about 4000 each day. Now I am bulding a query to search by newspaper, date, and keywords. One last thing is categories. Curious how

[PHP] Receiving mySQL result from remote server?

2001-09-24 Thread Jeff Lewis
Is it possible to have a script at xyz.com retrieve data from a mySQL database on abc.com? Jeff

Re: [PHP] Receiving mySQL result from remote server?

2001-09-24 Thread Jeff Lewis
I am assuming that all I need to change is the host/domain so that instead of localhost it would be something else. Am I assuming right? So I could have www.abc.com or the IP? Jeff - Original Message - From: [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent

[PHP] Parsing text file and dividing column into three...PLEASE help :)

2001-09-20 Thread Jeff Lewis
I have a very large text file that is set up like so: It contains some smaller columns but one HUGE one that contains the body of a resume. I am looking for help on processing this file. What I need to do is convert the final column into three columns. Each column can have no more than

Re: [PHP] Parsing text file and dividing column into three...PLEASE help :)

2001-09-20 Thread Jeff Lewis
be the best way to do this? Jeff - Original Message - From: * RzE: [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 12:16 PM Subject: Re: [PHP] Parsing text file and dividing column into three...PLEASE help :) I have a very large text

[PHP] Can someone help me parse XML? - Challenge

2001-09-17 Thread Jeff Lewis
I have an XML file that I need to parse. I had the base of a perl script written but wasn't completely functioning and was hoping someone could give me a hand with making it parse and do what it's supposed to but in PHP. The perl file looked like this: #!/usr/bin/perl use CGI::Carp

  1   2   >