php-general Digest 4 Aug 2009 09:03:58 - Issue 6266
Topics (messages 296240 through 296250):
underscore in php functions?
296240 by: Oral Timocin
296241 by: Stuart
296242 by: Oral Timocin
296243 by: Ashley Sheridan
Re: Multiple MySQL Queries
296244
'Twas brillig, and Daniel Brown at 03/08/09 17:29 did gyre and gimble:
my basement office flooded
I think everyone on this list has been inconsiderate to the clearly
massive tragedy of your flooded basement. May I be the first to pass on
my condolences for all the dead computers that are now
Paul Halliday wrote:
Whats the cleanest (I have a really ugly) way to break this:
[21/Jul/2009:00:00:47 -0300]
into:
date=21/jul/2009
time=00:00:47
Caveats:
1) if the day is 10 the beginning of the string will look like
[space1/...
2) the -0300 will differ depending on DST or
Congratulations Dan!
On a side note, next time you go down the glorious path to having a
munchkin, go and get a puppy. Between the labor pains and the morning
sickness, the wife can break you in on getting up at night with the
puppy. :)
Glad to hear that the family is doing well. Always a
Is there an equivalent to socket_last_error() when using a socket opened
with stream_socket_client()? If it's not written yet, is there a suitable
work around?
I am looking to get the last status of the system connect() call. I see
there is a bug opened for it
Am I missing something? Can't this be done quickly/easily with preg_match()?
if (preg_match('/\[(.*):(.*)\s/U', '[21/Jul/2009:00:00:47 -0300]',
$matches)) {
print date: {$matches[1]}, time: {$matches[2]};
}
Jerry Wilborn
jerrywilb...@gmail.com
On Tue, Aug 4, 2009 at 5:36 AM, Wolf
At 10:34 PM -0400 8/3/09, Sam Stelfox wrote:
tedd wrote:
Everything is backed up at least three fold. I am considering
online backup and waiting for the cost to go down.
You should add paper backups to that list!
http://ollydbg.de/Paperbak/
Sam Stelfox
Sam:
That's interesting. I
At 6:13 PM -0400 8/3/09, Paul M Foster wrote:
On Mon, Aug 03, 2009 at 01:54:05PM -0400, tedd wrote:
snip
Everything is backed up at least three fold. I am considering online
backup and waiting for the cost to go down.
Tried Carbonite.com? I think they're like US$55 / year. Work on Mac and
tedd wrote:
Sam:
That's interesting. I wasn't aware that paper could be used in such a
fashion but I can't help but think that the cost of the paper would
exceed the cost of optical disk storage for the same data. And paper
is more sensitive to environmental exposure than DVD's.
Cheers,
Ok I have 45 minutes left to make this script default to show a listings on
the browse.php page and then show no listings on other pages by default for
some reason the _Server function stopped working what have I done wrong...
?php
On Tue, 2009-08-04 at 07:16 -0700, Miller, Terion wrote:
for($i = 0; $i = 9; $iﯯ)
I'm noticing an odd character just here (heaven knows what line number!)
I'd presume this was meant to be something like a ++ or +=n, but seems
to be interpreted as a multibyte character here. I'll let you know if
THANKFULLY THE BOSS DECIDED TO YELL AT ME AND TOLD ME WHAT THE PROBLEM WASI
HAVE NEVER BEEN SO STRESSED IN MY LIFE
SHOULD WORK BE THIS AWFUL? IT’S HARD ENOUGH WORKING IN A MALE DOMINATED FIELD,
BUT WHEN THEY START USING THEIR LARGE FRAMES AND BOOMING VOICES OMG GOD...I
JUST MAY HAVE TO
On Tue, 2009-08-04 at 15:30 +0100, Ashley Sheridan wrote:
On Tue, 2009-08-04 at 07:16 -0700, Miller, Terion wrote:
for($i = 0; $i = 9; $iﯯ)
I'm noticing an odd character just here (heaven knows what line number!)
I'd presume this was meant to be something like a ++ or +=n, but seems
to be
On Tue, 2009-08-04 at 07:40 -0700, Miller, Terion wrote:
THANKFULLY THE BOSS DECIDED TO YELL AT ME AND TOLD ME WHAT THE PROBLEM
WASI HAVE NEVER BEEN SO STRESSED IN MY LIFE
SHOULD WORK BE THIS AWFUL? IT’S HARD ENOUGH WORKING IN A MALE DOMINATED
FIELD, BUT WHEN THEY START USING THEIR
On Tue, Aug 4, 2009 at 10:30 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tue, 2009-08-04 at 07:16 -0700, Miller, Terion wrote:
for($i = 0; $i = 9; $iﯯ)
I'm noticing an odd character just here (heaven knows what line number!)
I'd presume this was meant to be something like a ++ or
On Tue, 2009-08-04 at 10:47 -0400, Andrew Ballard wrote:
On Tue, Aug 4, 2009 at 10:30 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tue, 2009-08-04 at 07:16 -0700, Miller, Terion wrote:
for($i = 0; $i = 9; $iﯯ)
I'm noticing an odd character just here (heaven knows what line
---snip
Was going to say the exact same thing. No one should have to put up with that
crap.
I suggest if this was a normal occurrence, a chat with him would be a start.
If you get nowhere with that, a trip to HR would be good.
Shouting at someone is counter-productive, and there more
On Tue, 2009-08-04 at 07:58 -0700, Miller, Terion wrote:
---snip
Was going to say the exact same thing. No one should have to put up with
that crap.
I suggest if this was a normal occurrence, a chat with him would be a start.
If you get nowhere with that, a trip to HR would be
On Tue, Aug 4, 2009 at 10:58 AM, Miller,
Teriontmil...@springfi.gannett.com wrote:
---snip
Was going to say the exact same thing. No one should have to put up with
that crap.
I suggest if this was a normal occurrence, a chat with him would be a start.
If you get nowhere with
On 8/4/09 10:03 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
print_r($_SERVER);
I get:
Array ( [HTTP_HOST] = getpublished.news-leader.com [HTTP_USER_AGENT] =
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.13)
Gecko/2009073021 Firefox/3.0.13 [HTTP_ACCEPT] =
On 8/4/09 10:04 AM, Bastien Koert phps...@gmail.com wrote:
On Tue, Aug 4, 2009 at 10:58 AM, Miller,
Teriontmil...@springfi.gannett.com wrote:
---snip
---snip-
http://pastebin.ca/1517966
I don't get why the $_SERVER['browse.php'] stopped working
--
PHP General Mailing
On Tue, 2009-08-04 at 08:08 -0700, Miller, Terion wrote:
On 8/4/09 10:03 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
print_r($_SERVER);
I get:
Array ( [HTTP_HOST] = getpublished.news-leader.com [HTTP_USER_AGENT] =
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;
Miller, Terion wrote:
THANKFULLY THE BOSS DECIDED TO YELL AT ME AND TOLD ME WHAT THE PROBLEM
WASI HAVE NEVER BEEN SO STRESSED IN MY LIFE
SHOULD WORK BE THIS AWFUL? IT’S HARD ENOUGH WORKING IN A MALE DOMINATED
FIELD, BUT WHEN THEY START USING THEIR LARGE FRAMES AND BOOMING VOICES OMG
Miller, Terion wrote:
On 8/4/09 10:04 AM, Bastien Koert phps...@gmail.com wrote:
On Tue, Aug 4, 2009 at 10:58 AM, Miller,
Teriontmil...@springfi.gannett.com wrote:
---snip
---snip-
http://pastebin.ca/1517966
I don't get why the $_SERVER['browse.php'] stopped working
Shawn you know repeatedly have been nothing but an asshole to me on this list,
I have said before I'm not a php programmer, I was a front end designer, need
graphics , need a css layout...see meneed backend programming..I'm trying...
Stop being such a egomaniacal dickhead, a social life may
Is what I'm looking to do not possible in PHP? I've come close with
a JavaScript version, but I'd rather not rely on everyone having JS
turned on. Or am I stuck having to use JS?
Thanks again,
Frank
I'd like to revisit this one last time. Below is the revised code
I'm using, but I
I have recently been working a lot lately with arrays and printing them into
html tables for email (like a user survey for example). I have been seeing
odd things with the table lately, each unique to it's sending php file. I
will get a space in a random spot. In one, I used an array to rename the
On Tue, Aug 4, 2009 at 11:40 AM, sono...@fannullone.us wrote:
Is what I'm looking to do not possible in PHP? I've come close with
a JavaScript version, but I'd rather not rely on everyone having JS turned
on. Or am I stuck having to use JS?
Thanks again,
Frank
I'd like to
From: Allen McCabe
I have recently been working a lot lately with arrays and printing
them into
html tables for email (like a user survey for example). I have been
seeing
odd things with the table lately, each unique to it's sending php
file. I
will get a space in a random spot. In one, I
Jerry Wilborn wrote:
Am I missing something? Can't this be done quickly/easily with preg_match()?
if (preg_match('/\[(.*):(.*)\s/U', '[21/Jul/2009:00:00:47 -0300]',
$matches)) {
print date: {$matches[1]}, time: {$matches[2]};
}
Jerry Wilborn
jerrywilb...@gmail.com
On Tue,
Keep in mind that you can use name=var[] value=value1, name=var[]
value=value2 and php will create an array as $_REQUEST['var'] with each of
your values. The keys are numbered and don't count on what order they'll
come through.
Jerry Wilborn
jerrywilb...@gmail.com
On Tue, Aug 4, 2009 at 10:47
Miller, Terion wrote:
Shawn you know repeatedly have been nothing but an asshole to me on
this list, I have said before I'm not a php programmer, I was a front
end designer, need graphics , need a css layout...see meneed
backend programming..I'm trying... Stop being such a egomaniacal
*Parse error*: syntax error, unexpected $end in *
/home/a9066165/public_html/admin/processccu.php* on line *231*
I did some major code rewriting about halfway through (lines 114-132), and
suddenly I'm getting the above ERROR. I have examined the code line by line,
but I'm still relatively new to
On Tue, Aug 4, 2009 at 13:47, Allen McCabeallenmcc...@gmail.com wrote:
[snip=everything]
Looks like you're missing a closing bracket here:
if(!empty($_POST['EMailAddress'])) {
$EMailAddress = $_POST['EMailAddress'];
} else {
$EMailAddress = ;
// --- Right here
--
/Daniel P. Brown
Allen McCabe wrote:
*Parse error*: syntax error, unexpected $end in *
/home/a9066165/public_html/admin/processccu.php* on line *231*
I have learned from a number of similar mistakes that this error message
/normally/ means that I have a miss-matched number of brackets on a
foreach, while, or
On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote:
Allen McCabe wrote:
*Parse error*: syntax error, unexpected $end in *
/home/a9066165/public_html/admin/processccu.php* on line *231*
I have learned from a number of similar mistakes that this error message
/normally/ means that I have
it. Made me
look bad. Just be aware that what you send may not be what they get when using
Gmail.
Thank you,
Marc Hall
HallMarc Websites
610.446.3346
__ Information from ESET Smart Security, version of virus signature
database 4305 (20090804) __
The message was checked by ESET
Ashley - I am formatting this way, it just didn't translate into gmail : )
Daniel, Martin, and Jim - Thanks very much, my php runs now, however I don't
get the result page anymore. My inbox receives the form (missing cells, but
that's another issue), but the browser doesn't load processccu.php,
, version of virus signature
database 4305 (20090804) __
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Aug 4, 2009 at 2:05 PM, HallMarc
Websitesm...@hallmarcwebsites.com wrote:
I have noticed a few issues with Gmail and this isn't the first time that
mail service has muffed up an email and/or the attachments. It consistently
has compromised jpg's, pdf's and the like. I sent an email to
On Tue, 2009-08-04 at 14:16 -0400, Andrew Ballard wrote:
On Tue, Aug 4, 2009 at 2:05 PM, HallMarc
Websitesm...@hallmarcwebsites.com wrote:
I have noticed a few issues with Gmail and this isn't the first time that
mail service has muffed up an email and/or the attachments. It consistently
of virus signature
database 4305 (20090804) __
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well, I got it to display a thank you page instead of what I had. I'm
rolling with the punches. Got to work on why my email table is not building
right. Stay tuned!
On Tue, Aug 4, 2009 at 11:09 AM, Allen McCabe allenmcc...@gmail.com wrote:
Ashley - I am formatting this way, it just didn't
Allen McCabe wrote:
Ashley - I am formatting this way, it just didn't translate into gmail : )
You might try using indentation with more then one space. Try tabs.
Any respectable editor will allow you to set the number of spaces it
uses to actually represent the tab.
That way I can have mine
- foreach(+ACQ-letters as
+ACQ-letter) \
[/snip]
[HallMarc Websites]
__ Information from ESET Smart Security, version of virus signature
database 4305 (20090804) __
The message was checked by ESET Smart Security.
http://www.eset.com
I never sent you
On Aug 4, 2009, at 9:43 AM, Jerry Wilborn wrote:
Keep in mind that you can use name=var[] value=value1, name=var[]
value=value2 and php will create an array as $_REQUEST['var'] with
each of your values. The keys are numbered and don't count on what
order they'll come through.
Thanks
I created a webpage with the code listed, and a screen shot of the email I
am currently receiving (with nonsense entered into my inputs)
URL:
http://lpacmarketing.hostzi.com/admin/help.html
Anyone that can provide help will be rewarded in their next life. That's a
promise.
Thanks!
On Tue, Aug
If the form method is POST then set the 'c' variable with a hidden value
within the form: input type=hidden name=c value=viewcart.htm
Jerry Wilborn
jerrywilb...@gmail.com
On Tue, Aug 4, 2009 at 1:50 PM, sono...@fannullone.us wrote:
On Aug 4, 2009, at 9:43 AM, Jerry Wilborn wrote:
Keep in
Sorry... I'm using GET. I have used the code you supplied below, but
as I mentioned, it gets sent for every itemid in the table. I needs
to be sent only once, and right after the action. That's where I'm
stumped.
Frank
On Aug 4, 2009, at 11:56 AM, Jerry Wilborn wrote:
If the form
Trying to install php at amazon and have a version with no 'dymanic
modules'. Does anyone have a list of those modules?
I specificially need
curl
mysql
mysqli
at this time
thanks
--
Bastien
Cat, the other other white meat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I re-read your original thread, and I think *now* I may know what you're
asking.
Bastien is right, you're not going to be able to selectively send data to
PHP with just HTML. Be careful though, as 'GET' has its
limits. POST has limits as well, but for adding items to a shopping
cart you're
On 8/3/09 7:44 PM, Shawn McKenzie nos...@mckenzies.net wrote:
Miller, Terion wrote:
All of a sudden this stopped working and keeps defaulting to A again
if ($_SERVER['SCRIPT_FILENAME'] = browse.php ) {
$default = A;
}
else {
$default = ;
}
It stopped working or never
On Tue, Aug 4, 2009 at 15:19, Bastien Koertphps...@gmail.com wrote:
Trying to install php at amazon and have a version with no 'dymanic
modules'. Does anyone have a list of those modules?
I specificially need
curl
mysql
mysqli
You have a shell with me, right? Use these instructions
Sorry... I'm using GET. I have used the code you supplied below,
but as I mentioned, it gets sent for every itemid in the table. I needs
to be sent only once, and right after the action. That's where I'm
stumped.
Hidden form inputs should work with GET or POST -- they're only hidden
Allen McCabe wrote:
I created a webpage with the code listed, and a screen shot of the email I
am currently receiving (with nonsense entered into my inputs)
URL:
http://lpacmarketing.hostzi.com/admin/help.html
Anyone that can provide help will be rewarded in their next life. That's a
On Aug 4, 2009, at 12:33 PM, Ben Dunlap wrote:
I don't follow what you mean by it gets sent for every itemid --
can you post
an example of the query string that's being generated?
Well, do I feel stupid. I thought I had moved it to the correct spot
but I hadn't. When input type=hidden
On Tue, Aug 04, 2009 at 12:42:11PM -0500, Shawn McKenzie wrote:
Miller, Terion wrote:
Shawn you know repeatedly have been nothing but an asshole to me on
this list, I have said before I'm not a php programmer, I was a front
end designer, need graphics , need a css layout...see meneed
are, and no matter how well you do the other parts of your job.
Paul
--
Paul M. Foster
--
[HallMarc Websites]
God I love this planet. I agree with Paul.
__ Information from ESET Smart Security, version of virus signature
database 4306 (20090804) __
The message
On Tue, Aug 04, 2009 at 06:10:30PM -0400, HallMarc Websites wrote:
[HallMarc Websites]
God I love this planet. I agree with Paul.
Yeah, great planet, this. A little touristy, but still a good travel
value.
;-}
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
Terion,
I've done a lot of backend programming, but I'm even more newbie than
you in PHP... so take this from an equal, FWIW:
I think we in this work can all get dry/impersonal and grouchy at
times, but to rephrase the others, in perhaps more encouraging terms:
I think the guys just want
On Tue, Aug 4, 2009 at 7:19 PM, Govindagovinda.webdnat...@gmail.com wrote:
Terion,
I've done a lot of backend programming, but I'm even more newbie than you in
PHP... so take this from an equal, FWIW:
I think we in this work can all get dry/impersonal and grouchy at times, but
to rephrase
Eric Butera wrote:
On Tue, Aug 4, 2009 at 7:19 PM, Govindagovinda.webdnat...@gmail.com wrote:
Terion,
I've done a lot of backend programming, but I'm even more newbie than you in
PHP... so take this from an equal, FWIW:
I think we in this work can all get dry/impersonal and grouchy at
I've run up against something else here that I can't find an answer
for. This line of the script:
$cats = array('01100-01200-01300-06403' = 'Starter Units',
'01100-02201-01300-06403' = 'Add-On Units', '01100-99222-11341-18451'
= 'Extra Shelves');
is supposed to pull all items from each
Just as a heads-up, in case you guys weren't yet aware (cross-posting):
Elance.com was the victim of an SQL injection attack earlier this
summer (they apparently missed our billions of threads on sanity).
According to their folks, only names, company names, phone numbers,
and email
Daniel Brown wrote:
Just as a heads-up, in case you guys weren't yet aware (cross-posting):
Elance.com was the victim of an SQL injection attack earlier this
summer (they apparently missed our billions of threads on sanity).
According to their folks, only names, company names, phone
Bob, Ben, David, Robert,
Thank you all for responding.
Just to recap, I'm trying to find out why I can write text into a PNG
image on one server, but not on another.
After much playing around, I have a list of the different configuration
modules installed on the two servers. The lists below are
Well, it took me all evening to figure it out, but I did. The SQL
statement needed to be changed to
WHERE categories LIKE '%$cat%'
and now it works. I had found an old book on my shelf called MySQL
and Perl for the Web and found an example in there that pointed me in
the right direction.
67 matches
Mail list logo