[PHP] system / exec Question...

2004-02-23 Thread Gary Sanders
st way to debug a problem like this - or how I enable the debugging options?     Thanks, Gary   --  Give someone a fish, and he eats for a day.  Give him a fishing rod and he goes hungry until you give him the dam fish so he has some bait.  ;-) Gary Sanders Sr. Engineer - replaytvDigital

[PHP] How to ensure cookies are turned on.

2004-11-29 Thread Gary Reimer
won’t work if they have cookies turned off. There must be some global variable that tells me. Could someone help me out? Thanks in advance, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions

2004-12-01 Thread Gary Reimer
advance, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Quickform Date element time range.

2006-01-24 Thread Gary Smith
and after 12 would be pm, it would be great if the am and pm could be set via javascript. Here's my time element: $contact->addElement ( 'date' , 'Times1' , 'Tee Time First Choice' , array('format' => 'g i A','optionIncrement' => array('i' => 10))); Any suggestions? Thanks, Gary

[PHP] detaching and running php processes in the background

2003-11-21 Thread Gary C. New
becoming zombie processes? Any suggestions on the best way to handle this? Respectfully, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: detaching and running php processes in the background

2004-01-06 Thread Gary C. New
$u && $p"); That's it! I know it sounds a bit complicated, but after you have all the right components functional it is quite easy. Hope this helps all those of you who have requested it. Respectfully, Gary Gary C. New wrote: What is the best way to detach and run a comm

[PHP] web-based and command line mcrypting and back again

2004-01-06 Thread Gary C. New
cb -a tripledes | encode-base64 echo "" | decode-base64 | mcrypt -dFb -m ecb -a tripledes I would appreciate any comments or suggestions. Respectfully, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP/MySQL with Microsoft Word

2004-01-06 Thread Gary C. New
Use MySQLODBC... I use it to manage my databases through MS Access. I haven't integrated it yet with Word, but it is my intention in the near future. Hope this helps. Respectfully, Gary Satch wrote: Is there any way to have a web page (PHP) that draws data from a database (MySQL)

[PHP] Re: web-based and command line mcrypting and back again

2004-01-06 Thread Gary C. New
the php code off of only 1, so I forced the command line to key off of only 1 passphrase--to no avail. I am obviously missing something. Someone out there has had to have done this at least once before. Any other suggestions would be appreciated. Respectfully, Gary Tom Rogers wrote: Hi

[PHP] HTTP Error 500 - IsapiModule

2008-12-19 Thread Gary Maddock-Greene
erver error: IsapiModule / ExecuterequestHandler. I'm stumped! Any help please or pointers. Thanks Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Gary Maddock-Greene
Thanks David, but my log doesn't tell me anything (I don't think) !! I am assuming we are referring to the inetpub logs? -Gary "David Robley" wrote in message news:71.4b.09584.6698b...@pb1.pair.com... Gary Maddock-Greene wrote: Hi, Don't know if this is the ri

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Gary Maddock-Greene
working so I appreciate the help. -Gary "Stut" wrote in message news:a5f019de0812190459w486205a4n5fe8fea317890...@mail.gmail.com... Please include the list when replying. 2008/12/19 G. Maddock-Greene : You may be right Stuart ... I am thinking this too. I can access my database wi

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Gary Maddock-Greene
com... 2008/12/19 Gary Maddock-Greene : Thanks Stuart, Logs are no enabled and I generate this line: #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken Sorry this is only my 2nd day with php/MySQL an

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Gary Maddock-Greene
ery) != 0) "Stuart" wrote in message news:a5f019de0812190516r3cdcdacana356320f39a8d...@mail.gmail.com... 2008/12/19 Gary Maddock-Greene : Thanks Stuart, Logs are no enabled and I generate this line: #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Gary Maddock-Greene
Yes .. thanks Stuart. If I comment out that line I now get a different problem!! Unable to connect to database. One step closer!!! "Stuart" wrote in message news:a5f019de0812190556g611cd672k25a30b77d02ad...@mail.gmail.com... 2008/12/19 Gary Maddock-Greene : $sql_query = m

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Gary Maddock-Greene
Stuart you have been very helpful thank you. I have learnt a number of valuable lessons this afternoon. - Gary ""Gary Maddock-Greene"" wrote in message news:a4.34.09584.e39ab...@pb1.pair.com... Yes .. thanks Stuart. If I comment out that line I now get a different p

