On Sat, 2012-09-22 at 13:13 +0200, Maciek Sokolewicz wrote:
On 22-09-2012 12:34, Ashickur Rahman Noor wrote:
Hi all
I need some help to understand a code. The code is like this
$result = mysql_query($sSQL) or die(err: . mysql_error().$sSQL);
if($row =
Hi Ashley
I am updating some one code. Thanks for the notify.
Thanks to all. Now I get that.
--
Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck
2048R/89C932E1 http://goo.gl/TkP5U
Coordinator - Public Relation Cell, FOSS Bangladesh
On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote:
Hi Ashley
I am updating some one code. Thanks for the notify.
Thanks to all. Now I get that.
--
Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck
2048R/89C932E1
Op 22 sep. 2012 13:47 schreef Ashley Sheridan a...@ashleysheridan.co.uk
het volgende:
On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote:
Hi Ashley
I am updating some one code. Thanks for the notify.
Thanks to all. Now I get that.
Matthew Weier O'Phinney wrote:
* Bruce Gilbert [EMAIL PROTECTED]:
Hello,
I am getting this on the following code, and I am not sure what is
causing the error and need some pros to take a look at it for me.
the error is:
Parse error: parse error, unexpected '{' in
* Jochem Maas [EMAIL PROTECTED] :
Matthew Weier O'Phinney wrote:
* Bruce Gilbert [EMAIL PROTECTED] :
I am getting this on the following code, and I am not sure what is
causing the error and need some pros to take a look at it for me.
the error is:
Parse error: parse error,
Linda H [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info. Not anything about MySQL, but
I
didn't see anything that looked obviously wrong, though I don't understand
i recently met samekind of problem, could you pls specify the
OS, Apache, Php and MySQL vesrions you are using?
vk
On 7/18/05, Mark Rees [EMAIL PROTECTED] wrote:
Linda H [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I added the following to the top of my script:
?php
Quoting Linda H [EMAIL PROTECTED]:
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info.
In addition to the other excellent suggestions so far, make sure
(looking at the phpinfo page, under Configuration File Path) that
your
For those who didn't join this thread at the beginning, I'm running MySQL
4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system.
I installed in the sequence - MySQL, then Apache, then PHP. MySQL was
running when the others were installed (which is what the book I am using
seemed to
Linda H [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
For those who didn't join this thread at the beginning, I'm running MySQL
4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system.
I installed in the sequence - MySQL, then Apache, then PHP. MySQL was
running when the others
Try this just for kicks:
?
aslkdjfalsd;
?
See if this will output errors. It's rather hard to debug without error
messages ;)
If I remember correctly, isn't php.ini supposed to be in c:/PHP?
Linda H wrote:
Thanks for the advice, Matt, but it doesn't seem to solve my problem.
php.ini is
Try this just for kicks:
?
aslkdjfalsd;
?
Nope - nothing :-(
See if this will output errors. It's rather hard to debug without error
messages ;)
No kidding!
If I remember correctly, isn't php.ini supposed to be in c:/PHP?
It came in c:/php5 as php.ini-recommended. My instructions
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info. Not anything about MySQL, but I
didn't see anything that looked obviously wrong, though I don't understand
a lot of it.
I ried reinstalling MySQL, Apache, and PHP. No change.
You should definitely see a listing for MySQL in phpinfo()...
What order did you install MySQL/PHP/Apache?
Linda H wrote:
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info. Not anything about MySQL,
but I didn't see anything
and the named.conf looks like.?
options {
# The directory statement defines the name server's working directory
directory /var/lib/named;
# Write dump and statistics file to the log subdirectory. The
# pathenames are relative to the chroot jail.
dump-file
From: GH [EMAIL PROTECTED]
I am new to php and xml and would like to know how I can set a
variable (i.e $terror_threat_level) equal to the value of
Threat_Advisory's Condition in the following that is available at
http://www.dhs.gov/dhspublic/getAdvisoryCondition ...
?xml version=1.0
As John noted at the end... I do not have control over the format of
the XML... but thanks I will try... BTW i am using PHP4 is
SimpleXML able to be used and if so how?
Sorry for the newbie question
On Thu, 23 Sep 2004 10:44:31 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: GH [EMAIL
I am new to php and xml and would like to know how I can set a
variable (i.e $terror_threat_level) equal to the value of
Threat_Advisory's Condition in the following that is available at
http://www.dhs.gov/dhspublic/getAdvisoryCondition ...
?xml version=1.0 encoding=UTF-8 ?
From: GH [EMAIL PROTECTED]
BTW i am using PHP4 is
SimpleXML able to be used and if so how?
No, SimpleXML is for PHP5 only. You're probably better off using the regular
expression method rather than loading an entire XML solution for such a
small bit of code...
---John Holmes...
--
PHP General
Sounds good... from that RegExpression what exactly is that returning?
just the value in the quotes?
Thanks
Gary
On Thu, 23 Sep 2004 11:11:16 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: GH [EMAIL PROTECTED]
BTW i am using PHP4 is
SimpleXML able to be used and if so how?
No,
As John noted at the end... I do not have control over the format of
the XML... but thanks I will try... BTW i am using PHP4 is
SimpleXML able to be used and if so how?
I would just use John's regex idea, I am guessing (i could be wrong
though, I have been many times before) that the
1.You must call session_start before making a HTML for
client.
2.Please use if (!session_is_registered('vb1'))
session_register('vb1');
--- S. Kang [EMAIL PROTECTED] wrote:
Afzal Hussain ) wrote:
Sir,
I am afzal hussain from bangladesh. Acually i am
getting
On 09 April 2004 16:39, Strogg wrote:
[snip original problem for which a fix has been posted]
$taxrate = 0.175; //local tax rate in UK is 17.5%
You should note that UK VAT is always rounded *down*, so that this:
$totalamount = $totalamount * (1 + $taxrate);
should be something like:
I have a section of my script where I call gethostbyname($hostname) .
For some host names that are not registered (according to register.com)
I am still getting an IP address returned?
What is happening?
Well, try only the toplevel domain... For example, I have like
Ok, I was wrong about top level stuff... My point was that you don't
register every box at like register.com, you only register secondlevel..
Register.com only checks second level (I guess), while php queries the name
on some dns server, which gives php another dns server and so on, until it
finds
BIND9 isn't the only game in town... Here's something from bugtraq
Worth noting (although a bit OT for php-general) that versign mananged to
introduce a nice little XSS w/ this- see full-disclosure list for details
-Evan
-- Forwarded Message --
Subject: Re: Verisign
* Thus wrote Jennifer Goodie ([EMAIL PROTECTED]):
I have a section of my script where I call gethostbyname($hostname) .
For some host names that are not registered (according to register.com)
I am still getting an IP address returned?
What is happening?
Well, try only the
Hi James so what you are saying is that if I am not running mysql
4.0.10-gamma then the full text search wont work.
Strange because if I run the full text search on both full text indexed
fields I get the correct resultset, however I only want to do a full text
search on a column at a time, let
On Tuesday 22 July 2003 15:46, Angelo Zanetti wrote:
Hi James so what you are saying is that if I am not running mysql
4.0.10-gamma then the full text search wont work.
Strange because if I run the full text search on both full text indexed
fields I get the correct resultset, however I only
All I got was Error
-Original Message-
From: Peter Clarke [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 7:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Need Help: Please click on Test Link
Suhas Pharkute wrote:
http://sspsoft.com/test/ip2ll.php (in case if you cannot get it,
set register_globals=on in php.ini or use $_POST/$_GET super global array
- Original Message -
From: LeTortorec, Jean-Louis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 12:14 PM
Subject: [PHP] RE: Need help with ? vs. php?
That's fixed. Thanks.
Now, another
That's fixed. Thanks.
Now, another problem. The data I capture in a form (web page 1) are
not
received by the PHP page (web page 2). Is there something different
with
the
previous version of PHP?
Register_globals
---John W. Holmes...
PHP Architect - A monthly magazine for PHP
On Tuesday 11 February 2003 07:03, Shawn McKenzie wrote:
Hmmm... I guess no one is doing this??? Seems fairly common.
Patience. You should allow 1 day to give every list subscriber a chance to
read your post.
Shawn McKenzie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Show us your code...we can't read your mind.
- Original Message - Thkiat wrote:
Can someone tell me what should I do to solve this problem?
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result
resource in /home/epcc/public_html/exoops/class/database/mysql.php on
- Original Message - Thkiat wrote:
Can someone tell me what should I do to solve this problem?
Of course...
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL
result
resource in /home/epcc/public_html/exoops/class/database/mysql.php on
line
134
Fix your problem
Check out FFL on Sourceforge.net. Currently, it is
still a standalone PHP app, but in the near/coming
soon future they are going to have it as a PHPWebsite
Module.
That is nice for me, since I have just converted to
PHPWebsite (would have used nuke, but it pissed me off
when it wouldn't let me do
Hi David,.
Http authentication is probly not what you would want to
use. Especially if you want to program in timeouts, you
would be better off using session based login variables.
Cookies are even better with an encrypted pasword that has a
windows of time that you have to goto other
direct authentication with http headers
?php
file://if some_variable is NOT set then redirect to some other location
session_start();
if (!isset($HTTP_GET_VARS[some_variable])) {
header( 'Location:
http://www.yourfavoritepage.com/login.php?v=nogo' );
}
?
html
!-- Your html code goes
From: B.C. Lance [EMAIL PROTECTED]
Sent: Sunday, August 11, 2002 9:53 AM
Subject: [PHP] Re: need help
to do a comparison between two values / variables, you have to use ==
instead of =
= is an assignment while == is a comparison operator
if($row['gid'] == 0)
I write these this way so
From: B.C. Lance [EMAIL PROTECTED]
Sent: Sunday, August 11, 2002 10:17 AM
Subject: Re: [PHP] Re: need help
snip
Matt wrote:
if(0 == $row['gid'])
/snip
ahhh. let the parser do the check. works great if you are not comparing
with 2 variables :)
in fact, another way to avoid
Aug 2002 15:46:57 +1000
To: Monty [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Need Help with register_globals OFF
Anyone want to share any tips on how to deal with form vars passed to a
script with register_globals turned off? Do you simply refer to them
directly with $_GET
Well, I just upgraded a number of PHP scripts to function with
register_globals turned off, and now better understand what's required to
work with variables more securely.
I wanted to share that the extract() command turned out to be a big help.
Using it meant I didn't have to put $_POST[' ']
http://ispcheck.com is the place. Listing of many webhostings. Go and see.
Regards,
Andrey
Hey php-general,
i want to buy hosting. but i can't find good one for me. maybe
someone could point some links. but this is what i need!
Storage up to 100MB
normal transfer
on 03/08/02 3:35 PM, Monty ([EMAIL PROTECTED]) wrote:
Well, to answer my own question, I found a decent tutorial on using sessions
with the new register_globals off here:
http://www.wdvl.com/Authoring/Languages/PHP/Maintaining_state/session_variab
les.html
Anyone want to share any tips
Hi,
Tuesday, July 30, 2002, 3:52:23 AM, you wrote:
D maybe it would be easier to show you the part of code I'm using,
D }
D /** Check for the type of the image : only allow jpeg's */
D if($_FILES['uploadFile']['name']['type']!=image/jpeg){
D echo You can only upload jpg images.;
D
This looks good but I just have one question about it if you don't mind,
what if someone was uploading a gif or a PNG file? can it be made to only
detect jpgs?
Thanks in advance
Deadsam
Try it this way, it will check if it is a jpeg and it has a horizontal
and vertical size so you can be
My output is still the same!
It looks like this : ba = \'DA\'
:)
-Original Message-
From: Julio Nobrega Trabalhando
[mailto:[EMAIL PROTECTED]]
Sent: 29 November 2001 13:54
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Need help with a stupid problem!
Worry not, easier typing:
$search
: [PHP] Re: Need help on putting variable into form
No problem.
With the space in there, it considered Company as something separate...
-Andy
Hugh Danaher [EMAIL PROTECTED] wrote in message
000801c12f74$62b93020$3907f4d8@win95">news:000801c12f74$62b93020$3907f4d8@win95...
Andy,
T
On Tue, 28 Aug 2001, Hugh Danaher wrote:
I think at one time I tried using double quotes but didn't get good results.
If you have time to answer, why the backslash and what the hell is foo?
Using the backslash escapes the double quote ... tells php to not use the
double quote (as it does to
Andy,
Thank you. It Works!
Hugh
- Original Message -
From: Andy Ladouceur [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 27, 2001 8:35 PM
Subject: [PHP] Re: Need help on putting variable into form
Well,think about it like this:
If you did replace $comp name with ABC
No problem.
With the space in there, it considered Company as something separate...
-Andy
Hugh Danaher [EMAIL PROTECTED] wrote in message
000801c12f74$62b93020$3907f4d8@win95">news:000801c12f74$62b93020$3907f4d8@win95...
Andy,
Thank you. It Works!
Hugh
- Original Message -
From:
Ah! But never forget...the code in some books have bugs too.
Van
At 12:47 AM 7/23/01, you wrote:
it was my error reporting along i copied that script dtraight from the
text book so i knew it wasnt the variables themselves
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
that error is because the php error checking had been changed from the
default...but still some do have problems... :D
- Original Message -
From: Van Tate Jr. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 5:01 PM
Subject: Re: [PHP] Re: need help w/ variables
Ah
yep, thought so :D
- Original Message -
From: Virgil Claritt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 3:47 PM
Subject: [PHP] Re: need help w/ variables
it was my error reporting along i copied that script dtraight from the
text book so i knew it wasnt the
55 matches
Mail list logo