php-general Digest 24 Jul 2008 10:08:38 - Issue 5586
Topics (messages 277214 through 277234):
Re: $_ENV or getenv to get bash environmental variables.. change php.ini?? env
vars
277214 by: mike
*[SPAM(1.8)]*
277215 by: payne.magi.magidesign.com
277216 by:
On Wed, Jul 23, 2008 at 11:43 PM, [EMAIL PROTECTED] wrote:
thats a decent bit of code to pick through, jeff. glancing at index.txt,
the code looks pretty straight forward, and by that i mean that it doesnt
look like theres anything that shouldnt work in php5.
if i were to guess, i
On Thu, Jul 24, 2008 at 12:07 AM, Nathan Nobbe [EMAIL PROTECTED]wrote:
On Wed, Jul 23, 2008 at 11:43 PM, [EMAIL PROTECTED] wrote:
thats a decent bit of code to pick through, jeff. glancing at
index.txt,
the code looks pretty straight forward, and by that i mean that it
doesnt
look
hi,
I hope this is the right group for this type of problem:
I am using hash_hmac to provide me with a sha1 encoded hash string. The
problem is as follows:
$hash = hash_hmac('sha1',
I'm getting a lot of bogus requsts in the form of
index.php?id=http://64.15.67.17/~babysona/logo.jpg?;, sometimes more
than a hundred a day per domain. The php script catches it, logs the
request, sends an email report and replies with access denied, but
it takes processing which I'd
On Thursday 24 July 2008 09:14:55 Chris wrote:
I was hoping there's a way to tell apache to block requests where
id=non_numeric.
It's trying to do a remote inclusion.
It's easy for you to fix in php:
if (isset($_GET['id'])) {
if (!is_numeric($_GET['id'])) {
die(Die
On Thu, Jul 24, 2008 at 12:50 AM, Leon du Plessis [EMAIL PROTECTED] wrote:
hi,
I hope this is the right group for this type of problem:
I am using hash_hmac to provide me with a sha1 encoded hash string. The
problem is as follows:
$hash = hash_hmac('sha1',
On Thu, Jul 24, 2008 at 1:21 AM, Nathan Nobbe [EMAIL PROTECTED]wrote:
On Thu, Jul 24, 2008 at 12:50 AM, Leon du Plessis [EMAIL PROTECTED] wrote:
hi,
I hope this is the right group for this type of problem:
I am using hash_hmac to provide me with a sha1 encoded hash string. The
problem is
Is there a
way for apache to catch these requests before passing it to php? Is it
more efficient for apache to handle this than php?
2 x yes. I think you could probably use LocationMatch and ban all access
with Deny from all.
/Per Jessen, Zürich
--
Thanks for replying Per. Isn't Deny from
I was hoping there's a way to tell apache to block requests where
id=non_numeric.
It's trying to do a remote inclusion.
It's easy for you to fix in php:
if (isset($_GET['id'])) {
if (!is_numeric($_GET['id'])) {
die(Die hacker die!);
}
}
I'm sure there would
Børge Holen wrote:
On Thursday 24 July 2008 09:14:55 Chris wrote:
I was hoping there's a way to tell apache to block requests where
id=non_numeric.
It's trying to do a remote inclusion.
It's easy for you to fix in php:
if (isset($_GET['id'])) {
if (!is_numeric($_GET['id'])) {
Thanks, I'm already doing something like that, but I want to stop it getting
to php.
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
Ask on an apache list how to use it.
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To
I was hoping there's a way to tell apache to block requests where
id=non_numeric.
It's trying to do a remote inclusion.
It's easy for you to fix in php:
if (isset($_GET['id'])) {
if (!is_numeric($_GET['id'])) {
die(Die hacker die!);
}
}
I'm sure there would
On Thursday 24 July 2008 09:38:57 Chris wrote:
Børge Holen wrote:
On Thursday 24 July 2008 09:14:55 Chris wrote:
I was hoping there's a way to tell apache to block requests where
id=non_numeric.
It's trying to do a remote inclusion.
It's easy for you to fix in php:
if
Hi Arno
No, when you use Location it's not filesystem specific any more. But I've
just found out that you can't match on the query-string.
These images aren't on my server, and
the requests aren't trying to access images on my server. What I see
are requests using the php script on my server
Chris wrote:
I'm sure there would be a way to do it with ModRewrite or something
but it's 5 lines of code in php so I'd do it there *shrug*.
See my reply to Arno - in Apache it's only 2 lines of config. :-)
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To
You guys are just awesome! Thanks already for the help I really
appreciate it!
My site is up on adslgeek.com/troubleshooter but I have a DNS problem
that I have to fix over the weekend. :-(
The scenario is an input dashboard, with various settings that measure
the quality of an ADSL line.
I
Anyone know of an unintrusive code beautifier written specifically with in mind?
Thanks.
--
Richard Heyes
http://www.phpguru.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Heyes wrote:
Anyone know of an unintrusive code beautifier written specifically with in mind?
Thanks.
Hi,
With 'what' in mind?
--
Aschwin Wesselius
/'What you would like to be done to you, do that to the other'/
Anyone know of an unintrusive code beautifier written specifically with in
mind?
With 'what' in mind?
Sorry, PHP.
--
Richard Heyes
http://www.phpguru.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Heyes wrote:
Anyone know of an unintrusive code beautifier written specifically with in
mind?
With 'what' in mind?
Sorry, PHP.
The only one that I've used and got results with is PEAR PHP_Beautifier.
But the PEAR code itself is butt ugly. I'm thinking about rewriting
Anyone know of an unintrusive code beautifier written specifically with in
mind?
I know it's not quite what you are asking, but the IDE I use has a
really good code beautifier. It works with a great many languages,
not just for PHP. This is on top of a gagillion other really useful
features
On Thu, Jul 24, 2008 at 8:34 AM, Christoph Boget
[EMAIL PROTECTED]wrote:
Anyone know of an unintrusive code beautifier written specifically with
in mind?
I know of what proprietary software that does it very good: polystyle.
(As usual, I'm not related to software creator or anything. I just
[EMAIL PROTECTED] wrote:
Can someone please point me to a web site with examples of php being use
with the cli sending mail. I need to create a couple scripts that do that.
I have looked on the net and most scripts are for form feed back.
Just look at the PHP manual's mail() function.
The
Hi,
I'm writing a bot that should let a user log in an IPB forum and do
some actions after checking that the right conditions are verified in
the user's account's profile. These conditions are:
1) the user must have registered his account before a certain date
2) the user must have posted a
Luca,
You said you have access to the board's DB, correct?
Just from looking at the link you provided I can see that somewhere in the
database it does store the date/time of each post. So, to meet your
conditions your query should be something simple like this:
//
$username =
Hi,
I am currently working on a php script that will be called by cron. But I
have an error that keeps coming up.
Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on
What I am trying to do is a simple php script to send me a report
everynight. Any clues as to why? Also does
On Thu, Jul 24, 2008 at 1:52 PM, [EMAIL PROTECTED] wrote:
Hi,
I am currently working on a php script that will be called by cron. But I
have an error that keeps coming up.
Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on
You didn't include the line number in the
You cannot have commands in the middle of a string. Try building a
string first, or use output buffering and then capture the buffer and
use that as the string for the mail function.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
[EMAIL PROTECTED] wrote:
Chris Ditty wrote:
Can anyone point me in the right direction? I know I am missing something
simple, but I can't place my hands on it.
$myCalTime = act_getCalendarDays($config, $myMonth, $myYear);
foreach($myCalTime as $calTime = $calArrayTime){
$calArray[] =
On Thu, Jul 24, 2008 at 1:52 PM, [EMAIL PROTECTED] wrote:
Hi,
I am currently working on a php script that will be called by cron. But I
have an error that keeps coming up.
Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on
What I am trying to do is a simple php script
Daniel already answerd regarding your error, but...
?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
... if you call the script via cron I'm pretty sure $_SERVER won't be
available since the script is not used in a running webserver process
context.
--
PHP General Mailing List
Micah,
Please provide an example of what your response was referring to in
the original message.
And it is possible to have commands in the middle of a string by using
concatenation.
$str = My name is .strtoupper($name).', but you can call me
Sam.;
~Ted
On 24-Jul-08, at
On Jul 24, 2008, at 1052AM, [EMAIL PROTECTED] wrote:
$result = mysql_query($query)
Missing a ; at the end of the line.
$mailsend = mail([EMAIL PROTECTED],The IP's that Attacked
$hostname, The following are ip's that have try to attack your
system.\r\n\r\
You can't execute code
On 24 Jul 2008, at 18:43, Thorsten Suckow-Homberg wrote:
Daniel already answerd regarding your error, but...
?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
... if you call the script via cron I'm pretty sure $_SERVER won't
be available since the script is not used in a running
On Thu, Jul 24, 2008 at 1:45 PM, Ted Wood [EMAIL PROTECTED] wrote:
$str = My name is .strtoupper($name).', but you can call me Sam.;
Though ucfirst() would be preferred. ;-P
--
/Daniel P. Brown
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel
Thanks guys. I will take everything that as been stated to heart. Thanks
for the insight. I haven't don't much with mail.
Payne
On Jul 24, 2008, at 1052AM, [EMAIL PROTECTED] wrote:
$result = mysql_query($query)
Missing a ; at the end of the line.
$mailsend = mail([EMAIL
On 7/24/08, Richard Heyes [EMAIL PROTECTED] wrote:
Anyone know of an unintrusive code beautifier written specifically with in
mind?
just be prudent (and anal retentive) when you code :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
He had code blocks in the middle of a string. That's what I was
referring to.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ted Wood wrote:
Micah,
Please provide an example of what your response was referring to in
the original message.
And it is
On Thu, Jul 24, 2008 at 3:07 PM, mike [EMAIL PROTECTED] wrote:
On 7/24/08, Richard Heyes [EMAIL PROTECTED] wrote:
Anyone know of an unintrusive code beautifier written specifically with
in mind?
just be prudent (and anal retentive) when you code :)
That doesn't work when you get code from
On Thu, Jul 24, 2008 at 6:15 AM, Richard Heyes [EMAIL PROTECTED] wrote:
Anyone know of an unintrusive code beautifier written specifically with in
mind?
Rich, I thought you WERE the code beautifier. ;-P
--
/Daniel P. Brown
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB
On 7/24/08, Thiago H. Pojda [EMAIL PROTECTED] wrote:
That doesn't work when you get code from someone else that wasn't prudent
enough ;)
I figured that'd be the reply - it's not my code ... sadly, I still
go and reformat other coworker's code anyway, heh. Yeah, I'm -that
bad-
--
PHP General
On Thu, Jul 24, 2008 at 3:14 PM, mike [EMAIL PROTECTED] wrote:
On 7/24/08, Thiago H. Pojda [EMAIL PROTECTED] wrote:
sadly, I still go and reformat other coworker's code anyway, heh. Yeah, I'm
-that bad-
That's why I looked for a tool like that months ago. Big project from
someone else, do
On 24 Jul 2008, at 19:14, mike wrote:
On 7/24/08, Thiago H. Pojda [EMAIL PROTECTED] wrote:
That doesn't work when you get code from someone else that wasn't
prudent
enough ;)
I figured that'd be the reply - it's not my code ... sadly, I still
go and reformat other coworker's code anyway,
On 7/24/08, Thiago H. Pojda [EMAIL PROTECTED] wrote:
That's why I looked for a tool like that months ago. Big project from
someone else, do you feel like reformatting hundreds of files with hundreds
(thousands?) of lines manually?
I didn't :)
If it's something I will wind up working on, I
On Thu, Jul 24, 2008 at 2:22 PM, Stut [EMAIL PROTECTED] wrote:
On 24 Jul 2008, at 19:14, mike wrote:
On 7/24/08, Thiago H. Pojda [EMAIL PROTECTED] wrote:
That doesn't work when you get code from someone else that wasn't prudent
enough ;)
I figured that'd be the reply - it's not my code
On 7/24/08, Stut [EMAIL PROTECTED] wrote:
That's not just bad, it's downright anti-productive. You need to either have
a standard style across a team or accept that other developers format their
code differently. If you spend time reformatting other peoples code it's a
waste of your time.
On 24 Jul 2008, at 19:31, mike wrote:
On 7/24/08, Stut [EMAIL PROTECTED] wrote:
That's not just bad, it's downright anti-productive. You need to
either have
a standard style across a team or accept that other developers
format their
code differently. If you spend time reformatting other
Well all the insight were great, I am not getting and errors but I am not
getting mail. I am looking but php -e isn't telling me anything, and php
-l says there no syntax. What else can I do for debugged.
Payne
Thanks guys. I will take everything that as been stated to heart. Thanks
for the
On 7/24/08, Stut [EMAIL PROTECTED] wrote:
Obviously you can run your team the way you want to, but personally I prefer
to get all my developers singing from the same hymn sheet such that after a
couple of weeks they can go to any part of the code and not see a horrific
mess because they're
Have you set your SMTP server/port in your php.ini file?
Have you checked your mail logs to make sure it is routing through?
Have you verified it is sending from and to a valid email address?
On 24 Jul 2008, at 20:01, mike wrote:
On 7/24/08, Stut [EMAIL PROTECTED] wrote:
Obviously you can run your team the way you want to, but personally
I prefer
to get all my developers singing from the same hymn sheet such that
after a
couple of weeks they can go to any part of the code and
(and anal retentive) when you code :)
I am; the problem is noone lives up to my standards... :-)
--
Richard Heyes
http://www.phpguru.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Rich, I thought you WERE the code beautifier. ;-P
Thanks... There's just so much to do though... :-)
--
Richard Heyes
http://www.phpguru.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Have you set your SMTP server/port in your php.ini file?
Checking
Have you checked your mail logs to make sure it is routing through?
Tailing the log as I run it.
Have you verified it is sending from and to a valid email address?
Yes, those are valid.
--
PHP General Mailing List
The one bundled with phpEdit works great. They seem to offer it as a stand
alone also.
http://www.waterproof.fr/products/phpCodeBeautifier/download.php
Richard Heyes wrote:
Anyone know of an unintrusive code beautifier written specifically with in mind?
Thanks.
--
PHP General Mailing List
[EMAIL PROTECTED] wrote:
Well all the insight were great, I am not getting and errors but I am not
getting mail. I am looking but php -e isn't telling me anything, and php
-l says there no syntax. What else can I do for debugged.
Payne
!-- SNip --
1. BOTTOM POST
2. mailq - this
Richard Heyes wrote:
Anyone know of an unintrusive code beautifier written specifically with in mind?
Thanks.
Hi,
I want to narrow down to why I looked into PHP_Beautifier from PEAR.
First, it's written in PHP (and uses the PHP tokenizer at it and not
some regex wizardry) and so it's
So, to summarize everything said, with my own added notes.
[EMAIL PROTECTED] wrote:
Hi,
I am currently working on a php script that will be called by cron. But I
have an error that keeps coming up.
Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on
What I am trying to do
Jim Lucas wrote:
So, to summarize everything said, with my own added notes.
[EMAIL PROTECTED] wrote:
Hi,
I am currently working on a php script that will be called by cron.
But I
have an error that keeps coming up.
Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on
It seems like you're still calling functions inside the string. Instead
of concatenating, try the output buffering like was mentioned before.
Also, if you want HTML tags in your PHP code, you need to end and start
the PHP tags again, or print them as output in quotes.
Thank you,
Micah Gersten
Payne wrote:
Jim Lucas wrote:
So, to summarize everything said, with my own added notes.
[EMAIL PROTECTED] wrote:
Hi,
I am currently working on a php script that will be called by cron.
But I
have an error that keeps coming up.
Parse error: syntax error, unexpected T_VARIABLE
!-- SNIP --
Here is the updated code
Notice!!
$message doesn't contain any PHP code within it
$query only has a single ; within the whole line, right at the end of the ; to
complete the PHP assignment string. Placing one inside it will barf the script
typically.
$headers are all
I'm writing a php application which includes accepting and storing HTML
for routine display by the application. All of this seems to be working
fine.
However, I also want to display the raw HTML for administrators of the
system to update as necessary. I just discovered that this does NOT
Hi there,
I may have come into trouble when i tried to use the code i saw on a tutorial
(http://www.phpeasystep.com/phptu/28.html).
I am just a newbie in PHP and exploring its functions.
I tried the example:
###
Example
Before encode
?php
echo Hello World;
?
After encoded
?php
[EMAIL PROTECTED] wrote:
If this is a false code, hope we can do something about it.
Code works as expected and spits out 'Hello World' as it should.
--
H | It's not a bug - it's an undocumented feature.
+
Ashley M.
Rod Clay wrote:
I'm writing a php application which includes accepting and storing HTML
for routine display by the application. All of this seems to be working
fine.
However, I also want to display the raw HTML for administrators of the
system to update as necessary. I just discovered
On Fri, Jul 25, 2008 at 12:31 AM, Rod Clay [EMAIL PROTECTED] wrote:
However, I also want to display the raw HTML for administrators of the
system to update as necessary. I just discovered that this does NOT seem to
be working. When I attempt to put this raw HTML into a textarea field on my
68 matches
Mail list logo