Re: [PHP] who can do this without the recursion

2005-07-05 Thread Chris Ramsay
= ? : ; nah, didn't think so - none the less you might be surprised how many people it annoys ;-) It annoys the hell out of me, but I can't help liking it at the same time...I am now really confused!!! -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Optimizing Help

2005-06-13 Thread Chris Ramsay
Hey there Jackson, The first thing I would consider would be to see if you can classify the code into chunks that do a certain job, and then rewrite them as functions. I would also consider looping through arrays for repetitive jobs (lines 258 - 270 for example). Down the line you could consider

Re: [PHP] Optimizing Help

2005-06-13 Thread Chris Ramsay
Jackson, Yeah, what you can do is place all your form values you just got into an array, and then act on each of them in turn by looping through the array when it comes to repetitive jobs, such as the mysql_real_escape_string(trim($_POST['variable'])) part of the code I referred to earlier. You

Re: [PHP] Installation

2005-06-09 Thread Chris Ramsay
Go to where you extracted php (I assume it was C:\php, right?) and there is a file called install.txt - read it; it will tell you exactly what you need to know... Raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] directory listing from text file

2005-05-18 Thread Chris Ramsay
Dreiph, If you're familiar with PEAR, take a look at this: http://pear.php.net/package/HTML_TreeMenu regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySql injections....

2005-05-11 Thread Chris Ramsay
Read Chris' article here: http://shiflett.org/articles/security-corner-apr2004 This should explain everything to you - and yes it's down to the scripts you run. Chris R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend Certification Exam

2005-04-26 Thread Chris Ramsay
snip I dont understand what's the problem if I asked? So why such a reply? I don't understand. /snip Perhaps it came across as a bit cheeky to Aaron - I kind of got the impression that an answer from someone who has had a go but not passed the exam was not good enough for you... Really, I

Re: [PHP] want to take credit card payments (novice)?

2005-04-26 Thread Chris Ramsay
Personally, I avoid it at all costs - let a large organisation with all the associated security, insurance etc such as Worldpay handle these things...also, search the archives of this list - I believe there was a protracted discussion of this a few weeks ago... Chris -- PHP General Mailing List

Re: [PHP] Line feed in a echo

2005-04-26 Thread Chris Ramsay
Like echo foo\n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Show data in two columns

2005-04-26 Thread Chris Ramsay
Looks like they've done something like the following: while (row = data output from db) { print the following: tabletr td width=50% tabletrtdrow1/td/tr/table tabletrtdrow2/td/tr/table tabletrtdrow3/td/tr/table /td td width=50% tabletrtdrow4/td/tr/table tabletrtdrow5/td/tr/table

Re: [PHP] Having a problem

2005-04-25 Thread Chris Ramsay
On 4/25/05, Rittwick Banerjee [EMAIL PROTECTED] wrote: Hi friends, This is Rittwick Banerjee I have a problem with PHP and MySql while i'm trying to give a code into a PHP file. The main problem is I can't delete any kinds of records from my MySql database using a PHP code . Can any help

Re: [PHP] phpclasses formerly Flash integration

2005-04-25 Thread Chris Ramsay
I must admit, I agree with Ryan A's points - I used to visit the site regularly, but the ads and stuff have put me off a little bit these days... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Windows and Query String

2005-04-18 Thread Chris Ramsay
snip Thus, I am stuck having to get this to work until I can find about 50,000 hours to conver all of the code. /snip No doubt a lesson is contained herewith...if you are working on a windows machine now, grab yourself a free copy of Textpad from Helios (google for it) and use their wonderful

[PHP] PHPMaker - your opinions...

2005-04-12 Thread Chris Ramsay
Hello all, I'm curious - has anyone on the list ever used PHPMaker? I apologise in advance if this is heresy; the reason I am asking is that I am in the position of arguing my corner against the use of PHPMaker for someone actually bothering to code by hand. I can't believe that PHPMaker could

Re: [PHP] noob need help for sessions

2005-04-06 Thread Chris Ramsay
session_start() has to be at the top of the page... cheers

Re: [PHP] Exchanging Data among processes

2005-04-04 Thread Chris Ramsay
Matheus, As a start I would check out using sockets: http://uk.php.net/sockets rgds Chris Ramsay

