RE: [PHP] Running a PHP script everyday

2005-08-01 Thread Steve Buehler
At 09:56 AM 8/1/2005, you wrote: [snip] What is the "-q" for? I can't find any documentation on it. If I do a "php -h" or "man php", it is not listed. I am running php 5.0.3 on RHEL ES 4 [/snip] It means 'quiet'...in other words do not send anything to standard out. Thank You. I guess they

Re: [PHP] Running a PHP script everyday

2005-08-01 Thread Steve Buehler
At 04:54 AM 8/1/2005, you wrote: Shit shit shit!!! I completelly forgot! #!/usr/local/bin/php -q Notice the -q, it's important. Sorry :( What is the "-q" for? I can't find any documentation on it. If I do a "php -h" or "man php", it is not listed. I am running php 5.0.3 on RHEL ES 4 Th

Re: [PHP] Changing directory permissions???

2005-07-11 Thread Steve Buehler
At 02:13 PM 7/11/2005, you wrote: Philip Hallstrom wrote: Is there a way to change directory permissions with pre php5.0? Linux/Apache I'm designing a CM application and would like my code to enable non-techies to be able to create a simple text file. [e.g., directory temporarilly from 755 to

Re: [PHP] reservation/booking script for a hotel

2005-04-25 Thread Steve Buehler
Go to http://www.hotscripts.com and type in "hotel reservation" in the "Search For" text box, change the category to "PHP" and then click on "Search". Steve At 08:10 AM 4/25/2005, you wrote: yes it will be real time and yes open source is what we're looking for. For this hotel there are only 15

Re: [PHP] Re:Re: [PHP] help for me about session

2005-04-24 Thread Steve Buehler
At 10:29 PM 4/23/2005, Josephson Tracy wrote: > At 09:35 PM 4/23/2005, Josephson Tracy wrote: > >hi everyone, > >when i study php, i have a problem as following: > >- > >file1.php > > >if($NextCourse == 1){ do something;} > >else($NextCourse ==""){do something other } > >?> > >-

Re: [PHP] help for me about session

2005-04-23 Thread Steve Buehler
At 09:35 PM 4/23/2005, Josephson Tracy wrote: hi everyone, when i study php, i have a problem as following: - file1.php if($NextCourse == 1){ do something;} else($NextCourse ==""){do something other } ?> - but when the 2ed access the file1.php the value

Re: [PHP] IRC from PHP - help

2005-04-01 Thread Steve Buehler
You might want to go to http://www.hotscripts.com and search for irc in the php category. Steve At 08:47 AM 4/1/2005, Matthew Fonda wrote: You might want to check out PEAR::Net_SmartIRC http://pear.php.net/package/Net_SmartIRC hello i'm a newcomer to this list, fairly experienced PHP programmer b

Re: [PHP] reg expressions

2005-03-25 Thread Steve Buehler
At 01:50 PM 3/25/2005, you wrote: Ok. I am really bad at regular expressions. I have to search through some files and put the contents into an array. A file could look like this: $aliases=`cat /home/virtual/site$site_id/fst/etc/mail/local-host-names`; start of file # local-host-names -

[PHP] reg expressions

2005-03-25 Thread Steve Buehler
Ok. I am really bad at regular expressions. I have to search through some files and put the contents into an array. A file could look like this: $aliases=`cat /home/virtual/site$site_id/fst/etc/mail/local-host-names`; start of file # local-host-names - include all aliases for your machi

Re: [PHP] if table not exists

2005-03-15 Thread Steve Buehler
http://dev.mysql.com/doc/mysql/en/create-table.html At 03:29 PM 3/15/2005, John Taylor-Johnston wrote: How do I get PHP to create a table, if one does not already exist? I have to do something with: $news = mysql_query($sql) or die(print mysql_error()); What can I also add something to $sql? $sql =

[PHP] opendir

2005-03-15 Thread Steve Buehler
So that I could use the opendir feature with an ftp url, I downloaded php-5.0.3 and used the following to make the cgi version: ./configure --enable-ftp make cp ./sapi/cgi/php /root Here is my script: start of script /root/z.php #!/root/php ftp://login:[EMAIL PROTECTED]/SHARE1/')) { ech

