=
?
:
;
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
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
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
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
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
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
Like echo foo\n
--
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:
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
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
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
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
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
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
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
[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
[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
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=\\;
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
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
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
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
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
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){
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
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
--
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
[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:
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
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
/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
) 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
-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
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
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
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
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
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
43 matches
Mail list logo