2009/8/28 Sanjeev Kumar :
> Hello,
> I need to write PHP-PDO database-driver for a new database.
>
> The clarification I need:
> 1) Should I take the PHP-source on Windows-vista platform and build natively
> the DLL for win.
> Will the VisualStudio compile with all PHP-main src & the extension
>
6:25 PM
To: Gustav Wiberg; php-windows@lists.php.net
Subject: RE: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the name
of the user logged on to 'my' https:// site
Gustav,
*Works like a charm! Much appreciated... SO CLEAN AND SIMPLE!*
If you or anyone feels so inclined:
Greg Cocks wrote:
Gustav,
*Works like a charm! Much appreciated... SO CLEAN AND SIMPLE!*
If you or anyone feels so inclined:
$logged = $_SERVER["AUTH_USER"];
print $logged."";
list($logged_on_userdomain,$logged_on_username) = split("\\",$logged);
print $logged_on_username."";
It prin
G COCKS
gcocks|at|stoller.com
-Original Message-
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 20, 2008 12:20 AM
To: Greg Cocks; 'php-windows@lists.php.net'
Subject: RE: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the name
of the user l
ssage-
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 19, 2008 11:20 PM
To: 'Greg Cocks'; 'php-windows@lists.php.net'
Subject: RE: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the
name of the user logged on to 'my' https:// site
Hi!
Hi!
It depends on version of PHP, but try with...
$username = $_SERVER["AUTH_USER"]
$username = $_SERVER["PHP_AUTH_USER"]
Se more in the server-varriables:
http://se2.php.net/reserved.variables
Best regards
/Gustav Wiberg
-Original Message-
From: Greg Cocks [mailto:[EMAIL PROTECTED
Can't remember too much/clearly, but doesn't that login credential info get
stored in some or other cookie?
HTH
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
- Original Message -
From: "Greg Cocks" <[EMAIL PROTECTED]>
To:
Sent: Wednesda
Thank you very much, it works.
Andre.
--
On Monday, December 10, 2007 9:41 AM, John Mertic [EMAIL PROTECTED] wrote:
Try not enabling every single extension in the installer, instead enable
only the extensions you need.
You can go into Add/Remove Programs and make these changes as well.
J
Try not enabling every single extension in the installer, instead enable
only the extensions you need.
You can go into Add/Remove Programs and make these changes as well.
John
On Dec 9, 2007 12:29 AM, Andre Junianto <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> I'm newbie.
> Install php-5.2.5-win3
one way to troubleshoot your problem is to run the simplest
mail script (w/o From, etc. headers) and invoke it by
commandline or over the web.
if you still can't send emails, try replacing the SMTP domain
name with an IP address. if the problem still persist, check
your connection to the SMTP ser
wrote:
dont mean to be padantic, but 5.7 is not an integer :p
lol
-Original Message-
From: graeme <[EMAIL PROTECTED]>
To: Louis Young <[EMAIL PROTECTED]>
Date: Mon, 17 Jan 2005 13:47:49 +0600
Subject: Re: [PHP-WIN] Newbie question: convert string to int
If you are holding a s
On Mon, 17 Jan 2005, Louis Young wrote:
> What's the function to convert a string to an int.
echo (int) "123abc";
-Rasmus
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you are holding a string with a valid number in it e.g. "5.7" then
the conversion is done automatically. See the manual section Language
Reference / Types / Strings / String conversion to numbers. If you are
holding a string with the number in words e.g. "Five" then you'll need
to write your
On Wed, 15 Dec 2004 10:23:29 -0800 (PST)
Patrick Roane <[EMAIL PROTECTED]> wrote:
> I am trying some excercises in a book and one of the
> excercises says to:
>
> Assign values to two variables. Use comparison
> operators to test whether the first value is:
>
> 1. the same as the second
>
> 2.
Patrick Roane wrote:
I am trying some excercises in a book and one of the
excercises says to:
Assign values to two variables. Use comparison
operators to test whether the first value is:
1. the same as the second
2. less than the second
3. Print the result of each test to the browser.
My question i
Put your PHP directory into your 'PATH' variable in environment
variables, or try copying the php_mysql.dll file into your windows
directory. Cheers.
Armando
Mike Francis wrote:
Hi,
I am running PHP 5, MySQL 4.1 and Apache 2.0 on an XP Pro Box. I would like
MySQL to serve HTTP pages via PHP.
Af
When you click "submit" on a POST method form, it'll go to whatever file
is specified in the "action=" part of the FORM and send the POST data to
it for processing. PHP scripts are executed when called, they're never
"already running" although you could probably have a case where you
could (and mi
Hi chuck,
As far as the "Notices" are concerned you can disable it from php.ini configuration
file.
Regards,
SuDeEp
Chuck <[EMAIL PROTECTED]> wrote:
Hello everyone. Hopefully someone can help me with this.
I was able to install PHP successfully. I tried a sample script and it
worked fine thr
James Thomas (Newbie) wrote:
Have spent the best part of twoo days trying to get PHP 4.3.4 to work on
Apache 1.3.29.
I have followed various different installs.
Basically I have a test page in htdocs called test.php
If i call http://localhost/test.php i get a 404 file not found.
Is this consist
-Original Message-
From: Luis Moreira
To: Svensson, B.A.T. (HKG); ''William Fisher ' '
Cc: [EMAIL PROTECTED]
Sent: 2003-03-11 15:42
Subject: Re: [PHP-WIN] Newbie attempting file open...
What for ?
The option "r" stans for "read".
If what William is doing
ra
To: Svensson, B.A.T. (HKG); ''William Fisher ' '
Cc: [EMAIL PROTECTED]
Sent: 2003-03-11 15:42
Subject: Re: [PHP-WIN] Newbie attempting file open...
What for ?
The option "r" stans for "read".
If what William is doing is try to read a file, and then create
27;William Fisher ' '"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 2:00 PM
Subject: RE: [PHP-WIN] Newbie attempting file open...
> Luis, read the code once again....
>
> -Original Message-
> From: Luis Moreira
> To:
Luis, read the code once again
-Original Message-
From: Luis Moreira
To: 'William Fisher '
Cc: [EMAIL PROTECTED]
Sent: 2003-03-11 12:03
Subject: Re: [PHP-WIN] Newbie attempting file open...
No need.
It's the other way around, actually.
The option that creates if the th
er '" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 9:15 AM
Subject: RE: [PHP-WIN] Newbie attempting file open...
> You may want to try something like this:
>
> $fp = @fopen(,"r");
>
> if ($fp)
> {
> print"An old file
You may want to try something like this:
$fp = @fopen(,"r");
if ($fp)
{
print"An old file was opened!";
} else {
$fp = @fopen(,"w");
fclose($fp);
$fp = @fopen(,"r");
print"New file was created!";
}
-Original Message-
From: William Fisher
To: [EMAIL PROTECTED]
Sent: 2003-03-10
http://www.php.net/manual/en/function.fopen.php
-Original Message-
From: William Fisher
To: [EMAIL PROTECTED]
Sent: 2003-03-10 19:54
Subject: [PHP-WIN] Newbie attempting file open...
The Question: It is my understanding that fopen() using the "r" option
will either open the indicated fi
Edward
This is client-side stuff - i.e. JavaScript... PHP is server side.
Rich
> -Original Message-
> From: Edward David [mailto:[EMAIL PROTECTED]
> Sent: 26 February 2003 11:52
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] newbie: hidding form data
>
>
> Hi,
>
> I am trying to create a
tensions' directory to <8
character (DOS compliant) name like 'exten' & see if it works?
regds,
-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 23:13
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] newbie: installing p
Try "C:\php4\extensions"
i.e. add the dbl quotation marks.
Cheers
Mike
> "Anthony Ritter"
> Rich,
> On MS Win 98 / Apache / PHP 4
>
> If somebody out there using Win can check my php.ini file and advise me
what
> I'm doing wrong.
>
> I have uncommented:
> ..
> extension=php_gd.dll
>
Rich,
On MS Win 98 / Apache / PHP 4
If somebody out there using Win can check my php.ini file and advise me what
I'm doing wrong.
I have uncommented:
..
extension=php_gd.dll
..
and have included:
..
extension_dir = C:\php4\extensions
...
Does it work if you have it like this...
extension_dir = C:/php4/extensions
Rich
> -Original Message-
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]
> Sent: 26 February 2003 16:58
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] newbie: installing php_gd
>
>
In my php.ini file, this is what it looks like:
..
extension_dir = C:\php4\extensions\; directory in which the loadable
extensions (modules) reside
extension=php_gd.dll
...
Thank you,
TR
--
PHP Windows Mailing List (http://www.php.net/)
To
Tony
Is the php.ini directive extensions_dir set correctly?
Rich
> Using MS Win 98 / PHP 4 and Apache.
>
> I tried running the following script but got an undefined call to:
>
> ImageCreate()
>
> The following copy is located in my php.ini file...one of which is:
>
> ..
> ;extens
>From php.net ():
http://www.php.net/manual/en/function.session-is-registered.php
Note: If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is
used, use isset() to check a variable is registered in $_SESSION
The code that should work:
(You may not need to add SID to your link, depending on
I haven't tried it, but can't you call it with the
parent::superclassConstructor()?
HTH,
Mikey
> -Original Message-
> From: Leonardo Javier Belén [mailto:[EMAIL PROTECTED]]
> Sent: 07 February 2003 20:02
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Newbie: How to initialize a superclass
Sorry for the late reply - the MsSQL worm of late knocked out my email :(
So, your PHP server is offsite. What kind of access to this machine do you
have? Is it simply FTP/HTTP? If so, your options will be limited.
If you don't have access to PHP.INI, you could use the ini_set() command:
ini_set
is there a way to debug on a remote server?
"Dash McElroy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Alex,
>
> You have to point it at your ISP's SMTP server (assuming this is for
> home). Check your mail program for your SMTP server. Sendmail is a unix
>
Alex,
You have to point it at your ISP's SMTP server (assuming this is for
home). Check your mail program for your SMTP server. Sendmail is a unix
thing, although there are similar programs available for Windows, your
best bet is to use an existing server. Mail from unknown sources is likely
to be
Warren,
that was it! I wasn't envoking the form from the 'local host'. Instead I was browsing
the c drive. Now I can see the text w/in the php echo tag.
Thanks again for the help guys-
Patrick
"forget your lust for the rich man's gold. All that you need, is in your soul. Yo
details on how to configure apache on win32...
Rich
-Original Message-
From: paradiddles [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2003 12:31
To: Rich Gray
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] newbie form question..
Rich,
thanks for your response. I've tried using the
One rather key question, are you invoking your form through your web server?
or are you accessing the file directly?
One way to access the file directly (which you don't want to do) is to use a
file reference to browse and find the file on your C: drive.
You should be accessing the first file thr
Rich,
thanks for your response. I've tried using the
you are not echoing a variable so register_globals set to On will have no
effect in this case (I would switch it back Off as it will be more secure
and you should get used to coding that way)... Do you see any errors in the
server log? Does it work if you use mailto:[EMAIL PROTECTED]]
Sent: 24 Janu
I doubt that it's a globals problem since it doesn't look like you're even
checking any php variables.
Perhaps try http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -Original Message-
> From: par
So what is wrong with this code :
This is page 1 :
$MyFrett = new cFrett;
$_SESSION['cFrett'] = $MyFrett;
this is another page that is trying to use the class instance :
NewNews();
}
?>
thanx
Palli
"Luis Ferro" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED].
Yes, it is, but prior to accessing the stored value you will have to
include the class file, otherwise, php will not know what object that
thing in the session is...
LF
Palli wrote:
Hello
I´m wondering how I keep class instance alive between pages. Is it possible
to store it in Session and w
Jim,
thanks for the response. Well- I think your right! I created index.htm and saved it to
my htdocs dir.
I get the "file not found" when I try and bring it up. To answer your question ... I
have:
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/"
typed into my httpd.conf file jus
Sorry,
In reference to my last question, I did type correctly and it still
gives me
the "file not found" error.
pr
"you can observe a lot by watching"
~ Yogi Berra
-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Try:
and you should have much better success. phpinfo is a function so you must
include the parens for it to work properly.
Jim
---Original Message---
From: paradiddles
Date: Tuesday, January 07, 2003 10:59:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] [newbie] What d
Open up your httpd.conf file and search for:
DocumentRoot
You need to change the setting so it points to the same directory as where
your webpage is stored. In my case, I store my files in 'C:/Documents and
Settings/Stephen/My Documents/Web Pages/', so I setting the Document Root
to:
DocumentRoot
Robert, Did you add this "php4apache2.dll" to the config file in some way? If so, how
should I add it? thanks- pr
"you can observe a lot by watching"
~ Yogi Berra
-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
I just had the same problem the other day. and if I
remember right I used the php4apache2.dll file. It
worked just fine after that. I also did not have to
include the AddModule line.
hope this helps,
Robert Fisher
Axis Solutions, Inc.
__
Do you
Did you copy the php4ts.dll file to c:\winnt\system32 (or windows or
whatever your w2k dir is)?
If that doesn't do the trick, you may have to do an 'AddModule mod_php4' in
the Apache config. I had to do this on a Win98 machine yesterday, but have
so far not had to load that line on any Win2k machi
Just follow something along these lines:
- Original Message -
From: "Jerry" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 1:57 PM
Subject: [PHP-WIN] Newbie Form Question
> Hi All,
>
> I was playing around creating a simple Form for testing simple
subtracti
Put a hidden field in your form:
..
Then at the top of you page put something like:
So now the form will have to be submitted before the calculations are
done. Thought I am sure there are other ways.
___
Sterling Anderson
Sys
Better yet:
if (!isset($a)) {
$a = "";
}
echo $a;
?>
If the user passes something in the form, you will see it in the page,
if not, it will show a empty string (which is equal to nothing in web,
but avoids the warning).
Always take note to the warnings... they can be just warn
EMAIL PROTECTED]
Subject: Re: [PHP-WIN] newbie question (forms)
Its just a warning. It tells you that you are using a variable which has no
value. Just ignore the notice, or turn down error reporting to exclude
notices.
All it means is that the variable of $test which you have included in your
scrip
This probably has to do with one/both of two things:
1. register_globals is off (not a bad thing - just requires a tidbit more
code. see http://php.net/register_globals)
2. A variable is being called before it has been initialized.
Example PHP script:
First you will get the undefined variable
Its just a warning. It tells you that you are using a variable which has no
value. Just ignore the notice, or turn down error reporting to exclude
notices.
All it means is that the variable of $test which you have included in your
script HAS NO VALUE. If you were to write something like
$test = "I
ewsgroup.
>
> -Dash
>
> -Original Message-
> From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 1:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Newbie to the news!
>
>
> All I want to do is connect to the list
-Dash
-Original Message-
From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Newbie to the news!
All I want to do is connect to the lists with Outlook Express...
I want to be able to read the posts and to po
tantin Baciu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 3:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Newbie to the news!
>
> But if I am not subscribed, I cannot post
>
> "David Hollister" <[EMAIL PROTECTED]> wrote i
. That way you can deal
with it when you want to and the messages won't come to your mailbox (at
least not when you don't want them to).
-Original Message-
From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: Re
But if I am not subscribed, I cannot post
"David Hollister" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> unsubscribe from the mailing list @ php.net
>
> -Original Message-
> From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, Sept
unsubscribe from the mailing list @ php.net
-Original Message-
From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 3:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Newbie to the news!
Hello...
Do I really have to get ALL the messages in the mailbox? Isn'
--Original Message-
> From: Baz Langton [mailto:[EMAIL PROTECTED]]
> Sent: 21 August 2002 16:30
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Newbie: Setting content type
>
>
> So why does the following code:-
>
> header("Content-type: text/xml &quo
So why does the following code:-
create_element("TEST");
$NewNode = $doc -> append_child($rootNode);
?>
OR
add_root("QUIZ");
$NewNode = $doc -> append_child($rootNode);
?>
produce the following error:-
The XML page cannot be displayed
Cannot view XML input using style sheet. Please cor
There must be a problem in your xml code that you are generating then.
header("Content-type: text/xml"); is indeed how you set the content type to
an xml page, as your test shows. The problem being is that phpinfo()
generates an html document, not an xml one. The error you got was explorer
tel
First of all let me scold you for running Apache and PHP on Windows
9x.
The solution would be to make two inputs of type "submit" that have
the same name but different values. Then when the form is submitted
you check the variable $button_name and execute the relevant code.
--
PHP Windows Mai
t 2002 11:36
> To: Steve Jackson
> Cc: Harrison Fisk; Zak Greant; David Axmark; Jeremy Cole; Olof Tjernren;
> Jim Winstead; Bertrand Matthelié; Kaj Arnö; Rasmus
> Subject: Re: [PHP-WIN] Newbie needs help.
>
>
> Hallo Steve!
>
> As an addendum: a very easy way to install Apac
forget all that stuff they told you to do... :) (just kidding folks)
check out the various AMP (apache, mysql, php) triad installers out there that
will do all the work for you. from configuring apache to work with php to
configuring mysql for you.
i use FORSERV's install (http://www.forserv
You searched online for these answers??
http://www.php.net/manual/en/install.iis.php to install IIS
Where did you install mysql to? If you went with the default installation,
it will be in c:\mysql right? Run the program mysql.exe in the /lib folder
and learn how to do the commands that create
Another good tool for administering MySQL databases is phpMyAdmin. It is a
browser based admin tool and you can get it from www.phpMyAdmin.org . I have
been using it for about a year and I really like it.
Jim Hunter
Diamond Computing
---Original Message---
From: Steve Jackson
Actually it's the "windows way". One of those valuable innovations that
makes windows software a leader in technology. Figuring out which is which,
keeps many people employed... hope you don't mind sarcasm...
Warren Vail
Tools, Metrics & Quality Processes
-Original Message-
From: Kit
"Steve Yates" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "Prachi Shroff" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > the link just says
> > javascript:window.open(
> > Why would that happen?
>
> > R'twick Niceo
"Prachi Shroff" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> the link just says
> javascript:window.open(
> Why would that happen?
> R'twick Niceorgaw <[EMAIL PROTECTED]> wrote: echo "
href=\"javascript:window.open(\"addfossilpage.php?me=$folder_id\",\"wid
w () {";
echo "window.open
(\"addfossilpage.php?me=$folder_id\",\"width=430\",\"height=450\");";
echo "}";
echo " ";
echo 'Open New Window';
- Original Message -
From: "prachi shroff"
To: "R'twick Niceorgaw&qu
Thank You for your prompt reply. Well, I have already tried these two options but
somehow they dont work. When I click on the hyperlink created by this line, the link
just says
javascript:window.open(
Why would that happen? It is ok with the first quote, but it ignores everything after
the s
Thanks for your help, but i've found what was wrong, it was in the code, but
in the data file
I wrote the picture name with first letter uppercase and unix server doesn(t
like it
Thanks again
Hubert
Lyon, France
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
At 03:31 PM 4/8/2002 +0200, Alberto. Sartori wrote:
>You should do the cicle and get the datas until you reach the end of file
>aka feof($fp) or better, try to use fread()
Yup, good point. Here's the modified code.. not using fread() though. For
non-binary data I think this should work ok tho
Give this a shot...
");
print("$vignette");
print("");
print("$marque");
print("$nom");
print("$pdfproduit");
print("$commprod");
print("");
}
?>
At 08:54 AM 4/8/2002 +0200, Hubert DAUL wrote:
>Hi ,
>
>Here's my problem :
>
>I read a data file (no sql file)
Actually I think I'm beginning to understand it. In the Mysql database is a
USER table. In that table contains all the users and privileges...is this
correct? Is there anyway of specifiying a certain user to a certain
databasethat is only user A is allowed to access database B?
Thanks again
I think it will suit you well, to get (and install) the 'phpMyAdmin'
package. It will simplify the aspect of creating and maintaining the
database, while you learn the ins-and-outs of MySQL.
You may want to invest some time in reading and learning the MySQL
documentation. Especially the part wh
On Wed, 16 May 2001 18:20:09 -0400, you wrote:
>my one book tells me to save a php file I have created to "document root
>directory for your web server" as generic filename.php
>
>I cannot figure out where that file should go so I may call it with IE
>browser
If you installed apache to it's def
thanks for the speedy reply
your not wrong about phpinfo
ill go tinker with it now :)
- Original Message -
From: Tomasz Abramowicz <[EMAIL PROTECTED]>
To: Dane Carlsson <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 4:53 AM
Subject: Re: [PHP-WI
> Hi,
>
> Is there a function to get the current path?
make a file with
in it. You will get all the variables you can dream of includeing
$DOCUMENT_ROOT and $PHP_SELF which you might find
interesting.
> I haven't be able to locate one in a quick browse over the documentation.
if you know mor
Edit your php.ini. Find "error_reporting" and set it to something that will
ignore notices. I like mine set as follows:
error_reporting= E_ALL & ~(E_NOTICE | E_USER_NOTICE) ;
Technically it is better to just have it at E_ALL for better coding and some
might argue better security. You don't _h
>Here are the specifics, AFAIK, of my situation.
>
>- OS is win98 SE
>- PHP version 4
>- installed MS PWS via the NT 4 option pack
To the best of my knowledge the NT4 option pack installs IIS on NT server,
and cut down version of IIS which they call PWS on NT workstation. On
windows 98, I've no
Hi,
for TEXT you don't specify a length.
TINYTEXT
A BLOB or TEXT column with a maximum length of 255 (2^8 - 1) characters.
TEXT
A BLOB or TEXT column with a maximum length of 65535 (2^16 - 1) characters.
MEDIUMTEXT
A BLOB or TEXT column with a maximum length of 16777215 (2^24 - 1)
characters.
Read the MySQL manual, chapter 6.12 entitled "Setting up the intitial MySQL
privileges".
You'll want to create a username and password, and then GRANT it the proper
privileges.
Then just alter your mysql_connect to reflect your username and password,
and it should all work fine again.
--
Pluta
Hi,
did you set up a user? If not did you connect as "root"? Have you set a
password
for your root?
Questions, questions. Some hints though:
If you haven't set a pswd for root do so. Go to msdos, tpye the path of the
mysql\bin
directory and then "mysql -u root". You should now be in the mysql-she
I'm pretty new at php too but I think you are going about it all wrong.
First create a php script that accesses MySQL.
Like this:
Then put it on your web tree.
Then point to it with your browser.
I think you can execute a php script from the command line but I'm not
sure. I haven't done it.
It is slower. Maybe not REEAALLY slower if you don't have much
traffic, but when it comes to kicks, you're losing quite some
performance. I would suggest that you have a look at some of the DB
abstraction layer classes available un phpclasses.upperdesign.com or
at www.hotscripts.com; they could co
t; Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Newbie question...
>
> don't like being picky, but you may be thinking of MySQL where
> % is the multiple character wildcard (eg select 'David!' LIKE '%D%v%';)
> _ is the single character wildcard (e
don't like being picky, but you may be thinking of MySQL where
% is the multiple character wildcard (eg select 'David!' LIKE '%D%v%';)
_ is the single character wildcard (eg select 'David' LIKE 'Davi_';
Tom
Ben Cairns wrote:
> The wildcard in PHP is a %
>
> E.G.
> select * from YOUR_TABLE where
The wildcard in PHP is a %
E.G.
select * from YOUR_TABLE where SOME_FIELD like '%$dan%'";
Hope this helps
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNO
If there was an error with the DB connection, then the 'or die' clause should
pick it up?
If nothing has changed between the IIS nad Apache implementation then I don't
know what is happenning
If however you have changed the table structure at the same time... or maybe
don't have any records on you
mysql_error());
}
}
else {
// continue, this is a valid returned result set
}
Let me know if this helps.
-Toby
- Original Message -
From: "Tom Mathews" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 11:15 AM
Subject: Re: [PHP-
There seems to be a problem with your database connection. Can we see the
header include?
-Toby
- Original Message -
From: "Robert Trembath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 10:20 AM
Subject: [PHP-WIN] Newbie - Help!
I don't understand
99 matches
Mail list logo