Re: [PHP] incrementing a number from a text file

2005-03-11 Thread Steve Buehler
At 03:14 PM 3/10/2005, Richard Lynch wrote: > I want to read a number from an external (txt) file and increment it.then > save the number back on the text file. > I know this is possible but want a simple amd economical way to do this. That's what you *THINK* you want to do :-) But what happens whe

Re: [PHP] FTP info in a variable

2005-02-25 Thread Steve Buehler
At 11:07 AM 2/25/2005, you wrote: Steve Buehler wrote: > I have to write a little program that pulls information from a database, > formats it into csv format for importing into excel and ftps it to another > server. I have everything worked out except for the ftping. I

[PHP] Re: php.ini file

2005-02-25 Thread Steve Buehler
At 06:16 AM 2/25/2005, H. Postel wrote: I am setting up a database for the first time. I have to change some settings to my php.ini file, but I can not find it. I work with MySQL 3.23.49 It is normally in the /etc directory. If you do not have access to the /etc directory, then you will need to t

[PHP] FTP info in a variable

2005-02-25 Thread Steve Buehler
original message I have to write a little program that pulls information from a database, formats it into csv format for importing into excel and ftps it to another server. I have everything worked out except for the ftping. I have read through http://us4.php.net/manual/en/ref.ftp.php

[PHP] FTP info in a variable

2005-02-25 Thread Steve Buehler
I have to write a little program that pulls information from a database, formats it into csv format for importing into excel and ftps it to another server. I have everything worked out except for the ftping. I have read through http://us4.php.net/manual/en/ref.ftp.php and I know I can get the

Re: [PHP] Student Suspended Over PHP use.

2005-02-10 Thread Steve Buehler
Shouldn't have taken your Cat to school with a bag of catnip. That was asking for trouble. :) Steve At 08:44 PM 2/9/2005, Dotan Cohen wrote: Maybe it's not People Hate Perl after all... Pot, Heroin, Pussy?!? I think I got suspended for at leat two of those on campus grounds at some point or anot

Re: [PHP] Copy mySQL database...

2005-02-03 Thread Steve Buehler
At 08:52 AM 2/3/2005, you wrote: I just need to make a duplicate copy of a mySQL database (I have to reinstall some web software and I am afraid it will overwrite the existing database, so i would like to make a backup of it)... Any classes, scripts, etc out there to do this? This is more o

Re: [PHP] Link to content of Directory

2005-02-02 Thread Steve Buehler
At 10:52 AM 2/2/2005, Marquez Design: Steve Marquez wrote: Greetings all, I am currious if someone could point me to a script to list the content of a directory, then link to each file in that directory. Example: The directory contains 80 .GIF files. I want to create a page that will have links to

Re: [PHP] Re: Date()

2005-01-17 Thread Steve Buehler
At 08:33 PM 1/15/2005, you wrote: Torsten, Whatever the combination, it echos "February 02-2005February 02-2005February 02-2005". What is wrong with it? $week5 = "2005-02-14"; $firstDayTs = strtotime($week5); $lastDayTs = $firstDayTs + (4 * 86400); echo date('F', $firstDayTs) . ' ' . d

Re: [PHP] Multiple POP accounts on Webmail Front

2005-01-07 Thread Steve Buehler
Well, Squirrelmail does.sort of. This might not be exactly what you are looking for, but you can add the fetchmail plugin to squirrelmail so that it can pull email from other pop3 accounts. http://www.squirrelmail.org/plugin_view.php?id=50 Steve At 10:26 AM 1/7/2005, James Nunnerley wrote:

Re: [PHP] PHP info: MySQL client API version: 3.23?

2004-11-24 Thread Steve Buehler
At 10:59 AM 11/24/2004, you wrote: On Wed, 24 Nov 2004 10:37:19 -0600, Steve Buehler <[EMAIL PROTECTED]> wrote: > At 07:38 AM 11/24/2004, you wrote: > > >In the phpinfo() output, the MySQL client API version is shown as 3.23.49. > >Shouldn't this be upgraded to 4.

