>=
>?
>:
>;
>
> 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
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 c
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
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
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
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
Looks like they've done something like the following:
while (row = data output from db) {
print the following:
row1
row2
row3
row4
row5
row6
}
Check out their source html as a start...
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
Like echo "foo\n"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 (
> I dont understand what's the problem if I asked?
> So why such a reply? I don't understand.
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 doubt whethe
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
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
Thus, I am stuck
having to get this to work until I can find about 50,000 hours to conver
all of the code.
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 search and re
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 pos
session_start() has to be at the top of the page...
cheers
Matheus,
As a start I would check out using sockets:
http://uk.php.net/sockets
rgds
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
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 query
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=foo&b=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
[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
[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
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 "";
cheers
--
PHP General Mai
CHeers
On Fri, 18 Mar 2005 10:21:00 +0000, 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
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
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
Babu,
Check out:
http://www.trans4mind.com/personal_development/StyleSheets/formElements.htm
or google
http://www.google.com/search?hl=en&q=option+text+colour&meta=
HTH
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
>
> foreach($_SESSION['history'] as $item) {
> $item = str_replace(";","",$item);
>
> echo "$item";
> //echo "$item";
If I understand your question, you a
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
--
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
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:
> function count($var)
You cannot use count as a function name - count() actually does
something - see the php manual
> {
> if ($var == 10){
>
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
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
[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-general&r=1&w=2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
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
[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 i.e
"/"... 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
mod/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.
Check out:
http://uk2.php.net/manual/en/function.header.php
Where you will find:
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 (0)1522 884 488
t;, because I 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
>Hey!
>I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!?
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
Join the club.. everyone who posts gets one. Annoying, no?
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 834
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 83448
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
43 matches
Mail list logo