Re: [PHP] Re: server hanging on php site

2004-01-16 Thread Bryan Koschmann - GKT
On Thu, 15 Jan 2004, Ben Ramsey wrote: First of all, make sure that display_errors in your php.ini file is set to On. I believe that the distribution file that comes with PHP has it set to Off by default. Once it's set to On, see if you can get it to generate an error and post it. Ben,

[PHP] server hanging on php site

2004-01-15 Thread Bryan Koschmann - GKT
Hello, I'm running PHP 4.3.1 on Apache 2.0.48 (on Slackware). I've been having an issue where accessing a certain PHP page causes the whole httpd to stop responding momentarily; no sites will load, those that are loading stop in the middle. But after say 30-45 seconds it continues just fine. I

[PHP] globals?

2004-01-06 Thread Bryan Koschmann - GKT
Hi, I was just curious, how much longer are globals going to be supported? I had heard awhile back that they wouldn't be around for too long. Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question

2003-08-21 Thread Bryan Koschmann - GKT
Hi Robbert, I beleive my ISP does not allow any GUI interface into mysql databases on the server. They have advised me that ALL functions, table creation, modification, loading data etc has to be done from PHP. It appears I have to use SQL statements within a PHP page to load the data.

Re: [PHP] UPS / USPS shipping algorithm

2003-08-20 Thread Bryan Koschmann - GKT
Just out of curiosity, how are you doing this? I've wanted something like this as well as tracking information. I've only looked around their sites for something but didn't find it. Fedex would be even better if anyone has any ideas on that :) Thanks, Bryan On Wed, 20 Aug 2003, Jason

[PHP] simple imap functions

2003-07-15 Thread Bryan Koschmann - GKT
Hello, Does anyone have any good examples of simple imap functions? Basically I am just looking to return the number of new messages for a few folders in my account. I would like to modify it later to show the headers (from, subject) but just a new message count is sufficient. I would like to

Re: [PHP] simple imap functions

2003-07-15 Thread Bryan Koschmann - GKT
On Tue, 15 Jul 2003, David Nicholson wrote: You could compile PHP with the IMAP functions and use them: http://uk2.php.net/imap That is what I was referring to looking for examples using these functions as a whole. Bryan -- PHP General Mailing List (http://www.php.net/) To

[PHP] refreshing fopen

2003-06-17 Thread Bryan Koschmann - GKT
Hello, I'm wondering what the best way to go about this would be. I will be opening a URL that outputs a csv. This csv will change every few minutes, and I would like it to be refreshed on my page. I know I can use a meta refresh, but the time will vary from 1-5 minutes, so a meta refresh will

Re: [PHP] Re: refreshing fopen

2003-06-17 Thread Bryan Koschmann - GKT
On Tue, 17 Jun 2003, Terje Torkelsen wrote: PHP is server-side language, so this would be possible. Would go for meta tag or a javascript. I know, but I thought I saw somewhere there was a way to do this using flush() and something else, maybe for use with a progress bar type thing? I know

[PHP] target frame on refresh

2003-03-27 Thread Bryan Koschmann - GKT
Hello, I'm not sure this can be done with PHP, but I'm looking for any ideas! I have a frames page. The top refreshes every 5 seconds, checking for if a file exists. If that file exists, it is supposed to change the bottom frame to another site. Basically like using an a href

Re: [PHP] target frame on refresh

2003-03-27 Thread Bryan Koschmann - GKT
On 27 Mar 2003, Mike wrote: |You can't do that in PHP... just use JavaScript... do a google for it. | |-Michael Didn't think so. I've been google-ing and can't find what I need, so I thought I'd try a longshot. Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] flush not flushing?

2003-03-25 Thread Bryan Koschmann - GKT
); | |?? | |= Original Message From Bryan Koschmann - GKT [EMAIL PROTECTED] = |Hello, | |I'm including a script I use to automatically e-mail overdue customers. My |problem is I have to have it sleep to avoid upsetting the mailserver, but |when I do, it seems to pause and sleep the total time

RE: [PHP] random letter/character?[Scanned]

2003-03-19 Thread Bryan Koschmann - GKT
On Wed, 19 Mar 2003, Michael Egan wrote: |I put together the following function to give me a password consisting |of random letters and numbers. It should be fairly clear as to how |you'd need to tweak it to just give you the characters you'd need |interspersed with spaces. | |Hope this helps -