Re: [PHP] PHP info: MySQL client API version: 3.23?

2004-11-24 Thread Steve Buehler
At 07:38 AM 11/24/2004, you wrote: In the phpinfo() output, the MySQL client API version is shown as 3.23.49. Shouldn't this be upgraded to 4.1 (generally available/stable)? To do so, you would need to upgrade it. I know I am being a smartaleck when I say this, but it won't upgrade on its own an

Re: [PHP] path info question. Was delimiter question?

2004-08-24 Thread Steve Buehler
Thank You. I didn't know where to start looking. Anyway, putting the following lines in an .htaccess file in the directory worked like a charm: AcceptPathInfo On Thanks to all who helped. Steve At 02:02 PM 8/24/2004, you wrote: > How can I make the following work on an apache 2.0.46/php 4.3.2

[PHP] delimiter question?

2004-08-24 Thread Steve Buehler
How can I make the following work on an apache 2.0.46/php 4.3.2 installation? /dist/gogo.php/order-inventory-form.php Right now, unless it is a question mark after the gogo.php script, it will not run. Thank You Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Multiple URL Redirection

2004-06-05 Thread Steve Buehler
At 06:39 PM 6/5/2004, you wrote: Hi I have the following situation: I've got a domain that is hosted at a certain host. This host allows me to create subdomains, and also to add several domains to the same account. The thing is if I add a domain like xxx.com to my yyy.com both will be directed to

Re: [PHP] string replace in files

2004-04-30 Thread Steve Buehler
At 11:27 AM 4/30/2004, John W. Holmes wrote: From: "Steve Buehler" <[EMAIL PROTECTED]> > #!/usr/bin/php > $strtoreplace="require \"http://www.domain.com/";; > $replacewithstring="require \"/home/domain/www/"; > > replaces

[PHP] string replace in files

2004-04-30 Thread Steve Buehler
I am trying to write a script that will replace a string in a file. Actually, about 3000 files. And I am stuck. I can get the list of files, but then I pretty much become stuck. I wanted to try str_ireplace (not sure if that is what I should use or not), but I can't even get far enough to d

[PHP] Quote for Job

2004-04-01 Thread Steve Buehler
to, Squirrelmail or many of the other email clients out there would work just fine. Thank You Steve Buehler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] making 1 pdf file from 2

2004-02-25 Thread Steve Buehler
I hope someone here can help me because for some reason I can't receive any mail from the pdflib mailing list. I have PDFlib + PDI 5 using php to create my pages. This is the first time that I have had to do this and just can't figure it out. I have two files: ChurchCalendarFrontPage.pdf Chur

