Do you have any idea why this query:
SELECT hh_listings.listID, listingName, phone, email, held, venderID,
hh_listings.disabled, hh_listings.deleted, hh_listings.levelID, levelName,
islandName FROM hh_listings, hh_listlevels, hh_islands WHERE
hh_listings.levelID=hh_listlevels.levelID AND
Do you have any idea why this query:
SELECT hh_listings.listID, listingName, phone, email, held, venderID,
hh_listings.disabled, hh_listings.deleted, hh_listings.levelID, levelName,
islandName FROM hh_listings, hh_listlevels, hh_islands WHERE
hh_listings.levelID=hh_listlevels.levelID AND
on 2/23/04 9:53, Matt Hedges at [EMAIL PROTECTED] wrote:
Hello,
I am working on using PHP to build a web store.
http://www.squirrelcart.com/ looks to be pretty good for a shopping cart-
does anyone have any experience with this or others?
Also, what suggestions do ya'll have for a
on 2/12/04 20:43, Jimmy at [EMAIL PROTECTED] wrote:
Hi all. Is PHP a suitable language for building an online shop? Where would
I go to find out more info on this? Thanks in advance!
The best ecommerce shop I have found that runs in PHP and MySQL would be
eShox.. a very very very well done
Ok I am trying to create a variable from the value of a variable plus some
extra text tagged on the end of it.
So for example:
$test = '_over';
$$CONFIG['island'].$test = 'testing';
echo hawaii = $hawaii_over;
How can I do this? Im sure it's possible, but it just is not working for me
:(
on 12/23/03 11:04, John W. Holmes at [EMAIL PROTECTED] wrote:
Richard Baskett wrote:
Ok I am trying to create a variable from the value of a variable plus some
extra text tagged on the end of it.
So for example:
$test = '_over';
$$CONFIG['island'].$test = 'testing';
${$CONFIG['island
on 11/21/03 15:49, Chris W. Parker at [EMAIL PROTECTED] wrote:
Hey everyone,
I just googled, freshmeated, and sourceforged but didn't find anything
good (or what I thought to be good that was free).
I'm looking for some helpdesk software and some intranet software with a
MySQL backend.
on 11/7/03 12:08, rush at [EMAIL PROTECTED] wrote:
Luis Lebron [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have been coding php for a few years now, but I haven't build a high
bandwidth application. I am currently working on an application for a
customer that may have a very
on 10/24/03 0:47, Nathan Taylor at [EMAIL PROTECTED] wrote:
I am a recent fan of the single-quotes. I used to use double only but when
some gurus told me the disadvantages I converted my entire project over to
single quotes. Single quotes are ideal because as far coding goes it greatly
on 10/24/03 10:00, Jonathan Villa at [EMAIL PROTECTED] wrote:
ok, I see, I have to use double quotes around it...
why is that?
Because they actually have to be evaluated.. when they are in single quotes
php thinks they are the string \r\n and not newline or carriage returns that
they are
on 10/22/03 13:32, David T-G at [EMAIL PROTECTED] wrote:
Richard, et al --
...and then Richard Baskett said...
%
% on 10/21/03 16:40, David T-G at [EMAIL PROTECTED] wrote:
%
% ...and then Marco Tabini said...
% %
% % php.general for new messages and send back an e-mail to the list
on 10/21/03 16:40, David T-G at [EMAIL PROTECTED] wrote:
Marco, et al -
...and then Marco Tabini said...
%
% Well, one of my original ideas was to have a process that would monitor
% php.general for new messages and send back an e-mail to the list with
% possible answers based on the
If I use:
ini_set(error_reporting, 0);
ini_set(display_errors, 0);
It still shows the errors.. if I use the error_reporting function.. it still
shows the errors, no matter what I do.. it still shows the errors!
What am I missing? I have it set in the php,ini to show errors, but I want
to be
on 10/16/03 16:51, John W. Holmes at [EMAIL PROTECTED] wrote:
Richard Baskett wrote:
If I use:
ini_set(error_reporting, 0);
ini_set(display_errors, 0);
It still shows the errors.. if I use the error_reporting function.. it still
shows the errors, no matter what I do.. it still shows
on 10/16/03 16:51, John W. Holmes at [EMAIL PROTECTED] wrote:
Richard Baskett wrote:
If I use:
ini_set(error_reporting, 0);
ini_set(display_errors, 0);
It still shows the errors.. if I use the error_reporting function.. it still
shows the errors, no matter what I do.. it still shows
on 10/16/03 18:35, Ryan A at [EMAIL PROTECTED] wrote:
Has this crap from hanmir started again?
Everytime I post to the list i get that @[EMAIL PROTECTED]@# letter from there
telling me
his mailbox if full.
Nearly every 2 weeks the mods kick the SOB out but he or someone else from
that damn
on 10/9/03 15:27, Adrian Esteban Madrid at [EMAIL PROTECTED] wrote:
I need to setup a shopping cart (SP) for a client and time/budget calls
for a premade SP. I've checked hotscripts.com and google and it seems to
me that there are as many SP in PHP as CMS or Frameworks in PHP, in
other words,
on 10/2/03 7:00, Jay Blanchard at [EMAIL PROTECTED] wrote:
[snip]
Because it is not a bug, it is bad code design! 8000+ lines of $x = 1; is
just
downright goofy! Did you happen to try it with 8000+ repeated blocks of any
other type? My bet is that it would quit then too.
Yeah no crash
on 10/2/03 5:12 AM, Jay Blanchard at [EMAIL PROTECTED]
wrote:
[snip]
So I tried it out.. at first I created a loop that assigned $x = 1; a whole
bunch of times, but that didn¹t crash anything.. .. 7996
Well to make an already long story short.. it looks like after a couple of
hours
on 10/2/03 7:00 AM, Jay Blanchard at [EMAIL PROTECTED]
wrote:
[snip]
Because it is not a bug, it is bad code design! 8000+ lines of $x = 1; is
just
downright goofy! Did you happen to try it with 8000+ repeated blocks of any
other type? My bet is that it would quit then too.
Yeah no crash
on 10/1/03 7:50 PM, Richard Baskett at [EMAIL PROTECTED] wrote:
Well I saw a post on a forum talking about a certain bug that PHP has for Mac
OS X.. so I thought.. Im on OS X, I should see if that bug is real since on
bugs.php.net they say it's bogus which you can view here:
http
on 10/2/03 2:05 PM, Chris W. Parker at [EMAIL PROTECTED] wrote:
Robert Cummings mailto:[EMAIL PROTECTED]
on Thursday, October 02, 2003 12:15 PM said:
Heeey, a great little response like this to see an alternative
to a popup and no link for us to check it out *pffft*
Well I saw a post on a forum talking about a certain bug that PHP has for
Mac OS X.. so I thought.. Im on OS X, I should see if that bug is real since
on bugs.php.net they say it's bogus which you can view here:
http://bugs.php.net/bug.php?id=25394
So I tried it out.. at first I created a loop
on 10/1/03 8:23 PM, Gerard Samuel at [EMAIL PROTECTED] wrote:
I've noticed code written in this order -
if (FALSE === $foo)
{
// yada yada
}
Is there a reason/benefit to test variables like that instead of -
if ($foo === FALSE)
{
// yada yada
}
Thanks
I think it's more to
on 9/9/03 9:33 AM, Matt MacLeod at [EMAIL PROTECTED] wrote:
I've built a log in system which sets the user's id as a session if
succesfully logged in. However, a user on IE5/Mac tells me that the site
logs her out even though she has entered the correct login details. I
have tried using her
on 9/9/03 11:46 AM, Lowell Allen at [EMAIL PROTECTED] wrote:
I've built a log in system which sets the user's id as a session if
succesfully logged in. However, a user on IE5/Mac tells me that the site
logs her out even though she has entered the correct login details. I
have tried using her
Ok I have loaded the new version of php 4.3.3, but now how in the world do I
enable PEAR? I have a couple of scripts that just call a pear php script,
but it says it doesn¹t exist.. does this mean that I need to change the
include path? How do I include all those pear classes?
Thanks!
Rick
Too
on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light bulb? 8)
Cheers,
Rob.
On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote:
Also ask a couple of other
on 8/26/03 10:50 AM, Edward Peloke at [EMAIL PROTECTED] wrote:
Hello all,
I am doing some php work for a local company who uses a mac. I was telling
them that I use apache as my webserver and they want to know what they can
use as their webserver. I know nothing about Macs and don't think
I am getting these majordomo mails as well, thought it was a problem at
my end. grrr, people who use the redmond operating system deserve to be
plagued by viruses.
Here here! Ill second that!
I will persist until I succeed. Always will I take another step. If that is
of no avail I will take
I think you guys are bragging :) I have had over 100 easily.. about 3 or 4
every 5 minutes.. it's pretty bad. I work with a bunch of colleges and I
think they are the ones getting hit the worse :(
Rick
I look forward to the invention of faster-than-light travel. What I'm not
looking forward
Wouldn¹t it just be easier to do a relationship table as in
Personnel
emp ID parent
'Albert' 1 0
'Bert'2 1
'Chuck' 3 1
'Donna' 4 0
'Eddie' 5 4
'Fred'6 0
'Joe' 7 6
This way you know the
When I import a file using the file() function it is screwing up any spanish
accents and putting in some strange characters in their place. Is there
something that I can do to remedy this?
So for example something like 'é' is being turned into '-', or 'í' is being
turned into '£' etc etc..
Validation PHP Class
Hello,
On 08/13/2003 06:35 PM, Richard Baskett wrote:
Do any of you know of a PHP Class that will interact with the UPS address
validation routine? I am completely confused when it comes to UPS and how
they integrate things.. and have been saved by someone's UPS Rate Class
Do any of you know of a PHP Class that will interact with the UPS address
validation routine? I am completely confused when it comes to UPS and how
they integrate things.. and have been saved by someone's UPS Rate Class, but
now I need an Address Validator.
Please please please help!
Thanks!
Ok I am having some serious problems with payflow pro.. Has anybody else
had the problem that when you execute the test.sh script it works fine, but
when you do the exact same thing in php it gives you a failed to connect
response message? If so what in the world did you do to get it to work?
This is how I do it:
if ($_SERVER['HTTPS']!='on') {
header(Location: https://mynet.com/pay.php;);
exit;
}
It is my ambition to say in ten sentences; what others say in a whole
book. - Friedrich Nietzsche
From: [EMAIL PROTECTED]
Date: Fri, 1 Aug 2003 10:20:58 +0200
To: [EMAIL PROTECTED]
yeah you can set a variable this way:
http://www.example.com/test.php?var=something
This sets the variables $var equal to something and you can use them
accordingly within your script. If you have safe mode on then you'll need
to access the $var variable by using the $_GET array like so:
Actually that does retrieve the number of rows..
// Query
$query = SELECT COUNT(*) AS count FROM pet;
// Execute Query
$result = mysql_query($query);
// Get the result of query named count
$count = mysql_result($result,0);
echo $count. is the number of rows;
Cheers!
Rick
In order to seek
Or just go to http://www.birthdayalarm.com/ and have them do it for you :)
I regard as a mortal sin not only the lying of the senses in matters of
love, but also the illusion which the senses seek to create where love is
only partial. I say, I believe, that one must love with all of one's being,
You might want to look at eShox, it's based on osCommerce, but in my opinion
it's quite a lot better.
Cheers!
Rick
The intuitive mind is a sacred gift and the rational mind is a faithful
servant. We have created a society that honors the servant and has
forgotten the gift. - Albert Einstein
Mostly eShox you are paying for support. It's a great program and the
support is unmatchable.. whenever I had questions support would email me
back sometimes instantaneously, and other times.. within a couple of hours.
I can get you $50 off if you would like since I work with them quite a bit
for
Fr one, you'll probably want to make a symbolic link to make your url look a
little prettier and make it easy on you for upgrades. So for example if you
make a symbolic link from phpMyAdmin-2.5.2-rc2 to phpMyAdmin then every
single time you upgrade you just ungzip your directory, then recreate
Ill second that.. err third that.. I like to hear announcements also.. as
long as they are PHP based of course :)
+1 for me also.
Rick
You will never be happy if you continue to search for what happiness
consists of. You will never live if you are looking for the meaning of life.
- Albert Camus
Ok some of you might not like this, others of you will know exactly what I
mean, but it just reminded me so much of this forum that I am sure some of
you will catch the humor in it:
http://www.mac-forums.com/forums/showpost.php?postid=5736postcount=85
Please keep your flames directed at me
Do you realize that link does not work with the Safari browser? it just
shows up blank :(
Rick
When one door closes, another opens; but we often look so long and so
regretfully upon the closed door that we do not see the one which has opened
for us. - Alexander Graham Bell
From: Robert Samuel
Yeah that's why I use this address [EMAIL PROTECTED], I receive a whole
bunch of junk mail to that address because of my replies or questions to
this list. I have tried to get the archives password protected the way
apple does it or other mailing lists do it, but I didn¹t receive that much
What I normally do in these situations is have two fields separated by tabs
or commas or whatever you want. The first field is the username and the
second field is a timestamp.
The timestamp can be updated every time the user writes a message, since Im
sure you are logging also.. or after, say
. - Unknown
From: Matt Palermo [EMAIL PROTECTED]
Date: Mon, 9 Jun 2003 21:37:20 -0400
To: 'Richard Baskett' [EMAIL PROTECTED], 'PHP General'
[EMAIL PROTECTED]
Subject: RE: [PHP] php and flash chat program
I realize that this can be done, but I would like to make it as instant
as possible. I
Im not sure if this is your problem, but it was mine awhile ago :)
Make sure there are no spaces after closing off heredoc.. so on your line:
EOF;
Make sure there is nothing except a hard return, no spaces, no characters..
nothing!
Cheers!
Rick
By three methods we may learn wisdom: First, by
What I would do is first read a cookie that you set on the clients machine
that follows the accept language guidelines.. so just the first two letters
then if that is not set, then take the browsers languages
$HTTP_ACCEPT_LANGUAGE and use them.
So instead of english you would have 'en', espanol =
Take a look at: http://www.php.net/manual/en/reserved.variables.php and
scroll down to the HTTP_ACCEPT_LANGUAGE constant.
When you set your language variable within your browser, the
HTTP_ACCEPT_LANGUAGE constant can be accessed by
$_SERVER['HTTP_ACCEPT_LANGUAGE']. It results in a two letter
for ($i = 1; $i 6; $i++) {
echo a name=\#{$I}\Destination/a\n;
}
You forgot the # sign.
Cheers!
Rick
Happiness is not a destination. It is a method of life. - Burton Hills
From: Beauford.2002 [EMAIL PROTECTED]
Date: Tue, 4 Mar 2003 17:21:20 -0500
To: HWG Basics [EMAIL PROTECTED]
Cc:
.2002 [EMAIL PROTECTED]
Date: Tue, 4 Mar 2003 20:21:05 -0500
To: Richard Baskett [EMAIL PROTECTED], PHP General
[EMAIL PROTECTED]
Subject: Re: [PHP] A NAME= question
Thanks for the info, but the # is not used in this way from the information
I have read.
a name=anchor_name
Ok most all programs I see they use ?php echo $somevar; ? within the html.
Now I have always used the shortened version ?=$somevar? Is there a reason
why I should not use this? I've never had any problems with this way of
doing things, but I just don't see anyone else using that format..
Cheers!
Ok I created an engine, an extremely simple engine that parses a template
file and then according to whatever page and language it is on it calls that
template.
Now the problem is that, well let me give you an example:
I have a page called index.php which only has an include_once function in
Warning: Unknown(path/index.php): failed to create stream: Permission denied
in Unknown on line 0
Warning: Unknown(): Failed opening '/path/index.php' for inclusion
(include_path='.:/path/phpinc/') in Unknown on line 0
What in the world is going on here? I've set all my files to 777 just to
Yeah I am having the same problem also.. it used to work and Im not sure
when it happened.. it just doesn¹t work anymore.. Someone enlighten us?
Rick
When one door closes, another opens; but we often look so long and so
regretfully upon the closed door that we do not see the one which has
Doesn't iCal use the vCalendar vCal format? Kind of like vCards, but to
deal with Calendar information.. it should be easy to write something that
will parse that..
Cheers!
Rick
The greatest trick the devil ever played was convincing the world he didn't
exist. - Unknown
From: Reuben D.
Ok I am hearing a bad rumor that Red Hat 8.0 and the Mac xserve both come
with Apache 2.. now is this a rumor or is this true?
If it's true.. why? And does anybody have any experience in uninstalling
Apache 2 on the xserve and does it break anything?
Cheers!
Rick
Don't walk in front of me, I
For some reason the php.ini file is not being compiled into php on runtime
with Apache 2.. I tried to make a change within the php.ini
mysql.default_socket or something similar to change where php looked for the
mysql socket and it wouldn¹t show up on phpinfo.. so I changed it within the
When using the system() function, let's say starting up a program, can that
program start in the background while the rest of the page is parsed or does
it have to wait until the system command has finished whatever it is doing?
Rick
Dost thou love life? Then do not squander time; for that's the
Any idea why Im getting these empty messages?
Rick
Freedom and immorality can not co-exist because freedom requires personal
responsibility. - Unknown
-- Forwarded Message
From: [EMAIL PROTECTED]
Date: Mon, 6 Jan 2003 17:41:19 -0500 (EST)
-- End of Forwarded Message
--
PHP General
Ok I know it's off topic, but I've been working on this for over 5 hours now
and I almost have it configured, but something is definitely wrong!
Basically I can send email using sendmail by this command:
echo Just a test | mail -s test [EMAIL PROTECTED]
Now [EMAIL PROTECTED] receives the email,
When using the system() function, let's say starting up a program, can that
program start in the background while the rest of the page is parsed or does
it have to wait until the system command has finished whatever it is doing?
Rick
Dost thou love life? Then do not squander time; for that's the
You could export, or save as a tab delimited text file, then go ahead and
use phpMyAdmin or a custom script to pull all that data into the database.
It really shouldn¹t be much of a problem coming from Excel.
Cheers!
Rick
Finish each day and be done with it. You have done what you could; some
Use this instead:
?php
$Host=localhost;
$User=us34992a;
$Password=*;
$DBname=db34992a;
$Tablename=calendar;
$Link=mysql_pconnect($Host, $User, $Password)
or die (YOu suck1);
$db=mysql_select_db($DBname, $Link)
or die (ISUCKEGGS);
$result=mysql_query(SELECT * from calendar, $Link)
or die (YOu
$song = They Might Be Giants - No!.mp3
$arr = explode(' - ', $song);
$length = strlen($arr[1]); // gets char length of song
$artist = $arr[0];
$song = substr($arr[1], 0, ($length-4); // deletes the .mp3 off of song name
Cheers!
Rick
He who is devoid of the power to forgive is devoid of the
Sure is:
header(Location: somepage.ext);
exit;
Cheers!
Rick
If you think you're too small to have an impact, try going to bed with a
mosquito in the room. - Anita Koddick
From: James Johnson [EMAIL PROTECTED]
Date: Thu, 12 Dec 2002 12:30:19 -0800
To: [EMAIL PROTECTED]
Subject: [PHP] PHP
You could put it in yourself
action=somepage.php?=sid?
or my preference is stick the session as a hidden field
input type=hidden name=PHPSESSID value=?=sid? /
Cheers!
Rick
Finish each day and be done with it. You have done what you could; some
blunders and absurdities have crept in; forget
I am parsing a csv file with fgetcsv and the fields are surrounding by
double quotes, now I am running into a problem periodically that when there
are quotes within the value it is treating it like another value instead of
the same value.
Any ideas on how to get around that?
I am thinking I
I did email the company that the csv feed is coming from so we'll see what
comes of that. I really hope they fix it.
Well here is what I did to solve the problem:
I pulled the csv file in using file(), then found the string length, used
substr() to get rid of the first double quote in the line
Why don't you just try:
$cust2 = str_replace('#','#35;',$cust);
That should replace all instances of # with it's html entity equivalent. If
that doesn¹t work then there is something else wrong with your script and
we'll need to see it all! :)
Rick
People who drink to drown their sorrow should
How can I delete a key and it's value from an array?
for example:
$test = array(0='yes', 2='no', 5='maybe', 7='so');
And I wanted to delete the second key 2 so I could end up with an array
like so:
$test = array(0='yes', 5='maybe', 7='so');
How would I go about doing that?
Thanks!
Rick
If
will make you worse; however, if I treat you
as though you are what you are capable of becoming, I help you become that.
- Johann Wolfgang von Goethe
From: John W. Holmes [EMAIL PROTECTED]
Organization: U.S. Army
Reply-To: [EMAIL PROTECTED]
Date: Wed, 11 Dec 2002 21:37:18 -0500
To: 'Richard Baskett
*sigh* n/m I just got rid of the curly braces and that did the trick.
Thanks!
Rick
Science without religion is lame, religion without science is blind. -
Albert Einstein
From: Richard Baskett [EMAIL PROTECTED]
Date: Wed, 11 Dec 2002 18:50:20 -0800
To: [EMAIL PROTECTED], PHP General [EMAIL
Is there a way of flushing output to the browser. So for example, I have a
script that checks things in a database, every check, or every hundred
checks it would be nice to output something to the browser.. currently it
finishes what it does, or after a minute or so it then shows the final page
If it is a function that you are getting an error on, just go ahead and put
a '@' sign before the function so for example @fopen(); or you can change
the error reporting in the php.ini file. I do believe there is an error
reporting function also, but off the top of my head I cant remember what it
Get rid of the double quotes around your variables so:
$sql = UPDATE $table_name SET name='$name', lname='$lname', mobil='$mobil'
etc etc etc
Cheers!
Rick
Sir my concern is not whether God is on our side. My great concern is to be
on God's side. - Abraham Lincoln
On Thursday 05 December 2002
Look up a program called asp2php. That should definitely get you started!
Cheers!
Rick
The intuitive mind is a sacred gift and the rational mind is a faithful
servant. We have created a society that honors the servant and has
forgotten the gift. - Albert Einstein
From: Iguider [EMAIL
?
$string = 'abcdefghijklmnopqrstuvwxyz';
$strNum = ceil(strlen($string)/8);
for ($i=0; $i$strNum; $i++) $newString[] = substr($string, ($i*8), 8);
for ($j=0; $jcount($newString); $j++) echo string$j = $newString[$j]br
/;
?
Rick
A sense of humor can help you over look the unattractive,
Just once when you first create the session.
Rick
This is the final test of a gentleman--his respect for those who can
be of no possible service to him. - William Lyon Phelps
From: Philip J. Newman [EMAIL PROTECTED]
Date: Thu, 25 Jul 2002 19:43:23 +1200
To: [EMAIL PROTECTED]
Subject: [PHP]
Well you could do something like this:
while ($row = mysql_fetch_array) {
echo trtd$row[data1]/td/tr
}
This will print out a table row for every record.. Now if you just want to
print specific records then you might as well do that in the select
statement to your database and then use the
Is there anyways to speed up MySQL queries? Or showing the results through
PHP? I have several queries that have about 8 left joins or so.. Yes very
huge and when you have lots of people using these functions at once it
really slows down.. Are there any practices that you can think of that would
It's extremely important as to where you put the function within your
script. I know it's basic and goes without saying, but hey a lot of
mistakes that we make.. Especially late at night, are ones that embarrass us
after we find out the answer :) I guess I would have to find out exactly
what
You can either change it in your php.ini file or using the session_name()
function
Rick
The greater danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it. - Michelangelo
From: Philip J. Newman [EMAIL PROTECTED]
Date: Thu, 25 Jul 2002
Credits are with the file. Cheers!
Rick
Finish each day and be done with it. You have done what you could; some
blunders and absurdities have crept in; forget them as soon as you can.
Tomorrow is a new day; you shall begin it serenely and with too high a
spirit to be encumbered with your old
Try this:
http://www.AnalysisAndSolutions.com/code/ccvs-ph.htm
Rick
A sense of humor can help you over look the unattractive, tolerate the
unpleasant, cope with the unexpected, and smile through the unbearable. -
Moshe Waldoks
From: Jas [EMAIL PROTECTED]
Date: Tue, 23 Jul 2002 12:09:48
looked at that class file and I don't want someone elses
example to use, I want to build my own but have no way of knowing what makes
up a valid visa number etc
Jas
Richard Baskett [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Try this:
You need to start the session before any html. So:
?php session_start(); ?
html
Cheers!
Rick
Too much caution is bad for you. By avoiding things you fear, you may let
yourself in for unhappy consequences. It is usually wiser to stand up to a
scary-seeming experience and walk right into it,
Well from the sound of it, it's a quick painless process to upgrade php to
the newest version using the patch. Can anyone that has done it comment on
the complexities of the upgrade? Im just going on what it says on the php
homepage...
Rick
When you walk to the edge of all the light you have
Ok I am going to give out my little secret that was passed to me. Your
worry is warranted in my opinion especially since let's say your isp is in
the middle of an upgrade or something happens to php that breaks it.. Now
your php code is being shown as regular text.. Anybody can see your code.
$today = date(w); // $today will result in '1'
$today = date(D); // $today will result in 'Mon'
$today = date(l); // $today will result in 'Monday'
Now if you wanted to feed the script something like this:
$string = 01 Jul 2002;
$today = date(l,strtotime($string));
This will result in the long
What I have done in the past is create a session variable that tells me that
the person using that session is valid. It's really really hard to spoof a
session variable. I did it this way after awhile since the original way
that I did it was by checking their username/password in the session on
I think you sent the wrong file...
Rick
Until you have learned to be tolerant with those who do not always agree
with you; until you have cultivated the habit of saying some kind word of
those whom you do not admire; until you have formed the habit of looking for
the good instead of the bad
It works fine on my system. If you have register globals off you'll need to
do it this way:
?php
$sort = (!$_GET[sort]) ? 'day' : $_GET[sort];
echo(sort: . $sort);
?
Rick
And many strokes though with a little axe hew down and fell the
hardest-timbered oak. - Shakespeare
From: sven
Im just trying to get it so that all emails from him redirect back to him..
I wonder if they would be alerted to the problem if everyone on the list did
that.. Hmm.. :)
Rick
The old law about an eye for an eye leaves everybody blind. - Dr. Martin
Luther King, Jr.
From: Chris Boget [EMAIL
Bounce bounce bounce!
From: Rodolfo Gonzalez [EMAIL PROTECTED]
Date: Tue, 9 Jul 2002 14:32:17 -0500 (CDT)
To: [EMAIL PROTECTED]
Subject: Re: [PHP]
??
ØØÅ
To the kind moderator of the
This is the one that I use:
script language=JavaScript
!--
function confirmSubmit(text) {
var yes = confirm(text);
if (yes) return true;
else return false;
}
// --
/script
input type=submit name=Delete value=Delete onclick=return
confirmSubmit('Are you sure you want to DELETE this
It's a header call.. so:
header(Location: http://whatever;);
Rick
Only a life lived for others is worth living. - Albert Einstein
From: bailie [EMAIL PROTECTED]
Reply-To: bailie [EMAIL PROTECTED]
Date: Thu, 27 Jun 2002 16:04:41 -0400
To: [EMAIL PROTECTED]
Subject: [PHP] Rookie Question
1 - 100 of 263 matches
Mail list logo