[PHP] php auth instead of .htaccess

2003-03-18 Thread Bryan Koschmann - GKT
Hello, I have gotten used to using .htaccess to protect files/directories, but now I am looking at a need to authenticate against mysql. I have no problem actually getting it to authenticate, but I'm wondering what the simplest way to prevent someone from hitting anything other than the main page

[PHP] random letter/character?

2003-03-18 Thread Bryan Koschmann - GKT
Hi, I need to get a php script to print out a list of random characters. This is the list: a' b' c' d' e' f' g' a'' b'' c'' d'' e'' f'' g'' They would be printed to a maximum of 50 in a row separated by spaces. Can anyone give me a pointer as to how to do this? Since the rand functions are only

Re: [PHP] Re: fopen/fgets

2003-03-07 Thread Bryan Koschmann - GKT
Thanks.. I feel stupid, I wasn't paying attention. *sigh* seems to work now :) Bryan On Fri, 7 Mar 2003, Adrian Ciutureanu wrote: |you close the input file in while loop ( fclose($fp); ) | |Bryan Koschmann - Gkt [EMAIL PROTECTED] wrote in message |news:[EMAIL PROTECTED] | Can someone

[PHP] fopen/fgets

2003-03-06 Thread Bryan Koschmann - GKT
Can someone give me a hand here? I am really lost as to what is going on. I have a file that looks like this user1,Store 1 - ABC street user2,Store 2 - Northside user3,Store 3 - East I try to run my code, but I get a php log filled (~33 megs, the input file is only 12 lines): [06-Mar-2003

Re: [PHP] PHP to read MS-SQL (solution)

2003-02-28 Thread Bryan Koschmann - GKT
On Thu, 27 Feb 2003, Michael Sims wrote: |That's actually pretty cool, from a tech standpoint, but why not |access the MS-SQL database directly? From Windows it's easy, you just |need the SQL .dll's installed on the server, and from Linux/Unix you |can build PHP with FreeTDS support

[PHP] Re: date, first of next month?

2003-02-27 Thread Bryan Koschmann - GKT
On Wed, 26 Feb 2003, Philip Hallstrom wrote: | |Use the w option of date() and loop through adding 86400 to $t until you |get to a number between 1 and 5. | | w - day of the week, numeric, i.e. 0 (Sunday) to 6 (Saturday) I may of gotten ahead of myself, but I tried it using if/else. Looks like

[PHP] PHP to read MS-SQL (solution)

2003-02-27 Thread Bryan Koschmann - GKT
Thought I would throw this out if anyone is interested. We have some proprietary accounting software that uses MS-SLQ as it's backend. Not my choice, trust me. Anyhow, I hassled the guy who made the software long enough that he created a solution until we can swith to MySQL. Basically, it runs on

[PHP] date, first of next month?

2003-02-26 Thread Bryan Koschmann - GKT
Hello, Does anyone know a way to do this easily? I have a script that pretty much says this is due on the first of next month but I would like it to actually use the correct date. Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] date, first of next month?

2003-02-26 Thread Bryan Koschmann - GKT
On Wed, 26 Feb 2003, 1LT John W. Holmes wrote: |You would think strtotime(first of next month) would work, but it doesn't. |This does: | |$t = mktime(0,0,0,date('m')+1,1,date('Y')); | |Gives you timestamp of first day, next month. Format accordingly with |date(). Thats great, worked perfectly!

[PHP] slideshow/flush

2003-02-14 Thread Bryan Koschmann - GKT
Hello, I'm looking for a way to do something, not sure if someone can help me. I would like to be able to control, in a way, what a remote user is seeing, almost like running a slideshow. For example, user goes to website, it shows block of text or picture. I login to admin area.I click next or

[PHP] radius auth and sockets

2003-01-28 Thread Bryan Koschmann - GKT
Hello, I'm wondering if anyone has a php script that can authenticate to a radius server? I've found one, but it seems to only check for a return code of 1 or 2, and I need to to get the whole port message. Also, it keeps giving me this: [28-Jan-2003 12:00:44] PHP Fatal error: Call to undefined

[PHP] radius auth and sockets

2003-01-28 Thread Bryan Koschmann - GKT
Hello, I'm wondering if anyone has a php script that can authenticate to a radius server? I've found one, but it seems to only check for a return code of 1 or 2, and I need to to get the whole port message. Also, it keeps giving me this: [28-Jan-2003 12:00:44] PHP Fatal error: Call to undefined

