hallo all,
i have a problem connecting to mysql db, i use the following code to connect to the
db:
$DBConn = mysql_connect(localhost, myusername,mypassword) or die(Could not
connect to database, . mysql_error());
mysql_select_db(db1, $DBConn);
and i get the following error:
Warning:
Chris de Vidal wrote:
I searched this group and someone suggested disabling Apache's keepalives
but I don't have root on this box so that option is out.
Try to send Connection: close header, then the connection will be
terminated by the client.
--
PHP General Mailing List (http://www.php.net/)
Chris de Vidal wrote:
Can you confirm GET strings are also encrypted?
I'm sure they do. But try to clear the URI from IE's history (using
javascript), both username and password will be there.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I am new to php and want to use php for our mailing program.
At present we have servlet program what the users access it thru web
interface and use for sending,receiving and composing mails.
But it is giving lot of problem and hence I want to shift the entrie
system to PHP .
Please give
IMP and SquirrelMail are both nice.
http://www.horde.org/imp/
http://www.squirrelmail.org
On Friday 19 March 2004 03:40 pm, Mrs. Geeta Thanu wrote:
Hi all,
I am new to php and want to use php for our mailing program.
At present we have servlet program what the users access it thru web
Hi all
for some reason I seem to be having a problem having to do a look up in a mysql table
and the take the result of that query and then perform the right action.
Basically I need to do a look up for a file
for example
10006547.pdf.
I then need to:
if no letter of the alphabet is
Ivan Sergio Borgonovo wrote:
I've simple code like this:
-- begin --
#!/usr/bin/php -q
?
$pippo='goofy'
?
hey my name is ?= $pippo ?
and
I feel good
-- end --
newlines are ignored after php block end tags (?)
--
PHP General Mailing List (http://www.php.net/)
To
php-general Digest 19 Mar 2004 11:26:30 - Issue 2655
Topics (messages 180926 through 180950):
Re: E-mail account disabling warning.
180926 by: Jeffrey Shaw
180930 by: Chris W. Parker
180931 by: Ryan A
Re: Retain form values...
180927 by: Chris W. Parker
Brent Clark wrote:
Hi all
for some reason I seem to be having a problem having to do a look up in a mysql table
and the take the result of that query and then perform the right action.
Basically I need to do a look up for a file
for example
10006547.pdf.
I then need to:
if no letter
Hi!
We are getting weird behaviour from PHP function session_start().
More or less randomly, the cookie expired date is in the past, something
like expires=Wed, 30-Apr-1902 10:05:03 GMT. (As it happens, this is
very closely twice the current time in seconds since the epoch, if you
do some
David T-G wrote:
Hi, all --
I have an array like
$a =
array
(
'key' =
array
(
'title' = Topic Title,
'content' = Topic Content,
),
...
) ;
and I'd like to sort the whole thing not on the keys but on the titles.
It sounds
On 18 Mar 2004 Cameron B. Prince wrote:
I'm saying I can't connect to another machine running 3.x or 4.x from PHP,
but I can connect to either via the v4.x mysql command line client that's
installed on the webserver with PHP.
OK, I get it. It certainly sounds like it could be a problem with
Hi guys,
I need to setup a Content Management System
Which is the best from the many?
Thanks
Nico
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I need to setup a Content Management System
Which is the best from the many?
[/snip]
http://catb.org/~esr/faqs/smart-questions.html
http://www.glasshaus.com/bookInfo.asp?bookId=65
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nocc is the app you're looking for
take a look at http://nocc.sourceforge.net/
Mrs. Geeta Thanu [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Hi all,
I am new to php and want to use php for our mailing program.
At present we have servlet program what the users access it
From: Khalid Judeh [EMAIL PROTECTED]
i have a problem connecting to mysql db, i use the following code to
connect to the db:
$DBConn = mysql_connect(localhost, myusername,mypassword) or
die(Could not connect to database, . mysql_error());
mysql_select_db(db1, $DBConn);
and i get the
Hi an anyone help here, i have a shoutbox that displays the time with each
message but the time is 8 hours behind my time.
//here are the headers//
header(Expires: .gmdate(D, d M Y H:i:s).GMT);
header(Cache-Control: no-cache, must-revalidate);
header(Pragma: no-cache);
I have tried a few things
Well, there is a MD5 javascript app, if you put a onclick method on your
submit button, to call the javascript, and md5 the password, you could
use a GET request to pass the username and md5'd password into your
login script.
I'm not sure if there is an equivalent SHA javascript, but if there is,
BigMark wrote on vrijdag 19 maart 2004 14:58:
Hi an anyone help here, i have a shoutbox that displays the time with
each message but the time is 8 hours behind my time.
//here are the headers//
header(Expires: .gmdate(D, d M Y H:i:s).GMT);
header(Cache-Control: no-cache, must-revalidate);
I have a sports tipping script and instead of using the admin to close a
round off or input results ,would it be possible to do it via an email.
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What does this error mean?
PHP has encountered an Access Violation at 0177A8B4
I get it intermittently from pages in phpOpenTracker that call the
jpgraph functions. It's just a blank white page with that error, and
that doesn't help me out at all. I'm running Windows Server 2003/IIS 6
with
I'm writing this message in the hope that some of the people responsible for PHP5 will
eventually read it.
I have just downloaded and installed PHP5 RC1 according to the instructions found in
the package (which are basically the same as for previous releases of PHP). Before
relating the
On Fri, 19 Mar 2004 [EMAIL PROTECTED] wrote:
Dear user of e-mail server Php.net,
We warn you about some attacks on your e-mail account. Your computer
may contain viruses, in order to keep your computer and e-mail account
safe, please, follow the instructions.
Pay attention
All,
I am attempting to upload a large file via PHP to a web server running
Windows XP Pro IIS 5.1 and I am having some problems. I have been trying to
find the right combination of settings in the php.ini file and elsewhere to
get large files to upload properly, but I keep getting a DNS error
1) +0
2) +1
Firman
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, March 19, 2004 9:42 PM
Subject: Re: [PHP] E-mail account disabling warning.
On Fri, 19 Mar 2004 [EMAIL PROTECTED] wrote:
Dear user of e-mail
DNS error seems to indicate that you have a connection problem, not a storage or file
size restriction problem.
Maybe the IP connection is interrupted. ..
Do you have the same problem when running on Localhost?
Vincent
-Original Message-
From: Schonrock III, Keith H [mailto:[EMAIL
Using php function I was able to get such information about image such as:
size(width, height), type of image and size of the image.
Can I get more information about image?
Thanks
_
FREE pop-up blocking with the new MSN Toolbar
Hi All,
I have input for where users can enter order numbers in which to search
the database to find results matching their entry.
To enter multiple order numbers they can comma separate like:
1,34,21,34,54
What I need to do is take those numbers and make a query that would like
like:
Vincent DUPONT wrote:
DNS error seems to indicate that you have a connection problem, not a storage or file size restriction problem.
Maybe the IP connection is interrupted. ..
Do you have the same problem when running on Localhost?
IE more often than not shows DNS failure message regardless
To enter multiple order numbers they can comma separate like:
1,34,21,34,54
What I need to do is take those numbers and make a query that would like
like:
(cart_id in('1','34','21','34','54') OR id in('1','34','21','34','54'))
ANY idea how I can accomplish this?
$string = ' . implode( ', ',
Hi,
I have this message in the IIS log file :
Out-of-process+ISAPI+extension+request+failed.
This appeared when I passed my web applicaion from Mysql to Oracle batabase. I guess
this is related to ISAPI module that cannot handle the load or processes needed by
Oracle.
PLease help.
[snip]
Using php function I was able to get such information about image such
as:
size(width, height), type of image and size of the image.
Can I get more information about image?
[/snip]
RTFM http://us4.php.net/image
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
From: Aaron Wolski [EMAIL PROTECTED]
I have input for where users can enter order numbers in which to search
the database to find results matching their entry.
To enter multiple order numbers they can comma separate like:
1,34,21,34,54
What I need to do is take those numbers and make a
Is anyone here very familiar with using Phrame? If so, could
you email me offlist?
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well, I tried the process with Mozilla and the transfer was blazing fast
compared to IE and it completed successfully with no DNS errors. IE is very
slow and consistently gets those DNS errors. I did turn on logging and
found that this error is being produced whenever the DNS error shows up:
Hi Mike,
use getimagesize(), http://www.php.net/manual/en/function.getimagesize.php
Firman
- Original Message -
From: Mike Mapsnac [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:30 PM
Subject: [PHP] Image info?
Using php function I was able to get such
Chris!
Thanks so much. This worked perfectly
Aaron
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]
Sent: March 19, 2004 10:59 AM
To: Aaron Wolski; [EMAIL PROTECTED]
Subject: Re: [PHP] confused about logic
To enter multiple order numbers they can comma
Thanks for the time John.
Chris's did the trick. I'll keep yours on hand in case I do happen to
run into problems.
I DO appreciate your help.
Thanks again!
Aaron
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: March 19, 2004 11:28 AM
To: Aaron Wolski;
DC $sunday = strtotime('1 January 1995'); // That day was a Sunday
DC return strftime(%A, $sunday+(3600*24*$day));
DC }
So despite asking for a way to do it without using dates in functions,
that's exactly what you're doing?
Heh, gotta love this list sometimes.
No need to be rude
Thanks for the time John.
Chris's did the trick. I'll keep yours on hand in case I do happen to
run into problems.
I DO appreciate your help.
John's solution is actually technically better than mine in that it's only
using
one function call (str_replace()) and as such only one possible point
John W. Holmes mailto:[EMAIL PROTECTED]
on Thursday, March 18, 2004 7:11 PM said:
Shane McBride wrote:
Actually all form validation is done before the form action takes
place, so that way we do not loose input.
I think you're missing the point. Client side validation is extremely
easy
Marek Kilimajer said:
I searched this group and someone suggested disabling Apache's
keepalives but I don't have root on this box so that option is out.
Try to send Connection: close header, then the connection will be
terminated by the client.
I don't understand... would I place that code
Hello Michal,
Friday, March 19, 2004, 5:09:12 PM, you wrote:
So despite asking for a way to do it without using dates in functions,
that's exactly what you're doing?
Heh, gotta love this list sometimes.
MM No need to be rude - you asked for a way to do it without knowing the
MM specific date.
Chris de Vidal wrote:
Marek Kilimajer said:
I searched this group and someone suggested disabling Apache's
keepalives but I don't have root on this box so that option is out.
Try to send Connection: close header, then the connection will be
terminated by the client.
I don't understand... would
I thought I had a pretty good handle on sessions, but I can't figure
out what could possibly be going wrong in this case. I've stripped my
code down to basically the bear minimum which still reproduces the
problem, which I included below.
When I visit test1.php with the url:
is that all?
Khalid Judeh wrote:
hello all,
i am new to php, i am trying to call the date function this way:
?php echo date(d/m/y); ?
and the result i get is: object18/03/04
any help would be appreciated
Khaled Jouda
cell. phone:
Khalid Judeh wrote:
hello all,
i am new to php, i am trying to call the date function this way:
?php echo date(d/m/y); ?
and the result i get is: object18/03/04
any help would be appreciated
hummm...very odd. I did the same thing and got:
19/03/04
Can you provide any more details? What version
you need to ask yourself how the environment that you are using will
interpret things
if you are sending this query:
SELECT ... FROM ... WHERE field1='. $_POST['field1'] .'
and $_POST['field1'] is:
0' OR field2=0 AND ''='
the resulting string would be:
SELECT ... FROM ... WHERE field1='0' OR
From: Eric Gorr [EMAIL PROTECTED]
When I visit test1.php with the url:
http://domainpath/test1.php?name=billpwd=henry
I see the output:
user = 'bill'
ID= 41699d4461e8fe3a71243bb3cb1c2298'
You were remembered and are now being redirected to the home page. If
this fails for some reason
[EMAIL PROTECTED] wrote:
I'm trying to run PHP5 RC1 on a Windows 2000 test server with Apache 2.0.47.
Mines 2.0.48, but no problem.
Upon installation, when I first started Apache again, I got an error message to the effect
that php4ts.dll could not be found in the c:\winnt\system32 directory.
I am using php4.3.4 Build 5 on FreeBSD4.7 and am totally
stuck. For about a week, I have been trying to write a php script
that will access an Oracle server on a different system over the
network.
I can't seem to let php know where to look to find all the
contact information such
At 1:58 PM -0500 3/19/04, John W. Holmes wrote:
From: Eric Gorr [EMAIL PROTECTED]
When I visit test1.php with the url:
http://domainpath/test1.php?name=billpwd=henry
I see the output:
user = 'bill'
ID= 41699d4461e8fe3a71243bb3cb1c2298'
You were remembered and are now being redirected to
I'm running RC1 on Win2k 2.0.47 without any problems. Make sure u updated
your PATH settings as some folders got renamed or moved. Add /path/to/php
and /path/to/php/dlls to your PATH setup. Switch 'extensions' to 'ext' in your
php.ini as well if you still have an old version from an old PHP5 beta
From: Marek Kilimajer [EMAIL PROTECTED]
Matt Chatterley wrote:
In addition to protecting against SQL Injection, has anyone here
experimented with detecting and recording attempts at injection?
I've been pondering checking strings which come directly from user input
for
sql keywords
I am writting a php script that will be used in production, it connects
to a imap server gets all the headers and stores them in a db:
Here is where it is crashing
0x28258ede in mm_cache () from /usr/local/lib/libc-client4.so.8
(gdb) bt
#0 0x28258ede in mm_cache () from
Since I'm fresh back from php|cruise, I thought I'd comment and ask for
comments on what it takes to give a good technical presentation. I'm
planning on writing about this topic in my next php|architect column, so be
aware that anything said here may appear in it.
This is in no way a jab at any
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
RTFM http://us4.php.net/image
I was reading the ... manual a little while ago, and I could've sworn I came
across a part that said:
'ATFNG'
We may have an infinite loop going.
-- Rob
--
PHP General Mailing List
Ah HA! I knew I wasn't crazy...well, pretty sure... ;-)
I figured out why my sessions were behaving so oddly.
I was accessing test1.php via:
http://ericgorr.net/...
In test1.php, I was then redirecting to test2.php via
http://www.ericgorr.net/...
Apparently, with Mozilla and Safari, php
--- John W. Holmes [EMAIL PROTECTED] wrote:
Since I'm fresh back from php|cruise, I thought I'd comment and ask
for comments on what it takes to give a good technical presentation.
I'm planning on writing about this topic in my next php|architect
column, so be aware that anything said here may
From: Chris Shiflett [EMAIL PROTECTED]
3) Typing Code: Don't type code during your presentation.
Why not? From my experience, people appreciate live demonstrations of the
techniques you're discussing.
Yeah, live demos are great, but I don't want to sit there and watch you type
all of your
--- John W. Holmes [EMAIL PROTECTED] wrote:
Yeah, live demos are great, but I don't want to sit there and watch
you type all of your PHP code. Have it already typed and just load
it, explain it, and run it.
I guess it depends. I agree with you on some level, but I have seen the
live demos
On Fri, 2004-03-19 at 15:53, John W. Holmes wrote:
1) Rehearse: This is a must. You have to run through your presentation a
couple times and preferably in front of other people so they can provide
feedback. Some people are really good at impromptu speaking and can wing it,
This is a valid
I am baffled. I really hope someone can save me.
(PHP 4.3.4)
I am getting blank pages (or partial blank pages if my HTML comes before the
PHP) instead of errors. I know there are errors on the page because I have
specifically put parse errors in my code to see if the server would give me
Jonathan Duncan wrote:
I am getting blank pages (or partial blank pages if my HTML comes before the
PHP) instead of errors. I know there are errors on the page because I have
specifically put parse errors in my code to see if the server would give me
errors, but instead all I get are blank
Hi all,
I believe many of you know this already. But, for someone who's this
problem, I'd like to let u know something about file upload.
When u'd like to upload something by POST, if it fails, I will probably to
go edit php.ini's max_file_size value, but if it still fails, then?
Thanks for
Im sure this question seems primitive to most of you, im new to using foreach with
forms my question is how is the best way to keep from getting the submit button from
comming through with the variables below is my code.
form method=post action=?fm=newAdvertisera=insert
centerpreb
Advertiser
webmaster wrote:
how is the best way to keep from getting the
submit button from comming through with the variables
Don't name it?
Just remember that users can send _any_ variable they want through a
form... blindly looping through and accepting $_POST as a whole is
probably a bad idea.
--
Hello,
Saturday, March 20, 2004, 6:08:36 AM, you wrote:
w Im sure this question seems primitive to most of you, im new to
w using foreach with forms my question is how is the best way to keep
w from getting the submit button from comming through with the
w variables below is my code.
Two ways:
[EMAIL PROTECTED] (Bigmark) wrote in
news:[EMAIL PROTECTED]:
Hi an anyone help here, i have a shoutbox that displays the time with
each message but the time is 8 hours behind my time.
//here are the headers//
header(Expires: .gmdate(D, d M Y H:i:s).GMT);
header(Cache-Control: no-cache,
--- Tariq Murtaza [EMAIL PROTECTED] wrote:
Can someone shed some light on how SQL injection attack occurs when
*magic_quotes_gpc *isON and how it prevents when its OFF.
I'm not sure what it refers to there. In my opinion, relying on
magic_quotes_gpc is very dangerous. In fact, I just
This reply has two purposes.
Firstly, a small suggestion (modest compared to the others which will
follow, no doubt!) - check out mysql_escape_string() - this may be useful to
you.
Secondly, a further question:
In addition to protecting against SQL Injection, has anyone here
experimented with
71 matches
Mail list logo