[PHP] de-bug no input file specified

2008-12-19 Thread Gary Maddock-Greene
Hi, is it possible to de-bug a 'no input file specified' error. I get the error when trying to run my search script but do not know whats causing it. Is it a common error? PHP5 with MySQL adn IIS7 Thanks - Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] de-bug no input file specified

2008-12-19 Thread Gary Maddock-Greene
Search = "-1"; if (isset($_GET['product_name'])) { $colname_rsSearch = $_GET['product_name']; } mysql_select_db($database_MyDatabase, $MyDatabase); $query_rsSearch = sprintf("SELECT * FROM products WHERE product_name LIKE %s", GetSQLValueString("%"

Re: [PHP] de-bug no input file specified

2008-12-19 Thread Gary Maddock-Greene
due to the SCRIPT_FILENAME being incorrect. not the code in the script. On Fri, Dec 19, 2008 at 2:54 PM, Gary Maddock-Greene wrote: Hi Philip, Here is my code ... $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_rea

Re: [PHP] de-bug no input file specified

2008-12-19 Thread Gary Maddock-Greene
$theValue = ($theValue != "") ? $theDefinedValue : > $theNotDefinedValue; break; > } > return $theValue; > } > } > > $colname_rsSearch = "-1"; > if (isset($_GET['product_name'])) { > $colname_rsSearch = $_GET['product_name']; > } > mysql

Re: [PHP] de-bug no input file specified

2008-12-19 Thread Gary Maddock-Greene
the common reason nginx has a "no input file specified" - people ask about it all the time. On Fri, Dec 19, 2008 at 3:15 PM, Gary Maddock-Greene wrote: the code was generated by Dreamweaver CS3 .. its php! How do I check the SCRIPT_FILENAME please? "mike" wrote in mess

[PHP] Re: de-bug no input file specified

2008-12-20 Thread Gary Maddock-Greene
basic so I am not sure what I am looking for. That's always a problem with trying to find or understand a bug .. if you don't know what you should be looking at. How can I check the cgi .. and why could this be causing the problem? Many thanks guys - Gary "Nathan Rixham" w

[PHP] Repeat Region Error

2008-12-21 Thread Gary Maddock-Greene
arch, $sondia_lighting) or die(mysql_error()); $row_rsSearch = mysql_fetch_assoc($rsSearch); $totalRows_rsSearch = mysql_num_rows($rsSearch); ?> ... and the code in the page to generate my region is: ?> View Product If anyone can assist I would really appreciate it - Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Repeat Region Error

2008-12-21 Thread Gary Maddock-Greene
Sorry guys .. resolved it doh! I was freeing the recordset in -Gary ""Gary Maddock-Greene"" wrote in message news:5a.42.33998.4b83e...@pb1.pair.com... Hi All, I am getting the following error - Warning: mysql_fetch_assoc(): 3 is not a valid MySQL result resource

Re: [PHP] Image Resizing

2008-12-21 Thread Gary Maddock-Greene
nice post Tedd and useful web site :) -Gary "tedd" wrote in message news:p06240802c573f5a71...@[192.168.1.101]... At 12:38 PM -0800 12/20/08, Stephen Alistoun wrote: Hi all, What is the best way in PHP to Resize an Image to a specific width. For Example I have images in the

[PHP] eof bof in php

2008-12-21 Thread Gary Maddock-Greene
FROM products WHERE product_name LIKE %s", GetSQLValueString("%" . $colname_rsSearch . "%", "text")); $rsSearch = mysql_query($query_rsSearch, $sondia_lighting) or die(mysql_error()); $row_rsSearch = mysql_fetch_assoc($rsSearch); $totalRows_rsSearch = mysql_num_rows($

Re: [PHP] eof bof in php

2008-12-21 Thread Gary Maddock-Greene
Thanks Ashley ... I have been trying that but I think my syntax id shot!! Please click on a product for further information." ?> ?> View Product -- - Gary Maddock-Greene "

Re: [PHP] eof bof in php

2008-12-21 Thread Gary Maddock-Greene
-- - Gary Maddock-Greene "Ashley Sheridan" wrote in message news:1229875150.4229.9.ca...@localhost.localdomain... On Sun, 2008-12-21 at 15:40 +, Gary Maddock-Greene wrote: Thanks Ashley ... I have been trying that but I think my syntax id shot!! Please click on a product f