[PHP] old getenv?

2002-12-18 Thread Bryan Koschmann - GKT
Hello, I'm trying to use a formmail script (Jack's Formmail) but I'm having a problem, because it seems to not spit out any info for getenv(HTTP_REFERER). Is there any way around this, other than fixing every reference to that (there are others to get the form information as well)? I had the same

Re: [PHP] old getenv?

2002-12-18 Thread Bryan Koschmann - GKT
Hey thanks Kevin. That was all I needed to know. I can't quite understand why it didn't report back, but I have it working now. I did have register_globals off, and even tried turning it on, but that didn't make a difference. Maybe I should just start trying to write my own from scratch :) Thanks

[PHP] command line output

2002-12-10 Thread Bryan Koschmann - GKT
Hello, I'm trying out a little script run from the command line. It simply outputs a number to send to Cacti. Is there any way to get it to NOT send all the stuff like this: X-Powered-By: PHP/4.2.3 Set-Cookie: PHPSESSID=ec0e2c10c8bd9e0a0ad02cfcc182dbfb; path=/ Expires: Thu, 19 Nov 1981 08:52:00

Re: [PHP] command line output

2002-12-10 Thread Bryan Koschmann - GKT
compiled in modules | -i PHP information | -h This help | | | | |On Tue, 2002-12-10 at 12:30, Bryan Koschmann - GKT wrote: | Hello, | | I'm trying out a little script run from the command line. It simply | outputs a number to send to Cacti. Is there any way to get it to NOT send

Re: [PHP] Re: print to file

2002-12-03 Thread Bryan Koschmann - GKT
Koschmann - Gkt) |wrote: | | Okay, this is probably stupid, but how do you print to a file? | | Thanks, | | Bryan | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] print to file

2002-12-02 Thread Bryan Koschmann - GKT
Okay, this is probably stupid, but how do you print to a file? Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] search question

2002-11-27 Thread Bryan Koschmann - GKT
Hello, I'm wondering what you all think the best way to search for a string is. I guess its more of a matching (regex I'm thinking) but basically what I want is this.. I'm outputting some rows of data. If one of the columns of that row contain a string of text, either beginning, end, or middle,

RE: [PHP] search question

2002-11-27 Thread Bryan Koschmann - GKT
On Wed, 27 Nov 2002 [EMAIL PROTECTED] wrote: |You could try any number of PHP functions, but the best ones would be |strchr/strstr/stristr (for locating the first occurrence of the string), |strpos (find the position of the first occurrence), or strrchr (to find the |last). | I was just using

[PHP] decimal places

2002-11-26 Thread Bryan Koschmann - GKT
Hello, Does anyone here have a good way to make sure dollar amounts are formatted properly? I have something that returns data, but the problem is it's stored where any trailing zero isn't kept, like this: $16.95 or $172.82 are fine $17.90 or $190.20 come back as $17.9 and $190.2 I would like

Re: [PHP] decimal places

2002-11-26 Thread Bryan Koschmann - GKT
($amount,2); |$fmt2 = number_format($amount,2,'.',''); |echo($fmt1\n$fmt2); | |This will output: |1,234.56 |1234.56 | |Matt |- Original Message - |From: Van Andel, Robert [EMAIL PROTECTED] |To: Bryan Koschmann - GKT [EMAIL PROTECTED]; PHP General |[EMAIL PROTECTED] |Sent: Tuesday, November 26

Re: [PHP] FTP and security

2002-11-26 Thread Bryan Koschmann - GKT
Marco, Would you have any examples for using an SSH tunnel? I'm using fsockopen to get data from proprietary server software (just returns data to me in different formats) and I would like to have it secure. I'm just not sure how I could incorporate that. Thanks, Bryan On 26 Nov 2002,

Re: [PHP] Need email solution

2002-11-26 Thread Bryan Koschmann - GKT
You could try Sendmail, it comes with it's own version of Linux for free :) Just kidding, you sounded too serious. Bryan On Tue, 26 Nov 2002, Manuel Ochoa wrote: | |I'm setting up a Windows 2000 server with Apache, PHP and MySQL. I also need to setup |email service for 1 domain name.

[PHP] icmp ping, check port, etc.

