[PHP-WIN] PHP4 and DST Changes

2007-03-12 Thread James Crow
0 (i.e. not running in DST). Under Linux it returns 1. Is PHP4/Windows broken regarding the recent DST changes? Thanks, James -- James Crow -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] post thru fsockopen

2007-04-17 Thread James Crow
'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://example.com/subm

[PHP-WIN] Error With fsocketopen() Call

2007-05-09 Thread James Crow
print "socket opened"; } // End test code When I run the code above, this is the output: Bad file descriptor (9) Can anyone tell me what this error means? The server is provided by my ISP so I have no control over it. Thanks, James -- James Crow IT Manager ULTRATAN, Inc. 15 S

Re: [PHP-WIN] Query Syntax - WHERE fieldname1='fieldvalue1' AND fieldname2='fieldvalue2'

2007-05-22 Thread James Crow
Often the error in the SQL statement is just before the part echoed in the error message. Check your $field_name to see if it has any special characters or a semicolon in it. Maybe something like: or this: echo "\$query = $query\n"; Thanks, James On Tuesday 22 May 2007 11:07, Mark Abra

Re: [PHP-WIN] Re: W2003-IIS6 ignore safe_mode=0

2007-11-26 Thread James Crow
On Fri, 2007-11-23 at 12:36 +0100, Joaquín wrote: > Hello again. > > I have read that cmd.exe is involved > Now I have given privileges to IUSR_xxx on cmd.exe too and the return > value is 1. > > Before that, when ISR_xxx had only privileges on example.bat the return > value was -1. > > Does

[PHP-WIN] Errors with urlencode and gzcompress

2007-12-04 Thread James Crow
Hello all, I am having some trouble figuring out how to pass data to a remote PHP script. Here is the scenario: I have several Windows boxes running Apache 2 and PHP 4. PHP5 is not an option because of some Zend Encoded scripts that we purchased. I need to pass data from one script to a remot

RE: [PHP-WIN] Errors with urlencode and gzcompress

