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

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

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

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

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

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]

[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/)

[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

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]

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] 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] 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] 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] 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 :-( )

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

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

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

[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

[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

[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

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

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

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 -

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

[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 =~

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

Re: [PHP] Need for dox...

2001-07-30 Thread Jeff Lewis
No need to get nasty :) Keep the list friendly, it's better that way ;) Jeff - Original Message - From: B. van Ouwerkerk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 30, 2001 8:53 AM Subject: Re: [PHP] Need for dox... I didn't know the http://www.phpbuilder.com/

[PHP] Large Calculations

2001-07-30 Thread Jeff Lewis
I have a mySQL database holding baseball stats and I want to calculate rankings on these players. Now I'd obviously want this to be as fast as possible since I go through about 600 players but where is it best to make them? In the SQL command itself or in PHP? players need to have at least 100

Re: [PHP] whats wrong?

2001-07-31 Thread Jeff Lewis
Remove the quotes around $uid Jeff - Original Message - From: Jeremy Morano [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 11:09 AM Subject: [PHP] whats wrong? Anythig visibly wrong with this? FORM METHOD=post ACTION=userinfolistbycompany2.php INPUT

RE: [PHP] Attitude of B van Ouwerkerk

2001-07-31 Thread Jeff Lewis
It's not the first time and I've mentioned it before. I in fact just emailed all those off list from that thread. One reason why PHP has lured many in is it's ease of use and it's FRIENDLY user community. Sure some people come on here and ask simple questions, maybe ones that can be found in

RE: [PHP] FAQ...was - Attitude of B van Ouwerkerk

2001-07-31 Thread Jeff Lewis
I'd be happy to host one but I imagine there is one already for the list? Jeff -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:08 PM To: php Subject: Re: [PHP] Attitude of B van Ouwerkerk on 7/31/01 12:37 PM, scott [gts] at

Re: [PHP] Oh and one more thing

2001-08-03 Thread Jeff Lewis
Ok, I have to admit, that made me laugh out loud here in the office :) Jeff - Original Message - From: scott [gts] [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 1:05 PM Subject: RE: [PHP] Oh and one more thing it's a little bit complicated, but here goes.

RE: [PHP] most recent 5 rows

2001-08-04 Thread Jeff Lewis
Try this SQL Justin: $sql = SELECT * FROM news DESC LIMIT 5; Jeff -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 5:52 AM To: php Subject: [PHP] most recent 5 rows Hi all, I have a table with the column id, which is a

RE: [PHP] How to destroy a $variable

2001-08-04 Thread Jeff Lewis
Gerard, Try using: unset($Age); Jeff -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 1:34 AM To: PHP Subject: [PHP] How to destroy a $variable Ok I have a form with a $PHP_SELF target, and I enter parts of the form when

RE: [PHP] most recent 5 rows

2001-08-04 Thread Jeff Lewis
] Cc: php Subject: Re: [PHP] most recent 5 rows Jeff Lewis wrote: Try this SQL Justin: $sql = SELECT * FROM news DESC LIMIT 5; Hrm, Won't that retrieve the FIRST 5 rows, not the LAST 5? Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

RE: [PHP] most recent 5 rows

2001-08-04 Thread Jeff Lewis
Sorry, forgot the ORDER BY, here is what you're looking for: $sql = SELECT * FROM news ORDER BY id DESC LIMIT 5; In a list of numbers up to 10, this would return rows 6,7,8,9, and 10. Jeff www.hyrum.net www.xnull.com -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED

[PHP] PHP in corporate settings?

2001-08-08 Thread Jeff Lewis
employer, a HUGE media/newspaper in Ontario goes with strictly Java. Is it that people still are hesitant to go wth open source based technology? Jeff Lewis

Re: [PHP] PHP in corporate settings?

2001-08-09 Thread Jeff Lewis
Yes I had wondered if someone was going to make that claim :) So far I haven't seen much in perl or Java that I CAN'T do in PHP. The user community is much more helpful, the PHP manual online is IMO simply amazing. I love that guide :) I just rarely see any jobs posted for PHP. Mostly ASP and

[PHP] PNG support...

2001-08-20 Thread Jeff Lewis
With 4.04 I had PNG working fine and could create images in a cron job I was running. When we upgraded to 4.06 we seemed to have lost the ability. While calling my PHP file up in the browser, it creates the image but my cron job keeps failing with this error: ImageCreateFromPng: No PNG

Re: [PHP] Urgent!!! Forum code

2001-08-22 Thread Jeff Lewis
Try the following: phpBB: http://www.phpbb.com/ Phorum: http://phorum.org/ Jeff Lewis - Original Message - From: Emiliano Marmonti [EMAIL PROTECTED] To: Lista PHP [EMAIL PROTECTED] Sent: Wednesday, August 22, 2001 4:26 AM Subject: [PHP] Urgent!!! Forum code Anybody knows a good free

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread Jeff Lewis
John, Try this: TABLE ?php $query = SELECT image_link, web_url FROM testdata; $result = mysql_query ($query) or die (Query Failed); while ($row = mysql_fetch_object ($result)) { printf (trTD.$row-image_links.br.$row-web_url./TD TD.$row-image_link.br.$row-web_url./tr\n); } ? /TABLE -

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread Jeff Lewis
, John Bass From: Jeff Lewis [EMAIL PROTECTED] Reply-To: Jeff Lewis [EMAIL PROTECTED] To: John Bass [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Need help to create HTML table with 2 columns. Date: Thu, 23 Aug 2001 10:41:08 -0400 John, Try this: TABLE ?php $query = SELECT

[PHP] Dynamic check boxes...

2001-08-23 Thread Jeff Lewis
I have a form where users can enter a link (kind of a free for al links type of thing) When they add their site to the database a 0 is added to the approved field. When I load an admin script I can check all of the ones that have a 0 in that field. I want to have checkboxes form down the

RE: [PHP] The future of PHP

2001-08-24 Thread Jeff Lewis
I actually had a talk with my boss today... We discussed different technologies and why we chose them. The reasons we chose Java/JSP/J2EE etc: 1) Scalability (number 1 reason) 2) Different projects like EJB etc I had been talking about PHP a lot and he says he likes it to but... Jeff

