Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Matijn Woudt
Op 22 sep. 2012 13:47 schreef "Ashley Sheridan" 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. > > --

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
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 > 2048R/8

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashickur Rahman Noor
Hi Ashley I am updating some one code. Thanks for the notify. Thanks to all. Now I get that. -- Dedicated Linux Forum in Bangladesh 2048R/89C932E1 Coordinator - Public Relation Cell, FOSS Banglades

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
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 = mysql_fetch

Re: [PHP] Re: need help finding parsing error please

2005-08-05 Thread Matthew Weier O'Phinney
* 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: > > > > > >

Re: [PHP] Re: need help finding parsing error please

2005-08-05 Thread Jochem Maas
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 /hsphere/local/home/bruceg

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Mark Rees
"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 th

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread eoghan
Hi Linda H wrote: 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 us

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Linda H
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 indica

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Rick Emery
Quoting Linda H <[EMAIL PROTECTED]>: I added the following to the top of my script: 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 install is using the ph

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread kalinga
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: > > > >

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Mark Rees
"Linda H" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I added the following to the top of my script: > > 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 under

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
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: Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything that looked obviously wron

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
I added the following to the top of my script: 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. Linda -- PHP General

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
Try this just for kicks: 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 were to move it to c

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
Try this just for kicks: 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 in the C:Program File

Re: [PHP] Re: need help parsing named.conf file

2005-02-13 Thread rosenberger
> 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 "/var/

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread Matt M.
> 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 for

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread GH
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? >

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread John Holmes
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 Gene

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread Matt M.
> >> 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 ... > >> > >> > >> if you are using p

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread GH
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" <[EMA

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread John Holmes
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 ... Hmmm... I couldn't get

Re: [PHP] Re: Need Help for Session

2004-08-27 Thread Pahlevanzadeh Mohsen
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. A

RE: [PHP] Re: Need help

2004-04-14 Thread Ford, Mike [LSS]
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:

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Curt Zirzow
* 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, tr

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Evan Nemerson
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 abusing

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread DvDmanDT
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

RE: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Jennifer Goodie
> > 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 > hns3456

Re: [PHP] Re: need help with MySQL full text searching!!!!

2003-07-22 Thread Jason Wong
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 on

Re: [PHP] Re: need help with MySQL full text searching!!!!

2003-07-22 Thread Angelo Zanetti
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 me

RE: [PHP] Re: Need Help: Please click on Test Link

2003-07-17 Thread Brian S. Drexler
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 i

RE: [PHP] RE: Need help with ?> vs. php?>

2003-03-05 Thread John W. Holmes
> 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 Profes

Re: [PHP] RE: Need help with ?> vs. php?>

2003-03-05 Thread R'twick Niceorgaw
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. > > No

Re: [PHP] Re: Need help storing and displaying html/text!

2003-02-10 Thread Jason Wong
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:[

Re: [PHP] Re: Need help.

2003-01-28 Thread 1LT John W. Holmes
> - 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

Re: [PHP] Re: Need help.

2003-01-28 Thread Rick Emery
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

Re: [PHP] Re: need help with project

2002-11-03 Thread Kevin Myrick
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

RE: [PHP] Re: Need help with HTTP-Authentication

2002-10-18 Thread Davy Obdam
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 o

Re: [PHP] Re: Need help with HTTP-Authentication

2002-10-16 Thread dwalker
direct authentication with http headers http://www.yourfavoritepage.com/login.php?v=nogo' ); } ?> THIS E-MAIL MESSAGE AND ALL ATTACHMENTS TRANSMITTED HEREWITH ARE TRADE SECRET AND/OR CONFIDENTIAL INFORMATION INTENDED ONLY FOR THE VIEWING AND USE OF ADDRESSEE. IF THE READER OF THIS MESSAGE IS

Re: [PHP] Re: need help

2002-08-11 Thread Matt
> From: "B.C. Lance" <[EMAIL PROTECTED]> > Sent: Sunday, August 11, 2002 10:17 AM > Subject: Re: [PHP] Re: need help > > Matt wrote: > > if(0 == $row['gid']) > > ahhh. let the parser do the check. works great if you are not comparing &g

Re: [PHP] Re: need help

2002-08-11 Thread B.C. Lance
ahhh. let the parser do the check. works great if you are not comparing with 2 variables :) in fact, another way to avoid this kinda pitfall, switch is another alternative. but of course, switch has its pitfall too. ;) Matt wrote: > if(0 == $row['gid']) > > > -- PHP General Mailing Li

Re: [PHP] Re: need help

2002-08-11 Thread Matt
> 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 th

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-03 Thread Monty
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[' '] a

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-02 Thread Monty
Date: Sat, 03 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_gl

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-02 Thread Justin French
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

Re: [PHP] Re: Need help to choose hosting!

2002-08-02 Thread Andrey Hristov
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 trans

Re: [PHP] Re: need help with uploading images

2002-07-29 Thread Deadsam
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 pret

Re: [PHP] Re: need help with uploading images

2002-07-29 Thread Tom Rogers
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>

Re: [PHP] Re: need help with your code?

2002-04-11 Thread Analysis & Solutions
Hi Christopher: On Wed, Apr 10, 2002 at 05:27:18PM -0400, Christopher J. Crane wrote: > Ok time out...the problem was simple I had each of the functions one it's > own line because it was simple to see. When I add code to the functions then > I do make it as indicated and easier to read. The p

RE: [PHP] Re: Need help with a stupid problem!

2001-11-29 Thread De Necker Henri
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 .=

Re: [PHP] Re: Need help on putting variable into

2001-08-28 Thread Christopher William Wesley
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 t

Re: [PHP] Re: Need help on putting variable into

2001-08-28 Thread Hugh Danaher
st 27, 2001 8:51 PM Subject: Re: [PHP] Re: Need help on putting variable into > 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"&

Re: [PHP] Re: Need help on putting variable into

2001-08-27 Thread Andy Ladouceur
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 - > Fro

Re: [PHP] Re: Need help on putting variable into

2001-08-27 Thread Hugh Danaher
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 > Well,think about it like this: > If you did replace $comp name with ABC Co

Re: [PHP] Re: need help w/ variables

2001-07-22 Thread ReDucTor
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

Re: [PHP] Re: need help w/ variables

2001-07-22 Thread Van Tate Jr.
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, e

Re: [PHP] Re: need help w/ variables

2001-07-22 Thread ReDucTor
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 wasn