Re: [PHP] Avoiding SQL injections: htmlentities() ?

2005-03-26 Thread Chris Ramsay
This is excellent: http://www.shiflett.org/ Chris R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert date format-SOLVED

2005-03-24 Thread Chris Ramsay
Angelo, slightly OT , but as a point of interest perhaps, $row['date'] seemed to indicate that your date comes out of a DB - you can date format stuff with sql too - I find that useful sometimes... With MySQL for example, if your date field is called 'myDate' you can do the following in the

Re: [PHP] seraching / indexing in php

2005-03-23 Thread Chris Ramsay
If you are using Apache you also have the option of using the rewrite rule to change your urls - for example http://www.mydomain.com/index.php?a=foob=bar to http://www.mydomain.com/foo/bar If you are interested there is plenty of info on the net about the apache rewrite rule... -- PHP General

Re: [PHP] remove space

2005-03-22 Thread Chris Ramsay
[snip] How can I remove a space character from variable value. [/snip] Take a look at preg_replace, for example... RTFM @ http://www.php.net/preg_replace ;) chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] spot the mistake??

2005-03-22 Thread Chris Ramsay
[snip] if (isset($submitted)){ [/snip] s...what sets $submitted then? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forms

2005-03-21 Thread Chris Ramsay
On Mon, 21 Mar 2005 10:04:23 -0600, Marquez Design [EMAIL PROTECTED] wrote: Greetings, Does anyone know how to get a particular option to display in a drop menu? Perhaps, do db query first, then for each option (perhaps as a foreach or something): echo option name=\whatever\ value=\\;

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread Chris Ramsay
On Fri, 18 Mar 2005 09:42:13 + (GMT), babu [EMAIL PROTECTED] wrote: Hi all i am newbie, I have a php code like this ?php foreach($_SESSION['history'] as $item) { $item = str_replace(;,,$item); echo option $item/option; //echo option$item/option; If I understand your

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread Chris Ramsay
Babu, Check out: http://www.trans4mind.com/personal_development/StyleSheets/formElements.htm or google http://www.google.com/search?hl=enq=option+text+colourmeta= HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More function troubles

2005-03-18 Thread Chris Ramsay
On Fri, 18 Mar 2005 10:15:08 -, AndreaD [EMAIL PROTECTED] wrote: Still strugglin through with the PHP stuff.. I keep getting a Warning: Missing argument 2 for check_zero() in c:\Inetpub\wwwroot\ecurry\order.php on line 5 if ($name == andrea) { $experience= 2; $age= 24 where's

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread Chris Ramsay
Babu, but it doe not work can you pls tell me. for example you can define 'red' as a css class either in the head of your document output (within style tags) or as an external linked .css document. 'red' is defined so: .red { color:#FF; } Then your option html is like: echo

Re: [PHP] More function troubles

2005-03-18 Thread Chris Ramsay
On Fri, 18 Mar 2005 10:21:00 +, Chris Ramsay [EMAIL PROTECTED] wrote: On Fri, 18 Mar 2005 10:15:08 -, AndreaD [EMAIL PROTECTED] wrote: Still strugglin through with the PHP stuff.. I keep getting a Warning: Missing argument 2 for check_zero() in c:\Inetpub\wwwroot\ecurry

Re: [PHP] VERY basic function question

2005-03-17 Thread Chris Ramsay
On Thu, 17 Mar 2005 10:24:31 +0200, William Stokes [EMAIL PROTECTED] wrote: I'm trying to learn functions (just started). I can't see why this fails: ?php function count($var) You cannot use count as a function name - count() actually does something - see the php manual { if ($var == 10){

Re: [PHP] can I do a for each here??

2005-03-17 Thread Chris Ramsay
Difficult to be definitive without seeing your code, but I would be tempted by the use of arrays... cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function troubles...

2005-03-17 Thread Chris Ramsay
Will Whatever you are making available in the required file sql.php, it is not accessible by the function shit_func. Define the connection string or whatever as a global inside function shit_func and it should work, else make the connection within the function - not such a good idea... chris --

Re: [PHP] MIME Types

2005-03-16 Thread Chris Ramsay
On Wed, 16 Mar 2005 11:01:29 -, Mikey [EMAIL PROTECTED] wrote: Sunny mornings to you all! Does anyone on this NG know off of the top of their heads what the correct MIME type is for a CSV file? What I've always used is: Content-type: application/octet-stream The closest I have found

Re: [PHP] listing directories

2005-03-15 Thread Chris Ramsay
[snip] How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) [/snip] Check out the mail archive, mate... http://marc.theaimsgroup.com/?l=php-generalr=1w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP file as homepage?

2005-03-15 Thread Chris Ramsay
Usually index.php is defined as a default document in httpd.conf if you are using apache, or set using the internet services dialogue in IIS On Tue, 15 Mar 2005 11:10:30 -0500, Phil Neeb [EMAIL PROTECTED] wrote: I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as

RE: [PHP] FW: [NEWBIE GUIDE] For the benefit of new members

2005-02-11 Thread Chris Ramsay
An addition to point 5 perhaps? [snip] One useful trick is to print the variable/sql query using print or echo command and check whether you get what you expected. [/snip] How about mentioning var_dump() and print_r() also? rgds Chris Ramsay -- PHP General Mailing List (http://www.php.net

RE: [PHP] Problem using return from a class.

2005-02-08 Thread Chris Ramsay
[snip] I am having a really odd problem. I have a class and if I do a return nothing is returned. If I do an echo of the variable that is being returned I can see it so there is something to return. Is there some strange bug in PHP? [/snip] What is it you are doing - are you echoing the call

RE: [PHP] Hoe does that work - http://www.domainname.con/?var=lakjhd (instead of http://www.domainname.con/file.php?var=lakjhd)?

2005-02-03 Thread Chris Ramsay
/core.html#directory Chris Ramsay Web Developer - The Danwood Group Ltd. Tel #: +44 (0)1522 882 288 DDI #: +44 (0)1522 834 482 Fax #: +44 (0)1522 884 488 Email: [EMAIL PROTECTED] Web : http://www.danwood.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] Hoe does that work - http://www.domainname.con/?var=lakjhd (instead of http://www.domainname.con/file.php?var=lakjhd)?

2005-02-03 Thread Chris Ramsay
) to /... If you want your file to be called anything else other than index.php, best you check out the apache mailing list archives: http://marc.theaimsgroup.com/?l=apache-httpd-users as this is a PHP mailing list ;) Chris Ramsay Web Developer - The Danwood Group Ltd. Tel #: +44 (0)1522 882 288 DDI #: +44 (0

RE: [PHP] Fighting user's cache with an updated image

2005-02-02 Thread Chris Ramsay
-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); // HTTP/1.0 header(Pragma: no-cache); ? Read the documentation - it may be just what you need for this problem... Chris Ramsay Web Developer - The Danwood Group Ltd. Tel #: +44 (0)1522 882 288 DDI #: +44 (0)1522 834 482 Fax #: +44

RE: [PHP] rss feeder using php?

2005-01-28 Thread Chris Ramsay
ALREADY know how to do a google search. What we are interested is some feedback on real products you have tested. [snip] Why not google search? Nothing wrong with doing some experimenting yourself... Chris Ramsay - Web Developer

[PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Chris Ramsay
I too agree - the list raises some really important points... Just a thought, but would it be worth someone posting the list once a week to catch new users as they sign up? Might be worth it in the interest of keeping the list tidy? Chris Ramsay

RE: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Chris Ramsay
Richard TheList... Isn't it posted once a month as it is? Hot damn! That'll be why I have never seen it then! :/ Apologies to all!!! Chris Ramsay - Web Developer - The Danwood Group Ltd. T: +44 (0) 1522 834482 F: +44 (0) 1522

[PHP] [Fwd: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numberswith X ???)]

2005-01-25 Thread Chris Ramsay
snip Join the club.. everyone who posts gets one. Annoying, no? /snip Maybe that's another thing to add to the [NEWBIE GUIDE] - I would have found it useful! ;) Chris Ramsay - Web Developer - The Danwood Group Ltd. T: +44 (0) 1522

RE: [PHP] [Fwd: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numberswith X ???)]

2005-01-25 Thread Chris Ramsay
snip Hey! I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!? /snip I have received this also with both my postings today...and probably will again... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php