Re: [PHP-WIN] seesion.save_path Problem

2004-10-12 Thread MikeA
Yes, I restart it every time. Sometimes I stop, wait, and then start it just to be sure. To make a long story short, I had other problems and someone helped me with them and suddenly it works!! Go figure. It might have been a stack of problems affecting other parms that made it not work but I a

[PHP-WIN] seesion.save_path Problem

2004-10-09 Thread MikeA
Environment - WinXP Pro SP1 PHP 4.3.9 Apache 2.0.52 I am trying to set the session.save_path in php.ini and I cannot get it to work. I have tried session.save_path = "X:/ApacheGroup/Apache2/html/SessionSave" session.save_path = "/ApacheGroup/Apache2/html/SessionSave" session.save_pat

[PHP-WIN] MySQL Errors

2004-10-20 Thread MikeA
I am getting the following errors when I execute a php script. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource Warning: mysql_num_rows(): supplied argument is not a valid MySQL r

[PHP-WIN] Re: MySQL Errors

2004-10-21 Thread MikeA
id=j.ad_id"; } $sql_countresult = mysql_query($sqlcount); list($totalrows) = mysql_fetch_row($sql_countresult); $res = mysql_query($sql); $num_ads = mysql_num_rows($res); I did not code this and I'm struggling to understand the applic and PHP! So I'm up to my armpits in alligators! LOL

[PHP-WIN] Headers Already Sent - How To Overcome????

2004-11-03 Thread MikeA
I am trying to do the following header ("Location: wlserver/index.php?userKey=$userKey&show=$userKey"); but I keep getting Warning: Cannot modify header information - headers already sent by ... The code on the header line above is not executing so I am assuming the previous headers being sen

[PHP-WIN] Re: Headers Already Sent - How To Overcome????

2004-11-04 Thread MikeA
. Again, thanks for the response. Mike "Sudeep" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Add this line at the top of the page: > > > > Your problem will be solved. > > ...SuDeEp... > > MikeA <[EMAIL PROTECTED]&

[PHP-WIN] foreach Problem

2004-11-13 Thread MikeA
I am new to PHP (4.3.9) and have been working on an open source application helping someone. At the same time I am learning PHP and honing my skills. I've looked in the docs that came with PHP and tried to follow the example but it was not well documented. I have the following function. The fore

[PHP-WIN] Re: foreach Problem