RE: [PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'); foreach($letters as $let

Re: [PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
uot;; Hope this helps The for loop is backwards for ($letter = 'A'; $letter <= 'Z'; $letter++) However, I don't think that will work, you probably need to do something like this (untested) for ( $letter = 'A', $i = 0; $i <= 25; $letter++, $i++ ) St

RE: [PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
Yes, I found that the loop was written kind of backwards and would create a never ending loop. I never thought to try setting $letter='A' before. I didn't think you could loop through the Alphabet like that. But I did a little changing to your loop and it works fine like this now: $le

[PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
I am using PHP 4.3.4 and am trying to come up with a function that will step through the alphabet so that I get a menu/links that can be clicked on like below: A B C etc... I am sure that this has been done and is probably pretty easy. Any help here would be appreciated. I know that I

Re: [PHP] Problems with session_id() in Windows?

2003-11-09 Thread Steve Buehler
Check your php.ini file and see where it is trying to save your sessions at. I "think" it is trying to save them to /tmp. You might have to make sure that directory exists. You might also have to put it in as the full path. ex.C:\tmp. Make sure to restart your apache, or whatever Web S

[PHP] single quotes in database

2003-11-07 Thread Steve Buehler
I am using PHP/MySQL and am having a problem. We have some names and addresses in the database that have single quotes in them. For instance. There is a town around here called "Lee's Summit". Also names like "O'connel". When I pull from the database it skips these because of the quotes.

[PHP] Error 1148 and 1045

2003-10-28 Thread Steve Buehler
I have upgraded my mysql version to 3.23.58 and am coming up with a couple of errors using phpmyadmin to "Insert data from a textfile into table" I didn't get this on the previous versions of mysql. Here are the errors: SQL-query : LOAD DATA INFILE '/tmp/phpKFlQ2b' INTO TABLE `annsubscribers

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
To give tabs in html, you might want to try using       instead of \t Steve At 06:57 AM 10/13/2003, you wrote: Wang Feng wrote: The page source shows: The problem might be right here --+ (closing html tag)

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
Do what I do, use both the \n and the tags. I am not worried about anybody else thinking the source is nice looking, I do it for debugging so that I can see how the source comes out in a readable format. Steve At 06:48 AM 10/13/2003, you wrote: Ok, Now I see what happen (maybe). So, the "\n"

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
If you want it to work with \n, then you will need to use the tags. Otherwise you need to translate the \n's into tags. \n is NOT an html tag so when you print them to the browser, it adds lines to the source, but as you might already know, a new line in the source of an html page does NOT

[PHP] duplicating databases

2003-10-08 Thread Steve Buehler
I am running PHP/MySQL for a program that I am writing. We will have 100's or 1000's of databases that will be duplicates in structure. The problem is when I make a change to the database, I have to go to every database manually and make the change. All of the databases start with "a_" and

Re: [PHP] attach file with mail() function??

2003-10-06 Thread Steve Buehler
At 06:34 PM 10/5/2003, Roy W wrote: Is there a way to attach a file with the mail() function? Thanks! Yes. Take a look at http://www.php.net/mail Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if statement

2003-09-30 Thread Steve Buehler
To Brad, Marek and Curt (and anybody who responds after this) Thank you so much for your help. This is going to help me out so much in a lot of my scripts. It will sure make them a little.Noa LOT more portable now. Thanks Steve At 11:26 AM 9/30/2003, you wrote: Steve Buehler

[PHP] if statement

2003-09-30 Thread Steve Buehler
I have an "if" statement that I would like to make a little bit more generic. This is how the statement looks now. if($k2b=="/etc/bind/options.conf.wp" || $k2b=="/etc/bind/rndc.conf.wp" || $k2b=="/etc/bind/keys.conf.wp"){ do this1 }else{ do this2 } What I would like to do is to have an array

[PHP] php,up2date and mcrypt

2003-09-08 Thread Steve Buehler
I have a new RedHat Linux v.9 server that gets its php through 'up2date'. I want the ability to use mcrypt with php. I thought that I read somewhere a way to do this without having to recompile PHP. Can anybody point me to the right place or explain to me how to do this? Thanks Steve -- PHP

Re: [PHP] case insensitive sort

2003-08-26 Thread Steve Buehler
Ok. Now I REALLY feel like an idiot. Thanks so much for your help. Steve At 05:46 PM 8/26/2003 +0200, you wrote: It right there under your nose: strcasecmp() Steve Buehler wrote: I am using the following function for a sort on an array. I hope someone can help me out here and let me know

[PHP] case insensitive sort

2003-08-26 Thread Steve Buehler
e the results of the search: Buehler, Steve Buehler, Steve Teste, Teste a, a asdf, adsf asdf, asdf dsdlkj, sd Here is the code to sort: $GLOBALS[sortterm]="cont_name"; usort($logins, "cmp"); function cmp ($a, $b) { GLOBAL $sortterm; return strcmp($a[$sortterm], $b[$sortterm]

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
Something else I found out now. I think it was Cpt John W. Holmes (not sure though) that said I couldn't have a cookie as an array like this the following. So i am not sure if it is something that is going away or not. setcookie ("admin_access[host]", "$cookhost",0,"/","$cookhost"); setcookie (

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
main name to my laptop and put that domain name in the "string domain" parameter and it still didn't work. Steve At 05:53 PM 7/31/2003 -0500, Steve Buehler wrote: I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP 4.2.3 on my laptop and my cookies s

[PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP 4.2.3 on my laptop and my cookies still don't work like they should. Hopefully someone can explain to me why. $cookhost=$_SERVER["HTTP_HOST"]; header("Set-Cookie: aa_host=$cookhost;"); setcookie ("aa_host", "$cookhost",0,"/

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
At 04:37 PM 7/30/2003 -0400, you wrote: You'd be better of if you re-wrote your code to make it correct, but you could just put: $coach_access['login_id'] = $_COOKIE['coach_access[login_id]']; I guess I will rewrite my code. I still can't understand it working on the RedHat and not the Windows,

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
That still won't work for me for some reason. I am just going to rewrite parts of the script to use a cookie name with out a [something] IN the name. I will rename it to ca_id or something like that. Thanks for your help Steve At 01:38 PM 7/30/2003 -0700, you wrote: --- Steve Buehler &l

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
hm. Looks like on my localhost I can't seta cookie like this: setcookie ("coach_access[login_id]", "coach",0,"/","$cookhost"); if I change it to just: setcookie ("coach_access_login_id", "coach",0,"/","$cookhost"); it will work. But then my script won't work without a lot of re-writing becau

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
h. This seemed to set the cookie just fine. Does this mean that either localhost in the browser or Apache/PHP on a windows box has to set the cookie differently than on RedHat/Apache/PHP? I am going on vacation next week and need to keep working on a project that is working fine on the R

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
Sorry about that. Here is my code: if(isset($coach_access[login_id])){ }elseif(($lusername) && ($lpassword)) { if(($lusername=="me") AND ($lpassword=="apass")){ $cookhost=$_SERVER["HTTP_HOST"]; setcookie ("coach_access[login_id]", "coach",0,

[PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
I have PHP/Apache/MySQL installed on my WinXP laptop. I do this so that I can write programs when not connected to the Internet (like when traveling). I am trying to set a cookie from the http://localhost site on my computer and it doesn't get set. Does this sound like something wrong in my

[PHP] check for duplicate databases

2003-07-30 Thread Steve Buehler
I have a program that I am writing in PHP/MySQL. I have made some upgrades to the database and like an idiot, forgot to write down the changes or to make the changes in several other databases for the other clients that are using the program also. What I am trying to do is to have a program,

Re: [PHP] strip white space

2003-07-02 Thread Steve Buehler
Figures, right after I emailed this, I found it after looking for over an hour. Here is the result and some people had emailed me parts of this: $team_name=" BV Stars Black"; wsstrip($team_name); function wsstrip(&$str) { $str=ereg_replace (' +', ' ', trim($str)); $str=ereg_repl

[PHP] strip white space

2003-07-02 Thread Steve Buehler
I am not sure how to go about this and hope that someone can help here. I have a variable like the following: $team_name="BV Stars Black"; it has two spaces between the words Stars and Black. What I am trying to do is to take this variable, check for and strip the following: 1. Leading space

Re: [PHP] cannot get php through apache to write to my home dir on shared server

2003-06-26 Thread Steve Buehler
Another option might be to create a directory in your web space to hold your file and open up just that directory as 777. Steve At 08:17 AM 6/26/2003 -0400, you wrote: From: "frank reeves" <[EMAIL PROTECTED]> > I have an account on shared server and am trying to > write a logfile (a dump of an e

[PHP] greater than question

2003-05-27 Thread Steve Buehler
Hopefully someone has done this and has an easy answer. I know that I can do what I need with a LOT of code, but am trying to come up with something a little shorter that 50 lines of code. Here is the problem. I have 4 variables that each have a number in them. I need to find which one has

[PHP] sorting an array

2003-03-20 Thread Steve Buehler
I am having problems sorting a multi-dimensional array. I am hoping that somebody can help me figure out what I am doing wrong. It should sort on the "field" than on the "fac". Here is my code: -start code- $sortterm; get_locations(); function cmp ($a, $b) { GLOBAL $sortterm; retu

[PHP] delete from array

2003-03-10 Thread Steve Buehler
Not sure if there is a function that I missed when I did a search on this at php.net, but here is the situation: I have an array that looks something like this: 12:00:00 12:05:00 12:10:00 12:15:00 Bascially, it just has all times in it for a day in 5 minute increments. This is more of a templat

RE: [PHP] testing for < 0

2003-02-28 Thread Steve Buehler
There we go. Thank You so much. I also found that I had another error in my script and !is_numeric($timemb) did work after all. Steve At 10:41 AM 2/28/2003 -0800, you wrote: See isset() and empty() -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED] Sent: Friday

[PHP] testing for < 0

2003-02-28 Thread Steve Buehler
I have a form that has input for minutes. My problem is that I am trying to test to see if the field is blank or not and if they enter a "0" (zero), my test always show it as blank. I have tried !$timemb and !is_numeric($timemb). Thank You Steve -- PHP General Mailing List (http://www.php.net

[PHP] sorting multi-dimensional array part 2

2003-02-20 Thread Steve Buehler
The following "Seems" to work. But does anybody know how reliable this might be? Baically, I have a multi-dimensional array and want to sort by one column first, than another than another. Right now, I am using a temporary table in MySQL, but want to speed things up if possible. The command

RE: [PHP] sorting multi-dimensional array

2003-02-20 Thread Steve Buehler
This would work (and might still if I changed things), but the part that calls it is in another function also. Steve At 02:35 PM 2/20/2003 +, you wrote: > -Original Message- > From: Steve Buehler [mailto:[EMAIL PROTECTED]] > Sent: 20 February 2003 05:25 > > Ahhh...

Re: [PHP] sorting multi-dimensional array

2003-02-19 Thread Steve Buehler
Ahhhfinally did it with usort. Thanks to those who gave me that answer. Now here is a question for that. I would like to re-use my "cmp" function without having to rewrite it each time. Can it be written so that instead of "divname" being hard coded, that I can pass the sort field in th

[PHP] sorting multi-dimensional array

2003-02-13 Thread Steve Buehler
PHP version 4.2.2 I sure hope that I can get somebody to help me figure this one out. I have a multi-dimensional array that I need to sort. Here is the code that I have so far: function gettourndivs(){ GLOBAL $sea_id,$PHP_SELF; $result=get_mysql_query("SELECT * FROM `games` WHERE sea_id = '$se

RE: [PHP] Dropping Tables

2002-12-29 Thread Steve Buehler
Thank You so much John and Michael. SHOW TABLES LIKE 'a%' worked like a charm and was exactly what I was looking for. I guess my searches were using the wrong keywords. Kind of figures. Some of my searches were turning up 1000's of results. How do you know whether it's an "active" a* table

[PHP] Dropping Tables

2002-12-29 Thread Steve Buehler
I have researched this and can't find an answer. Maybe I am just looking in the wrong places or not putting the correct keywords into the search engines. So any help would be greatly appreciated. I am using MySQL with PHP. I have some PHP scripts that create tables in a database that are mea

[PHP] copying tables

2002-11-20 Thread Steve Buehler
Using PHP and MySQL. I have looked and can't find the answer to this problem. What I am trying to do is to copy a mysql table to a new table name in a PHP script. The reason for this is to keep the original table the way it is and editing the copy. Now, I know that I can go through a loop rea

[PHP] Expert Paid Help Needed

2002-11-19 Thread Steve Buehler
would help. We have some people that work for us JUST for web/server space. Steve Buehler IT Director Internet Business Applications, LLC 11638 W. 90th St. Overland Park, Kansas 66214 913-438-3074 x 7 steve @ vespro.com

Re: [PHP] query question

2002-11-14 Thread Steve Buehler
} $i = $row->min; // keep this new time for next loop } //echo $i." - $tmp --tmp\n"; //echo $row->min."\n"; } echo $i ."\n"; // print last row } Steve Buehler wrote: Ok. That outp

Re: [PHP] query question

2002-11-14 Thread Steve Buehler
} $i = $tmp; // keep this new time for next loop } } echo $row->min ."\n"; // print last row } At 07:09 PM 11/14/2002 +0100, you wrote: Untested, but should work Steve Buehler wrote: function getstart_end(){ $result=mysql_quer

Re: [PHP] query question

2002-11-14 Thread Steve Buehler
nd echo $row->min . " - "; // print this time as new start } $i = $tmp; // keep this new time for next loop } } echo $row->min ."\n"; // print last row } At 07:09 PM

[PHP] query question

2002-11-14 Thread Steve Buehler
I have been trying to figure something out here and am having problems. What I have is a problem with outputting some info in a table. Here is what I have and the problem is in the "getstart_end" function. This should be a working copy if you want to run it and I have put in some sample time

Re: [PHP] lynx and crontab

2002-10-15 Thread Steve Buehler
Info: Lynx has nothing to do with supporting or not supporting PHP. PHP is not a client side language, it is a server side language, so the browser that you use does not even know or need to know that it is running PHP. Solutions (hopefully): Take out the space between the "-" and the word "d

[PHP] RE: time stamp

2002-08-28 Thread Steve Buehler
m";} if($hour > 12){$hour = $hour-12;} if(!$month){ return "nothing"; }else{ return "$month-$day-$year $hour:$min $ap"; } */ } Thank Again Steve At 08:28 AM 8/28/2002 -0700, you wrote: >Steve >

[PHP] time stamp

2002-08-27 Thread Steve Buehler
I am using PHP with MySQL and have a timestamp field in my db table. What would be the easiest way to get the newest timestamp out of the db? Thanks in Advance Steve -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ow3 -- PHP G

[PHP] Re: filling an array(2)

2002-07-29 Thread Steve Buehler
That did the trick. Thank you SO MUCH. Steve At 03:48 AM 7/29/2002 -0500, Richard Lynch wrote: > >h. Ok. Can somebody explain this one? Why won't it work correctly? > > > >for($m=1;$m<=5;$m++){ > > $div_idd[$m]=${'row->sub' . $m . 'd'}; > >} > > > >Can it not be done with a 3 parter? Th

Re: [PHP] Re: Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread Steve Buehler
Install PHP on your desktop. You will need a web server too. I use PHP/MySQL/Apache on my Laptop, Desktop, Servers and workstations. Steve At 07:56 AM 7/27/2002 -0700, you wrote: >I guess I should reiterate; > >"What is the easiest way to test locally (on my desktop) without having to >upload

[PHP] filling an array

2002-07-26 Thread Steve Buehler
Can anyone tell me what I am doing wrong? I am essentially trying to do this: $divid[1] = $div_id1; $divid[2] = $div_id2; $divid[3] = $div_id3; $divid[4] = $div_id4; $divid[5] = $div_id5; But I was looking for a tighter way, like the following (which does not work): for($m=1;$m<=5;$m++){

Re: [PHP] filling an array(2)

2002-07-26 Thread Steve Buehler
Ok. That makes since. Thanks Steve At 04:20 PM 7/26/2002 -0500, you wrote: >var names can only be letters, numbers, and underscores. > >Jim Grill >Support >Web-1 Hosting >http://www.web-1hosting.net >- Original Message - >From: "Steve Buehler" <

[PHP] filling an array

2002-07-26 Thread Steve Buehler
} From Martin: for($i =0; $i < 5; $i++) { $offset = $m + 1; $divid[$m] = $div_id{$offset}; } At 10:55 PM 7/26/2002 +0300, you wrote: >- Original Message - >From: "Steve Buehler" <[EMAIL PROTECTED]> >To: "PHP" <[EMAIL PROTECTED]> >Sent: Fr

[PHP] filling an array(2)

2002-07-26 Thread Steve Buehler
h. Ok. Can somebody explain this one? Why won't it work correctly? for($m=1;$m<=5;$m++){ $div_idd[$m]=${'row->sub' . $m . 'd'}; } Can it not be done with a 3 parter? The columns in the table that $row gets, are sub1d, sub2d, sub3d, sub4d and sub5d. Or is it the "->" that is me

Re: [PHP] Ensim with PHP and MySQL

2002-06-24 Thread Steve Buehler
I have been running several servers using the ensim software and have had no problem with PHP and/or MySQL. Well, none that was the fault of PHP or MySQL. Neither one should give you a problem upgrading, except that you will have to edit the httpd_vwh.conf file by hand since both PHP and MySQ

[PHP] Extracting Variables

2002-06-13 Thread Steve Buehler
I hope that someone will be kind enough to help me on this. I have some variables on a page that are dynamic. I can run this to view the variables (from a POST) for testing: Foreach($HTTP_POST_VARS as $key=>$value) echo("$key => $value"); and the results are: -results- team_number_1 =>

[PHP] Array Sorting

2002-06-12 Thread Steve Buehler
I have looked through php.net and the books that I have and I am confused, so I hope that someone can help me out here. I am trying to sort an array that I have. I use a while statement to fill the array: $teams[++$i][team_id]=$row->team_id; $teams[$i][name]=$row1->name; $teams[$i][team_sea_id

Re: [PHP] Fw: Hosting_submission

2002-06-12 Thread Steve Buehler
Ok guys. Please take this OFF THIS LIST. Your fight, in itself, has nothing to do with PHP. If you want service, than be smart and don't go to a free service. If you do go to a free service, than don't expect great service. Actually, if you go to a free service, you don't have a right (IM

Re: [PHP] Removing ^M

2002-06-08 Thread Steve Buehler
I get this when running that command: tr: only one string may be given when deleting without squeezing repeats I looked at the tr man pages and it didn't help much. I also tried using '\r' and `\r` and just \r , but always get the same result. Steve At 11:07 PM 6/8/2002 +0200, you wrote: >wh

[PHP] htaccess

2002-06-05 Thread Steve Buehler
I have a php script in an .htaccess protected directory. Is there a way that PHP could find out what login was used? Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Apache Module AND command Line

2002-06-05 Thread Steve Buehler
Is there doc somewhere to would tell how to install PHP as a command line interpreter (like perl) without messing up the installation of PHP that is installed as a module in/for Apache? Basically, I want to have both on the same server. Or can this even be done? Thank You Steve -- PHP Gen

[PHP] Re: Cyber Cafe software

2002-06-04 Thread Steve Buehler
can ever figure out how to do this, I will try to post the results to the lists so other people can use it and improve it as they see fit. Thanks Steve At 09:08 PM 6/3/2002 -0500, Bret Hughes wrote: >On Mon, 3 Jun 2002, Steve Buehler wrote: > > > Does anybody know of any software all

[PHP] Cyber Cafe software

2002-06-03 Thread Steve Buehler
Linux, PHP and MySQL. Thanks In Advance Steve Buehler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] for loops

2002-05-30 Thread Steve Buehler
it works for me just the way you have itexcept of course that you are telling it to only print to "y" because you are saying On Thursday 30 May 2002 11:46, Peter wrote: > > Just a query ... has any one else noticed this > > > > for($i = a; $i < z; $i++) > > { > > print $i; > > echo "";} > >

Re: [PHP] Avoid escaping

2002-05-29 Thread Steve Buehler
http://www.php.net/manual/fi/function.stripslashes.php Steve At 11:36 AM 5/29/2002 +0200, you wrote: >i have some html that i submit using html >example > > Perro > > >When i submit this and retrieve it on the target page the value looks like >this: >Perro > >Can I somehow avoid that somehow

Re: [PHP] unsetting function

2002-05-29 Thread Steve Buehler
You might want to give an example of what you are trying to do or at least, why. I am not an expert (not by a long ways), but to me, the way your question is worded, I would have to sayOpen up the page in whatever editing program you want to use delete the function and put in a new functi

Re: [PHP] unexpected T_IF

2002-05-25 Thread Steve Buehler
put a ; at the end of line 31 and see if it still gives you the error. Steve At 10:33 AM 5/25/2002 +0100, you wrote: >Hmm, can anyone explain why I'm getting this error? > >Parse error: parse error, unexpected T_IF in >/usr/local/htdocs/san.loc/upload-img.php on line 34 > >Code reads: > >11:#--

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Steve Buehler
At 12:29 PM 5/24/2002 -0500, Steve Buehler wrote: >I am having trouble with the following function. What it should do is to >check one table for team_id's. Than it goes to another table and gets all >rows with that team_id. If the team_id is in the new table, it should do &g

  1   2   >