RE: [PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-17 Thread H Marc Bower
> -Original Message- > From: Manuel Lemos [mailto:[EMAIL PROTECTED] > >> Obviously, the "knowledge s*ckers" will not provide any valuable > >> feedback. Actually some of them even come in public just > to b*tch that > >> I require them to login to download my stuff. Some even threat to

Re: [PHP-WIN] Server for PHP and ASP (and MySQL) ??

2003-12-02 Thread H Marc Bower
Perhaps the better solution is to move to a somewhat... newer O/S? :) I have a P3-450 that I do testing on, using PHP, ASP, and mySQL and it's run both Windows XP Pro and Windows 2000 Server at various times. If all you're doing is serving up webpages, that doesn't suck up much in the way of reso

Re: [PHP-WIN] How to find out if PC is online

2003-12-02 Thread H Marc Bower
A thought I had is to set up a simple script on the server that, when executed, pops the time/date/IP into a file (or database) whenever the page is accessed (this won't work for a yes/no, since there is always going to be a yes answer, and the lack of an answer will indicate no... but it's hard to

Re: [PHP-WIN] Using PHP to reload a page w/variable.

2003-11-20 Thread H Marc Bower
If I understand what you're trying to do correctly, I would have the form action come back to the same page, where verification is done. At the top, you could have a big "if the page has been submitted, execute this code" section where it does verification of the data. If the data is ok, it can d

Re: [PHP-WIN] File Ext

2003-09-29 Thread H Marc Bower
- Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> > > I can\ only assume that it does work ok with a linux-based > > webserver or it wouldn't be in there. In fact, if I put in is_file() > > instead of !is_dir, it returns nothing at all. > > That code wont work on a un

Re: [PHP-WIN] File Ext

2003-09-27 Thread H Marc Bower
This will work, with several caveats since the purpose is not known... read()) { if (!is_dir($filename)) { clearstatcache(); $extension = substr($filename,-4); $realext = strstr($extension, "."); if ($realext <> "") { echo $realext."\n"; } } } $dir->close(); ?>

Re: [PHP-WIN] please help with table

2003-08-23 Thread H Marc Bower
Give this a go: "; while($row < 3) { $row++; echo ""; while($col < 5) { $col++; echo "Row ".$row." Column ".$col.""; } $col = 0; echo ""; } echo ""; ?> Hope that helps, Marc - Original Message - From: "Thomas Edward Lawrence" <[EMAIL PROTECTED]> To: <[EMAIL PROT

Re: [PHP-WIN] [PHP] Time formatting from int (seconds)

2003-08-16 Thread H Marc Bower
Hi Paul, Try this out. function duration($amount) { $seconds = $amount % 60; if ($seconds < 10) { $seconds = "0".$seconds; } $minutes = (($amount - $seconds) / 60) % 60; if ($minutes < 10) { $minutes = "0".$minutes; } $hours = ($amount - ($minutes * 60) - $seconds) / 3600; $duration = $hou

[PHP-WIN] Randomize mySQL result array

2003-08-14 Thread H Marc Bower
This probably isn't strictly a PHP question, but I beg the indulgence of those who know mySQL as well... I have a result array grabbed from a mysql table. Is there a quick way to randomize the order that the rows fall into the array instead of "as they are extracted from the table" order? Tha

Re: [PHP-WIN] Randomize mySQL result array

2003-08-11 Thread H Marc Bower
heheh... Thank you, Ignatius and B.A.T. I guessed there had to be a simple way. (V) - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> > > BTW there is a nice MySQL Windows mailing list. > > I wouldn't say that. Some of the authers there really need a lay... ;) > >

Re: [PHP-WIN] Windows 2K (workstation)

2003-07-30 Thread H Marc Bower
Windows 2000 Professional (I'm assuming this is what you meant by workstation version) can have IIS installed, as well. You can follow the instructions supplied with PHP on how to set up IIS. It really just involves careful placement of the php.ini file and setting up the site to parse PHP files.

Re: [PHP-WIN] Re: Newbie Q

2003-07-16 Thread H Marc Bower
lt;[EMAIL PROTECTED]> Sent: Wednesday, July 16, 2003 8:18 AM Subject: Re: [PHP-WIN] Re: Newbie Q > Well, I want my php script to put the TITLE of a html page to the name of > the directory the script is in. > > /Gabbah > > "H Marc Bower" <[EMAIL PROTECTED]> skr

Re: [PHP-WIN] Re: Newbie Q

2003-07-16 Thread H Marc Bower
Um... the file in which you put that command should be there... :) What is the purpose for knowing the directory name? Maybe there is something else you can tell us that will get you the answer you're looking for. (V) - Original Message - From: "Gabriel_k" <[EMAIL PROTECTED]> > What if

[PHP-WIN] mysql question

2003-07-08 Thread H Marc Bower
I know this isn't the mysql area... but many of you seem very knowledgeable in this area and I would appreciate your input... What kind of field setup should I create if I want a field which will, essentially hold several distinct items, but never a set number of them? I am going to be selecti

Re: [PHP-WIN] phpinfo.php file now shows up blank in Win xp pro using IIS server, please help

2003-07-07 Thread H Marc Bower
It's almost definitely not an IE issue, given how php works. When you do a View...Source what do you see? You could try stopping and starting IIS to see if that has any effect. When you say you are unable to view any php code in IE, I assume you mean from your own webserver...? (V) - Origi

[PHP-WIN] date function problem... not a problem...

2003-07-07 Thread H Marc Bower
I read the next line in the manual to determine what the issue was - using windows I can only go back to 01 jan 1970. My bad, I should have read a little further. If anyone does have a nice little workaround for this for windows, though, I'd appreciate it. The date is coming out of a mysql da

[PHP-WIN] date function problem...

2003-07-07 Thread H Marc Bower
I'm having a bit of an issue using the date function... it isn't cooperating with any dates before... sometime in 1970. I guess this is date 0 for unix, if I'm not mistaken. However, dates before this time are throwing an error at me: Warning: unexpected error in date() in D:\wwwroot\vvf\osh

Re: [PHP-WIN] Fatal error with 'DB.php'

2003-07-04 Thread H Marc Bower
- Original Message - From: "jsWalter" <[EMAIL PROTECTED]> > I am trying to use DB.php, but I am getting htis error... > > Fatal error: main(): Failed opening required 'DB.php' > (include_path='.;c:\php4\pear') > > I can't find this path defined *anywhere* I have no idea where it gets this,

Re: [PHP-WIN] PHP MySQL question

2003-04-05 Thread H Marc Bower
Using an UPDATE statement in mysql you can make any number of changes to the record at one time. What I've done in the past is read in all the fields from a record, on the webpage displayed the fields that are editable, then sent all of the variables back through as an update. You'll need to read

Re: [PHP-WIN] IE seems to be more stupid than I spected!

2003-03-10 Thread H Marc Bower
Does it work with Netscape? I find it odd that the browser would have anything to do with this, really. (V) - Original Message - From: "Leonardo Javier Belén" <[EMAIL PROTECTED]> HI all! I am facing a problem thanks to the so-called powerful IE on Windows. I'm trying to generate PD

Re: [PHP-WIN] arrays and nested arrays and loops and databases...

2003-01-20 Thread H Marc Bower
t; $output['address'], > 'name' => $output['name']); > } > > assuming, of course, that your database column names are 'address' and > 'name'. > > This should work, but I may have borked something up on the name base

