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
'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
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
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
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
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
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
($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;
}
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.
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:
##
fine.
> >
> > Stay well
> >
> > Jacob Kruger
> > Blind Biker
> > Skype: BlindZA
> > '...Fate had broken his body, but not his spirit...'
> >
> > - Original Message -
> > From: "James Crow" <
> > [EMA
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=
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
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
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");
>
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
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 .
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
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
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
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;
> > >
> > > }
> > > }
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
>
> 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
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
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
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
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
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/
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
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
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
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
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
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 (
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
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
&
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,
>>>>
&
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
38 matches
Mail list logo