2004-11-13 Thread MikeA
This is a foreach loop. How do I increase it? <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > increase the amount of the times you are looping by one. > > If you use a FOR loop and loop through the array by its length + 1 > > Tryst > -- PHP Windows Mailing List (http://www.php.ne

[PHP-WIN] MySQL ADODB Error

2004-11-17 Thread MikeA
I am getting the following error: ErrorMsg for Database - Error: There is no error being returned! I cannot figure out what the problem is. So I am hoping additional eyes will catch it for me. I have debug set on (as you will see in code below) and this is what is returned: (mysql): SELECT *

[PHP-WIN] PHP, Classes, and PEAR

2004-11-18 Thread MikeA
WinXP Pro SP1 PHP 4.3.9 I am still learning PHP so please be gentle with me! LOL I am trying to send mail from my PC. For some reason it is not working. The line is mail($email_to, $email_subject, $email_message); There is no error or failure but the email is never sent. I also found a Mail c

[PHP-WIN] Passing an Array in HTML

2004-11-22 Thread MikeA
I am reading a file into an array ($data_old = file("config.old");) and then processing it as I receive information from the user. As we all know, the Internet is stateless, so I need to read back in the array after I get my answer. Array definitions are $data_old = array(); $data_new = array();

[PHP-WIN] Re: Passing an Array in HTML

2004-11-22 Thread MikeA
ven't tried this but I suspect it should work; anyone aware of a limit on > the number of hidden elements in a form? > > Hope this helps, > > Warren Vail > > > > -Original Message- > > From: news [mailto:[EMAIL PROTECTED] On Behalf Of MikeA > &

[PHP-WIN] Timer in Safe Mode

2004-12-17 Thread MikeA
WinXP SP2 PHP 4.3.9 Apache 2.0.52 I have a script which sets a timeout for a script execution so it does not go on forever in a loop or whatever. I keep getting a message that I cannot set a timer in safe-mode. How else can I do this? Is there a way to simulate a timer function? Thanks. Mik

[PHP-WIN] Re: Timer in Safe Mode

2004-12-17 Thread MikeA
"forever-running" > scripts - > PHP will kill them if they go on past that point anyhow. > > Check out the phpinfo() output if you don't have direct access to your > php.ini file - this should be sufficient. > > -M > >> -----Original Message- >&

[PHP-WIN] Re: Timer in Safe Mode

2004-12-20 Thread MikeA
Why would I want that? Is that the answer to getting around timeouts? I'm not sure what you are telling me. Thanks. Mike "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >A timer script? Go check out PEAR's Benchmark package. > > -- > PHP Windows Mailing List (h

[PHP-WIN] HTML in PHP to a File

2005-01-12 Thread MikeA
I have a PHP file that outputs HTML to the Internet to a user. The user also wants to be able to print that output to a printer. The user wants it formatted with page breaks in the proper place and so on. Using one PHP script to do both, short of a line to display and a line to print, is ther

[PHP-WIN] Re: HTML in PHP to a File

2005-01-15 Thread MikeA
o. http://www.php.net/manual/en/function.eval.php Luis Moreira wrote: > What do you mean by "it doesn't work" ? > It does (the minitest, I mean). > > Luis > > MikeA wrote: > >> I have a PHP file that outputs HTML to the Internet to a user. The >>

[PHP-WIN] Output Image from Db to Browser

2005-01-17 Thread MikeA
I am trying to output a JPG image to the browser without creating a file. I have tried several things but nothing seems to work. I sure could use a whole lot of help right now! LOL Going crazy trying to figure this out. But I know there are PHP gurus out there that will have the answer in 2 s

[PHP-WIN] Re: Output Image from Db to Browser

2005-01-18 Thread MikeA
ECTED]> wrote in message news:[EMAIL PROTECTED] Sorry running from memory here. You need to set your output headers to display a jpg not text. So you need something like: header("Content-type: image/jpg"); This will display the image on its own, if you need to embed the image in a

[PHP-WIN] Re: Output Image from Db to Browser

2005-01-18 Thread MikeA
al Message > From: "Wagner, Aaron" <[EMAIL PROTECTED]> > To: "MikeA" <[EMAIL PROTECTED]>, php-windows@lists.php.net > Date: Tue, Jan-18-2005 12:53 PM > Subject: RE: [PHP-WIN] Output Image from Db to Browser > > > > > -Original Me

[PHP-WIN] Embeding a Form Feed in HTML Display

2005-01-26 Thread MikeA
I am outputting pages to a browser. I would like those pages to go to a print. However, I want them to perform a form feed at a specific place. How can I do that using PHP? And how can I hide it so it does not show on the page? Is that a simple \f? That does show on the page. Thanks. Mike -

[PHP-WIN] From Browser to Print - ?????

2005-01-27 Thread MikeA
I have some PHP scripts that put output to the browser. I can then print them. However, I want to have the pages form feed at specific places so the printouts look nice. How can I do that? Thanks. Mike -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP-WIN] Re: From Browser to Print - ?????

2005-01-28 Thread MikeA
IL PROTECTED] You can define different style sheets based on the media that the HTML page is rendered on: Now use CSS to position your form feed as you like. Read more here: http://www.w3.org/TR/REC-CSS2/media.html - Carsten > -Oprindelig meddelelse- > Fra: news [mailto:[EMAI

[PHP-WIN] Re: From Browser to Print - ?????

2005-01-30 Thread MikeA
sheets based on the media that the HTML page is rendered on: Now use CSS to position your form feed as you like. Read more here: http://www.w3.org/TR/REC-CSS2/media.html - Carsten > -Oprindelig meddelelse- > Fra: news [mailto:[EMAIL PROTECTED] vegne af MikeA > Sendt: 28. januar 20