php-general Digest 27 Apr 2012 00:23:27 - Issue 7791
Topics (messages 317695 through 317710):
Re: Should I check imput for bad chars in this case?
317695 by: marco.behnke.biz
317696 by: Simon Schick
317698 by: mirrys.net
317709 by: Simon Schick
Segmentation
Nathan Nobbe quickshif...@gmail.com hat am 26. April 2012 um 06:40
geschrieben:
INSERT TIMESTAMP: 1335414561
INSERT DATE TIME: 2012-04-26 4:29:21
But then from the interactive interpreter on the same box (same php.ini
as
well):
php echo date(Y-m-d G:i:s, 1335414561);
2012-04-25
On Thu, Apr 26, 2012 at 12:07 AM, Yared Hufkens y4...@yahoo.de wrote:
Why use an external engine which slows your scripts down to do something
which can easily be done by PHP itself? PHP is imho the best template engine
for PHP.
With PHP 5.4, it became even easier because ?=$do-somestuff()?
mirrys.net mirrys@gmail.com hat am 26. April 2012 um 14:15
geschrieben:
Hi all,
this is more question than real problem (I hope :)). I include this
script into my pages to log IPs of visitors (they are saved info txt
file and send to e-mail later):
You definitly should. There were
On Thu, Apr 26, 2012 at 2:15 PM, mirrys.net mirrys@gmail.com wrote:
Hi all,
this is more question than real problem (I hope :)). I include this
script into my pages to log IPs of visitors (they are saved info txt
file and send to e-mail later):
function getIPadress()
{
if
Anyone has experienced segmentation fault while reading blob (longblog)
data from mysql using ODBC?
If not, can you provide me few rows of code to show me how you fetch it?
I am using php 5.3.3 and this code segfaults:
$conn=odbc_connect(db,,);
$sql=select * from table where id=1;
Thank you for your help Marco Simon. No doubt, your code is much
cleaner and better.
One more question, without any filter or something could be my
original code somehow compromised (mean some security bug)? Or rather
was a major problem in the possibility of a script crash?
On 4/26/12,
Hello list,
I'm trying to pass a query string through $_GET but for some reason
the array is being split on ''. How may I avoid this so it stays
intacted?
user selection portion:
while($storerow = mysql_fetch_assoc($storesresult))
echo 'h4a href=store.php?id=' . $storerow['store_subject'] . ''
On 26 April 2012 22:27, Chris Stinemetz chrisstinem...@gmail.com wrote:
Hello list,
I'm trying to pass a query string through $_GET but for some reason
the array is being split on ''. How may I avoid this so it stays
intacted?
user selection portion:
while($storerow =
Im no expert, but why would you expose a query to the world thru the use of
a GET? Why not just collect the params and build the string in your code?
That is how people hack into your database - via a re-formed query. You're
giving someone an open invitation.
--
PHP General Mailing List
On 26 Apr 2012, at 18:37, Jim Giner wrote:
Im no expert, but why would you expose a query to the world thru the use of
a GET? Why not just collect the params and build the string in your code?
That is how people hack into your database - via a re-formed query. You're
giving someone an
Thanks, this suggestion from Dante completely solved the problem.
Replaced:
readfile('/var/www/mypath/My Cool Image.dmg');
With:
$fd = fopen ('/var/www/mypath/My Cool Image.dmg', r);
while(!feof($fd)) {
set_time_limit(30);
echo fread($fd, 4096);
flush();
}
fclose ($fd);
It's now
On Thursday, April 26, 2012, Leandro Dardini wrote:
Anyone has experienced segmentation fault while reading blob (longblog)
data from mysql using ODBC?
If not, can you provide me few rows of code to show me how you fetch it?
I am using php 5.3.3 and this code segfaults:
Sorry - can't seem to find anything that explains this on google.
I'm using a List command to break out an array into distinct field names. I
keep getting these errors as I go thru my loop::
Notice: Undefined offset: 10 in (.) on line 151
Notice: Undefined offset: 9 in (.) on line 151
On 26 Apr 2012, at 21:20, Jim Giner wrote:
Sorry - can't seem to find anything that explains this on google.
I'm using a List command to break out an array into distinct field names. I
keep getting these errors as I go thru my loop::
Notice: Undefined offset: 10 in (.) on line 151
Thanks. That was it -my last line was null.
- Original Message -
From: Stuart Dallas stu...@3ft9.com
To: Jim Giner jim.gi...@albanyhandball.com
Cc: php-general@lists.php.net
Sent: Thursday, April 26, 2012 4:21 PM
Subject: Re: [PHP] undefined offset
On 26 Apr 2012, at 21:20, Jim
For those of you with FPDF experience.
I've just begun using it and have figured out how it works I think. I am
still having trouble with the bottom of the page tho. Seems that if I get
too close to the bottom margin and my data line exceeds the amount of
available space, my MultiCell
On Thu, Apr 26, 2012 at 3:59 PM, mirrys.net mirrys@gmail.com wrote:
Thank you for your help Marco Simon. No doubt, your code is much
cleaner and better.
One more question, without any filter or something could be my
original code somehow compromised (mean some security bug)? Or rather
Hello all.
This is more of a MySQL question, but I'm hoping it can be answered here.
On one of my pages, I issue a SQL command to group data as such:
$sql='select count(*) as count, searchkeywords from searchkeywords group by
searchkeywords order by count desc'
Works well... but I would like
19 matches
Mail list logo