2002-11-14 Thread Bryan Koschmann - GKT
Hello, I've been looking into setting up a site to check the hosts on my network. Basically, I want it to ping each host and tell whether it is up or not, then also check various services (www, ftp, smtp, pop3, dns, ssh) and see if they are available. This would check either for a connection

[PHP] fgetcsv or other

2002-10-11 Thread Bryan Koschmann - GKT
Hi, I need to read from a csv file (with quotes). I use the example from the manual, and it does spit it out how I want it, but I need to access one of the fields and pass that data to something else. So it's like this, I need my csv file to be displayed in a table, but the last column will

[PHP] encryption

2002-10-08 Thread Bryan Koschmann - GKT
Hello, I was wondering if anyone has some examples of encrypting credit card numbers in a database? Basically, someone goes to a secure site, enters their information, and then it is stored locally in a mysql database until it can be entered (this is all we have for now until we setup a

Re: [PHP] Includes

2002-10-07 Thread Bryan Koschmann - GKT
Yes that is the proper usage. Maybe you could check the referrer and only display if from the webserver? I can't remember if a .htaccess would work with that sort of thing, as password protecting would of course require a password :) Unless this isn't a public site and you want a password.

[PHP] elseifs and ereg

2002-10-04 Thread Bryan Koschmann - GKT
Okay, I think I'm just being stupid here. Can someone please tell me why this is wrong? Yeah I know it looks lame, but I'm just testing something. This always returns no matches Thanks, Bryan ? $now = strtotime(now); $out = never set; if ($now == ereg([2200-2230])) $out =

Re: [PHP] Re: elseifs and ereg

2002-10-04 Thread Bryan Koschmann - GKT
Err, yeah, I just figured that out. So now I have this, but it always matches the first. I even tried setting $now = 2221 Thanks for the help! Bryan ? $now = date(Hi, strtotime(now)); $out = not set; if (ereg([2200-2230], $now)) $out = special; elseif (ereg([0600-1159],

[PHP] time of day

2002-10-03 Thread Bryan Koschmann - GKT
Hello, I was wondering if anyone has a good example of a way to do this. Kinda lame, but like if the time is between 8am and 12pm, say good morning, between 12pm and 6pm, say good afternoon, and so on. I know this is probably pretty trivial, but I just wanted to see what ideas where out there.

[PHP] mysql timestamp and php date

2002-09-30 Thread Bryan Koschmann - GKT
Hello, I have a table with timestamps in mysql. The timestamps of course are in the format of 20020930014535 but I would like to format the output as this: date(l F jS H:i:s, $last_modified) What is the simplest way to do this? I see there are a few ways to convert it, but I was hoping for

Re: [PHP] Re: mysql timestamp and php date

2002-09-30 Thread Bryan Koschmann - GKT
Hi Jason, I had come across this earlier, and while I can get it to return perfectly, I was more looking for something that I could do without having to pull 2 queries. Err, well wait, I wouldn't have to would I? I have 4 columns: idnum, title, date, news I was just doing a select * from

Re: [PHP] Re: mysql timestamp and php date

2002-09-30 Thread Bryan Koschmann - GKT
This is what I am using here: $db = DB::connect(mysql://$username:$password@$hostName/$databaseName); if (DB::iserror($db)) die($db-getMessage()); $sql = SELECT idnum, title, DATE_FORMAT(date, '%W, %M %D \ %l:%i%p'), news FROM newslist ORDER BY idnum DESC; $query = $db-query($sql); if

Re: [PHP] authenticating and redirecting with special access

2002-09-25 Thread Bryan Koschmann - GKT
Chris, That is a very good point. As stupid as it sounds, I forgot about the include() statement (still new I guess, not used to all this extra cool stuff!). When I was suggesting the .htaccess, I was thinking more of the require valid-user and thinking maybe the php could tell it whether it is

[PHP] listing of directories into links

2002-09-25 Thread Bryan Koschmann - GKT
Hi, I need to do something where my page is a generated list of directories. Say, I want to easily make links to all user pages (/home/user1/public_html, /home/user2/public_html, and so on). Can anyone give me any ideas? Thanks, Bryan -- PHP General Mailing List

[PHP] authenticating and redirecting with special access

2002-09-24 Thread Bryan Koschmann - GKT
Hello, I'm fairly new to PHP, but I am studying (ORA's Programming PHP). I am trying to do something but can't quite figure out how. Here is what I need to do: User goes to an address. They login with say jsmith and their password. the PHP script gets authenticates against a MySQL database. I