2007-12-04 Thread James Crow
Curl is an option, but I would rather not add an extension to 100 remote servers if possible. I was hoping to find a PHP native way. Thanks, James On Tue, 2007-12-04 at 13:29 -0600, Bill Bolte wrote: > Use Curl and pass XML... > > -Original Message- > From: James Crow [m

Re: [PHP-WIN] Errors with urlencode and gzcompress

2007-12-06 Thread James Crow
($headers === FALSE || strlen ($headers) < 1) { return "FAIL could not read response content: $content"; } fclose($fp); //$return = array('headers' => $headers, 'content' => $content); $return = $content; return $return; }

Re: [PHP-WIN] Can't get MySQL extensions to load

2007-12-10 Thread James Crow
Run phpinfo again and see if the mysql extension shows as loaded. You should see a section in the output from phpinfo about mysql. If you do not see that section than the mysql extension is not loaded. If the mysql extension shows that it is loading then it may be something with the mysql server.

Re: [PHP-WIN] Ok, next step/question

2008-01-11 Thread James Crow
Jacob, You must issue a session_start() prior to outputting any code to the browser for sessions to work. There are tons of different ways to configure things, but session_start() as the first thing in the script should get you started. Here is a basic example: index.php: ##

Re: [PHP-WIN] Ok, next step/question

2008-01-11 Thread James Crow
fine. > > > > Stay well > > > > Jacob Kruger > > Blind Biker > > Skype: BlindZA > > '...Fate had broken his body, but not his spirit...' > > > > - Original Message - > > From: "James Crow" < > > [EMA

Re: [PHP-WIN] If Question!

2008-05-21 Thread James Crow
Matt, Since I am using a plain text mail reader I do not see any section highlighted in red. I will however comment on the section I think you are referring to. :) This section: if (isset($_GET['try'])) May not work correctly. If the request was something like http://127.0.0.1/test.php?try=

Re: [PHP-WIN] Error Question!

2008-05-23 Thread James Crow
Matt, You may want to watch out for is sql injection attacks. Just to be on the safe side consider something like: $projects = "select name, type, location, date_added from uploads where user_id = '" . mysql_real_escape_string($_SESSION['user_id'], $conn) . "'"; The reason for the error is $pro

Re: [PHP-WIN] ini_set Problem

2008-08-22 Thread James Crow
On Fri, 2008-08-22 at 13:50 +0530, p4pravin wrote: > Hello all, > > I want to upload around 10 mb file size > > and i am using windows server > > > > i write the following code > > > > ini_set("memory_limit","25M"); > > ini_set("post_max_size","50M"); > > ini_set("upload_max_filesiz

Re: [PHP-WIN] Why is the $todaydatestring data type displayed as Boolean?

2008-09-11 Thread James Crow
On Thu, 2008-09-11 at 18:53 +0530, Varuna Seneviratna wrote: > Why is the $todaydatestring data type displayed as Boolean? > > $todaydate=11092008; > echo "The data type of todaydate is > ".gettype($todaydate).""; > $mydatestring=settype($todaydate,"String"); >

Re: [PHP-WIN] there must be better way to handle "Null" undefined variables

2008-12-08 Thread James Crow
On Mon, 2008-12-08 at 10:24 -0800, Fred Silsbee wrote: > if you read my original post you'd see that I already know this! > > I even inserted code to fix the problem. The problem is that the > > values of the variable THE FIRST TIME are undefined as shown by the code I > > inserted. > > I fixe

Re: [PHP-WIN] Simply not working

2009-01-14 Thread James Crow
Sounds like you are missing the apache httpd.conf directives for php. Here is snippet from my httpd.conf file: ## # PHP Section ## #LoadModule php4_module "c:/php/php4apache2.dll" LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php AddType application/x-httpd-php .

RE: [PHP-WIN] Simply not working

2009-01-14 Thread James Crow
east as > far as Postgres is concerned. > > Luckily at this point I don't need the Postgres nor Oracle functionality so > will worry about that another day. > > Thanks > > Edward W. Rouse > > > -Original Message- > From: James Crow [mailto:ja...@ultrat

RE: [PHP-WIN] Simply not working

2009-01-15 Thread James Crow
Module php5apache2.dll ? > Shouldn't you use php5apache2_2.dll for Apache 2.2.x ? > > Mario > > -Original Message- > From: James Crow [mailto:ja...@ultratans.com] > Sent: Wednesday, January 14, 2009 7:34 PM > To: Edward W. Rouse > Cc: php-windows@lists.php.n

Re: [PHP-WIN] Math Operator Problem?

2009-02-09 Thread James Crow
On Mon, 2009-02-09 at 07:32 -0500, Alice Wei wrote: > Hi, > > I have a snippet of code as follows: > > while (!feof($fh2)) { > > $total_time=0; > $lines= fgets($fh2); > $count= strlen($lines); >if ($count == 0) { > //There are no lines > } > else { > > $total

Re: FW: [PHP-WIN] Math Operator Problem?

2009-02-09 Thread James Crow
On Mon, 2009-02-09 at 11:26 -0500, Alice Wei wrote: > > > while (!feof($fh2)) { > > > > > > $total_time=0; > > > $lines= fgets($fh2); > > > $count= strlen($lines); > > > if ($count == 0) { > > > //There are no lines > > > } > > > else { > > > > > > $total_time += $lines; > > > > > > } > > > }

Re: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread James Crow
om/taxa/viewallorders.php > > The files used are viewallorders.php and the response page of > showorder.php. I will add these as attachments. > > What *will* work? Hope someone can help. > > Bill Mudry > MIssissauga, ON > -- PHP Windows Mailing List (http://www.php

RE: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread James Crow
> > Z > > -Original Message----- > From: James Crow [mailto:ja...@ultratans.com] > Sent: Tuesday, March 17, 2009 11:59 AM > To: Bill Mudry > Cc: php-windows@lists.php.net > Subject: Re: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter > to next pag

Re: [PHP-WIN] Where to put class files?

2009-03-26 Thread James Crow
John Hughes wrote: I want to use PHP for command line scripting on Windows. Where would be the best place to put a class file so that it does not have to be in the same directory as every file that uses it? Check your php.ini for its include_path directive. You can create a new directory on

Re: [PHP-WIN] Need help updating a whole column in one table from another table

2009-04-15 Thread James Crow
Bill Mudry wrote: The following SQL query UPDATE species2 AS s LEFT JOIN sci_genera AS sg ON (sg.genus_name = LEFT(s.species_name, LOCATE(' ', s.species_name) - 1)) SET s.generalID = sg.generalID; alters the contents of species2 to become ID species_name 1 Quercus rubra 2 Dalbergia

Re: [PHP-WIN] First PHP program not working

2009-04-29 Thread James Crow
Vinay Nagrik wrote: Hello Group, I am beginner to learning PHP and I am still struggling to start my first php program. I downloaded apache httpd sever, which resides on "Windows XP" under C:\Program Files\Apache Software Foundation\Apache2.2 and directories therein. Similarly the PHP downlo

Re: [PHP-WIN] How to access MySQL through PHP in windows 2K.

2009-04-29 Thread James Crow
extension_dir. In my php.ini the line looks like this: extension_dir = "c:\php\ext". Make sure the php_mysqli.dll file is in the directory listed in extension_dir. Thanks, James -- James Crow IT Manager ULTRATAN, Inc -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] First PHP program not working

2009-04-29 Thread James Crow
y are they important, and why no liteature mentions about them. Any help will be appreciated. nagrik. On Wed, Apr 29, 2009 at 4:32 AM, James Crow wrote: -- Thanks Nagrik favicon.ico http://en.wikipedia.org/wiki/Favicon.ico crossdomain.xml http://en.wikipedia.org/

Re: [PHP-WIN] First PHP program not working

2009-04-29 Thread James Crow
encountered the same problem. Please help. nagrik. On Wed, Apr 29, 2009 at 8:29 AM, James Crow wrote: -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] printing on IIS7

2009-05-05 Thread James Crow
Paul, I had a smiliar problem once where I had changed the amount of memory from 16M to 256 (note the missing M). Check your memory setting in php.ini. 262144 seems like 256K. I think that may be the default minimum amount of memory for a script. On my Linux systems there is a different ph

Re: [PHP-WIN] Looking for code for an alphabetic menu in php

2009-05-22 Thread James Crow
Bill Mudry wrote: With the botanical wood tree that I have been working on, the number of records for genera and for species can get quite large and unwieldy. Presently I have over 6,000 species records that takes a while to load let alone try to browse through. I need to chop this up into qu

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-22 Thread James Crow
On 04/14/2010 08:48 PM, Jacob Kruger wrote: Thanks. Will be honest, and while have played around with PHP etc., have never really done much with it in terms of going into production as such anyway, so, yes, will need to learn/figure out how to do things the best way, etc. Stay well Jacob K

[PHP-WIN] serialize/unserialize and 32/64 bit integers

2010-05-03 Thread James Crow
Hello, I am having a problem with unserializing integers with Windows XP/PHP 5.2.11. The serialization takes place on a Linux x86_64 host. The values then gets passed to the Windows machine that is 32 bit. I think the problem is 32/64 bit related. If I serialize a number say 261234 on 3

Re: [PHP-WIN] Getting rid of bugs I never thought I would have

2010-06-28 Thread James Crow
On 06/24/2010 09:16 PM, Bill Mudry wrote: Overall, I am happy with the progress on my pet TAXA project but the journey is proving to be like riding over a rocky road. The most recent effort at a functional addition has been a form to let users decide whether 2 of three types of data will show (

[PHP-WIN] PHP 5.3 SoapClient Stripping HTML special characters

2011-08-19 Thread James Crow
Hi all, I am using the SOAP client to retrieve data from a web server. One field in the returned object is a text string that may contain embedded carriage returns. If I look at the raw packets they appear as ' ' in the string. When I get the string in the SoapClient the carriage return has been s

Re: [PHP-WIN] PHP 5.3 SoapClient Stripping HTML special characters

2011-08-19 Thread James Crow
On Fri, 19 Aug 2011 16:33:43 +0100, Richard Quadling wrote: > On 19 August 2011 16:16, James Crow wrote: >> Hi all, >> >> I am using the SOAP client to retrieve data from a web server. One field >> in the returned object is a text string that may contain embedded &

Re: [PHP-WIN] PHP 5.3 SoapClient Stripping HTML special characters

2011-08-19 Thread James Crow
On Fri, 19 Aug 2011 17:30:27 +0100, Richard Quadling wrote: > On 19 August 2011 17:13, James Crow wrote: >> On Fri, 19 Aug 2011 16:33:43 +0100, Richard Quadling >> >> wrote: >>> On 19 August 2011 16:16, James Crow wrote: >>>> Hi all, >>>> &

Re: [PHP-WIN] PHP 5.3 SoapClient Stripping HTML special characters

2011-08-19 Thread James Crow
On Fri, 19 Aug 2011 21:12:21 +0100, Richard Quadling wrote: > On 19 August 2011 19:28, James Crow wrote: >> On Fri, 19 Aug 2011 17:30:27 +0100, Richard Quadling >> >> wrote: >>> On 19 August 2011 17:13, James Crow wrote: >>>> On Fri, 19