Re: [PHP] eof bof in php

2008-12-21 Thread Gary Maddock-Greene
ode into the above after the echo "Please click on a product for further information.". I can't get the syntax right ... I appreciate everyones help -- - Gary Maddock-Greene "Ashley Sheridan" wrote in message news:1229878234.4229.12.ca...@localhost.localdomain...

Re: [PHP] eof bof in php

2008-12-21 Thread Gary Maddock-Greene
I've corrected those errors thanks but how do I insert this code as the else statement? View Product -- - Gary Maddock-Greene ""Anthony Gentile""

Re: [PHP] eof bof in php

2008-12-21 Thread Gary Maddock-Greene
That's got it thanks Anthony. I love when you learn something. It was the back slash \ preceeding the "'s in my html that I wasn't aware of. Now I know they are needed if using "" in your code. Thank you so much for your help. -- - Gary Maddock-Greene "&

Re: [PHP] eof bof in php

2008-12-21 Thread Gary Maddock-Greene
thanks for the advice re html and php mashup!! I will research to find the way to do it outside the php. - Gary Maddock-Greene ""Anthony Gentile"" wrote in message news:2ce4207d0812211021g215d5346wb0afcedf039ef...@mail.gmail.com... Sorry no products were found"; }

Re: [PHP] eof bof in php

2008-12-21 Thread Gary Maddock-Greene
so back to the drawing board for me :) -- - Gary Maddock-Greene ""Gary Maddock-Greene"" wrote in message news:b4.82.23981.dee8e...@pb1.pair.com... thanks for the advice re html and php mashup!! I will research to find the way to do it outside the php. - Gary Maddock-Gr

Re: [PHP] eof bof in php

2008-12-21 Thread Gary Maddock-Greene
so back to the drawing board for me :) -- - Gary Maddock-Greene ""Gary Maddock-Greene"" wrote in message news:b4.82.23981.dee8e...@pb1.pair.com... thanks for the advice re html and php mashup!! I will research to find the way to do it outside the php. - Gary Maddock-Greene &q

[PHP] First record not diplaying

2008-12-22 Thread Gary Maddock-Greene
further information."; while ($row_rsSearch = mysql_fetch_assoc($rsSearch)){ echo " - Gary Maddock-Greene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First record not diplaying

2008-12-22 Thread Gary Maddock-Greene
ow_rsSearch['product_name']." ". $row_rsSearch['product_subtitle'] ." View Product "; } } ?> -- - Gary Maddock-Greene "Ashley Sheridan" wrote in message news:1229955502.3530.3.ca...@lo

Re: [PHP] First record not diplaying

2008-12-22 Thread Gary Maddock-Greene
I know you are so right Richard .. beleive me ... I wish I was year down the line so I knew how to get the html out of the php -- - Gary Maddock-Greene ""Richard Heyes"" wrote in message news:af8726440812220617l6c965cd0x6ae55f57fa96b...@mail.gmail.com... Also (and I kn

Re: [PHP] First record not diplaying

2008-12-22 Thread Gary Maddock-Greene
Very helpful thanks Wolf. fyi the web site you see was done by my son. This is a live project that I was just asking for help on ... a pointer perhaps. Too much to ask I guess -- - Gary Maddock-Greene "Wolf" wrote in message news:20081222141852.ovv8i.364383.r...@cdptpa

Re: [PHP] First record not diplaying

2008-12-22 Thread Gary Maddock-Greene
roducts WHERE product_name LIKE %s", GetSQLValueString("%" . $colname_rsSearch . "%", "text")); $rsSearch = mysql_query($query_rsSearch, $sondia_lighting) or die(mysql_error()); $row_rsSearch = mysql_fetch_assoc($rsSearch); $totalRows_rsSearch = mysql_num_rows(

Re: [PHP] First record not diplaying

2008-12-22 Thread Gary Maddock-Greene
very helpful thank you :) -- - Gary Maddock-Greene ""Sándor Tamás (HostWare Kft . )"" wrote in message news:dbb55d182b624f26be7f5125e592d...@stgepe... Yes, the error is here. You get the record count with a mysql_fetch_assoc(), which reads the first record, and then st

Re: [PHP] First record not diplaying

