On 6/7/2011 2:44 PM, Adam Preece wrote:
> hi,
>
> thanks for your reply.
>
> i have figured out, well kind of, and got the data i need but the problem is
> its nested within to many arrays!
>
> Array (
> [threads & form types] =>
> Array ( [0] => Array ( [name] => imperial
hi,
thanks for your reply.
i have figured out, well kind of, and got the data i need but the problem is
its nested within to many arrays!
Array (
[threads & form types] =>
Array ( [0] => Array ( [name] => imperial thread form [id] =>
28 [page_cat_id] => 9 [main_nav] =
> From: a...@blueyonder.co.uk
> Date: Tue, 7 Jun 2011 21:50:27 +0100
> To: php-general@lists.php.net
> Subject: [PHP] advice on how to build this array from an array.
>
> hi all,
>
> please forgive me if i do not make sense, ill try my best to explain.
>
>
On 2/21/2010 9:11 AM, Kim Madsen wrote:
Al wrote on 20/02/2010 19:30:
I use Kim's solution and take it one step forward. Htacces files can
get lost or corrupted, so
No solution to that problem as I see it.
In my config file I have the text string.
I like the idea, but what if this fi
Al wrote on 20/02/2010 19:30:
I use Kim's solution and take it one step forward. Htacces files can get
lost or corrupted, so
No solution to that problem as I see it.
In my config file I have the text string.
I like the idea, but what if this file is never accessed?
--
Kind regards
Kim
I use Kim's solution and take it one step forward. Htacces files can get lost or
corrupted, so
In my config file I have the text string.
//region htaccess file text
// Code writes to /db folder; Admin mode checks file existence and text;
replaces with this if different.
Kim Madsen wrote:
> Michael Stroh wrote on 19/02/2010 19:19:
>> I have a site I'm working on with some data that I want to be
>> readable by anyone, but some files that I want to keep hidden from
>> outside users. Here is an example of my file structure.
>>
>> /products/data1/item_1/data.txt
>> /p
Michael Stroh wrote on 19/02/2010 19:19:
I have a site I'm working on with some data that I want to be
readable by anyone, but some files that I want to keep hidden from
outside users. Here is an example of my file structure.
/products/data1/item_1/data.txt
> /products/data2/item_2/data.txt
s
From: Rene Veerman
> the "proper way" i know of is not the easiest to implement..;
>
> 1) create a php script that accepts enough parameters to get at your
data.
> eg: /products/view.php?dataNr=1&itemNr=1
> 2) let that script compare the current user (visitor who's logged in)
> to authentication
1 more thing: doing this right isn't easy. at all.
it took me more than a year to "do it properly".
you may wanna look around on sf.net for any package that can do this for you.
On Fri, Feb 19, 2010 at 7:19 PM, Michael Stroh wrote:
> I have a site I'm working on with some data that I want to be
As far as storing the files, use a seperate subdirectory called
"rawData" or something, and place all your files in there, aim for 10
- 5000 files per directory, and keep it logical.
But since you want to stop guessers from accessing it, use a
randomID() function that you create to generate a rando
the "proper way" i know of is not the easiest to implement..;
1) create a php script that accepts enough parameters to get at your data.
eg: /products/view.php?dataNr=1&itemNr=1
2) let that script compare the current user (visitor who's logged in)
to authentication data that tells which it if the
On Fri, Feb 19, 2010 at 1:19 PM, Michael Stroh wrote:
> I have a site I'm working on with some data that I want to be readable by
> anyone, but some files that I want to keep hidden from outside users. Here is
> an example of my file structure.
>
> /products/data1/item_1/data.txt
> /products/dat
On Mon, 2009-02-16 at 10:53 -0500, Payne wrote:
> Hi,
>
> I am wanting to ask some advice on project I have in mind, but I am
> having problems finding examples. What I am working on is a set of tools
> that creates reports based on actions. I have the reports working good,
> but what I advice
What do you want to implement as a radar chart?
Nothing in particular. Just a generic radar chart for representing data.
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 8:26 PM +0100 7/15/08, Richard Heyes wrote:
If you are willing to use googles chart api ..
http://code.google.com/apis/chart/#radar
Nope. It's not something I need to implement, mmore a personal
(albeit with this lists help) project.
--
Richard Heyes
Richard:
What do you want to imple
If you are willing to use googles chart api ..
http://code.google.com/apis/chart/#radar
Nope. It's not something I need to implement, mmore a personal (albeit
with this lists help) project.
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.ne
If you are willing to use googles chart api ..
http://code.google.com/apis/chart/#radar
Yeti
On Tue, Jul 15, 2008 at 11:35 AM, Richard Heyes <[EMAIL PROTECTED]>
wrote:
> Hey,
>
> Can anyone suggest an efficient method for plotting the marks on a radar
> chart? I have the background done (
> htt
Steve Finkelstein wrote:
> Hi all,
>
> I'm having a brain freeze with some simple code that I wrote and now trying
> to refactor.
>
> I have a block of code that looks like this:
>
> public function backup()
public function backup(&$errors)
> {
> $fname = "$this->dbName.sql
On Mon, 2007-12-10 at 18:25 -0500, Steve Finkelstein wrote:
> Hi all,
>
> I'm having a brain freeze with some simple code that I wrote and now trying
> to refactor.
>
> I have a block of code that looks like this:
>
> public function backup()
> {
> $fname = "$this->dbName.sql
If you know you are using MySQL, you could pass all database input
through mysql_real_escape_string.
Or you could use prepared statements and not have to worry about
escaping the data, as MySQL *knows* it's data.
You'll probably not be able to defeat XSS in any meaningful way,
however...
Perhap
little effort -- no installation required.
From: Zoltán Németh <[EMAIL PROTECTED]>
To: Bing Du <[EMAIL PROTECTED]>
CC: php-general@lists.php.net
Subject: Re: [PHP] advice on sql injection/XSS prevention
Date: Thu, 05 Apr 2007 16:23:23 +0200
I think it is generally a Bad Idea to allow
I think it is generally a Bad Idea to allow users to submit code into
your system...
you would be better off if you would provide some pseudo-coding
possibilities which would allow them to insert certain functionalities
into their content - with you providing the real code running behind and
replac
On Tue, December 12, 2006 8:23 am, Denis Gerasimov wrote:
> I am in a need of implementing custom/used-defined fields mechanism.
> What I
> need is adding new fileds to a db table on-the-fly.
>
> There are 2 possible options I know:
>
> 1. Add a fixed set of text columns named custom_01, cust
Denis Gerasimov wrote:
> Hello list members,
>
>
>
> I am in a need of implementing custom/used-defined fields mechanism. What I
> need is adding new fileds to a db table on-the-fly.
>
>
>
> There are 2 possible options I know:
>
> 1. Add a fixed set of text columns named custom_01,
On Thu, 2006-03-23 at 21:30, Richard Lynch wrote:
> Are you using http://php.net/fgetcsv
>
> Cuz if you're not, you're gonna go nuts trying to work out the CSV
> minutia
>
> I think CSV musta been invented by Microsoft. It's got that MS feel
> to it...
Taint anyways...
http://support.microsoft
Are you using http://php.net/fgetcsv
Cuz if you're not, you're gonna go nuts trying to work out the CSV
minutia
I think CSV musta been invented by Microsoft. It's got that MS feel
to it...
On Tue, March 21, 2006 4:19 pm, Brian Anderson wrote:
> The only other thing that I can think to do is t
You don't.
You run PHP on the Windows box with the mdb file, and set up a way for
the two boxes to talk to each other.
Or you convince somebody somewhere just how bad MS-Access is and
abandon it entirely :-)
On Tue, March 21, 2006 4:05 pm, Brian Anderson wrote:
> Yeah, I thought of that, but h
There is, or used to be, an MS-Access MySQL synchronizer package "out
there"
Haven't seen it mentioned in years now, but maybe I just wasn't paying
attention.
Try searching for it:
info.com/MS-Access MySQL synchronize
On Tue, March 21, 2006 4:00 pm, Brady Mitchell wrote:
>> -Original Messag
Brian Anderson wrote:
Yeah, I thought of that, but how do I connect to a mdb file on a linux
server that doesn't have odbc installed?
Convert it:
Search google for "convert access to mysql" and you'll find tons of
results - some free, some not.
-Original Message-
I wonder if anyo
The only other thing that I can think to do is to try locally write a
.sql file and ftp that for updating because MS Excel format csv is
making me want to kill myself.
-Brian
Brian Anderson wrote:
Yeah, I thought of that, but how do I connect to a mdb file on a linux
server that doesn't have
Yeah, I thought of that, but how do I connect to a mdb file on a linux
server that doesn't have odbc installed?
Brady Mitchell wrote:
-Original Message-
I wonder if anyone has any ideas? As I can't just run an
update locally
and connect to the remote MySQL host, I was scheduling a
pe
> -Original Message-
> I wonder if anyone has any ideas? As I can't just run an
> update locally
> and connect to the remote MySQL host, I was scheduling a
> periodic export
> of an access table to csv format, ftping it to the server, and then
> running an update script on the remote h
On 11/28/05, Reza Iqbal <[EMAIL PROTECTED]> wrote:
> As a new open source project, we will need many advice in order
> to make it success.
ah an "open source" project with "encoded source code"?! how come?
-ahmed
George Pitcher wrote:
John,
Thanks for the input. I just knew I hadn't covered everything. My server is
currently set up as NT4/IIS. I suppose I could look to switching to Apache
though.
Cheers
George
I really don't know the Windows world, but there _may_ be a way to set
up include paths g
Mark,
Thanks, I'll follow that up as well. I don't have to do this straight away.
Cheers
George
> -Original Message-
> From: Mark Rees [mailto:[EMAIL PROTECTED]
> Sent: 16 August 2005 3:33 pm
> To: php-general@lists.php.net
> Subject: Re: [PHP] Advice sough
; > From: John Nichel [mailto:[EMAIL PROTECTED]
> > Sent: 16 August 2005 2:25 pm
> > To: php-general@lists.php.net
> > Subject: Re: [PHP] Advice sought on PHP site maintenance
> >
> >
> > George Pitcher wrote:
> > > Hi,
> > >
> > > I
5 pm
> To: php-general@lists.php.net
> Subject: Re: [PHP] Advice sought on PHP site maintenance
>
>
> George Pitcher wrote:
> > Hi,
> >
> > I manage several sites for my company. Some are running our own
> service to
> > about 80 customers and others are
George Pitcher wrote:
Hi,
I manage several sites for my company. Some are running our own service to
about 80 customers and others are running a service for some (5 and growing)
of our customers. Its the latter one that I need advice on.
I have an application where each customer has a website o
Alp wrote:
> I would like to be able to alter the lining-up of several sections on a
> php
> generated webpage. What would be the best/optimal approach in achieving
> that?
>
> As an example "sections" referred to are mostly tables generated via code
> on
> data obtained from a DB. Should I name th
Alp wrote:
Thanks Burhan,
That's almost what I exactly want to do. The question is "how do I start
doing that" which methodlogy, which structure, etc,,,
The first step would be to store the weight value in your database (or
wherever) and link it to your modules (or content) that you want ordered.
Thanks Burhan,
That's almost what I exactly want to do. The question is "how do I start
doing that" which methodlogy, which structure, etc,,,
Alp
"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Alp wrote:
> > Hi Jochem,
> >
> > Intention is to give a user the option
Alp wrote:
Hi Jochem,
Intention is to give a user the option of assigning "position" of a
"section" on the page, i.e:
First: sectA, then sectC, then sectE, then sectB and sectD or any other
order that is indicated by the user. So it is somewhat like top-of-page,
mid-of-page etc but with a numbe
Hi Jochem,
Intention is to give a user the option of assigning "position" of a
"section" on the page, i.e:
First: sectA, then sectC, then sectE, then sectB and sectD or any other
order that is indicated by the user. So it is somewhat like top-of-page,
mid-of-page etc but with a numbering/prece
Alp wrote:
...
I would like to be able to alter the lining-up of several sections on a php
generated webpage. What would be the best/optimal approach in achieving
that?
As an example "sections" referred to are mostly tables generated via code on
data obtained from a DB. Should I name them (somehow)
Justin wrote / napísal (a):
Hi all,
I'm a experienced web programmer, that is taking on a PHP project. I'm
really looking to get the tricks and tips that come with experience, the
lazy way :-)
Project Overview
Its basically a corporate info website, with an admin section to
add/change content. It
On Thursday 04 November 2004 00:33, Daniel Lahey wrote:
> I've encountered the same bug that others have in regards to failure of
> the imagecreatefromjpeg(), imagecreatefrompng(), and
> imagecreatefromgif() functions when running under IE.
I find it hard to believe that your choice of browser a
]
Subject: Re: [PHP] Advice Needed
Hello daniel,
Friday, February 20, 2004, 6:10:28 AM, you wrote:
deo> Hi there, i have finally built a project space for work, its a
collaborate
deo> space for storing important key documents (not public), what is the
best
deo> way to store these, outsid
Hello daniel,
Friday, February 20, 2004, 6:10:28 AM, you wrote:
deo> Hi there, i have finally built a project space for work, its a collaborate
deo> space for storing important key documents (not public), what is the best
deo> way to store these, outside the web directory or would it be safe with
On Sun, 2003-11-23 at 14:27, Jed R. Brubaker wrote:
> I was hoping that some of you would be able to give me some advice.
>
> I have started creating a web application that makes heavy use of URL GET
> variables in order to solve a problem that I have had with POST in the
> past - namely, having
On Thu, 5 Jun 2003 10:25:01 +0100, Bix wrote:
>My file is currently 1200 lines long and consist of 450 lines of case
>statements and then the rest are functions.
Obviously there are ways to optimize the code for speed. However, as
with many optimizations, there are trade offs... One way to do a
[snip]
include("common_functions.php");
switch($action)
case "do this":
include("do_this_funcs.php");
.
function(s) called
break;
case "do that":
include("do_that_funcs.php");
.
> -Original Message-
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]
> Sent: 05 June 2003 13:36
>
> [snip]
> > If I did this, would it make a huge amount of difference?
>
> I'm almost certain it WOULD make a difference, but apart from the
> execution time, I can't think of anything worse
[snip]
On a similar note, does php 'look at' all the functions even if not
used? I can understand it reads them, but does it involve any parsing
time?
[/snip]
http://us3.php.net/manual/en/function.include.php has a wealth of
information, including important notes about security of included files.
On a similar note, does php 'look at' all the functions even if not used? I
can understand it reads them, but does it involve any parsing time?
Bix.
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
> If I did this, would it make a huge amount of difference?
I'm
[snip]
> If I did this, would it make a huge amount of difference?
I'm almost certain it WOULD make a difference, but apart from the
execution time, I can't think of anything worse than scrolling through
2000 lines of code looking for the section I'm after.
Or, even if *I* could find my way aroun
on 05/06/03 7:25 PM, Bix ([EMAIL PROTECTED]) wrote:
> If I did this, would it make a huge amount of difference?
I'm almost certain it WOULD make a difference, but apart from the execution
time, I can't think of anything worse than scrolling through 2000 lines of
code looking for the section I'm a
You can do either, many people have responded and given their thoughs on
the matter. I personally avoid storing images in a database, the
filesystem is better equipped IMO to handle files. On top of the
overhead of storing the image in your database you will be creating
additional database traffi
At 15:54 29.01.2003, Vladimir Galkov spoke out and said:
[snip]
> Me too. I add tracks to DB only and store images as independent files. My
>experiments with storing images in DB shows large memory use wich slow down
>other processes (especialy if I need to c
Two problems for filesystem:
1. You cannot store over a tot number of images on some systems. Thus,
storing them in DB will be headechless. Unless, you know that there will
be at most some hundred pics or so.
2. Storing them in filesystem gives more trouble as you need to make
sure it is - writab
Me too. I add tracks to DB only and store images as independent files. My
experiments with storing images in DB shows large memory use wich slow down
other processes (especialy if I need to choose several images from DB).
But if pictures unnumerous and small (smaler 30-40kb) my advice - insert
t
on 29/01/03 11:16 AM, Manuel Ochoa ([EMAIL PROTECTED]) wrote:
> I writting a php program for a small insurance company and they want to
> receive uploaded digital photos.
>
> Should I store the photos in a mysql database or in a directory on the hard
> drive?
>
> If you have experience with this
Sorry, it was late at night. I'm glad you have the SSL and everything
else already taken care of.
What I meant was for you to build your own session system, so that it is
secure, instead of using PHP's built in session system. Someone once
said that it has a 1% chance of cleaning up the session
Thanks Bahwi,
I agree with you regarding the client-side aspect.
But since we are talking about a regular web-based
application in php I think I will have to deal with
that.
The other security concerns are already addressed,
such as the use of SLL to encrypt the traffic and
possibly the use of a
Sorry, OpenSSL is base in FreeBSD, so I didn't have to set it up myself.
You can check www.openssl.org and www.apache.org. You still have to buy
a cert though. For that, try:
www.verisign.com
and www.instantssl.com --- seems alot cheaper, no experience with them
however
But chances are your be
Would u teach me how to setup the OpenSSL and the engine for the apache web
server in order to achieve the 128 bits SSL protection?
Actually, I have tried so many times but still failed to do so...
First of all, there were errors occurred when I compiled the Openssl engine,
It seemed looking for a
That's a big question.
The most secure way, using either mcrypt or PGP, is to have an
application on the client's side that does the encryption and the
decryptiong. This is probably the best solution. Heavily encrypt things
on both sides, and this assumes the client side is secure.
Barring thi
PHP releases a stable version (currently 4.2.2) which is suitable and stable
for a production environment. My advice would ALLWAYS be to install the
latest stable version. If you install an earlier version, or PHP3, you will
always be missing out on something (eg PHP3 doesn't have sessions).
Pe
On Sat, Jul 13, 2002 at 11:13:38AM -0500, Mike Tuller wrote:
> After much thought, I think I have figured out what I am going to do. I am
> going to create on the first page, a place to add the hardware type, and
> that will add a row to the database, and create the key I need. It will then
> go t
nyone see a problem with this idea, let me know. I think this would
work, but I haven't started coding yet.
Mike
- Original Message -
From: "Alberto Serra" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 10:35 PM
Subject: Re: [PHP] Advice ne
ðÒÉ×ÅÔ!
Mike Tuller wrote:
> So I would have the progressive key inside the addvolume window? Can you
> explain how to go about doing this?
How you organize your HTML output should *never* interfere with the way
you organize your data, they are two different things and must be kept
well separa
Mike:
You MUST store the hardware information first so you can get the actual
HardwareID determined by the hardware table's auto increment field.
Any other way you do it you leave open the possibility for error.
On your main hardware page, I'd make the "Volume Information" section
have condit
So I would have the progressive key inside the addvolume window? Can you
explain how to go about doing this?
- Original Message -
From: "Alberto Serra" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 8:56 PM
Subject: Re: [PHP] Advice neede
ðÒÉ×ÅÔ!
Mike Tuller wrote:
> The hardwareID is created in MySql when the information entered for the hardware is
>submitted, which hasn't been done yet.
You don't need it immediately. Just have a progressive key (like
1,2,3,4...) stored in a hidden field along with the new info you are
gettin
On Sat, Mar 23, 2002 at 05:19:05AM +, James Newkid wrote:
> so if $Quantity1 is 10
> and $Price1 is $1.00
> that means each "unit" is .10
>
> so the output would be
> q1 q2 q3 q5 q10 q15 q20 q25 q50 q100 q300 q500 q600 q10
> 0 0 0 0 .10 .10 .10 .10 .10 .10 .10 .10 .10 .10
>
>
eat system really easy to use and
install.
download the mandrake 8.0 ISO from their website
if you've got a CD-R. it's free :)
> -Original Message-
> From: Johnny Smith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 24, 2001 8:45 AM
> To: [EMAIL PROTECTED]
> Sub
I've used NuSphere twice (I just use the downloaded version) on two
different machines (both Windows 98), and it really works great.
It comes as PHP installed as CGI (at least on windows) and with very little
effort I got it working as an apache module.
I don't have personal experience as to how
Linux Mandrake (8.0) is extremely easy to install,
(it's a complete linux distrib, based off of RedHat,
so you can install it onto a clean machine)
the install is *very* interactive and it comes fully
loaded with almost everything you could want,
and is free
get the ISO's at :
http://linux
78 matches
Mail list logo