I would agree with the Mandrake recommendation.
I first installed it a few years back, to help me get started in the
Linux/Unix world, and had very little trouble with it. It's hardware
recognition has always been very impressive. Since first installing
Mandrake, I have often thought I should
Is there an easier way to display/highlight the value stored in the database
for a select option? Such as:
Stored value is 'center'. The statement is:
print 'select name=colalign';
print 'option value=leftLeft';
print 'option value=centerCenter';
print 'option value=rightRight';
print '/select';
Greg Donald wrote:
On Mon, 07 Feb 2005 22:25:46 -0500, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I think this is an extraordinary (and unjustified) level of paranoia.
cat /dev/mem | strings | egrep ^[0-9]+$
cat: /dev/mem: Permission denied
:)
You need root access. If anyone gains root on your
Marek Kilimajer wrote:
Greg Donald wrote:
On Mon, 07 Feb 2005 22:25:46 -0500, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I think this is an extraordinary (and unjustified) level of paranoia.
This was aimed at me. I personally wouldn't touch a CCN with a barge pole,
I did say it was 'best' not to
Hello Alp
Try something like,
?php
//DB fields as an array
$db_fields = array('left'= 'left',
'center' = 'center',
'right' = 'right');
function drop($array,$sel_name='',$sel_field='',$css=''){
$dropdown =
First of all, hello everybody,
I am having some problems generating timestamps.
I have a simple application, the user selects a month, a day and a year
and submits
it's data.
Now, I want that date to be stransformed into a unixtimestamp. To do
that
I use strtotime('m/d/y') for 01 January 2011 it
Hi All,
I am revisiting a previous question posted here as after lots of
investigation and code testing I cannot get what I want.
I want to use PHP to read/write files that are outside of the web root and
not owned by apache. To be specific...
$HOME/.procmailrc
$HOME/.spamassassin/user_prefs
On Tuesday 08 February 2005 20:50, Phil Ewington - 43 Plc wrote:
So my question is can I easily/safely edit files outside of the web
root using PHP or is there a 3rd party command line tool to do this?
Your real question is: can I easily/safely edit files that [the user
running] PHP has no
Phil Ewington - 43 Plc wrote:
Hi All,
I am revisiting a previous question posted here as after lots of
investigation and code testing I cannot get what I want.
I want to use PHP to read/write files that are outside of the web root and
not owned by apache. To be specific...
$HOME/.procmailrc
On Tue, 8 Feb 2005 12:50:59 -, Phil Ewington - 43 Plc
[EMAIL PROTECTED] wrote:
So my question is can I easily/safely edit files outside of the web root
using PHP or is there a 3rd party command line tool to do this?
sudo can assist you with this task.
--
Greg Donald
Zend Certified
On Tue, 08 Feb 2005 03:14:43 +0100, Niels [EMAIL PROTECTED] wrote:
I'm doing an intranet website for managing users. I need to be able to
change passwords, move files and folders around and that kind of thing.
What is the best way?
sudo can assist you with this task.
--
Greg Donald
Zend
This question is as much about politics, and religion, as it is technical.
I like mandrake, but I haven't used a distro yet, in which everything
'just worked'. Each distro I tried had some bug in it. Can't remember
what they were, and they were easly circumvented, but if you don't
know much about
On 8 Feb 2005 Jochem Maas wrote:
This was aimed at me. I personally wouldn't touch a CCN with a barge pole,
I did say it was 'best' not to accept them at all, although accepting them and
immediately passing them on via an SSL link (e.g. with cURL) is probably
'good enough' - at least,
Hello, all -
Being still fairly new to PHP, I thought I'd ask a few more questions
and get on to the right track here, developing correct coding habits
before I start to teah myself incorrect habits.
One of my biggest questions is how to go about writing an application
that uses a single file,
[snip]
...stuff...
[/snip]
This is really a broad request, and you'll get as many opinions as there
are posters. Instead of IFs you may want to use a SWITCH
(http://www.php.net/switch). Why do you want to do the application all
in one file? Is it small enough to be justified? Place common
[EMAIL PROTECTED] wrote:
On 8 Feb 2005 Jochem Maas wrote:
This was aimed at me. I personally wouldn't touch a CCN with a barge pole,
I did say it was 'best' not to accept them at all, although accepting them and
immediately passing them on via an SSL link (e.g. with cURL) is probably
'good
-Original Message-
From: The Disguised Jedi [mailto:[EMAIL PROTECTED]
Sent: Monday, February 07, 2005 5:25 PM
To: PHP General List; users@httpd.apache.org
Subject: [PHP] Favorite Linux Distribution
Hello all -
I've been a list member for a while, helped out some people,
and
On Tue, 8 Feb 2005 14:19:38 +, Rory Browne [EMAIL PROTECTED] wrote:
This question is as much about politics, and religion, as it is technical.
In all my years of attending Church I never once heard anyone
discussing Linux. Must be a denominational thing.
--
Greg Donald
Zend Certified
Jay Blanchard wrote:
[snip]
...stuff...
[/snip]
This is really a broad request, and you'll get as many opinions as there
are posters. Instead of IFs you may want to use a SWITCH
(http://www.php.net/switch). Why do you want to do the application all
in one file? Is it small enough to be justified?
Dan Trainor wrote:
Hello, all -
Being still fairly new to PHP, I thought I'd ask a few more questions
and get on to the right track here, developing correct coding habits
before I start to teah myself incorrect habits.
One of my biggest questions is how to go about writing an application
that
[snip]
Is it small enough to be justified?
I don't know, I just always thought of it as clean to write an
application inside of a single file itself. While I'm still fairly new
to procedural programming, this may not be the proper way to do things.
[/snip]
A. It's not a dumb topic, just very
On Tuesday 08 February 2005 19:30, Balu Stefan wrote:
Also mktime generates the second timestamp ...damn, I really don't know
why there are two different
timestamps for the same date.
A few of PHP's date/time functions take into account the local time zone
of the server.
So:
I use
On 8 Feb 2005 Jochem Maas wrote:
don't agree - I'd rather be cautious on a hunch, especially given that I
have no means to personally verify the risk other than in terms of total
financial ruin if a real problem occurs even once. besides its a moot point
there is no need to handle creditcard
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?
Ben
--
Ben Edwards - Poole, UK, England
If you have a problem
I AM going to accept CC's on my site. I am NOT going to store them
anywhere... and I DO think the original question is valid. If a hacker
is able to gain root access they may be able to obtain a CCN from
memory on my server... Perhaps a hacker breaks into a number of sites
and harvests 1 or 2
Hi to all!
Have to create a script to select excel file and store info from the
file in existing table (mysql).
After some research found the best way will be save excel (xls) file as
csv comma delimited file and then store info in table.
For first step I just used in Excel app File Save As..
[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
On Tue, 8 Feb 2005 08:37:32 -0800, Tony Di Croce [EMAIL PROTECTED] wrote:
So, it doesn't seem like anyone is aware of a way to make PHP paranoid
about such things... Perhaps their is a lower level way to get linux
to scrub an address space when a process exits? I will google
It's pretty
Greg Donald wrote:
On Tue, 8 Feb 2005 08:37:32 -0800, Tony Di Croce [EMAIL PROTECTED]
wrote:
So, it doesn't seem like anyone is aware of a way to make PHP paranoid
about such things... Perhaps their is a lower level way to get linux
to scrub an address space when a process exits? I will
Jochem Maas wrote:
Dan Trainor wrote:
Hello, all -
Being still fairly new to PHP, I thought I'd ask a few more questions
and get on to the right track here, developing correct coding habits
before I start to teah myself incorrect habits.
One of my biggest questions is how to go about
On 8 Feb 2005 Greg Donald wrote:
It's pretty simple to scrub the data away.
$cc = '1234123412341234';
// do processing
$cc = md5( time() );
This only works if PHP uses the same storage for both strings. If it
reallocates the storage, for example because the md5 result is longer,
Phil Ewington - 43 Plc wrote:
For some reason user_prefs will not open
for read/write even when I tested it under apache.apache and chmod'd to
755,
perhaps because /home is owned by root?
Something went wrong with this test.
You SHOULD have been able to read/write that file in PHP, assuming
On Tue, 2005-02-08 at 16:47 +, Chris Ramsay wrote:
[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?
Balu Stefan wrote:
First of all, hello everybody,
I am having some problems generating timestamps.
I have a simple application, the user selects a month, a day and a year
and submits
it's data.
Now, I want that date to be stransformed into a unixtimestamp. To do
that
I use
Afan Pasalic wrote:
?php
#names of columns in products table
$column_names = array('ITEM NUMBER', 'ITEM NAME', 'DESCRIPTION',
'COLORS', 'INCLUDES', 'QTY', 'PRICE', 'IMAGE', 'THUMB', 'CATALOG',
'STATUS', 'SUPPLIER', 'EXP_DATE');
if(isset($_POST['SubmitExcelFile']))
{
#VALIDATING
[EMAIL PROTECTED] wrote:
No the most secure way, but I had a client who was determined not to use
paypal and store cc'sand do them offline. I am using SSL + Mysql encode to
do this. Ie
encode(cc_number,md5('secret'))
This is rife with potential problems...
Stored *where* off-line?
Who can
Cerauno Technologies proudly announces the release of DocGuru Professional
1.0.
DocGuru is our brand new source code documentation system. It helps
you to generate documentation right from your source code,
understanding naturally formed in-source comments, thereby making the
entire
On Tue, 8 Feb 2005 09:23:46 -0800 (PST), Richard Lynch [EMAIL PROTECTED]
wrote:
There's no guarantee that will re-use the same bytes for the new string in
the low-level C malloc/alloc/???alloc calls, I don't think...
Your right. In fact this script proves just how wrong I was:
#!/usr/bin/php
Greg Donald wrote:
sudo can assist you with this task.
Thank you for your answer. Can you be more specific? Is sudo the best way to
go? What are the pros and cons? Should I wrap my system calls in a C
program or a bash script? Do you know of any websites with articles or
tutorials about this?
Grimes, Dean wrote:
Anybody out there doing any work with ncurses? I've been playing around
with
ncurses trying to figure it all out. I have had pretty good luck but I am
finding a few issues and would like to know if other users are having the
same problems. One of the problems I'm having is
I am using php 4 and Apache 1.3 on a RH 9 box.
upload_max_filesize is set to 5M
post_max_size is set to 8M
MAX_FILE_SIZE in the HTML upload page is set to 500
I get the error The document contains no data with any file over 500 KB.
What is creating the error?
Many thanks.
Todd
--
PHP
Hello,
This question was asked many times, but I can't find a good answer.
I am getting this error message while trying to connect to MySQL server
(PHP
+ PEAR::DB_DataObject):
Can't connect to local MySQL server through socket '' (111)
(notice '' - is that right?)
Does
On Tue, 8 Feb 2005 23:22:05 -0800, Akhil Dhanuka [EMAIL PROTECTED] wrote:
Cerauno Technologies proudly announces the release of DocGuru Professional
1.0.
Did you happen to have a comparison doc comparing this with the free,
open source PHPDocumentor: http://www.phpdoc.org/ ?
Thanks,
--
Johannes Reichardt wrote:
Hey there!
i have a routine like this:
$myarray['1'] = 'aösldfjkasöldkjf';
foreach($myarray as $key = $value) {
echo $key{0}; // outputs nothing
echo substr($key,0); // outputs 1 like intended
}
Any ideas why this is like that? I am using
php
My intention of setting the reply-to was not to offend, or claim you
were wrong - merely to move the discussion to the list I felt (and still
feel - as I've done it again) is most appropriate for the question.
anyway, back to the task at hand
( first: I'm assuming you restarted apache after
I have to get an URL parameter via fsockopen connection.
I shall connect with fsockopen to a given link and get back this link
with an URL parameter cnr=xx
Who can I do this?
And who can I read this URL parameter?
What's cnr ???
If you can get the fsockopen to work, and it doesn't
:-( The downside would be, IMHO, that I would need to pro-actively check
everything that is going on concerning PHP, in order to prevent any major
problems. (one and a halve month ago, some clients on an other
installation
who hadn't mainted phpBB also caused me the necessary problems). Also,
Curt Zirzow wrote:
* Thus wrote Ian Porter:
Hi,
I am just wondering how to obtain the result from a mysql procedure OUT
parameter within PHP e.g.
MYSQL
create procedure test_out(OUT testvar int)
BEGIN
select max_connections into testvar from mysql.user limit 1;
END
PHP
$query
blackwater dev wrote:
I have installed php5 fine on my Fedora 3 box. I know need to
recompile to add in a feature and did the same steps as the install
./configure, make, make install which went fine but when restart
apache and go to the php.ini, my new configuration is not shown and
Go to
Tony Di Croce wrote:
First I should say that I have NO plans to store CCN's on my site, but
I do have a related question:
Right now I accept CC info from a posted form and then from a PHP
script submit that to authorize.net... Is their any way to get PHP to
clean up any remnants of any
Silvio Porcellana wrote:
Richard Lynch wrote:
snip /
Actually, you want a few SPARE MySQL connections, so you can use the
mysql
command line monitor to do things -- Particularly in case of a run-away
PHP/MySQL script which slams the server into over-drive... If you don't
have a
[EMAIL PROTECTED] wrote:
That's definitely not good.
But there is only so much you, and PHP, can do to stop a bad programmer
from chewing up resources.
I'm pretty sure that you can prevent this somehow!
There is no way any OS with respect for themself, will
allow any user installed programs
Todd Cary wrote:
I am using php 4 and Apache 1.3 on a RH 9 box.
upload_max_filesize is set to 5M
post_max_size is set to 8M
MAX_FILE_SIZE in the HTML upload page is set to 500
I get the error The document contains no data with any file over 500 KB.
What is creating the error?
-- Original message --
From: Niels [EMAIL PROTECTED]
Hi list,
I'm doing an intranet website for managing users. I need to be able to
change passwords, move files and folders around and that kind of thing.
What is the best way?
I wouldn't use system calls
This article may help:
http://www.onlamp.com/pub/a/php/2003/08/28/php_foundations.html
On Tue, 08 Feb 2005 20:38:48 +, Jennifer Goodie [EMAIL PROTECTED] wrote:
-- Original message --
From: Niels [EMAIL PROTECTED]
Hi list,
I'm doing an intranet
How can I detect that a remote server is hung up on transmitting a http page and
gracefully handle it?
The connect is made OK, all I want to do is to make certain that I receive the
data stream in a given amount of time. For example, if the remote server is
incredibly slow or hangs in the
Al wrote:
How can I detect that a remote server is hung up on transmitting a http
page and
gracefully handle it?
The connect is made OK, all I want to do is to make certain that I receive
the
data stream in a given amount of time. For example, if the remote server
is
incredibly slow or
I have script that create directories after item's name and each
directory has 2 images: big image and it's thumbnail (both jpgs)
But, when I run this code:
$path = 'product_images';
$handle = opendir($path);
while (false !== ($file = readdir($handle)))
{
if ($file != .
Hi Jarratt,
Thank you for your advice. I will try that and come back with the result.
Alp
RaTT [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello Alp
Try something like,
?php
//DB fields as an array
$db_fields = array('left' = 'left',
'center' = 'center',
'right'
$path = 'product_images';
$handle = opendir($path);
while (false !== ($file = readdir($handle)))
{
if ($file != . $file != ..)
{
echo $file;
if (is_dir($file))
{
echo ' -- folderbr';
$folders[] =
Matt M. wrote:
$path = 'product_images';
$handle = opendir($path);
while (false !== ($file = readdir($handle)))
{
if ($file != . $file != ..)
{
echo $file;
if (is_dir($file))
{
echo ' -- folderbr';
$folders[] = $file;
Nope! It doesnt work either...
:(
Matt M. wrote:
$path = 'product_images';
$handle = opendir($path);
while (false !== ($file = readdir($handle)))
{
if ($file != . $file != ..)
{
echo $file;
if (is_dir($file))
{
echo ' -- folderbr';
Yup! That's the one! I was missing PATH...
:)
Thank you very much for such a nice explanation!
-afan
M. Sokolewicz wrote:
Matt M. wrote:
$path = 'product_images';
$handle = opendir($path);
while (false !== ($file = readdir($handle)))
{
if ($file != . $file != ..)
{
echo
Darn, I left out an important function, the fread(). Code snip should be:
$fp= fopen(http://www.anything.com/foo.html, 'rb');
if(!fp) {do something different}
stream_set_timeout($fp, 2);
$contents= fread($fp, 20);
$status= stream_get_meta_data($fp);
if($status[timed_out] {do something};
Richard Lynch wrote:
Al wrote:
How can I detect that a remote server is hung up on transmitting a http
page and
gracefully handle it?
The connect is made OK, all I want to do is to make certain that I receive
the
data stream in a given amount of time. For example, if the remote server
is
Richard -
It turned out that the following was missing from Apache's httpd.conf file:
Files *.php
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 500
/Files
Not sure what that does or where I should have read about it, but I did
find that in an email I got with Google.
Todd
Richard
Todd Cary wrote:
Richard -
It turned out that the following was missing from Apache's httpd.conf file:
Files *.php
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 500
/Files
Not sure what that does or where I should have read about it, but I did
find that in an email I got with
Dan -
Keep in mind that the change I made was within Apache on my server - not
in the php.ini file. The changes to the php.ini file are well
documented and have been covered within messages on this NewNet.
However, s I stated, I am not sure why that change needs to be
made...more reading for
Todd Cary wrote:
Dan -
Keep in mind that the change I made was within Apache on my server - not
in the php.ini file. The changes to the php.ini file are well
documented and have been covered within messages on this NewNet.
However, s I stated, I am not sure why that change needs to be
Due to the recent vulnerabilities discovered in phpBB and the content
of this page:
http://www.phpbb.com/
I have decided to consider other options for my forum needs... Does
anyone have any reccomendations for a PHP based forum software?
--
Send REAL USPS letters from the Web!
Tony Di Croce wrote:
Due to the recent vulnerabilities discovered in phpBB and the content
of this page:
http://www.phpbb.com/
I have decided to consider other options for my forum needs... Does
anyone have any reccomendations for a PHP based forum software?
I'm not an advocate for phpBB by any
On Tue, 2005-02-08 at 17:16 -0800, Tony Di Croce wrote:
Due to the recent vulnerabilities discovered in phpBB and the content
of this page:
http://www.phpbb.com/
I have decided to consider other options for my forum needs... Does
anyone have any reccomendations for a PHP based forum software?
--- Tony Di Croce [EMAIL PROTECTED] wrote:
Due to the recent vulnerabilities discovered in phpBB and the
content of this page:
http://www.phpbb.com/
I have decided to consider other options for my forum needs... Does
anyone have any reccomendations for a PHP based forum software?
FUDforum
Well I think I've got my handling of cursor movement keys working pretty
good. But I still have a couple of bugs with some of the video attribute
settings. The BLINK attribute works, but even after turning it off, it
leaves the area that you set to blink in an active blink mode. The blinking
thing
Jennifer Goodie wrote:
I wouldn't use system calls to move files around. PHP has built in file
system functions. Why shell out to do something that is built in?
Well, the apache user really shouldn't have access to the entire file system
-- that's the problem.
Thanks,
Niels
--
PHP
Guillermo Rauch wrote:
This article may help:
http://www.onlamp.com/pub/a/php/2003/08/28/php_foundations.html
Thanks you, I've read that, it deals with avoiding malicious code in file
uploads. I think I've got that part under control. You're right, such
methods are obvious entry points to a
is there any way to use extract , to extract the keys from an array to
$this vars for within a class ? Let me know.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
This one is really nice. I Use it myself on a coulpe of sites.
http://phorum.org/
Greetings
Lindworm
-Ursprüngliche Nachricht-
Von: Tony Di Croce [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 9. Februar 2005 02:16
An: php-general@lists.php.net
Betreff: [PHP] phpBB
:-( The downside would be, IMHO, that I would need to pro-actively
check everything that is going on concerning PHP, in order
to prevent
any major problems. (one and a halve month ago, some clients on an
other installation who hadn't mainted phpBB also caused me the
necessary
If i understand you correctly, you want to extract all the keys and
generate class members with them..
// Define class test
class test {
// We pass an array to the constructor
function __construct( $arr ) {
foreach($arr as $key = $val ) {
-- Original message --
From: Niels [EMAIL PROTECTED]
Jennifer Goodie wrote:
I wouldn't use system calls to move files around. PHP has built in file
system functions. Why shell out to do something that is built in?
Well, the apache user really shouldn't
Sander Holthaus - Orange XL wrote:
Sander Holthaus - Orange XL wrote:
...
Fix or disable that script.
I wish I could, but I'm not a PHP-programmer (can read it
and can do
some basic programming, but I lack in-depth knowledge of PHP).
well disabling it is fairly easy
Hello,
We have not seen the product that you have listed so we
cannot really compare our product with them.
I believe phpDocumentor is a web-based project so it will never be as
responsive as a client server application. DocGuru is developed in
C/C++ therefore its speed is uncomparable.
We have
Jennifer Goodie wrote:
Should web applications have access to areas on the file system that the
apache user doesn't? I personally only allow my web applications access
to certain areas on purpose and set my permissions to accomplish this. If
I need to be a user other than nobody to do
I'm in need of some fully functional stand-alone php FTP scripts, I've
searched the web, have downloaded a couple but they don't work.
While this looks valid and appears to be uploading the file, no file is
ever saved other than a temporary file that vanishes as soon as the
file has completed
On Wednesday 09 February 2005 12:58, D.Walsh wrote:
I'm in need of some fully functional stand-alone php FTP scripts, I've
searched the web, have downloaded a couple but they don't work.
While this looks valid and appears to be uploading the file, no file is
ever saved other than a temporary
On Wednesday 09 February 2005 02:31, Richard Lynch wrote:
Phil Ewington - 43 Plc wrote:
For some reason user_prefs will not open
for read/write even when I tested it under apache.apache and chmod'd
to 755,
perhaps because /home is owned by root?
Something went wrong with this test.
87 matches
Mail list logo