2008-12-22 Thread Gary Maddock-Greene
so the correct way to do this is remove the $row_rsSearch = mysql_fetch_assoc($rsSearch); from my recordset query code. Thank you SanTa -- - Gary Maddock-Greene ""Sándor Tamás (HostWare Kft . )"" wrote in message news:dbb55d182b624f26be7f5125e592d...@stgepe... Yes, the

Re: [PHP] Happy 1234567890 day!

2009-02-13 Thread Gary Maddock-Greene
Note quite there yet here but yes Happy 1234567890 day to you too -- - Gary Maddock-Greene "Luke Slater" wrote in message news:200902131812.43295.l...@blog-thing.com... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: non-auto increment question

2009-02-25 Thread Gary W. Smith
Not sure that this is the problem BUT you should probably qualify the name of the variable such that "SELECT MAX(id) AS id FROM book". But you don't want "max(id) as id" but rather "max(id) + 1 as id". With that you can then just return the final value. Also, if you don't want to alias the val

RE: [PHP] RE: non-auto increment question

2009-02-26 Thread Gary W. Smith
> Being rather new to all this, I understood from the MySql manual that > the auto_increment is to b e used immediately after an insertion not > intermittently. My application is for administrators (the site owner & > designates) to update the database from and administration directory, > accessed

[PHP] base32/62 mcrypted data

2005-02-14 Thread Gary C. New
unction. Does anyone know of a method or a sample piece of code that can achieve the desired effect? Thank you for your assistance. Respectfully, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread Gary C. New
fo() shows that there are a lot less $GLOBALS available under the http location than there are under the https location. I am using Apache 1.39 with Php 4.2.3. Your comments are greatly appreciated. Respectfully, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread Gary C. New
fo() shows that there are a lot less $GLOBALS available under the http location than there are under the https location. I am using Apache 1.39 with Php 4.2.3. Your comments are greatly appreciated. Respectfully, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread Gary C. New
It turns out that SCRIPT_URI is a mod_rewrite global. I simply had to turn the RewriteEngine On under the unencrypted (http) location and it worked perfectly. Thank you for the suggestions. Respectfully, Gary pete M wrote: try $_SERVER['SCRIPT_URI']; Gary C. New wrote: I am writing som

[PHP] PHP Post & forms

2006-04-13 Thread Gary E. Terry
Quite possibly a stupid question, but here goes. I have a form that is a list of jobs. On that list is a checkbox. The form field is named 'changedate'. I also have a hidden field called 'JobID'. What I am trying to accomplish is if a checkbox is checked, when the form is submitted, I want a

RE: [PHP] PHP Post & forms

2006-04-14 Thread Gary E. Terry
Sorry, should have posted lastnight.. Stephen Johnson helped out a lot, it's working great now. Thanks for the relpy though -Original Message- From: Joe Henry [mailto:[EMAIL PROTECTED] Sent: Friday, April 14, 2006 11:44 AM To: php-general@lists.php.net Cc: Stephen Johnson; G

Re: [PHP] Random number generator

2008-11-05 Thread Gary M. Josack
Stephen wrote: On a php web page I want to generate a random number between say 1 and 10 and then use that number to reference a particular file in an include tag. Is there an easy way to do this? Get the time and use the last digit converting 0 to 10. Stephen rand(1, 10); -- P

Re: [PHP] Random number generator

2008-11-05 Thread Gary M. Josack
WEISD wrote: Just starting out, thanks. So, I should have prefaced the question with, New to PHP... ""TG"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Here's how you generate a random number: http://us.php.net/manual/en/function.rand.php There are a number of things

[PHP] Include Remote Content as REMOTE_ADDR of Browser

2005-05-27 Thread Gary C. New
Is there a quick and dirty way to include, file, or fsockopen content from a remote server and make it appear as though the request was straight from the browser's remote address? Thank you for your assistance. Respectfully, Gary -- PHP General Mailing List (http://www.php.net

[PHP] Compiling Phpcap

2005-05-27 Thread Gary C. New
e show php-4.3.1 being used for installation. Is there a work around for configuring phpcap-0.2e with php-4.2.3? Thank you for your assistance. Respectfully, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Include Remote Content as REMOTE_ADDR of Browser

2005-05-27 Thread Gary C. New
Ryan Grange wrote: Gary C. New wrote: Is there a quick and dirty way to include, file, or fsockopen content from a remote server and make it appear as though the request was straight from the browser's remote address? Thank you for your assistance. Respectfully, Gary I believ

<    1   2   3   4   5   6