[PHP-WIN] arrays and nested arrays and loops and databases...

2003-01-18 Thread H Marc Bower
Well... I can usually puzzle myself through these things, but I figured it's time to ask the list. :) It may be a simple thing that I'm missing, but here's what I have. The structure that I'm trying to modify is as follows: $to = array( array(

Re: [PHP-WIN] problem passing variables...

2002-10-09 Thread H Marc Bower
What output *are* you getting? (V) "db" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > i've seen a lot of posts about this, but none helped. i've broken the script > down to its simplest components and still no luck. > > > IF(!isset($_get['i'])) { > > $i = 1; > > } > > echo

[PHP-WIN] Auto-submit form

2002-10-07 Thread H Marc Bower
Is there a way (preferrably using php... but if javascript is necessary and some kind soul knows how I will use it) to have a form auto-submit when a field is 'full'? I want to be able to scan barcodes of a set length and have a form be automatically submitted to store the information in the d

Re: [PHP-WIN] Using date() function

2002-10-06 Thread H Marc Bower
Am I correct in assuming that $sql[] is the result of a mysql_fetch_array (or similar call)? If so, you shouldn't need the " in $sql["date"]. (V) - Original Message - From: "Davy Obdam" <[EMAIL PROTECTED]> > $entry_date = date('l, d F Y H:i:s','$sql["date"]'); > echo $entry_date; > > Bu

Re: [PHP-WIN] Mail tag?

2002-09-22 Thread H Marc Bower
Here it is... it was from Court Shrock. Not sure if this is the same situation you're in or not, but it might help. Sorry to bother everyone...found the causeSMTP on IIS5 doesn't bind to 127.0.0.1 by default. Changed php.ini to use the ip address of its interface and the everything worked.

Re: [PHP-WIN] Mail tag?

2002-09-22 Thread H Marc Bower
I haven't noticed this myself, but I believe I read another post about this - it's something to do with XP (or 2000... don't remember which the poster was commenting on) not having a proper mapping of the sendmail to localhost. I don't remember what he did to solve it, but I'm sure you could find

Re: [PHP-WIN] php pages appear only on server machine, not in others computers with IIS

2002-08-26 Thread H Marc Bower
I know it isn't supposed to be necessary, but when using the CGI version of php I have had to reboot the server (not just start/stop services) before when adding php to a new site. Give that a try. (V) - Original Message - From: "David Hollister" <[EMAIL PROTECTED]> To: "'Saci'" <[EMAIL

Re: [PHP-WIN] Is there a limit... PLEASE HELP I'm Desperate

2002-07-23 Thread H Marc Bower
Check the MySQL Manual on page 329 - it might give you some good insight into the server tuning that might be required. If you aren't using mysql, then it might give you a lead at least on things to check with whatever database you *are* using. (V) - Original Message - From: "R.S. Herhu

Re: [PHP-WIN] Is there a limit... PLEASE HELP I'm Desperate

2002-07-23 Thread H Marc Bower
>From the PHP Manual, Chapter 7 (String Type): Note: It is no problem for a string to become very large. There is no practical bound to the size of strings imposed by PHP, so there is no reason at all to worry about long strings. It doesn't help solve the problem, but it should put you at ease a

[PHP-WIN] Form Data won't POST

2002-07-07 Thread H Marc Bower
I had a page that was working perfectly, then I had to reinstall XP. I saved my php.ini file, and copied back on once the O/S was set up again. Now the form data won't post at all. It's a page that the action points back to itself on, and using $variablename where variablename is the name tag