Ross,
Have you installed the MS SQL libraries. You need to install a client
install of the Microsoft SQL libraries on the machine that PHP is
installed. Generally, you can accommplish this by installing Enterprise
Manager on that machine or you can install the libraries manually.
-Flint
-O
Hello All,
I'm doing a little research. I need to pull some dynamic content off
some sites that don't offer XML data of RSS. So I can't go about it that
way.
I'm wondering, from a theoretical sense, it is possible to write a php
application that could log into site, supply the necessary post
info
Frank,
There's a lot to mention, you might want to look at PHP arithmetic operators for an
understanding between strings and integers at:
http://www.php.net/manual/en/language.operators.arithmetic.php
You might also want to review the function reference at:
http://www.php.net/manual/en/function
Dessie,
The deal is that the default microsoft libraries that are used as a part of the module
(the mssql module) doesn't support varchar beyond 255 chars. Although SQL Server does,
since the library doesn't, you're kinda screwed. You could use ADO. I know that the
person who works on the SQL s
I'm not sure, but I think you have to do this on line 19
echo "" . $list->foo . "other text";
-Flint
> -Original Message-
> From: P.Bijl [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 24, 2003 4:20 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Error, does anyone see anything wrong?
>
He There Rob,
I don't mean to sound short, but you could try the the install.txt manual that comes
with the PHP installation. It's in your PHP directly where you unzipped. I've also
attached it for you.
If you still have problems, let us know and I'm sure someone will be happy to help.
Good Lu
Davy,
Try using the modulus function to determine if you're in an odd row or an even row.
You can then apply the one row color for one row and another for another row.
http://www.php.net/manual/en/language.operators.arithmetic.php
You'll need to create your look so that it run per row instead
Does anyone know what the performance difference are for this method? What are the
downsides for this method.
Thanks,
-Flint
-Original Message-
From: David Redmond [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 8:31 PM
To: 'bmw'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re
gt;
> >> Also, you need to make sure that you have the ms_sql client
> >> libraries installed on the local machine where php resides. It needs
> >> these libraries to connect to SQL server.
> >
> > -Original Message-
> > From: Flint Doungchak [mailt
Bob,
>From what I understand, I don't understand it all that much, you need to make sure
>that the correct version of PHP runs with the correlated version of the module (for
>all modules not just mssql). When you download PHP from php.net (at least when you
>download the zipped version), the m
Brian,
We currently use the PDFlib that requires a license for commercial use. It shoulds
like you will also need to use the FDF function in PHP to fill forms. Both links to
the documentation do a good job of explaining and providing an explanation as to how
to impliment these feature in PHP.
Fellow PHPers,
We've been working on various dynamic PDF generation things and now, we want to take
things step further and place form fields in the PDF dynamically. Does anyone know if
we can actually do this? I know that once a PDF is created with form fields (such as
with Acrobat), we can p
Jan,
We have witnessed the same problem, even outside of frames, and no one has really been
able to tell us what the problem is. I have posted several notes and haven't seen
anything. We notice that it happens in MS-SQL environments and not in MySQL
environments. Can you confirm or deny thi
Hi Nicole,
You need to change the columns and alter the specifications (or at least
that is how I do it)
ALTER table table_name CHANGE column column_name create_definition
SO it would look like this
ALTER table balh chage column foo foo int(5)unsigned
I hope that helps.
-Flint
-Original
Hey There,
I wondering if anyone out there know if there are binaries of the 4.1.2
release that takes care of the multiple-part/form data security bug in PHP
4.1.0. Is this fixed in 4.1.1.
I didn't see any binaries on the php4win site either. I imagine the 4.1.0
and 4.1.1 patches are source code
Hey guys and gals,
I was wondering if any of you know of resouces that would help me plan for a
large deployment. I guess I need to know how much hardward I would need to
support x users per y time. How much PHP can take and how much SQL server
can take, etc. I've never really thought about stuff
Todd,
We're running the exact configuration you speak of and I can attest that
there are no problems with the module that Franks works on or with PHP. I'd
be happy to help, so if you could provide some details, that would help.
The first thing I would check is to make sure that the php_mssql.dll
Hey there Peter,
I think Microsoft comes as a part of SQL server a COM object where you send
English syntax and the application will return a SQL query. I think it's
called English Query tool or something like that. I don't know if there is
something similar for MySQL.
Sorry,
-Flint
-Origi
Andres,
There has been a thread with lots of information on this. Search for ISAPI
Status via Windows PHP Mailing List.
-Flint
-Original Message-
From: Andres Petralli [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 3:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] ISAPI an
Hey all,
First, I just wanted to thank everyone who has been a part of PHP. I think
that's everyone, but especially those that code. We're all very thankful.
I was just wanting to see what people are experiencing with the ISAPI module
for IIS 5.0 with PHP 4.1.0.
I have found it to be stable (o
Header("Location: newlocation.php");
-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 11:52 AM
To: Php-Windows (E-mail); Php-General (E-mail)
Subject: [PHP-WIN] Redirecting to a new php file
Hi All,
Is there any command in PHP that
I don't see a spot where the class is initiated anywhere such as.
$tpl = new classname;
Could this be the problem? Unless the class is saved as a session, this
might be the problem.
-Flint
-Original Message-
From: Chris Burwell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 200
Guitar Man,
I haven't been following this post too much, but I'll just quickly hit some
points that have messed with me in the past.
Make sure that PHP has the rights, IUSER_machine, to read and execute the
.ini file and the php4dts.dll. If it can't read those you're screwed.
Also, what ever ex
Have you set your SMTP server in the php.ini file?
What error message are you getting?
-Flint
-Original Message-
From: Carlos Alberto Uribe Cano [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 17, 2001 2:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Help on using mail() function
Guitar Man,
Are you getting the error intermittently or all the time? If the later,
please refer to the install.txt file that comes with the distribution. It's
almost always a permissions or setup problem.
-Flint
-Original Message-
From: Guitar Man [mailto:[EMAIL PROTECTED]]
Sent: Wedne
dows)
because this problem never used to happen. I'm trying to back track and see
where it was last stable.
Thanks everyone, and I hope this helps provide some insight to the problem.
-Flint
_____
Flint Doungchak, President
Net Solutions, LLC
840 Lawr
try www.php4win.de
-Flint
-Original Message-
From: Jeff Howard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 12:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Where to find php_mcrypt.dll?
Does anybody know where to find the php_mcrypt.dll file? It doesn't come
with the d
Darren,
At the risk of sounding a lot of Phill :p, you probably have a permission
problem somewhere. Take a look at the install.txt file available in the
PHP4.0.x directory. It's pretty helpful. I've included it just in case.
-Flint
-Original Message-
From: Darren [mailto:[EMAIL PROTECT
Angie,
Check you php.ini file. If the following line is set, then you get the
behavior you are talking if two conditions exist.
session.use_trans_sid = 1
1. Cookies are off or couldn't be set for some reason.
2. You have started a session of somekind somewhere.
-Flint
-Original Message---
Phill,
As far as I know, the version shipping with 4.0.6 and much earlier, as early
as 4.0.2 (I think), are built for SQL 7.0. Frank, is that true? You can
check CVS for the latest extensions.
-Flint
-Original Message-
From: Phillip Bow [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13
Jeff,
If you're using mssql, as I suppose you are, you need to use
mssql_fetch_array($result);
See the mssql functions on www.php.net. There are a lot of good beginning
there.
-Flint
-Original Message-
From: Jeff Howard [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 12:36 PM
No, they are supported on teh CGI version.
I don't know what you problem is now, but you just need to uncomment the
php_mssql.dll line in your php.ini file and make sure that you have the
extension. In addition, the MS SQL Client should be installed on the machine
in which PHP is running. It need
William,
It doesn't really mattter, but you could try something like:
C:\temp
assuming you have temp directory on c. Make sure inetuser_ has write
permissions to the directory you specify.
-Flint
-Original Message-
From: William E. T. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August
Dper,
You can't set and retrieve the cookie on the same page. Please see:
http://www.netscape.com/newsref/std/cookie_spec.html
for an explanation of the specification. You basically have to reload the
page before the cookie variable you set is avaiable. Try using sessions if
you can.
-Flint
-
Hey All,
I'm feeling pretty dumb right now. Is there a way to pass a variable from
one function to another. So for instance, if I have one function that
returns x such as
function boo() {
$foo = 3;
return $foo;
}
And then I have another function and I want to use $foo.
function ahh() {
7;re screwed here.
I'm hoping this will open a good discussion as to where the heck the Windows
PHP peopo kan lern two spel. :p
-Flint
_____
Flint Doungchak, President
Net Solutions, LLC
840 Lawrence Street
Eugene, OR 97401
[EMAIL PROTECTED]
Voice +1
Hey Schmuck,
Just kidding. Bet you haven't heard that one before. LOL. :p
Try http://www.php.net/links.php there's a whole list of resources for
tutorials and code examples there. The PHP FAQ also has some comparison
between perl and asp, etc. That's at http://www.php.net/FAQ.php
-Flint
-O
Ben,
When you receive it, try using the nl2br function in PHP. See the manual.
-Flint
-Original Message-
From: Ben Gillam [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 8:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Get the contents of the textarea "as is"
For example, if
Ziggi,
Even if you get it to work, which is hard, the module isn't stable anyhow
which might explain the behavior you are experiencing. The ISAPI module is
not stable on Windows.
-Flint
-Original Message-
From: Ziggi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 8:47 AM
To: [
Well PHPFAN,
I think we're all fans, but what the heck.
I'm using the same configuration you are. Are you using PHP in CGI mode or
ISAPI mode. It doesn't like ISAPI so don't use it. I had similar problems
with ISAPI.
Also, I think the fdf module that shipped with 4.0.5 might be kind of funny
so
I think the GD and Ming extensions work fine in windows but it doesn't come
with the release you find at PHP. Try www.php4win.de. Last time I checked
CVS, ming was still being maintained and GD is definately being maintained.
-Flint
-Original Message-
From: dstern [mailto:[EMAIL PROTECTE
Tim,
Unfortunately, the ISAPI module just isn't stable on this platform. Sorry.
-Flint
-Original Message-
From: Tim Uckun [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] ISAPI
Has anybody ever successfully ran PHP as an ISAP
Shawn,
You php.ini file should have something like:
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored.
session.save_path = C:\temp
where C:\temp exists and I_USER_machinename has read/write permissions. It
looks like you may have defined th
the length of the string is 20.
- If I add trim($row[0]) I get the length of 4 (which is what i want).
Any thoughts?
-Flint
-Original Message-
From: Frank M. Kromann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 9:56 PM
To: Flint Doungchak
Cc: [EMAIL PROTECTED]
Subject:
Frank,
Here's some additional info. The following code snippet does the following:
-Original Message-
From: Frank M. Kromann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 9:56 PM
To: Flint Doungchak
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Required to Trim Variables
Hi all,
I've got a rather iritating problem. I recently moved a site from PHP 3.0.11
to 4.0.5 RC1. It seems, and I have noticed this for a while in other
scripts, that variables returned from MSSQL sometimes need to be trimmed
with trim() in order to function correctly.
Sometimes they won't eva
In your defense, cookies are pretty stubborn, so don't feel bad. What
exactly is your problem so we can find out how to help you.
-Flint
-Original Message-
From: r.gelstharp [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 3:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] trouble
Hey Arthur,
Make sure that in your php.ini file that the save path is defined to
someplace that exists and PHP has permissions to write to. I suspect that
the c:/temp folder that is the default for php.ini file doesn't exist. You
likely have a folder such as c:\temp. You can try that or any other
Kevin,
If you are using 4.0.4pl1 or recent version (4.0.x) of PHP, there is a
php.ini directive for MSSQL, for you to set this.
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textlimit = 4096
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textsize = 4096
Uncomment and set the dir
Oifik,
http://www.php.net/manual/en/ref.imap.php
You'll want to look at the URL above and check out the imap functions. You
can activate the imap functions by uncommenting the imap functions in your
php.ini file. I think the php_imap.dll is included in the 4.04pl1 release.
If not, go to
http:/
Aaron,
>From what I understand, the ISAPI filter still isn't all that great. I have
had very poor experience with it and still use the CGI version with no
problems.
-Flint
-Original Message-
From: aaron [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 10:27 AM
To: [EMAIL PROTECTE
Hi Hugo,
Depending on what version of PHP you are using and what version of the MSSQL
module you are using, you can edit the following lines in the php.ini file
to retrieve longer text fields.
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textlimit = 4096
; Valid range 0 - 2147483647.
Danielle,
Please look at PHP bug number #10139 for more information. You can also
search the dev-list under fdf for mor information on the problem.
-Flint
-Original Message-
From: Daniel Beulshausen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 1:34 PM
To: Flint Doungchak
Ryan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 12:44 PM
To: Flint Doungchak
Subject: RE: [PHP-WIN] FDF and FDFtk on PHP 4.0.5RC1
How are you supposed to setup php with the FDF toolkit
Ryan Conover
-Original Message-
From: Flint Doungchak [mailto:[EMAIL PROTECTED]]
Sent: Sunday,
#x27;t know where to go from here. Could
someone give me some hints as to why this is occuring. I would really like
to use some of the great new session manangement feature available in 4.0.5.
Thanks in advance.
-Flint
_____
Flint Doungchak, President
Net S
Randall,
I'm not sure on this so I may need some correction, in theory, you should be
able to put two addrees in the first argument, but I have never gotten it to
work. But try this. I might be wrong on the syntax.
mail("[EMAIL PROTECTED]","Subject: I'm an idiot","Message body
here","From:[EMAIL
:41 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Error in CGI Application in IIS
I had the same problem but this did not work , could you pleas send me (or
the newsgroup) llist of "tricks" you have for this problem
almir
"Flint Doungchak" <[EMAIL PROTECTED]> sch
James,
I don't know if this applies to you, but I recently had the same problem. I
assume you are using the CGI version.
When you define the mime mapping in IIS, there is a checkbox that says:
"Check for File Exists"
If you do not have this checked and the file is non-existant, you will get
th
Yasuo,
>From what I understand, the ISAPI module is still not ready for production
release. This is true of the PHP 4.01pl1 on IIS4 on NT 4.0. That's my
experience as I am still running the CGI version on my box. Others may have
more comments.
-Flint
-Original Message-
From: Yasuo Ohgaki
Toby,
Yes, the client is requires because the MSSQL module uses some libraries
from the client to function. I don't know which one. If Frank see this, he
might be able to give you some detailed insight. I just know it has to be
installed.
-Flint
-Original Message-
From: Toby Miller [mai
Ben,
Check out the date function in the php documentation. There's a lot of
formatting option there.
Go to php.net and type date in the quick ref field.
-Flint
-Original Message-
From: Ben Cairns [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 2:00 PM
To: [EMAIL PROTECTED
Hi,
I ended up using the setting the use_sybase_quotes in the php.ini file to
handle this problem.
-Flint
-Original Message-
From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 12:32 AM
To: [EMAIL PROTECTED]; Mike Flynn
Subject: Re: [PHP-WIN] How to c
lint
-Original Message-
From: Toby Butzon [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 7:29 PM
To: Flint Doungchak; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] String Replacement
Seems to me that you've got what you want...
If I'm reading you right, you want to keep pl
Hello all,
Hope you all had a nice weekend. Simple question, I think.
I would like to find all occurance of:
boy or boys
and replace it with:
girl or girls
respectively.
My problem is that using the str_replace function like this:
str_replace("boy","girl","$string");
turns boys into girls
correctly inside the browser?
Thanks
Patrick Shafer
[EMAIL PROTECTED]
_
Flint Doungchak, President
Net Solutions, LLC
840 Lawrence Street
Eugene, OR 97401
[EMAIL PROTECTED]
Voice +1 541 345-7087
Fax +1 541 485-5519
http://www.netsolutionsllc.com
Hi All,
Although there are no stupid questions, I have one. Can anyone explain why
pages exipre in IE 5.5? For instance, when I click a submit button and then
click back, say so people can edit the dang form, the message of Warning:
page expired thingy comes up.
Is there a way to keep that from
66 matches
Mail list logo