[PHP] Flat file/mySQl combination

2001-08-24 Thread Jeff Lewis
Has anyone come up with an abstraction layer that would allow the users of their software to select either flat file or mySQL? If so, is it downloadable somewhere or does anyone know or have any kind of tips? :) Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] The future of PHP

2001-08-24 Thread Jeff Lewis
I would't say that. he says it's modular and easier to code in OOP. Jeff -Original Message- From: Dave [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 6:15 PM To: [EMAIL PROTECTED]; Michael Kimsal Cc: [EMAIL PROTECTED] Subject: RE: [PHP] The future of PHP He also

[PHP] PHP/mySQL query problem...

2001-08-27 Thread Jeff Lewis
Guys, why isn't this working? :) SELECT * FROM links WHERE name LIKE %te% OR description LIKE %te% OR url LIKE %te% AND approved=1 LIMIT 5 I am using a PHP script to add items to the database and a small search file to grab them. Thing is, I want the above to grab ONLY ones that have

Re: [PHP] How do I get the file size of a file on my server?

2001-08-28 Thread Jeff Lewis
$file_size = filesize(FILENAME); if ($file_size = 1073741824) { $file_size = round($file_size / 1073741824 * 100) / 100 . g; } elseif ($file_size = 1048576) { $file_size = round($file_size / 1048576 * 100) / 100 . m; } elseif ($file_size = 1024) { $file_size = round($file_size / 1024 * 100) / 100

[PHP] Pulling webpages - may be a weird question :)

2001-08-28 Thread Jeff Lewis
I was sitting here at work (working of course!) thinking about how some sites are blocked etc from viewing... Is it possible with PHP to do something like this: Have a page where I can create kind of a middle man. I mean the PHP can be hosted on my server, it goes to the site I'd want to

Re: [PHP] SELECT * FROM

2001-08-29 Thread Jeff Lewis
In your query add ORDER BY field name like date or ID DESC. That way it will put them in descending order and I do believe that is what you're looking for :) Jeff - Original Message - From: Tarrant Costelloe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 10:55

Re: [PHP] The future of PHP

2001-08-29 Thread Jeff Lewis
Damn, I wish I had read that thre was this event in Toronto, I would have liked to attend! :) - Linux User Group in Toronto, Canada I agree, suggestion and constructive criticism are fine but lets not start attacking the guys who have put in countless hours to make PHP what it is today. I'm

[PHP] Query using more than two tables?

2001-08-29 Thread Jeff Lewis
I have a query that is pulling information from two tables, can I pull from others as well? SELECT r.resumeID,r.userID,r.skills,r.dateAdded,u.firstName,u.lastName,u.city, u.province FROM resumes r,resumeHolders u WHERE r.userID=u.userID AND u.city='Kitchener' I want to be able to pull the

[PHP] PHP with Access?

2001-08-30 Thread Jeff Lewis
I am using mySQL with all of my stuff but a friend who started writing some files for our online baseball league was using Access as his database. We tried running it on my server but it returns an error that says undefined function odbc_connect. Now my questions, can I get this to work on a

[PHP] Grabbing all files and adding to select boxes...

2001-08-30 Thread Jeff Lewis
I want to open a particular directory that stores images and I want the images to be added to drop down box, was wondering if someone could help me with some code for that. I want to set it up this way so that people can just upload images there and they would be available on each load of the

Re: [PHP] Mdb conversion

2001-09-01 Thread Jeff Lewis
I needed this recently as well and found some converters right here: http://www.mysql.com/documentation/mysql/bychapter/manual_Contrib.html#SEC60 7 They usually are run from within the MDB macros but it helped me convert my database over :) Jeff - Original Message - From: Rogerio

[PHP] PHP regexp powerful?

2001-09-06 Thread Jeff Lewis
I have a lot of scripts written in perl here and have been using PHP a lot now. I am wondering if PHPs regexps are powerful or not. I will show a small section of this code below that I clean up witht he perl scripts. It cleans it almost right up but take a look :) And YES there is

  1   2   >