Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Hi everyone, Hmmm i'm not sure it is an SQL Injection now, done a lot more checking and it is inserting code at the end of every index.htm index.html default.html and index.php pages on my site. Ooooh what fun :-) Chris On Fri, Jul 10, 2009 at 2:22 PM, Govindagovinda.webdnat...@gmail.com

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:37, Chris Paynechris_pa...@danmangames.com wrote: Hi everyone, Hmmm i'm not sure it is an SQL Injection now, done a lot more checking and it is inserting code at the end of every index.htm index.html default.html and index.php pages on my site. Ooooh what fun :-)

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Hi, Yes their IP is from Russia by Chinese in origin. How can this be prevented? Thank you all SO much for your help, it is very appreciated. Chris On Fri, Jul 10, 2009 at 2:40 PM, Daniel Browndanbr...@php.net wrote: On Fri, Jul 10, 2009 at 17:37, Chris Paynechris_pa...@danmangames.com

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:48, Chris Paynechris_pa...@danmangames.com wrote: Hi, Yes their IP is from Russia by Chinese in origin. How can this be prevented? Thank you all SO much for your help, it is very appreciated. So would be your move to bottom-posting (with nods to the jihad

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Thank you all SO much for your help, it is very appreciated.    So would be your move to bottom-posting (with nods to the jihad that was the longest thread of the list so far this month) as per the mailing list rules.  ;-P    What's the URL to your site, if you feel comfortable in providing

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 18:11, Chris Paynechris_pa...@danmangames.com wrote: Sorry I post at the top because i'm legally blind and it's easier but i'll try to post at the bottom :-) This is the main site on my server: http://www.oxyge.net I just took out the offending code at the end of

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Zareef Ahmed
Hi, First of all change your FTP password and stop storing your password in your FTP client. This type of attacks are very common with the people who use insecure FTP client. My previous experience with your kind of problem tell me that chances of a FTP attack are really higher in the pattern

Re: [PHP] help : getting float max

2009-05-24 Thread Robert Cummings
On Sun, 2009-05-24 at 14:33 +0100, Nathan Rixham wrote: Afternoon all, This is a quick survey, think it would be useful to have the values of MAX_FLOAT for each platform, and indeed see if it does differ. to do this can you please run the following code (bc* required) and reply back

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
chris_pa...@danmangames.com wrote: Hi everyone, I'm having a major problem. I have an order system that allows you to add items with a checkbox, that works fine. If you add an item and go back to the product listing the items that are in your cart show up as checked on the products listing

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
kranthi wrote: this depends much on the database implementation. obviously this is a one to many relationship. Probably easiest to do in the session database. You can store the session fields in an external database if you want the shopping cart to persist over multiple sessions. -- PHP

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 06:51:32PM -0700, chris_pa...@danmangames.com wrote: Hi everyone, I'm having a major problem. I have an order system that allows you to add items with a checkbox, that works fine. If you add an item and go back to the product listing the items that are in your cart

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
Paul M Foster wrote: When you say it sends its id, what do you mean? You're not talking about the ID attribute of the checkbox tag, are you? The way I handle something like this is to give the checkbox tag a value attribute. Like: input type=checkbox name=mixer value=ordered_mixer

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread chris_payne
- From: kranthi kranthi...@gmail.com To: Michael A. Peters mpet...@mac.com Cc: chris_pa...@danmangames.com; php-general@lists.php.net Sent: Monday, May 18, 2009 7:48 PM Subject: Re: [PHP] Help with PHP processing form checkboxes needed :-( 1. every time the form is submitted.. generate

Re: [PHP] help with global not working

2009-05-13 Thread Marc Steinert
Maybe your code overwrites the variable anywhere? You should think about switching to a constant in that case by using define('TEST_MODE', true); [...] if (TEST_MODE) { [...] } else { [...] } Greetings from Germany Marc Joey wrote: Hello All, I am running into a problem after I moved a

Re: [PHP] help with explode()

2009-04-24 Thread Adam Williams
Jan G.B. wrote: You could try it with regular expression matching.. for example: ?php preg_match_all('/([a-z]+|[a-z ]+)/i', $searchstring, $resultarray); ? Regards Thanks. That seems to create 2 duplicate arrays, though. Can it be narrowed down to just array [0]?

Re: [PHP] help with explode()

2009-04-24 Thread Jan G.B.
2009/4/24 Adam Williams awill...@mdah.state.ms.us: I have a form where users submit search terms and it explodes the terms into an array based upon spaces.  But, how can I have explode() keep words in quotation marks together?  For example, if someone enters on the form: John Jill Judy Smith

Re: [PHP] help with explode()

2009-04-24 Thread Jan G.B.
2009/4/24 Adam Williams awill...@mdah.state.ms.us: Jan G.B. wrote: You could try it with regular expression matching.. for example: ?php    preg_match_all('/([a-z]+|[a-z ]+)/i', $searchstring, $resultarray); ? Regards Thanks.  That seems to create 2 duplicate arrays, though.  Can it

Re: [PHP] help with explode()

2009-04-24 Thread Adam Williams
Jan G.B. wrote: Yes, preg_match_all returns all matches and the subpattern matches (the stuff inside the brakes) You can ommit stop it by using (?:) instead of ().. So: preg_match_all('/(?:[a-z]+|[a-z ]+)/i', $_POST[terms], $termsarray) You might want to check out the regular expression

Re: [PHP] Help me debug this

2009-04-20 Thread Stephen
Patrick Moloney wrote: I've tried their help forum, but they keep telling me to create an empty database. Have you tried creating an empty database? Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help me debug this

2009-04-20 Thread Patrick Moloney
Stephen wrote: Patrick Moloney wrote: I've tried their help forum, but they keep telling me to create an empty database. Have you tried creating an empty database? Stephen yes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help me debug this

2009-04-20 Thread Phpster
On Apr 20, 2009, at 17:23, Patrick Moloney webpa...@gmail.com wrote: Some months ago I downloaded and installed Apache, PHP and MySql. With only light use they seem to be working. I have downloaded a Test Script from the VBulletin vendor that is supposed to determine if your setup could

Re: [PHP] Help me debug this

2009-04-20 Thread kranthi
i find var_dump useful in these situations, and for error reporting try trigger error. http://php.net/manual/en/function.trigger-error.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Ashley Sheridan
On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the ArtWork folder any ideas? if ($_FILES) { for ($x=0; $x 15; $x++) {

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Bastien Koert
2009/3/30 Terion Miller webdev.ter...@gmail.com I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the ArtWork folder any ideas? if ($_FILES) { for ($x=0; $x 15; $x++) {

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
On Mon, Mar 30, 2009 at 1:11 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Ashley Sheridan
On Mon, 2009-03-30 at 12:47 -0500, Terion Miller wrote: On Mon, Mar 30, 2009 at 1:11 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: I have this script that is no longer working to upload files, it goes thru the motions and

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
The chmod in the script just ensures that the file you uploaded is given the correct permissions. Turn on all errors and warnings for the script so you can see where the problem is. Ash www.ashleysheridan.co.uk Thanks everyone, I figured it out, it was the directory permissions ...now

RE: [PHP] help installing phpDocumentor

2009-02-24 Thread Bob McConnell
From: Jim Lucas I may be wrong, but I heard short tags were going the way of the Dodo bird as of PHP6. This is not surprising. With the advent of XHTML, the short tag option collides with another valid tag, ?xml. So that option has to be turned off as soon as you need any XML in your pages.

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com --

RE: [PHP] help installing phpDocumentor

2009-02-24 Thread Ashley Sheridan
On Tue, 2009-02-24 at 08:51 -0500, Bob McConnell wrote: From: Jim Lucas I may be wrong, but I heard short tags were going the way of the Dodo bird as of PHP6. This is not surprising. With the advent of XHTML, the short tag option collides with another valid tag, ?xml. So that option

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Lewis Wright
Forgot to click reply all! Sorry. -- Forwarded message -- From: Lewis Wright lewiswri...@gmail.com Date: 2009/2/24 Subject: Re: [PHP] help installing phpDocumentor To: a...@ashleysheridan.co.uk Turn on notices and maybe even strict messages (in your development environment

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Ashley Sheridan
On Tue, 2009-02-24 at 20:18 +, Lewis Wright wrote: Forgot to click reply all! Sorry. -- Forwarded message -- From: Lewis Wright lewiswri...@gmail.com Date: 2009/2/24 Subject: Re: [PHP] help installing phpDocumentor To: a...@ashleysheridan.co.uk Turn on notices

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Lewis Wright
I'm sorry, Gmail makes me do it! 2009/2/24 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-02-24 at 20:18 +, Lewis Wright wrote: Forgot to click reply all! Sorry. -- Forwarded message -- From: Lewis Wright lewiswri...@gmail.com Date: 2009/2/24 Subject: Re: [PHP

RE: [PHP] help installing phpDocumentor

2009-02-24 Thread Bob McConnell
From: Lewis Wright Turn on notices and maybe even strict messages (in your development environment), and PHP should warn you of any deprecated code. Easier said than done. I don't have an IDE available. I have tried the Komodo editor and am now playing with Eclipse/PDT, but neither of those

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Lewis Wright
2009/2/24 Bob McConnell r...@cbord.com: From: Lewis Wright Turn on notices and maybe even strict messages (in your development environment), and PHP should warn you of any deprecated code. Easier said than done. I don't have an IDE available. I have tried the Komodo editor and am now

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Ashley Sheridan
On Tue, 2009-02-24 at 20:55 +, Lewis Wright wrote: 2009/2/24 Bob McConnell r...@cbord.com: From: Lewis Wright Turn on notices and maybe even strict messages (in your development environment), and PHP should warn you of any deprecated code. Easier said than done. I don't have an

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread Jim Lucas
jim white wrote: I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far eluded me. Are there any installation instructions for this? Jim White searching google for install phpDocumentor first result is this

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread jim white
Jim Lucas wrote: jim white wrote: I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far eluded me. Are there any installation instructions for this? Jim White searching google for install phpDocumentor first result

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread Jim Lucas
jim white wrote: Jim Lucas wrote: jim white wrote: I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far eluded me. Are there any installation instructions for this? Jim White searching google for install

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread jim white
Jim Lucas wrote: jim white wrote: Jim Lucas wrote: jim white wrote: I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far eluded me. Are there any installation instructions for this? Jim White

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread Jim Lucas
Back on the list... jim white wrote: Jim Lucas wrote: jim white wrote: Jim Lucas wrote: jim white wrote: I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far eluded me. Are there any installation

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread jim white
Jim Lucas wrote: Back on the list... jim white wrote: Jim Lucas wrote: jim white wrote: Jim Lucas wrote: jim white wrote: I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far

Re: [PHP] Help with MySQL

2009-02-13 Thread Waynn Lue
You can type show create table tablename to see the datatypes. Waynn On 2/13/09, James Colannino ja...@colannino.org wrote: Hey everyone. I've been reading the list for a long time, but have only really posted to the mailing list a few times. I just had a quick question about MySQL. I'm

Re: [PHP] Help on caching an object.

2009-02-11 Thread Stuart
2009/2/11 Yeti y...@myhich.com: Hello gang, First of all, yes I searched the mailing list's archive. My problem is very simple: I have an object that's definately called with every page request. It's pretty much the same for every unregistered/anonymous user. And it's not small. Alot of

Re: [PHP] Help on caching an object.

2009-02-11 Thread Stuart
Emailing me directly is not cheap, please don't do it again without expecting an invoice. 2009/2/11 faisal murad faisalsa...@gmail.com: how can i unsubscribe from php list. It's really difficult. You follow the instructions shown at the end of each frickin' email!! To unsubscribe, visit:

Re: [PHP] Help on caching an object.

2009-02-11 Thread Virgilio Quilario
My problem is very simple: I have an object that's definately called with every page request. It's pretty much the same for every unregistered/anonymous user. And it's not small. Alot of attributes are being set from DB queries etc. Now my idea was to do some sort of caching with PHP to

Re: [PHP] help with require/includes pathing frustration

2009-01-28 Thread Edmund Hertle
2009/1/29 Daevid Vincent dae...@daevid.com At the very top of my login.php page I have this: ?php require_once('./includes/gui/gui_setup.inc.php'); ... ? (I've tried with and without the ./ prefix as if that might make a difference) When I try to load the URL:

Re: [PHP] help with require/includes pathing frustration [SOLVED]

2009-01-28 Thread Daevid Vincent
OMFG! I'm an idiot. This is what happens when you work long hours and refactor code without eating/sleeping properly.. so... it's gui_setup.inc.php I'm trying to include, yet the file is named gui_setup.php. What a newb mistake!!! UGH. Sorry for wasting everyone's bandwidth. Is there a way to

Re: [PHP] help with require/includes pathing frustration

2009-01-28 Thread Daniel Brown
On Wed, Jan 28, 2009 at 22:15, Daevid Vincent dae...@daevid.com wrote: At the very top of my login.php page I have this: ?php require_once('./includes/gui/gui_setup.inc.php'); ... ? (I've tried with and without the ./ prefix as if that might make a difference) Not that it will make a

Re: [PHP] help with require/includes pathing frustration [SOLVED]

2009-01-28 Thread Daniel Brown
On Wed, Jan 28, 2009 at 22:23, Daevid Vincent dae...@daevid.com wrote: What a newb mistake!!! UGH. Sorry for wasting everyone's bandwidth. Is there a way to have this email deleted from the archives -- I am embarrassed by it! HAHAH! You wish. Just be glad the PostTrack isn't running

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:01 PM, Murray planetthought...@gmail.com wrote: Hi All, I'd like to understand unit testing better (or, in fact, at all). I understand the broad idea that testing Is A Very Good Thing, but when I have tried to look into it further (for example, have just been looking

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Murray
I think this is my problem -- basically to know how to get some benefit from it. If I have a function in a class that is supposed to return some rows, how would I go about performing a useful unit test on it? In theory (and in my current practice), I can simply dump the array or object, or step

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:24 PM, Murray planetthought...@gmail.com wrote: I think this is my problem -- basically to know how to get some benefit from it. If I have a function in a class that is supposed to return some rows, how would I go about performing a useful unit test on it? In theory

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:31 PM, Eric Butera eric.but...@gmail.com wrote: On Wed, Jan 21, 2009 at 7:24 PM, Murray planetthought...@gmail.com wrote: I think this is my problem -- basically to know how to get some benefit from it. If I have a function in a class that is supposed to return some

Re: [PHP] Help debugging a file upload on IIS

2008-12-29 Thread Ashley Sheridan
On Mon, 2008-12-29 at 11:54 -0800, Brian Dunning wrote: Hi - I have a file upload that returns no error, but the file does not appear on the server. Here is the result of $_FILES: Array ( [f] = Array ( [name] = Elephants.pdf [type] = application/pdf

Re: [PHP] Help debugging a file upload on IIS

2008-12-29 Thread Ashley Sheridan
On Mon, 2008-12-29 at 20:34 +, Ashley Sheridan wrote: On Mon, 2008-12-29 at 11:54 -0800, Brian Dunning wrote: Hi - I have a file upload that returns no error, but the file does not appear on the server. Here is the result of $_FILES: Array ( [f] = Array ( [name]

Re: [PHP] Help debugging a file upload on IIS

2008-12-29 Thread Brian Dunning
The one thing I was doing was: move_uploaded_file($_FILES['upload_file']['tmp_name'], $new_path); but nothing was happening, no new file appearing where it was supposed to, and no error returned, left me scratching my head. (Later the same script logs the upload to MySQL using data from

Re: [PHP] Help debugging a file upload on IIS

2008-12-29 Thread Ashley Sheridan
On Mon, 2008-12-29 at 13:29 -0800, Brian Dunning wrote: The one thing I was doing was: move_uploaded_file($_FILES['upload_file']['tmp_name'], $new_path); but nothing was happening, no new file appearing where it was supposed to, and no error returned, left me scratching my head. (Later the

Re: [PHP] Help with a Search Function

2008-12-25 Thread Vicente
Terion wrote: Hey Everyone, been steaming right along for a couple days but now I'm stuck on writing a search function, could you all take a look at it and see what it could be, I will mark the line throwing the error in red, I did try just commenting out that line and searching for a record

Re: [PHP] Help with a Search Function

2008-12-24 Thread Jim Lucas
Terion Miller wrote: Hey Everyone, been steaming right along for a couple days but now I'm stuck on writing a search function, could you all take a look at it and see what it could be, I will mark the line throwing the error in red, I did try just commenting out that line and searching for a

Re: [PHP] Help with a Search Function

2008-12-23 Thread Ashley Sheridan
On Tue, 2008-12-23 at 16:14 -0600, Terion Miller wrote: Hey Everyone, been steaming right along for a couple days but now I'm stuck on writing a search function, could you all take a look at it and see what it could be, I will mark the line throwing the error in red, I did try just commenting

RE: [PHP] Help with IF ELSE

2008-12-05 Thread David Stoltz
] On Behalf Of Richard Heyes Sent: Thursday, December 04, 2008 3:17 PM To: David Stoltz Cc: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE I'm new to PHP - I'm trying to figure out what is wrong with a simple IF ELSE block I have...if the recordset $rs is empty (login fails), the 1st

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
:[EMAIL PROTECTED] On Behalf Of Richard Heyes Sent: Thursday, December 04, 2008 3:17 PM To: David Stoltz Cc: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE I'm new to PHP - I'm trying to figure out what is wrong with a simple IF ELSE block I have...if the recordset $rs is empty

RE: [PHP] Help with IF ELSE

2008-12-05 Thread David Stoltz
(HostWare Kft.) [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 6:59 AM To: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE You should check if php.ini has display_error off. This can prevent all error message to be shown. SanTa - Original Message - From: David

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
] To: Richard Heyes [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, December 05, 2008 12:42 PM Subject: RE: [PHP] Help with IF ELSE I turned on error reporting (ALL) as you suggested. Nothing is being sent to the browserstill doesn't work if the recordset isn't empty. I'm wondering

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
Subject: RE: [PHP] Help with IF ELSE The problem turned out to be, since I'm using the MCRYPT function to encrypt the password, once in a while the encrypted password will have a bad character: ßt¦?rDþž’Q…ß±– For example, the above has ’ This stops the PHP processing cold when executing

RE: [PHP] Help with IF ELSE

2008-12-05 Thread David Stoltz
WOO HOO - addslashes baby! Thank you! -Original Message- From: Sándor Tamás (HostWare Kft.) [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 7:26 AM To: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE The solution is addslashes(). This function adds a backslash

RE: [PHP] Help with IF ELSE

2008-12-05 Thread tedd
At 7:19 AM -0500 12/5/08, David Stoltz wrote: The problem turned out to be, since I'm using the MCRYPT function to encrypt the password, once in a while the encrypted password will have a bad character: --snip-- So then, how does one store this type of string? I can't do a string

Re: [PHP] Help with IF ELSE

2008-12-05 Thread Andrew Ballard
- Original Message - From: David Stoltz [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, December 05, 2008 1:19 PM Subject: RE: [PHP] Help with IF ELSE The problem turned out to be, since I'm using the MCRYPT function to encrypt the password, once in a while

Re: [PHP] Help with IF ELSE

2008-12-05 Thread Andrew Ballard
On Fri, Dec 5, 2008 at 6:42 AM, David Stoltz [EMAIL PROTECTED] wrote: I turned on error reporting (ALL) as you suggested. Nothing is being sent to the browserstill doesn't work if the recordset isn't empty. I'm wondering, is there any other way to do a redirect in PHP? Thanks That is

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
PROTECTED] Cc: php-general@lists.php.net Sent: Friday, December 05, 2008 3:52 PM Subject: Re: [PHP] Help with IF ELSE On Fri, Dec 5, 2008 at 6:42 AM, David Stoltz [EMAIL PROTECTED] wrote: I turned on error reporting (ALL) as you suggested. Nothing is being sent to the browserstill doesn't work

RE: [PHP] Help with IF ELSE

2008-12-05 Thread ceo
Please do NOT use addslashes. Replace it with this: http://php.net/mysql_real_escape_string It is CRUCIAL if your database might maybe ever consider going international and having charset other than ISO-8856-1 or Latin1 [or the MySQL default of Monty's native language, which is very

RE: [PHP] Help with IF ELSE

2008-12-05 Thread Chrome
-Original Message- From: Sándor Tamás (HostWare Kft.) [mailto:[EMAIL PROTECTED] Sent: 05 December 2008 14:58 To: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE In fact, if I have to redirect, and I am not sure about headers are sent or not, I usually do

Re: [PHP] Help with IF ELSE

2008-12-05 Thread Bastien Koert
On Fri, Dec 5, 2008 at 9:17 AM, tedd [EMAIL PROTECTED] wrote: At 7:19 AM -0500 12/5/08, David Stoltz wrote: The problem turned out to be, since I'm using the MCRYPT function to encrypt the password, once in a while the encrypted password will have a bad character: --snip-- So then, how

Re: [PHP] Help with IF ELSE

2008-12-04 Thread Richard Heyes
I'm new to PHP - I'm trying to figure out what is wrong with a simple IF ELSE block I have...if the recordset $rs is empty (login fails), the 1st part of the block works, and redirects the user to default.php - but if the login works, and $rs is not empty, the 2nd else part does not work, and

Re: [PHP] Help with understanding an error

2008-11-24 Thread Wolf
Terion Miller [EMAIL PROTECTED] wrote: Can anyone help explain what I need to do to fix this: Error: *Warning*: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in * C:\Inetpub\wwwroot\WorkOrderSystem\ViewWorkOrder.php* on line *57* *Warning*:

Re: [PHP] Help with understanding an error

2008-11-24 Thread Terion Miller
I added an echo and got this: Query failed: Unknown column 'WorkOrderNumber' in 'field list' Actual query: but the actual query is blank and as I have stated before when I have had questions on this list, I am NOT a php programmer, just learning and inherited a job with tons of php already in

Re: [PHP] Help with understanding an error

2008-11-24 Thread Stut
On 24 Nov 2008, at 17:28, Terion Miller wrote: Can anyone help explain what I need to do to fix this: Error: *Warning*: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in * C:\Inetpub\wwwroot\WorkOrderSystem\ViewWorkOrder.php* on line *57* *Warning*:

Re: [PHP] Help with understanding an error

2008-11-24 Thread Terion Miller
this was the code I posted that accidentally only went to Wolf: what does STFW mean? ?php include(inc/dbconn_open.php); if (empty($_SESSION['AdminLogin']) OR $_SESSION['AdminLogin'] 'OK' ){ ? script language=javascript window.close(); /script ?php exit(); } if

Re: [PHP] Help with understanding an error

2008-11-24 Thread Wolf
Bottom POST when mailing the list. My responses inline and at the bottom Terion Miller [EMAIL PROTECTED] wrote: this was the code I posted that accidentally only went to Wolf: what does STFW mean?

Re: [PHP] Help insert not working, implode errors....

2008-11-18 Thread Ashley Sheridan
On Tue, 2008-11-18 at 16:52 -0600, Terion Miller wrote: I changed the implode to : if (isset($_POST['BannerSize'])){$BannerSize = implode(',', $_POST['BannerSize']);} else {$BannerSize = ;} now it says Invalid Arguement whereas when it was the other way it didn't On Tue, Nov 18, 2008

Re: [PHP] Help insert not working, implode errors....

2008-11-18 Thread Terion Miller
I changed the implode to : if (isset($_POST['BannerSize'])){$BannerSize = implode(',', $_POST['BannerSize']);} else {$BannerSize = ;} now it says Invalid Arguement whereas when it was the other way it didn't On Tue, Nov 18, 2008 at 12:38 AM, Jim Lucas [EMAIL PROTECTED] wrote: Terion Miller

Re: [PHP] Help insert not working, implode errors....

2008-11-18 Thread Jim Lucas
Terion Miller wrote: I changed the implode to : if (isset($_POST['BannerSize'])){$BannerSize = implode(',', $_POST['BannerSize']);} else {$BannerSize = ;} now it says Invalid Arguement whereas when it was the other way it didn't Invalid Argument. Then $_POST['BannerSize'] is not what

Re: [PHP] Help insert not working, implode errors....

2008-11-17 Thread Ashley Sheridan
My eyes are bleeding! Did you ever see it working before? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help insert not working, implode errors....

2008-11-17 Thread Jim Lucas
Terion Miller wrote: Help I inherited this script and just found that its not inserting anything into the workorderform table in the db, and I'm getting implode() errors for the 'bannersize' isset line New and need help in over my head: here is the code: First off, I would argue that this

Re: [PHP] help - php script - no interaction

2008-10-16 Thread Dan Joseph
On Thu, Oct 16, 2008 at 1:10 PM, John Smtih [EMAIL PROTECTED] wrote: http://www.site1.com http://www.site2.com http://www.site3.com I have 3 sites above in a html. I do not want to create click each site, one at a time to see 1 page info. I want to write a script to go get all 3

Re: [PHP] Help and Advice needed please.

2008-08-24 Thread Byron
Yep, a mysql database seems like the way to go. Thanks to all who have offered to help on this project. Perhaps we could get together and figure out what needs doing, assign jobs etc. I have hosting already sorted. Cheers guys. On Sun, Aug 24, 2008 at 5:05 AM, sean greenslade [EMAIL

Re: [PHP] Help and Advice needed please.

2008-08-24 Thread Jochem Maas
Byron schreef: Yep, a mysql database seems like the way to go. Thanks to all who have offered to help on this project. Perhaps we could get together and figure out what needs doing, assign jobs etc. I have hosting already sorted. Cheers guys. great, take it offlist please. this is not a forum

Re: [PHP] Help and Advice needed please.

2008-08-23 Thread sean greenslade
I would be willing to help with this project. Because of all the different requirements of this, I would recommend a totally custom set of scripts, and a mysql database to hold all the data. On Sat, Aug 23, 2008 at 7:22 AM, Byron [EMAIL PROTECTED] wrote: Hey. I do some part-time IT work for a

Re: [PHP] Help and Advice needed please.

2008-08-23 Thread Luke
I'm up for helping too. Also, a big agree to Sean too, MySQL seems the best way to go here. 2008/8/23 sean greenslade [EMAIL PROTECTED] I would be willing to help with this project. Because of all the different requirements of this, I would recommend a totally custom set of scripts, and a

Re: [PHP] Help and Advice needed please.

2008-08-23 Thread sean greenslade
So Byron, what do you think? Do you like the idea of a mysql database? On Sat, Aug 23, 2008 at 11:57 AM, Luke [EMAIL PROTECTED] wrote: I'm up for helping too. Also, a big agree to Sean too, MySQL seems the best way to go here. 2008/8/23 sean greenslade [EMAIL PROTECTED] I would be willing

[PHP] Re: Php Help

2008-07-30 Thread Shawn McKenzie
[EMAIL PROTECTED] wrote: I cannot get Php to run on Solaris 10... Here is the error I am getting Trying to run php outside of apache ld.so.1: php: fatal: libldap-2.3.so.0: open failed: No such file or directory With

Re: [PHP] Help with an error...

2008-07-25 Thread Payne
Jim Lucas wrote: Payne wrote: Jim Lucas wrote: So, to summarize everything said, with my own added notes. [EMAIL PROTECTED] wrote: Hi, I am currently working on a php script that will be called by cron. But I have an error that keeps coming up. Parse error: syntax error, unexpected

Re: [PHP] Help with an error...

2008-07-25 Thread Philip Thompson
On Jul 24, 2008, at 12:40 PM, Micah Gersten wrote: You cannot have commands in the middle of a string. Technically you can. ?php $str = Hi, my name is . $this-getName(); // or $str = Hi, my name is $this-getName(); echo $str; ? ~Philip Try building a string first, or use output

Re: [PHP] Help with an error...

2008-07-25 Thread Philip Thompson
Ooop! Didn't read the whole thread before I sent this. Disregard what I said earlier 'cuz others ripped before I did. ;) ~Phil On Jul 25, 2008, at 3:59 PM, Philip Thompson wrote: On Jul 24, 2008, at 12:40 PM, Micah Gersten wrote: You cannot have commands in the middle of a string.

Re: [PHP] Help with an error...

2008-07-25 Thread Micah Gersten
Philip Thompson wrote: On Jul 24, 2008, at 12:40 PM, Micah Gersten wrote: You cannot have commands in the middle of a string. Technically you can. ?php $str = Hi, my name is . $this-getName(); This is correct, but is not in the middle of the string. // or $str = Hi, my name is

Re: [PHP] Help with an error...

2008-07-24 Thread Daniel Brown
On Thu, Jul 24, 2008 at 1:52 PM, [EMAIL PROTECTED] wrote: Hi, I am currently working on a php script that will be called by cron. But I have an error that keeps coming up. Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on You didn't include the line number in the

Re: [PHP] Help with an error...

2008-07-24 Thread Micah Gersten
You cannot have commands in the middle of a string. Try building a string first, or use output buffering and then capture the buffer and use that as the string for the mail function. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com [EMAIL PROTECTED] wrote:

Re: [PHP] Help with an error...

2008-07-24 Thread Bastien Koert
On Thu, Jul 24, 2008 at 1:52 PM, [EMAIL PROTECTED] wrote: Hi, I am currently working on a php script that will be called by cron. But I have an error that keeps coming up. Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on What I am trying to do is a simple php script

Re: [PHP] Help with an error...

2008-07-24 Thread Thorsten Suckow-Homberg
Daniel already answerd regarding your error, but... ?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); ... if you call the script via cron I'm pretty sure $_SERVER won't be available since the script is not used in a running webserver process context. -- PHP General Mailing List

<    1   2   3   4   5   6   7   8   9   10   >